Include "filemode.h" first, to test the interface.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Apr 2006 23:21:14 +0000 (23:21 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Apr 2006 23:21:14 +0000 (23:21 +0000)
commitac2d45ce67d71988ee05c40df3d713b6ade4f675
tree373e7217d1630ca5269a15914f079cf0d926fb5d
parent79cbf5925cdc03bcbd9fbabde1a5f9617fade6e3
Include "filemode.h" first, to test the interface.
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.
lib/filemode.c