aboutsummaryrefslogtreecommitdiff
path: root/bin/chflags
Commit message (Collapse)AuthorAgeFilesLines
* Switch over to using the new fflagstostr and strtofflags library calls.Josef Karthauser2000-06-172-5/+2
| | | | Notes: svn path=/head/; revision=61749
* Fixed prototype for setflags(). setflags() returns int, not u_long,Bruce Evans2000-04-041-1/+1
| | | | | | | | | and "extern" in function prototypes is a style bug. The type mismatch broke chflags(1) on i386's with 64-bit longs and may have broken it on alphas. Notes: svn path=/head/; revision=59009
* Document that the flags can be specified as an octal number.John Polstra2000-04-031-1/+2
| | | | Notes: svn path=/head/; revision=58987
* Revert part of the last commit, remove {g|s}etflags from the libcJosef Karthauser2000-02-052-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function. Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem. There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls). It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner. Approved: jkh Notes: svn path=/head/; revision=57003
* Historically file flags (schg, uschg, etc) have been converted fromJosef Karthauser2000-01-272-4/+1
| | | | | | | | | | | | | | | | | | | | 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 ;) Notes: svn path=/head/; revision=56692
* Added missing DPADD's. Removed unrequired SRCS's.Josef Karthauser2000-01-011-1/+1
| | | | | | | Obtained from: bde Notes: svn path=/head/; revision=55302
* Moved flags_to_string and string_to_flags into libutil. It's used inJosef Karthauser1999-12-301-2/+3
| | | | | | | many places nowadays. Notes: svn path=/head/; revision=55270
* Correct use of .Nm. Add DIAGNOSTICS section. Add rcsidPhilippe Charnier1999-11-212-8/+12
| | | | Notes: svn path=/head/; revision=53507
* Yet another previously forgotten merge from Lite2. (DescribeBruce Evans1999-08-301-4/+5
| | | | | | | | | | `opaque', fix reversed description of `nodump', and don't use `nodump' as an example of adding a `no' prefix since the double negative would be confusing (it's still confusing -- the implicitly documented `nonodump' flag doesn't exist).) Notes: svn path=/head/; revision=50613
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).Archie Cobbs1998-12-062-2/+3
| | | | Notes: svn path=/head/; revision=41568
* NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".Paul Traina1997-06-291-1/+1
| | | | | | | | | NOPIC is used to not generate a shared library, not NOSHARED. Make NOSHARED advisory where appropriate. Remove bogus NOSHARED (kbdio). Notes: svn path=/head/; revision=27040
* Document the use of `ls -lo' to see flags.Philippe Charnier1997-06-241-0/+4
| | | | | | | Obtained from: OpenBSD. Notes: svn path=/head/; revision=26883
* Submitted by: Whistle Communications (archie Cobbs)Julian Elischer1997-06-021-1/+4
| | | | | | | | | | | | | | | | | | | | | These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism. This code is in production in 2.2 based systems Notes: svn path=/head/; revision=26360
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Use the .Bx macro in the HISTORY section.Mike Pritchard1997-02-191-1/+2
| | | | Notes: svn path=/head/; revision=22921
* Add history section. Follows chflags(2).David E. O'Brien1997-02-191-0/+4
| | | | Notes: svn path=/head/; revision=22908
* Set NOSHARED=true, having this binary static makes it much easier toRodney W. Grimes1995-07-241-0/+2
| | | | | | | | | fix /usr/lib/*.so problems. Submitted by: davidg Notes: svn path=/head/; revision=9673
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8874
* Document the arch flag. It has always worked in 2.0.Bruce Evans1994-12-271-1/+3
| | | | | | | | | Document aliases for the flags. The formatting of the section describing the flags is poor. Notes: svn path=/head/; revision=5249
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+310
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590