Home | History | Annotate | only in /src/bin/ln
History log of /src/bin/ln
RevisionDateAuthorComments
 1.10 27-Sep-1999  jdolecek branches: 1.10.106;
Move symlink.7 to share/man/man7/, where it belongs
 1.9 20-Jul-1997  christos branches: 1.9.6;
Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
 1.8 20-Jul-1997  christos Fix compiler warnings.
Add WARNS=1
 1.7 21-Mar-1995  cgd convert to new RCS id conventions.
 1.6 22-Dec-1994  cgd new way of specifying man pages.
 1.5 22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.10.106.2 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.10.106.1 21-Apr-2020  martin Sync with HEAD
 1.28 20-Apr-2017  christos branches: 1.28.12;
- fix number in copyright
- comment out "simplified link" for now.
 1.27 20-Apr-2017  christos Replace ours with the FreeBSD version; it is more versatile and handles
errors better (does not remove files if it is going to fail when -f).
 1.26 10-Aug-2016  sevan branches: 1.26.2;
ln was there from v1.
Confirmed from the TUHS & cat-v.org hosted copies of man pages
 1.25 22-Mar-2012  wiz branches: 1.25.16;
Fix whitespace nits. Suggested by Bug Hunting.
 1.24 24-Oct-2011  yamt branches: 1.24.2;
note what "other ln implementations" is.
 1.23 27-Feb-2011  wiz Typographical improvement by David H. Gutteridge in PR 44645.
 1.22 29-Oct-2007  jnemeth branches: 1.22.24;
PR/37243 - Joerg Niendorf -- fixup botched addition of -i option
 1.21 07-Oct-2006  elad branches: 1.21.2; 1.21.4; 1.21.8;
PR/22799: Hiramatsu Yoshifumi: Add -i option to /bin/ln

Slightly modified patch applied, thanks!
 1.20 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.19 25-Feb-2003  wiz .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
 1.18 28-Dec-2002  wiz Whitespace nits.
 1.17 26-Dec-2002  jrf Added verbose extension and updated manual pages. Changes approved by Klaus Klein.
 1.16 25-Sep-2002  wiz New policy: New sentences start on a new line.
Patches by Robert Elz <kre at munnari oz au>, with minimal changes by me.
 1.15 14-Oct-2000  bjh21 Document POSIX.2 conformance.
In the second form, the destination directory isn't optional.
Formatting cleanups.
 1.14 22-Mar-1999  garbled More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.13 20-Oct-1997  enami Fix .Nm usage.
 1.12 16-May-1997  mycroft Correct bogons and omissions in previous change.
