History log of /freebsd-10.1-release/usr.bin/basename/basename.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 132187 15-Jul-2004 tjr

Ensure that suffix matches occur on character boundaries.


# 102944 04-Sep-2002 dwmalone

ANSIify function definitions.
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


# 102084 19-Aug-2002 jmallett

Remove local prototypes for main().


# 99137 30-Jun-2002 jmallett

Make it possible to have this (basename(1)) perform basename(3) on multiple
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


# 92920 21-Mar-2002 imp

remove __P


# 87628 10-Dec-2001 dwmalone

Style improvements recommended by Bruce as a follow up to some
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.


# 87258 02-Dec-2001 markm

Use __FBSDID().


# 78717 24-Jun-2001 dd

Include missing header files which define functions for which gcc has
builtins (e.g., exit).

Submitted by: Mike Barcroft <mike@q9media.com>


# 76889 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on alpha and i386

MFC after: 1 week


# 67024 12-Oct-2000 des

Fix suffix matching.
Restore historical behaviour when the first argument is an empty string.

Submitted by: Alexander N. Kabaev <ak03@gte.com>
Pointed out by: bde


# 65508 06-Sep-2000 des

Reintroduce functionality and error checks that were boneheadedly removed
in the previous commit. Pass me the pointy hat.

PR: bin/21061


# 65413 03-Sep-2000 des

Use basename(3).


# 41568 06-Dec-1998 archie

Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 23691 11-Mar-1997 peter

This commit was generated by cvs2svn to compensate for changes in r23690,
which included commits to RCS files with non-trunk default branches.


# 23690 11-Mar-1997 peter

Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources