table of contents
- buster 4.16-2
- buster-backports 5.04-1~bpo10+1
- testing 5.10-1
- unstable 5.10-1
NAME¶link, linkat - make a new name for a file
SYNOPSIS¶
#include <unistd.h>
int link(const char *oldpath, const char *newpath);
:
- _POSIX_C_SOURCE >= 200809L
- Before glibc 2.10:
- _ATFILE_SOURCE
DESCRIPTION¶link()".
linkat()¶The().
RETURN VALUE¶On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS¶
- EACCES
- Write access to the directory containing newpath is denied, or search permission is denied for one of the directories in the path prefix of oldpath or newpath. (See also path_resolution(7).)
- EDQUOT
- The user's quota of disk blocks on the filesystem has been exhausted.
- filesystem containing oldpath and newpath does not support the creation of hard¶linkat() was added to Linux in kernel 2.6.16; library support was added to glibc in version 2.4.
CONFORMING TO¶link(): SVr4, 4.3BSD, POSIX.1-2001 (but see NOTES), POSIX.1-2008.
linkat(): POSIX.1-2008.
NOTES¶Hard().