Date: Thu, 27 Jan 2000 13:17:01 -0800 (PST) From: Josef Karthauser <joe@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/ls Makefile ls.c src/bin/rm Makefile rm.c src/include unistd.h src/lib/libc/gen setflags.3 Makefile.inc setflags.c src/lib/libutil Makefile stat_flags.c src/usr.bin/chflags Makefile chflags.c src/usr.bin/find Makefile ... Message-ID: <200001272117.NAA71172@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
joe 2000/01/27 13:17:01 PST Modified files: bin/ls Makefile ls.c bin/rm Makefile rm.c include unistd.h lib/libc/gen Makefile.inc setflags.c lib/libutil Makefile usr.bin/chflags Makefile chflags.c usr.bin/find Makefile function.c usr.bin/xinstall Makefile xinstall.c usr.sbin/mtree Makefile compare.c create.c spec.c Added files: lib/libc/gen setflags.3 Removed files: lib/libutil stat_flags.c Log: Historically file flags (schg, uschg, etc) have been converted from string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags. Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc. There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags. The manual page could probably be improved upon ;) Revision Changes Path 1.8 +1 -3 src/bin/ls/Makefile 1.31 +2 -3 src/bin/ls/ls.c 1.11 +1 -3 src/bin/rm/Makefile 1.28 +2 -4 src/bin/rm/rm.c 1.33 +3 -1 src/include/unistd.h 1.60 +2 -2 src/lib/libc/gen/Makefile.inc 1.14 +5 -5 src/lib/libc/gen/setflags.c 1.32 +2 -3 src/lib/libutil/Makefile 1.7 +1 -3 src/usr.bin/chflags/Makefile 1.6 +2 -3 src/usr.bin/chflags/chflags.c 1.7 +1 -3 src/usr.bin/find/Makefile 1.21 +2 -4 src/usr.bin/find/function.c 1.10 +1 -3 src/usr.bin/xinstall/Makefile 1.38 +2 -3 src/usr.bin/xinstall/xinstall.c 1.14 +1 -3 src/usr.sbin/mtree/Makefile 1.15 +3 -3 src/usr.sbin/mtree/compare.c 1.18 +3 -3 src/usr.sbin/mtree/create.c 1.13 +2 -2 src/usr.sbin/mtree/spec.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001272117.NAA71172>