.\" -*- coding: UTF-8 -*- .\" Copyright 1992, Drew Eckhardt .\" Copyright 1993, Ian Jackson .\" Copyright 2006-2014, Michael Kerrisk .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH unlink 2 "8 februari 2026" "Linux man\-pages 6.18" .SH NAAM unlink, unlinkat \- verwijder een naam en mogelijk het bestand waarnaar het wijst .SH BIBLIOTHEEK Standaard C bibliotheek (\fIlibc\fP, \fI\-lc\fP) .SH SAMENVATTING .nf \fB#include \fP .P \fBint unlink(const char *\fP\fIpath\fP\fB);\fP .P \fB#include \fP/* Definitie van \fBAT_*\fP constanten */ \fB#include \fP .P \fBint unlinkat(int \fP\fIdirfd\fP\fB, const char *\fP\fIpath\fP\fB, int \fP\fIflags\fP\fB);\fP .fi .P .RS -4 Feature Test Macro Requirements voor glibc (zie \fBfeature_test_macros\fP(7)): .RE .P \fBunlinkat\fP(): .nf Vanaf glibc 2.10: _POSIX_C_SOURCE >= 200809L Voor glibc 2.10: _ATFILE_SOURCE .fi .SH BESCHRIJVING \fBunlink\fP() verwijderd een naam uit een bestandssysteem. Als die naam de laatste koppeling was van een bestand en geen enkel proces heeft het bestand open, dan wordt het bestand verwijderd en de ruimte die het innam wordt vrijgemaakt om hergebruikt te worden. .P Als de naam de laatste koppeling was naar het bestand maar er zijn nog processen die het bestand nog steeds open hebben, dan zal het bestand blijven bestaan totdat de laatste bestandindicator die ernaar verwijst gesloten is. .P Als de naam wijst naar een symbolische koppeling dan wordt die koppeling verwijderd. .P Als de naam wijst naar een `socket', een fifo of een apparaat dan wordt de naam ervoor verwijderd maar processen die het voorwerp open hebben mogen het blijven gebruiken. .SS unlinkat() De \fBunlinkat\fP() systeem aanroep werkt op exact dezelfde manier zoals \fBunlink\fP() of \fBrmdir\fP(2) (afhankelijk van of de \fIflags\fP wel of niet de \fBAT_REMOVEDIR\fP vlag bevat) behalve voor de verschillen zoals hier beschreven. .P If \fIpath\fP is relative, then it is interpreted relative to the directory referred to by the file descriptor \fIdirfd\fP (rather than relative to the current working directory of the calling process, as is done by \fBunlink\fP() and \fBrmdir\fP(2) for a relative pathname). .P If \fIpath\fP is relative and \fIdirfd\fP is the special value \fBAT_FDCWD\fP, then \fIpath\fP is interpreted relative to the current working directory of the calling process (like \fBunlink\fP() and \fBrmdir\fP(2)). .P Als \fIpadnaam\fP absoluut is, dan wordt \fImapbi\fP genegeerd. .P \fIvlaggen\fP is een bit masker dat ofwel gespecificeerd worden als 0, of door de logische OF\-bewerking op de waarden van de vlag die de operatie van \fBunlinkat\fP() bepalen. Op dit moment is alleen een zo´n vlag gedefinieerd: .TP \fBAT_REMOVEDIR\fP By default, \fBunlinkat\fP() performs the equivalent of \fBunlink\fP() on \fIpath\fP. If the \fBAT_REMOVEDIR\fP flag is specified, it performs the equivalent of \fBrmdir\fP(2) on \fIpath\fP. .P Zie \fBopenat\fP(2) voor een uitleg over het gebruik van \fBunlinkat\fP(). .SH "EIND WAARDE" Bij succes wordt nul teruggegeven. Bij falen wordt \-1 teruggegeven en wordt \fIerrno\fP overeenkomstig gezet. .SH FOUTEN .TP \fBEACCES\fP Write access to the directory containing \fIpath\fP is not allowed for the process's effective UID, or one of the directories in \fIpath\fP did not allow search permission. (See also \fBpath_resolution\fP(7).) .TP \fBEBUSY\fP \fIpath\fP cannot be unlinked because it is being used by the system or another process; for example, it is a mount point or the NFS client software created it to represent an active but otherwise nameless inode ("NFS silly renamed"). .TP \fBEFAULT\fP \fIpad\fP wijst buiten door u toegankelijke adres ruimte. .TP \fBEIO\fP Een Invoer/Uitvoer fout trad op. .TP \fBEISDIR\fP \fIpath\fP refers to a directory. (This is the non\-POSIX value returned since Linux 2.1.132.) .TP \fBELOOP\fP Too many symbolic links were encountered in translating \fIpath\fP. .TP \fBENAMETOOLONG\fP \fIpad\fP was te lang. .TP \fBENOENT\fP A component in \fIpath\fP does not exist or is a dangling symbolic link, or \fIpath\fP is empty. .TP \fBENOMEM\fP Onvoldoende kernelgeheugen voorhanden. .TP \fBENOTDIR\fP Een onderdeel gebruikt als map in \fIpad\fP is in feite geen map. .TP \fBEPERM\fP Het systeem staat ontkoppelen van mappen niet toe, of het ontkoppelen van mappen behoeft privileges die het aanroepende proces niet heeft. (Dit is de voorgeschreven POSIX fout waarde; zoals hierboven beschreven zal Linux in dit geval \fBEISDIR\fP terug geven.) .TP \fBEPERM\fP (alleen Linux) Het bestandssysteem staat ontkoppeling van bestanden niet toe. .TP \fBEPERM\fP of \fBEACCES\fP The directory containing \fIpath\fP has the sticky bit (\fBS_ISVTX\fP) set and the process's effective UID is neither the UID of the file to be deleted nor that of the directory containing it, and the process is not privileged (Linux: does not have the \fBCAP_FOWNER\fP capability). .TP \fBEPERM\fP Het te ontkoppelen bestand is gemarkeerd als onveranderlijk of alleen\-toevoegen. (Zie \fBFS_IOC_SETFLAGS\fP(2const).) .TP \fBEROFS\fP \fIpad\fP verwijst naar een bestand op een alleen\-lezen bestandsysteem. .P Dezelfde fouten die optreden in \fBunlink\fP() en \fBrmdir\fP(2) kunnen ook optreden in \fBunlinkat\fP(). De volgende additionele fouten kunnen optreden in \fBunlinkat\fP(): .TP \fBEBADF\fP \fIpad\fP is relatief en \fImapbi\fP is noch \fBAT_FDCWD\fP noch een geldige bestandsindicator. .TP \fBEINVAL\fP Een ongeldige vlag werd opgegeven in \fIvlaggen\fP. .TP \fBEISDIR\fP \fIpath\fP refers to a directory, and \fBAT_REMOVEDIR\fP was not specified in \fIflags\fP. .TP \fBENOTDIR\fP \fIpath\fP is relative and \fIdirfd\fP is a file descriptor referring to a file other than a directory. .SH STANDAARDEN POSIX.1\-2024. .SH HISTORIE .TP \fBunlink\fP() .\" SVr4 documents additional error .\" conditions EINTR, EMULTIHOP, ETXTBSY, ENOLINK. SVr4, 4.3BSD, POSIX.1\-2001. .TP \fBunlinkat\fP() POSIX.1\-2008. Linux 2.6.16, glibc 2.4. .SS glibc On older kernels where \fBunlinkat\fP() is unavailable, the glibc wrapper function falls back to the use of \fBunlink\fP() or \fBrmdir\fP(2). When \fIpath\fP is relative, glibc constructs a pathname based on the symbolic link in \fI/proc/self/fd\fP that corresponds to the \fIdirfd\fP argument. .SH BUGS Ongelukkigheden in het protocol waar NFS op is gebaseerd kunnen het onverwacht verdwijnen van bestanden veroorzaken die nog steeds gebruikt worden. .SH "ZIE OOK" \fBrm\fP(1), \fBunlink\fP(1), \fBchmod\fP(2), \fBlink\fP(2), \fBmknod\fP(2), \fBopen\fP(2), \fBrename\fP(2), \fBrmdir\fP(2), \fBmkfifo\fP(3), \fBremove\fP(3), \fBpath_resolution\fP(7), \fBsymlink\fP(7) .PP .SH VERTALING De Nederlandse vertaling van deze handleiding is geschreven door Jos Boersema , Mario Blättermann en Luc Castermans . .PP Deze vertaling is vrije documentatie; lees de .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE of later over de Copyright-voorwaarden. Er is geen AANSPRAKELIJKHEID. .PP Indien U fouten in de vertaling van deze handleiding zou vinden, stuur een e-mail naar .MT debian-l10n-dutch@lists.debian.org .ME .