aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/link.2
Commit message (Collapse)AuthorAgeFilesLines
* libsys: relocate implementations and manpagesBrooks Davis2024-02-051-316/+0
| | | | | | | | | Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* lib: Remove ancient SCCS tags.Warner Losh2023-11-271-2/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Fix mistakes in link(2) and shm_open(2)Konstantin Belousov2021-10-061-2/+2
| | | | | | PR: 258957 Submitted by: sigsys@gmail.com MFC after: 1 week
* Add AT_EMPTY_PATH for several *at(2) syscallsKonstantin Belousov2021-04-151-1/+10
| | | | | | | | | | | | | | | It is currently allowed to fchownat(2), fchmodat(2), fchflagsat(2), utimensat(2), fstatat(2), and linkat(2). For linkat(2), PRIV_VFS_FHOPEN privilege is required to exercise the flag. It allows to link any open file. Requested by: trasz Tested by: pho, trasz Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D29111
* link(2): correct descriptor name in AT_RESOLVE_BENEATH descriptionKonstantin Belousov2021-04-151-1/+1
| | | | | | | Noted and reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential revision: https://reviews.freebsd.org/D29111
* open(2): Remove O_BENEATH and AT_BENEATHKonstantin Belousov2021-03-021-21/+7
| | | | | | | | | | | | | with the reasoning that the flags did not worked properly, and were not shipped in a release. O_RESOLVE_BENEATH is kept as useful. Reviewed by: markj Tested by: arichardson, pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D28907
* Document {O,AT}_RESOLVE_BENEATH and new O_BENEATH behavior for relative paths.Konstantin Belousov2020-09-221-1/+8
| | | | | | | | | | | | PR: 248335 Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25886 Notes: svn path=/head/; revision=366023
* Document EINTEGRITY errors for many system calls.John Baldwin2020-03-301-1/+3
| | | | | | | | | | | | | | | | | | | EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be reported by the backing store of a filesystem. While here, document EIO as a filesystem-independent error for both mount(2) and posix_fadvise(2). EIO was previously only documented for UFS for mount(2). Reviewed by: mckusick Suggested by: mckusick MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D24168 Notes: svn path=/head/; revision=359465
* First draft of documentation for AT/O_BENEATH handling of the absoluteKonstantin Belousov2018-11-111-7/+21
| | | | | | | | | | | | | | | | | paths. It was decided that committing the code and drafting of the man page update is better than allowing the code to rot until wordsmithing happens. Reviewed by: jilles (previous version) Discussed with: brooks, jilles, emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D17714 Notes: svn path=/head/; revision=340347
* Implement O_BENEATH and AT_BENEATH.Konstantin Belousov2018-10-251-1/+14
| | | | | | | | | | | | | | Flags prevent open(2) and *at(2) vfs syscalls name lookup from escaping the starting directory. Supposedly the interface is similar to the same proposed Linux flags. Reviewed by: jilles (code, previous version of manpages), 0mp (manpages) Discussed with: allanjude, emaste, jonathan Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D17547 Notes: svn path=/head/; revision=339748
* Mark all the system calls that were in 1st Edition Unix as such in theWarner Losh2017-12-011-2/+2
| | | | | | | | | | HISTORY section. Note: Any system calls that were added prior to v7, but after v1 weren't changed. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl?file=V1/man/man2 Notes: svn path=/head/; revision=326435
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Correct AT_SYMLINK_FOLLOW flag name in linkat(2) man page.Jilles Tjoelker2009-07-191-1/+1
| | | | | | | Approved by: re (kib), ed (mentor) Notes: svn path=/head/; revision=195763
* Man pages for the openat(2), fexecve(2) and related syscalls.Konstantin Belousov2008-04-161-4/+112
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=178245
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* - If the source file has its immutable or append-only flag set, link(2)Pawel Jakub Dawidek2006-12-091-4/+13
| | | | | | | | | returns EPERM. - If the parent directory of the destination file has its immutable flag set, link(2) returns EPERM. Notes: svn path=/head/; revision=165052
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131504
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-1/+5
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-5/+7
| | | | | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe. Notes: svn path=/head/; revision=108028
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-1/+1
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* Refer to chflags(2) instead of chflags(1) (since we're a section 2Dima Dorfman2001-10-231-3/+2
| | | | | | | | | | manual page), fix capitalization, and remove chflags reference from SEE ALSO since the only time it's referenced is with an .Xr, anyway. Submitted by: bde Notes: svn path=/head/; revision=85338
* link(2) may fail with EPERM if name1 is immutable or append-only.Dima Dorfman2001-10-141-1/+4
| | | | | | | | PR: 31025 Submitted by: Tim Singletary <tsingle@vetinsite.com> Notes: svn path=/head/; revision=84942
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.Yaroslav Tykhiy2001-08-091-4/+1
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=81352
* Remove whitespace at EOL.Dima Dorfman2001-07-151-3/+3
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: use canonical form of .Dd macro.Ruslan Ermilov2000-12-111-1/+1
| | | | Notes: svn path=/head/; revision=69857
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-1/+0
| | | | Notes: svn path=/head/; revision=68575
* Use `Er' variable to define first column width in ERRORS section. It wasAlexey Zelkin2000-05-041-1/+1
| | | | | | | initially suggested by mdoc(7) style, but was broken over the years Notes: svn path=/head/; revision=59954
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Don't use undocumented markup "{}". Use 32767 instead of LINK_MAX toBruce Evans1999-03-051-4/+3
| | | | | | | give bug for bug compatibility with intro.2. Notes: svn path=/head/; revision=44479
* Typo fix.Alexander Langer1998-01-151-2/+12
| | | | | | | | | | Added EOPNOTSUPP and EMLINK to errors section. Added symlink(2) xref. Obtained from: OpenBSD Notes: svn path=/head/; revision=32514
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* 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
* Remove the EINVAL error from the ERRORS sections thatMike Pritchard1997-01-111-3/+1
| | | | | | | | say is means that a pathname had the high-order bit set, since this is no longer an error. Notes: svn path=/head/; revision=21570
* upgrade STANDARDS from POSIX 1003.1-88 to 1003.1-90 using .St macroWolfram Schneider1996-12-021-5/+5
| | | | | | | | | use ``is expected to conform to'' phrase, not ``conforms to'' Pointed out by: Bruce->NIST-PCTS Notes: svn path=/head/; revision=20097
* function appeared in Version 7 AT&T UNIXWolfram Schneider1996-08-291-0/+5
| | | | | | | Obtained from: ftp://netlib.att.com/netlib/att/cs/v7man/man2 Notes: svn path=/head/; revision=17906
* Correctly use .Fn instead of .Nm to reference function namesMike Pritchard1996-08-221-1/+1
| | | | | | | | | | | in a bunch of man pages. Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros instead of explicitly specifying the version in the text in a bunch of man pages. Notes: svn path=/head/; revision=17782
* Document that the superuser cannot override link() and unlink() onPeter Wemm1996-05-241-3/+8
| | | | | | | directories, and mention that it was historical practice. Notes: svn path=/head/; revision=15898
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+151
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573