aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/basename
Commit message (Collapse)AuthorAgeFilesLines
* ANSIify function definitions.David Malone2002-09-041-4/+2
| | | | | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 Notes: svn path=/head/; revision=102944
* Remove local prototypes for main().Juli Mallett2002-08-191-1/+0
| | | | Notes: svn path=/head/; revision=102084
* Make it possible to have this (basename(1)) perform basename(3) on multipleJuli Mallett2002-06-302-8/+50
| | | | | | | | | | | | | files. The traditional behaviour, 'basename string .suffix', is preserved, however a suffix may now also be specified via a getopt(3) option, -s, such that if it is specified in that way, all string arguments follow. There is also a new flag, -a, which allows a user to say "yes, please basename(3) on all arguments". Update manual to reflect this unobtrusively. Reviewed by: obrien Notes: svn path=/head/; revision=99137
* Use `The .Nm utility'Philippe Charnier2002-04-191-5/+7
| | | | Notes: svn path=/head/; revision=95083
* remove __PWarner Losh2002-03-221-2/+2
| | | | Notes: svn path=/head/; revision=92920
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* Style improvements recommended by Bruce as a follow up to someDavid Malone2001-12-101-5/+6
| | | | | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF. Notes: svn path=/head/; revision=87628
* Use __FBSDID().Mark Murray2001-12-031-3/+5
| | | | Notes: svn path=/head/; revision=87258
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-5/+1
| | | | Notes: svn path=/head/; revision=81687
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79755
* Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$Dima Dorfman2001-06-301-2/+3
| | | | | | | | | where necessary. Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=79011
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | | | builtins (e.g., exit). Submitted by: Mike Barcroft <mike@q9media.com> Notes: svn path=/head/; revision=78717
* Silence WARNS=2 and BDECFLAGS on alpha and i386Kris Kennaway2001-05-201-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=76889
* mdoc(7) police: utilize .St macro.Ruslan Ermilov2001-02-261-1/+3
| | | | Notes: svn path=/head/; revision=73095
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-1/+1
| | | | Notes: svn path=/head/; revision=68963
* Fix suffix matching.Dag-Erling Smørgrav2000-10-121-2/+7
| | | | | | | | | | Restore historical behaviour when the first argument is an empty string. Submitted by: Alexander N. Kabaev <ak03@gte.com> Pointed out by: bde Notes: svn path=/head/; revision=67024
* Reintroduce functionality and error checks that were boneheadedly removedDag-Erling Smørgrav2000-09-061-1/+8
| | | | | | | | | in the previous commit. Pass me the pointy hat. PR: bin/21061 Notes: svn path=/head/; revision=65508
* Use basename(3).Dag-Erling Smørgrav2000-09-031-62/+4
| | | | Notes: svn path=/head/; revision=65413
* Add DIAGNOSTICS section namePhilippe Charnier2000-03-261-4/+4
| | | | Notes: svn path=/head/; revision=58612
* $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
* PR: 4866Daniel O'Callaghan1998-04-141-11/+9
| | | | | | | | Submitted by: fenner Make man page reflect reality. Notes: svn path=/head/; revision=35197
* 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
* This commit was generated by cvs2svn to compensate for changes in r23690,Peter Wemm1997-03-111-1/+2
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=23691
| * Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.Peter Wemm1997-03-111-0/+139
| | | | Notes: svn path=/vendor/CSRG/dist/; revision=23690
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* add missing comma(s) in .Xr macrosWolfram Schneider1996-09-231-1/+2
| | | | Notes: svn path=/head/; revision=18480
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+241
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590