Age | Commit message (Collapse) | Author |
|
Assume that filemode.h includes sys/types.h and sys/stat.h.
(HAVE_ST_DM_MODE): New macro, moved here from ls.c.
(ftypelet): Reorder to put common cases first, for efficiency.
Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
to do 'M'.
(strmode): Renamed from mode_string, and now stores 12 bytes instead
of 10, for compatibility with FreeBSD. All callers changed.
(filemodestring): Now stores 12 bytes instead of 10, and sets file types
that can't be deduced solely from st_mode. First arg is now a const
pointer.
|
|
|
|
|
|
Instead, just include "stat-macros.h".
|
|
* filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
(ftypelet): Use S_ISCTG.
|
|
Don't assume the traditional Unix values for mode bits.
(S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH): Define if not defined.
<config.h>, <sys/types.h>: Include for mode_t.
(mode_string): Now takes mode_t.
|
|
(S_ISDOOR): Define if missing.
|
|
static functions.
(mode_string): Remove prototype.
|
|
From Johan Danielsson.
|
|
|
|
From Johan Danielsson.
|
|
|
|
S_IREAD, S_IWRITE, S_IEXEC.
Make sure the former three are defined.
|
|
|
|
|
|
|
|
|