History log of /freebsd-10-stable/bin/pwd/pwd.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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

# 141578 09-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


# 139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


# 127958 06-Apr-2004 markm

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


# 117078 30-Jun-2003 kan

Rename a local variable in order to avoid collision with standard 'log'
function.


# 114433 01-May-2003 obrien

Quiet warnings about copyright[].


# 99110 30-Jun-2002 obrien

Consistently use FBSDID


# 96857 18-May-2002 tjr

Back out part of previous commit: make -P the default again until I'm
convinced it's a good idea.


# 96831 18-May-2002 tjr

Make -L the default, allow both -L and -P to be specified (last one used
matters), fall back to -P mode if we can't get the logical directory.


# 90535 11-Feb-2002 mike

o Remove old code from pwd(1); realpath(1) is now in its own directory.
o Fix some unordered includes in pwd(1).
o Connect realpath(1) to the build.


# 90458 10-Feb-2002 mike

Use the getprogname(3) function instead of directly accessing
`__progname'.

Submitted by: dd


# 90170 04-Feb-2002 mike

Add -L option (SUSv3) to pwd(1). Fix a bug, where realpath(1) would
complain about paths starting with `-', by not calling getopt(3).

Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au>
Obtained from: NetBSD (partially)
MFC after: 1 month


# 90110 02-Feb-2002 imp

o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.


# 77460 30-May-2001 imp

PATH_MAX in preference to MAXPATHLEN.


# 76879 20-May-2001 kris

Silence WARNS=2 and BDECFLAGS on i386 and alpha.

MFC After: 1 week


# 69195 26-Nov-2000 kris

Don't call err() with user data and without a format string


# 69110 24-Nov-2000 phk

Let the pwd program double as realpath(1).

This lets you resolve pathnames to their underlying physical path:

critter# realpath /sys/kern/subr_disk.c
/freebsd/src/sys/kern/subr_disk.c

Update the pwd man-page slightly.


# 50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 41280 21-Nov-1998 jkh

Indicate that the thing not found was not /bin/pwd but rather $CWD (or .).


# 36049 15-May-1998 charnier

Correct use of .Nm. Add rcsid.


# 24348 28-Mar-1997 imp

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


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

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.


# 20419 14-Dec-1996 steve

Merge Lite2 mods, cleanup man page, and -Wall cleaning.


# 3044 24-Sep-1994 dg

Added $Id$


# 1557 26-May-1994 rgrimes

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


# 1556 26-May-1994 rgrimes

BSD 4.4 Lite bin Sources