{"id":5074,"date":"2022-12-20T18:37:06","date_gmt":"2022-12-20T21:37:06","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/unlink-man3p\/"},"modified":"2022-12-20T18:37:06","modified_gmt":"2022-12-20T21:37:06","slug":"unlink-man3p","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/unlink-man3p\/","title":{"rendered":"UNLINK (man3p)"},"content":{"rendered":"<h1 align=\"center\">UNLINK<\/h1>\n<p> <a href=\"#PROLOG\">PROLOG<\/a><br \/> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#RETURN VALUE\">RETURN VALUE<\/a><br \/> <a href=\"#ERRORS\">ERRORS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#APPLICATION USAGE\">APPLICATION USAGE<\/a><br \/> <a href=\"#RATIONALE\">RATIONALE<\/a><br \/> <a href=\"#FUTURE DIRECTIONS\">FUTURE DIRECTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>PROLOG <a name=\"PROLOG\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This manual page is part of the POSIX Programmer\u2019s Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">unlink, unlinkat \u2014 remove a directory entry<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">#include <unistd.h><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int unlink(const char *<i>path<\/i>);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">#include <fcntl.h><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int unlinkat(int <i>fd<\/i>, const char *<i>path<\/i>, int <i>flag<\/i>);<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>unlink<\/i>() function shall remove a link to a file. If <i>path<\/i> names a symbolic link, <i>unlink<\/i>() shall remove the symbolic link named by <i>path<\/i> and shall not affect any file or directory named by the contents of the symbolic link. Otherwise, <i>unlink<\/i>() shall remove the link named by the pathname pointed to by <i>path<\/i> and shall decrement the link count of the file referenced by the link.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When the file\u2019s link count becomes 0 and no process has the file open, the space occupied by the file shall be freed and the file shall no longer be accessible. If one or more processes have the file open when the last link is removed, the link shall be removed before <i>unlink<\/i>() returns, but the removal of the file contents shall be postponed until all references to the file are closed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>path<\/i> argument shall not name a directory unless the process has appropriate privileges and the implementation supports using <i>unlink<\/i>() on directories.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Upon successful completion, <i>unlink<\/i>() shall mark for update the last data modification and last file status change timestamps of the parent directory. Also, if the file\u2019s link count is not 0, the last file status change timestamp of the file shall be marked for update.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>unlinkat<\/i>() function shall be equivalent to the <i>unlink<\/i>() or <i>rmdir<\/i>() function except in the case where <i>path<\/i> specifies a relative path. In this case the directory entry to be removed is determined relative to the directory associated with the file descriptor <i>fd<\/i> instead of the current working directory. If the access mode of the open file description associated with the file descriptor is not O_SEARCH, the function shall check whether directory searches are permitted using the current permissions of the directory underlying the file descriptor. If the access mode is O_SEARCH, the function shall not perform the check.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Values for <i>flag<\/i> are constructed by a bitwise-inclusive OR of flags from the following list, defined in <i><fcntl.h><\/i>: <br \/> AT_REMOVEDIR<\/p>\n<p style=\"margin-left:20%;\">Remove the directory entry specified by <i>fd<\/i> and <i>path<\/i> as a directory, not a normal file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If <i>unlinkat<\/i>() is passed the special value AT_FDCWD in the <i>fd<\/i> parameter, the current working directory shall be used and the behavior shall be identical to a call to <i>unlink<\/i>() or <i>rmdir<\/i>() respectively, depending on whether or not the AT_REMOVEDIR bit is set in <i>flag<\/i>.<\/p>\n<h2>RETURN VALUE <a name=\"RETURN VALUE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Upon successful completion, these functions shall return 0. Otherwise, these functions shall return \u22121 and set <i>errno<\/i> to indicate the error. If \u22121 is returned, the named file shall not be changed.<\/p>\n<h2>ERRORS <a name=\"ERRORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions shall fail and shall not unlink the file if:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EACCES<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>Search permission is denied for a component of the path prefix, or write permission is denied on the directory containing the directory entry to be removed.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EBUSY<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The file named by the <i>path<\/i> argument cannot be unlinked because it is being used by the system or another process and the implementation considers this an error.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>ELOOP<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>A loop exists in symbolic links encountered during resolution of the <i>path<\/i> argument.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>ENAMETOOLONG<\/b><\/p>\n<p style=\"margin-left:22%;\">The length of a component of a pathname is longer than {NAME_MAX}.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>ENOENT<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>A component of <i>path<\/i> does not name an existing file or <i>path<\/i> is an empty string.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>ENOTDIR<\/b><\/p>\n<p style=\"margin-left:22%;\">A component of the path prefix names an existing file that is neither a directory nor a symbolic link to a directory, or the <i>path<\/i> argument contains at least one non-<slash> character and ends with one or more trailing <slash> characters and the last pathname component names an existing file that is neither a directory nor a symbolic link to a directory.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>EPERM<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>The file named by <i>path<\/i> is a directory, and either the calling process does not have appropriate privileges, or the implementation prohibits using <i>unlink<\/i>() on directories.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>EPERM<\/b> or <b>EACCES<\/b><\/p>\n<p style=\"margin-left:22%;\">The S_ISVTX flag is set on the directory containing the file referred to by the <i>path<\/i> argument and the process does not satisfy the criteria specified in the Base Definitions volume of POSIX.1-2017, <i>Section 4.3<\/i>, <i>Directory Protection<\/i>.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>EROFS<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>The directory entry to be unlinked is part of a read-only file system.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>unlinkat<\/i>() function shall fail if:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>EACCES<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">The access mode of the open file description associated with <i>fd<\/i> is not O_SEARCH and the permissions of the directory underlying <i>fd<\/i> do not permit directory searches.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EBADF<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"78%\">\n<p>The <i>path<\/i> argument does not specify an absolute path and the <i>fd<\/i> argument is neither AT_FDCWD nor a valid file descriptor open for reading or searching.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>ENOTDIR<\/b><\/p>\n<p style=\"margin-left:22%;\">The <i>path<\/i> argument is not an absolute path and <i>fd<\/i> is a file descriptor associated with a non-directory file.<\/p>\n<p style=\"margin-left:11%;\"><b>EEXIST<\/b> or <b>ENOTEMPTY<\/b><\/p>\n<p style=\"margin-left:22%;\">The <i>flag<\/i> parameter has the AT_REMOVEDIR bit set and the <i>path<\/i> argument names a directory that is not an empty directory, or there are hard links to the directory other than dot or a single entry in dot-dot.<\/p>\n<p style=\"margin-left:11%;\"><b>ENOTDIR<\/b><\/p>\n<p style=\"margin-left:22%;\">The <i>flag<\/i> parameter has the AT_REMOVEDIR bit set and <i>path<\/i> does not name a directory.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions may fail and not unlink the file if:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>EBUSY<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>The file named by <i>path<\/i> is a named STREAM.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>ELOOP<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"78%\">\n<p>More than {SYMLOOP_MAX} symbolic links were encountered during resolution of the <i>path<\/i> argument.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>ENAMETOOLONG<\/b><\/p>\n<p style=\"margin-left:22%;\">The length of a pathname exceeds {PATH_MAX}, or pathname resolution of a symbolic link produced an intermediate result with a length that exceeds {PATH_MAX}.<\/p>\n<p style=\"margin-left:11%;\"><b>ETXTBSY<\/b><\/p>\n<p style=\"margin-left:22%;\">The entry to be unlinked is the last directory entry to a pure procedure (shared text) file that is being executed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>unlinkat<\/i>() function may fail if:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p><b>EINVAL<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"67%\">\n<p>The value of the <i>flag<\/i> argument is not valid.<\/p>\n<\/td>\n<td width=\"11%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>The following sections are informative.<\/i><\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>Removing a Link to a File<\/b><\/i> <br \/> The following example shows how to remove a link to a file named <b>\/home\/cnd\/mod1<\/b> by removing the entry named <b>\/modules\/pass1<\/b>.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">#include <unistd.h><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">char *path = &#8220;\/modules\/pass1&#8221;; <br \/> int status; <br \/> &#8230; <br \/> status = unlink(path);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Checking for an Error<\/b> <br \/> The following example fragment creates a temporary password lock file named <b>LOCKFILE<\/b>, which is defined as <b>\/etc\/ptmp<\/b>, and gets a file descriptor for it. If the file cannot be opened for writing, <i>unlink<\/i>() is used to remove the link between the file descriptor and <b>LOCKFILE<\/b>.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">#include <sys\/types.h> <br \/> #include <stdio.h> <br \/> #include <fcntl.h> <br \/> #include <errno.h> <br \/> #include <unistd.h> <br \/> #include <sys\/stat.h><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">#define LOCKFILE &#8220;\/etc\/ptmp&#8221;<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">int pfd; \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var Integer for file descriptor returned by open call. bodies\/ usr\/ <br \/> FILE *fpfd; \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var File pointer for use in putpwent(). bodies\/ usr\/ <br \/> &#8230; <br \/> \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var Open password Lock file. If it exists, this is an error. bodies\/ usr\/ <br \/> if ((pfd = open(LOCKFILE, O_WRONLY| O_CREAT | O_EXCL, S_IRUSR <br \/> | S_IWUSR | S_IRGRP | S_IROTH)) == -1) { <br \/> fprintf(stderr, &#8220;Cannot open \/etc\/ptmp. Try again later.n&#8221;); <br \/> exit(1); <br \/> }<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/* Lock file created; proceed with fdopen of lock file so that <br \/> putpwent() can be used. <br \/> bodies\/ usr\/ <br \/> if ((fpfd = fdopen(pfd, &#8220;w&#8221;)) == NULL) { <br \/> close(pfd); <br \/> unlink(LOCKFILE); <br \/> exit(1); <br \/> }<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Replacing Files<\/b> <br \/> The following example fragment uses <i>unlink<\/i>() to discard links to files, so that they can be replaced with new versions of the files. The first call removes the link to <b>LOCKFILE<\/b> if an error occurs. Successive calls remove the links to <b>SAVEFILE<\/b> and <b>PASSWDFILE<\/b> so that new links can be created, then removes the link to <b>LOCKFILE<\/b> when it is no longer needed.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">#include <sys\/types.h> <br \/> #include <stdio.h> <br \/> #include <fcntl.h> <br \/> #include <errno.h> <br \/> #include <unistd.h> <br \/> #include <sys\/stat.h><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">#define LOCKFILE &#8220;\/etc\/ptmp&#8221; <br \/> #define PASSWDFILE &#8220;\/etc\/passwd&#8221; <br \/> #define SAVEFILE &#8220;\/etc\/opasswd&#8221; <br \/> &#8230; <br \/> \/bin \/boot \/dead.letter \/dev \/etc \/home \/initrd \/lib \/lib64 \/lost+found \/media \/mnt \/opt \/proc \/release-notes.html \/release-notes.txt \/root \/run \/sbin \/srv \/sys \/tmp \/usr \/var If no change was made, assume error and leave passwd unchanged. bodies\/ usr\/ <br \/> if (!valid_change) { <br \/> fprintf(stderr, &#8220;Could not change password for user %sn&#8221;, user); <br \/> unlink(LOCKFILE); <br \/> exit(1); <br \/> }<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/* Change permissions on new password file. bodies\/ usr\/ <br \/> chmod(LOCKFILE, S_IRUSR | S_IRGRP | S_IROTH);<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/* Remove saved password file. bodies\/ usr\/ <br \/> unlink(SAVEFILE);<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/* Save current password file. bodies\/ usr\/ <br \/> link(PASSWDFILE, SAVEFILE);<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/* Remove current password file. bodies\/ usr\/ <br \/> unlink(PASSWDFILE);<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/* Save new password file as current password file. bodies\/ usr\/ <br \/> link(LOCKFILE,PASSWDFILE);<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\/* Remove lock file. bodies\/ usr\/ <br \/> unlink(LOCKFILE);<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">exit(0);<\/p>\n<h2>APPLICATION USAGE <a name=\"APPLICATION USAGE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Applications should use <i>rmdir<\/i>() to remove a directory.<\/p>\n<h2>RATIONALE <a name=\"RATIONALE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Unlinking a directory is restricted to the superuser in many historical implementations for reasons given in <i>link<\/i>() (see also <i>rename<\/i>()).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The meaning of <b>[EBUSY]<\/b> in historical implementations is \u2018\u2018mount point busy\u2019\u2019. Since this volume of POSIX.1-2017 does not cover the system administration concepts of mounting and unmounting, the description of the error was changed to \u2018\u2018resource busy\u2019\u2019. (This meaning is used by some device drivers when a second process tries to open an exclusive use device.) The wording is also intended to allow implementations to refuse to remove a directory if it is the root or current working directory of any process.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The standard developers reviewed TR 24715-2006 and noted that LSB-conforming implementations may return <b>[EISDIR]<\/b> instead of <b>[EPERM]<\/b> when unlinking a directory. A change to permit this behavior by changing the requirement for <b>[EPERM]<\/b> to <b>[EPERM]<\/b> or <b>[EISDIR]<\/b> was considered, but decided against since it would break existing strictly conforming and conforming applications. Applications written for portability to both POSIX.1-2008 and the LSB should be prepared to handle either error code.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The purpose of the <i>unlinkat<\/i>() function is to remove directory entries in directories other than the current working directory without exposure to race conditions. Any part of the path of a file could be changed in parallel to a call to <i>unlink<\/i>(), resulting in unspecified behavior. By opening a file descriptor for the target directory and using the <i>unlinkat<\/i>() function it can be guaranteed that the removed directory entry is located relative to the desired directory.<\/p>\n<h2>FUTURE DIRECTIONS <a name=\"FUTURE DIRECTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">None.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>close<\/i>(), <i>link<\/i>(), <i>remove<\/i>(), <i>rename<\/i>(), <i>rmdir<\/i>(), <i>symlink<\/i>()<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The Base Definitions volume of POSIX.1-2017, <i>Section 4.3<\/i>, <i>Directory Protection<\/i>, <b><fcntl.h><\/b>, <b><unistd.h><\/b><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology &#8212; Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http:\/\/www.opengroup.org\/unix\/online.html .<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https:\/\/www.kernel.org\/doc\/man-pages\/reporting_bugs.html .<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  unlink, unlinkat \u2014 remove a directory entry <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3779,1],"tags":[1594,1968],"class_list":["post-5074","post","type-post","status-publish","format-standard","hentry","category-3pm-perl-llamadas-de-bibliotecas","category-sin-categoria","tag-man3p","tag-unlink"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/5074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=5074"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/5074\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=5074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=5074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=5074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}