summaryrefslogtreecommitdiff
path: root/lib/filemode.c
AgeCommit message (Collapse)Author
2006-05-23Don't include <string.h>; this include wasPaul Eggert
inadvertantly put into the previous patch.
2006-05-22* filemode.c (setst): Remove.Paul Eggert
(strmode): Rewrite to avoid setst. This makes the code shorter, (arguably) clearer, and the generated code is a bit smaller on my Debian GNU/Linux stable x86 host.
2006-04-17Include "filemode.h" first, to test the interface.Paul Eggert
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.
2005-09-22Sync from gnulib.Paul Eggert
2005-05-14Update FSF postal mail address.Jim Meyering
2004-06-19Remove all S_IS* and S_IF* definitions.Jim Meyering
Instead, just include "stat-macros.h".
2000-04-15Use `C' to denote so-called `contiguous' files, the same way that tar does.Jim Meyering
* filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define. (ftypelet): Use S_ISCTG.
1999-04-26(setst, ftypelet, mode_string): Use proper mode_t types and macros.Jim Meyering
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.
1999-02-03(ftypelet): Handle doors.Jim Meyering
(S_ISDOOR): Define if missing.
1998-08-13Protoize. Tsort function definitions and remove prototypes ofJim Meyering
static functions. (mode_string): Remove prototype.
1998-08-13(ftypelet): Add comments for Cray DMF support.Jim Meyering
From Johan Danielsson.
1998-03-15Use #if, not #ifdef with HAVE_ macrosJim Meyering
1996-10-05(ftypelet): Add support for Cray's migrated dmf files.Jim Meyering
From Johan Danielsson.
1996-07-15update FSF address in copyrightJim Meyering
1994-11-03(rwx): Use S_IRUSR, S_IWUSR, S_IXUSR instead of obsoleteJim Meyering
S_IREAD, S_IWRITE, S_IEXEC. Make sure the former three are defined.
1994-10-08.Jim Meyering
1994-10-02merge with 3.9hJim Meyering
1994-08-27.Jim Meyering
1992-10-31Initial revisionJim Meyering