Also, remove the `-F' option, which was undocumented and is no longer useful.
 1.11 16-May-1997  jtk add -h flag to suppress following of symbolic links
 1.10 25-Jul-1995  jtc Use "utility" instead of "command". Modern definitions of these terms
are distinct (See POSIX.2 glossary).

A utility is a executable, script or shell builtin; while a command
can be any of those things plus lists, pipelines, compound commands
(if, for, while) and shell function definitions.
 1.9 21-Mar-1995  cgd convert to new RCS id conventions.
 1.8 22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.7 11-Jan-1994  jtc Fix spelling errors.
 1.6 19-Aug-1993  jtc Document the fact that ln now conforms to IEEE 1003.2-92.
 1.5 17-Aug-1993  jtc Make 1003.2-1992 compliant by implementing -f (force) option.
 1.4 01-Aug-1993  mycroft Add RCS indentifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.21.8.1 06-Nov-2007  matt sync with HEAD
 1.21.4.1 06-Jan-2008  wrstuden Catch up to netbsd-4.0 release.
 1.21.2.1 30-Oct-2007  liamjfoy Pull up following revision(s) (requested by jnemeth in ticket #960):
bin/ln/ln.1: revision 1.22
PR/37243 - Joerg Niendorf -- fixup botched addition of -i option
 1.22.24.1 05-Mar-2011  bouyer Sync with HEAD
 1.24.2.1 17-Apr-2012  yamt sync with head
 1.25.16.1 26-Apr-2017  pgoyette Sync with HEAD
 1.26.2.1 21-Apr-2017  bouyer Sync with HEAD
 1.28.12.2 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.28.12.1 21-Apr-2020  martin Sync with HEAD
 1.40 26-Aug-2018  sevan Update usage to include -w
Match sequence as per SYNOPSIS in manual
 1.39 22-Apr-2017  kre branches: 1.39.4; 1.39.10; 1.39.12;

When called as "link" (not currently installed that way) always simply
do a link(2) sys call, never use the internal linkit() routine, which
allows for a destination directory and installs the link inside (and more.)

This makes ln's "link" variant comply with its (currently commented out)
section if its manual page, and also makes it identical to /usr/sbin/link.
 1.38 21-Apr-2017  szptvlfn fix number in copyright(4->3)
 1.37 21-Apr-2017  christos mark usage dead, simplify strings in it.
 1.36 20-Apr-2017  christos Replace ours with the FreeBSD version; it is more versatile and handles
errors better (does not remove files if it is going to fail when -f).
 1.35 29-Aug-2011  joerg branches: 1.35.26; 1.35.30;
static + __dead
 1.34 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.33 26-May-2008  christos PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale
 1.32 13-Oct-2006  wiz branches: 1.32.16; 1.32.18;
Add -i to usage.
 1.31 07-Oct-2006  elad PR/22799: Hiramatsu Yoshifumi: Add -i option to /bin/ln

Slightly modified patch applied, thanks!
 1.30 26-Jun-2005  christos sprinkle a little const, and now everything compiles with WARNS=3
 1.29 25-Jun-2004  wiz Add -v to usage. Closes PR 25862 by Kouichirou Hiratsuka.
 1.28 05-Jan-2004  jmmv Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
 1.27 04-Jan-2004  jschauma remove unused code left from printescaped() backput as pointed out by Jeff
Ito in PR bin/23969 and PR bin/23970.
 1.26 14-Sep-2003  jschauma Following private discussion with kleink@ and hubertf@ and public discussion
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''
 1.25 21-Aug-2003  jschauma Fix two more memory leaks found by Hubert Feyrer.
 1.24 13-Aug-2003  itojun use bounded string op
 1.23 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.
 1.22 04-Aug-2003  jschauma As discusses a little while back on tech-userlevel:

If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.

While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
 1.21 27-Dec-2002  jrf The previious ln commit did not have the change for -v in the source. Here is the working code.
 1.20 30-Oct-2002  kleink Revert rev. 1.16, as per PR kern/17411.

While a hard link to a symbolic link is not ruled out by POSIX-2001,
the ln(1) utility (sans -s) is to perform equivalent to the link(2)
function on its operands, which includes the resolution of symbolic
links in source_file arguments.
 1.19 16-Sep-2001  wiz ANSIfy, KNF, by Petri Koistinen.
 1.18 19-Feb-2001  cgd convert to use getprogname()
 1.17 04-Feb-2001  christos fix nested extern.
 1.16 05-Sep-1999  hubertf Allow hardlinks to symlinks.

Reviewed by: Bill Studenmund, Klaus Klein
 1.15 28-Jul-1998  mycroft Delint.
 1.14 05-Nov-1997  cgd lint
 1.13 20-Jul-1997  christos Fix compiler warnings.
Add WARNS=1
 1.12 16-May-1997  mycroft Correct bogons and omissions in previous change.
Also, remove the `-F' option, which was undocumented and is no longer useful.
 1.11 16-May-1997  jtk add -h flag to suppress following of symbolic links
 1.10 21-Mar-1995  cgd convert to new RCS id conventions.
 1.9 22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.8 08-Feb-1994  mycroft Fix core dump when source is a directory.
 1.7 27-Jan-1994  jtc Converted to use standard err()/warn() error messages functions.
 1.6 27-Jan-1994  jtc Pass through FlexeLint
 1.5 17-Aug-1993  jtc Make 1003.2-1992 compliant by implementing -f (force) option.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2 22-Mar-1993  cgd added rcs ids to all files
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.32.18.2 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.32.18.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.32.16.1 04-Jun-2008  yamt sync with head
 1.35.30.1 21-Apr-2017  bouyer Sync with HEAD
 1.35.26.1 26-Apr-2017  pgoyette Sync with HEAD
 1.39.12.3 21-Apr-2020  martin Ooops, restore accidently removed files from merge mishap
 1.39.12.2 21-Apr-2020  martin Sync with HEAD
 1.39.12.1 10-Jun-2019  christos Sync with HEAD
 1.39.10.1 06-Sep-2018  pgoyette Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
 1.39.4.1 28-Aug-2018  martin Pull up following revision(s) (requested by sevan in ticket #992):

external/bsd/top/dist/top.1.in: revision 1.11
sbin/gpt/main.c: revision 1.12
sbin/amrctl/amrctl.c: revision 1.11
bin/df/df.c: revision 1.93
sbin/fsck_ext2fs/fsck_ext2fs.8: revision 1.21
sbin/fsck_ext2fs/main.c: revision 1.38
bin/ksh/ksh.Man: revision 1.26
bin/ln/ln.c: revision 1.40
bin/df/df.1: revision 1.48
bin/df/df.1: revision 1.49

Document the WCPU field.

Match SYNOPSIS with usage()

-G cannot be specified alongside -i or -P.
Heads up by <leot>

Add -l to SYNOPSIS

Update usage to include -w

Match sequence as per SYNOPSIS in manual

Remove reference to -c flag which was never implemented.

Remove references to -c flag which was never included.

Add the -T flag to usage()
 1.11 27-Sep-1999  jdolecek Move symlink.7 to share/man/man7/, where it belongs
 1.10 26-Sep-1999  jdolecek add lutimes(2) to list of syscalls not following symlinks

Noted by Christos Zoulas <christos@NetBSD.org>
 1.9 22-Mar-1999  garbled branches: 1.9.4;
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.
 1.8 13-Dec-1998  fair Patch per PR#6166 and clean up some nroff bogons.
 1.7 06-Feb-1998  perry macroize BSD, NetBSD, FreeBSD and misc cleanup
 1.6 20-Oct-1997  enami Partial .Nm usage fix. XXX
 1.5 25-Mar-1997  mikel add xref to symlink(2)
 1.4 25-Apr-1996  mycroft Remove comment regarding 4.4 symlink behaviour.
 1.3 21-Mar-1995  cgd convert to new RCS id conventions.
 1.2 22-Sep-1994  mycroft Merge 4.4-Lite version.
 1.1 22-Sep-1994  mycroft branches: 1.1.1;
Initial revision
 1.1.1.1 22-Sep-1994  mycroft Import original 4.4-Lite version.
 1.9.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.

RSS XML Feed