Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


errno(3) — Linux manual page

NAME |LIBRARY |SYNOPSIS |DESCRIPTION |NOTES |SEE ALSO |COLOPHON

errno(3)                 Library Functions Manualerrno(3)

NAME        top

       errno - number of last error

LIBRARY        top

       Standard C library (libc,-lc)

SYNOPSIS        top

#include <errno.h>

DESCRIPTION        top

       The<errno.h> header file defines the integer variableerrno,       which is set by system calls and some library functions in the       event of an error to indicate what went wrong.errno       The value inerrno is significant only when the return value of       the call indicated an error (i.e., -1 from most system calls; -1       or NULL from most library functions); a function that succeedsis       allowed to changeerrno.  The value oferrno is never set to zero       by any system call or library function.       For some system calls and library functions (e.g.,getpriority(2)), -1 is a valid return on success.  In such cases,       a successful return can be distinguished from an error return by       settingerrno to zero before the call, and then, if the call       returns a status that indicates that an error may have occurred,       checking to see iferrno has a nonzero value.errno is defined by the ISO C standard to be a modifiable lvalue       of typeint, and must not be explicitly declared;errno may be a       macro.errno is thread-local; setting it in one thread does not       affect its value in any other thread.Error numbers and names       Valid error numbers are all positive numbers.  The<errno.h>       header file defines symbolic names for each of the possible error       numbers that may appear inerrno.       All the error names specified by POSIX.1 must have distinct       values, with the exception ofEAGAINandEWOULDBLOCK, which may be       the same.  On Linux, these two have the same value on all       architectures.       The error numbers that correspond to each symbolic name vary       across UNIX systems, and even across different architectures on       Linux.  Therefore, numeric values are not included as part of the       list of error names below.  Theperror(3) andstrerror(3)       functions can be used to convert these names to corresponding       textual error messages.       On any particular Linux system, one can obtain a list of all       symbolic error names and the corresponding error numbers using theerrno(1) command (part of themoreutils package):           $errno -l;           EPERM 1 Operation not permitted           ENOENT 2 No such file or directory           ESRCH 3 No such process           EINTR 4 Interrupted system call           EIO 5 Input/output error           ...       Theerrno(1) command can also be used to look up individual error       numbers and names, and to search for errors using strings from the       error description, as in the following examples:           $errno 2;           ENOENT 2 No such file or directory           $errno ESRCH;           ESRCH 3 No such process           $errno -s permission;           EACCES 13 Permission deniedList of error names       In the list of the symbolic error names below, various names are       marked as follows:POSIX.1-2001              The name is defined by POSIX.1-2001, and is defined in              later POSIX.1 versions, unless otherwise indicated.POSIX.1-2008              The name is defined in POSIX.1-2008, but was not present in              earlier POSIX.1 standards.C99    The name is defined by C99.       Below is a list of the symbolic error names that are defined on       Linux:E2BIGArgument list too long (POSIX.1-2001).EACCESPermission denied (POSIX.1-2001).EADDRINUSE              Address already in use (POSIX.1-2001).EADDRNOTAVAIL              Address not available (POSIX.1-2001).EAFNOSUPPORT              Address family not supported (POSIX.1-2001).EAGAINResource temporarily unavailable (may be the same value asEWOULDBLOCK) (POSIX.1-2001).EALREADY              Connection already in progress (POSIX.1-2001).EBADEInvalid exchange.EBADFBad file descriptor (POSIX.1-2001).EBADFDFile descriptor in bad state.EBADMSG              Bad message (POSIX.1-2001).EBADRInvalid request descriptor.EBADRQC              Invalid request code.EBADSLT              Invalid slot.EBUSYDevice or resource busy (POSIX.1-2001).ECANCELED              Operation canceled (POSIX.1-2001).ECHILDNo child processes (POSIX.1-2001).ECHRNGChannel number out of range.ECOMMCommunication error on send.ECONNABORTED              Connection aborted (POSIX.1-2001).ECONNREFUSED              Connection refused (POSIX.1-2001).ECONNRESET              Connection reset (POSIX.1-2001).EDEADLK              Resource deadlock avoided (POSIX.1-2001).EDEADLOCK              On most architectures, a synonym forEDEADLK.  On some              architectures (e.g., Linux MIPS, PowerPC, SPARC), it is a              separate error code "File locking deadlock error".EDESTADDRREQ              Destination address required (POSIX.1-2001).EDOMMathematics argument out of domain of function (POSIX.1,              C99).EDQUOTDisk quota exceeded (POSIX.1-2001).EEXISTFile exists (POSIX.1-2001).EFAULTBad address (POSIX.1-2001).EFBIGFile too large (POSIX.1-2001).EHOSTDOWN              Host is down.EHOSTUNREACH              Host is unreachable (POSIX.1-2001).EHWPOISON              Memory page has hardware error.EIDRMIdentifier removed (POSIX.1-2001).EILSEQInvalid or incomplete multibyte or wide character (POSIX.1,              C99).              The text shown here is the glibc error description; in              POSIX.1, this error is described as "Illegal byte              sequence".EINPROGRESS              Operation in progress (POSIX.1-2001).EINTRInterrupted function call (POSIX.1-2001); seesignal(7).EINVALInvalid argument (POSIX.1-2001).EIOInput/output error (POSIX.1-2001).EISCONN              Socket is connected (POSIX.1-2001).EISDIRIs a directory (POSIX.1-2001).EISNAMIs a named type file.EKEYEXPIRED              Key has expired.EKEYREJECTED              Key was rejected by service.EKEYREVOKED              Key has been revoked.EL2HLTLevel 2 halted.EL2NSYNC              Level 2 not synchronized.EL3HLTLevel 3 halted.EL3RSTLevel 3 reset.ELIBACC              Cannot access a needed shared library.ELIBBAD              Accessing a corrupted shared library.ELIBMAX              Attempting to link in too many shared libraries.ELIBSCN              .lib section in a.out corruptedELIBEXEC              Cannot exec a shared library directly.ELNRNGLink number out of range.ELOOPToo many levels of symbolic links (POSIX.1-2001).EMEDIUMTYPE              Wrong medium type.EMFILEToo many open files (POSIX.1-2001).  Commonly caused by              exceeding theRLIMIT_NOFILEresource limit described ingetrlimit(2).  Can also be caused by exceeding the limit              specified in/proc/sys/fs/nr_open.EMLINKToo many links (POSIX.1-2001).EMSGSIZE              Message too long (POSIX.1-2001).EMULTIHOP              Multihop attempted (POSIX.1-2001).ENAMETOOLONG              Filename too long (POSIX.1-2001).ENETDOWN              Network is down (POSIX.1-2001).ENETRESET              Connection aborted by network (POSIX.1-2001).ENETUNREACH              Network unreachable (POSIX.1-2001).ENFILEToo many open files in system (POSIX.1-2001).  On Linux,              this is probably a result of encountering the/proc/sys/fs/file-max limit (seeproc(5)).ENOANONo anode.ENOBUFS              No buffer space available (POSIX.1 (XSI STREAMS option)).ENODATA              The named attribute does not exist, or the process has no              access to this attribute; seexattr(7).              In POSIX.1-2001 (XSI STREAMS option), this error was              described as "No message is available on the STREAM head              read queue".ENODEVNo such device (POSIX.1-2001).ENOENTNo such file or directory (POSIX.1-2001).              Typically, this error results when a specified pathname              does not exist, or one of the components in the directory              prefix of a pathname does not exist, or the specified              pathname is a dangling symbolic link.ENOEXEC              Exec format error (POSIX.1-2001).ENOKEYRequired key not available.ENOLCKNo locks available (POSIX.1-2001).ENOLINK              Link has been severed (POSIX.1-2001).ENOMEDIUM              No medium found.ENOMEMNot enough space/cannot allocate memory (POSIX.1-2001).ENOMSGNo message of the desired type (POSIX.1-2001).ENONETMachine is not on the network.ENOPKGPackage not installed.ENOPROTOOPT              Protocol not available (POSIX.1-2001).ENOSPCNo space left on device (POSIX.1-2001).ENOSRNo STREAM resources (POSIX.1 (XSI STREAMS option)).ENOSTRNot a STREAM (POSIX.1 (XSI STREAMS option)).ENOSYSFunction not implemented (POSIX.1-2001).ENOTBLK              Block device required.ENOTCONN              The socket is not connected (POSIX.1-2001).ENOTDIR              Not a directory (POSIX.1-2001).ENOTEMPTY              Directory not empty (POSIX.1-2001).ENOTRECOVERABLE              State not recoverable (POSIX.1-2008).ENOTSOCK              Not a socket (POSIX.1-2001).ENOTSUP              Operation not supported (POSIX.1-2001).ENOTTYInappropriate I/O control operation (POSIX.1-2001).ENOTUNIQ              Name not unique on network.ENXIONo such device or address (POSIX.1-2001).EOPNOTSUPP              Operation not supported on socket (POSIX.1-2001).              (ENOTSUPandEOPNOTSUPPhave the same value on Linux, but              according to POSIX.1 these error values should be              distinct.)EOVERFLOW              Value too large to be stored in data type (POSIX.1-2001).EOWNERDEAD              Owner died (POSIX.1-2008).EPERMOperation not permitted (POSIX.1-2001).EPFNOSUPPORT              Protocol family not supported.EPIPEBroken pipe (POSIX.1-2001).EPROTOProtocol error (POSIX.1-2001).EPROTONOSUPPORT              Protocol not supported (POSIX.1-2001).EPROTOTYPE              Protocol wrong type for socket (POSIX.1-2001).ERANGEResult too large (POSIX.1, C99).EREMCHG              Remote address changed.EREMOTE              Object is remote.EREMOTEIO              Remote I/O error.ERESTART              Interrupted system call should be restarted.ERFKILL              Operation not possible due to RF-kill.EROFSRead-only filesystem (POSIX.1-2001).ESHUTDOWN              Cannot send after transport endpoint shutdown.ESPIPEInvalid seek (POSIX.1-2001).ESOCKTNOSUPPORT              Socket type not supported.ESRCHNo such process (POSIX.1-2001).ESTALEStale file handle (POSIX.1-2001).              This error can occur for NFS and for other filesystems.ESTRPIPE              Streams pipe error.ETIMETimer expired (POSIX.1 (XSI STREAMS option)).              (POSIX.1 says "STREAMioctl(2) timeout".)ETIMEDOUT              Connection timed out (POSIX.1-2001).ETOOMANYREFS              Too many references: cannot splice.ETXTBSY              Text file busy (POSIX.1-2001).EUCLEAN              Structure needs cleaning.EUNATCH              Protocol driver not attached.EUSERSToo many users.EWOULDBLOCK              Operation would block (may be same value asEAGAIN)              (POSIX.1-2001).EXDEVInvalid cross-device link (POSIX.1-2001).EXFULLExchange full.

NOTES        top

       A common mistake is to do           if (somecall() == -1) {               printf("somecall() failed\n");               if (errno == ...) { ... }           }       whereerrno no longer needs to have the value it had upon return       fromsomecall() (i.e., it may have been changed by theprintf(3)).       If the value oferrno should be preserved across a library call,       it must be saved:           if (somecall() == -1) {               int errsv = errno;               printf("somecall() failed\n");               if (errsv == ...) { ... }           }       Note that the POSIX threads APIs donot seterrno on error.       Instead, on failure they return an error number as the function       result.  These error numbers have the same meanings as the error       numbers returned inerrno by other APIs.       On some ancient systems,<errno.h> was not present or did not       declareerrno, so that it was necessary to declareerrno manually       (i.e.,extern int errno).Do not do this.  It long ago ceased to       be necessary, and it will cause problems with modern versions of       the C library.

SEE ALSO        top

errno(1),err(3),error(3),perror(3),strerror(3)

COLOPHON        top

       This page is part of theman-pages (Linux kernel and C library       user-space interface documentation) project.  Information about       the project can be found at        ⟨https://www.kernel.org/doc/man-pages/⟩.  If you have a bug report       for this manual page, see       ⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.       This page was obtained from the tarball man-pages-6.15.tar.gz       fetched from       ⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on       2025-08-11.  If you discover any rendering problems in this HTML       version of the page, or you believe there is a better or more up-       to-date source for the page, or you have corrections or       improvements to the information in this COLOPHON (which isnot       part of the original manual page), send a mail to       man-pages@man7.orgLinux man-pages 6.15            2025-05-17errno(3)

Pages that refer to this page:errno.h(0p)netdb.h(0p)signal.h(0p)gawk(1)mv(1p)strace(1)accept(2)access(2)acct(2)add_key(2)adjtimex(2)alloc_hugepages(2)arch_prctl(2)bind(2)bpf(2)brk(2)cacheflush(2)cachestat(2)capget(2)chdir(2)chmod(2)chown(2)chroot(2)clock_getres(2)clone(2)close(2)close_range(2)connect(2)copy_file_range(2)create_module(2)delete_module(2)dup(2)epoll_create(2)epoll_ctl(2)epoll_wait(2)eventfd(2)execve(2)execveat(2)fallocate(2)fanotify_init(2)fanotify_mark(2)FAT_IOCTL_GET_VOLUME_ID(2const)FAT_IOCTL_SET_ATTRIBUTES(2const)fcntl(2)fcntl_locking(2)F_DUPFD(2const)F_GETFD(2const)F_GETFL(2const)F_GETLEASE(2const)F_GETPIPE_SZ(2const)F_GET_RW_HINT(2const)F_GET_SEALS(2const)F_GETSIG(2const)FICLONE(2const)FIDEDUPERANGE(2const)FIONREAD(2const)flock(2)F_NOTIFY(2const)fork(2)FS_IOC_SETFSLABEL(2const)fsync(2)futex(2)FUTEX_CMP_REQUEUE(2const)FUTEX_CMP_REQUEUE_PI(2const)FUTEX_FD(2const)FUTEX_LOCK_PI(2const)FUTEX_REQUEUE(2const)FUTEX_TRYLOCK_PI(2const)FUTEX_UNLOCK_PI(2const)FUTEX_WAIT(2const)FUTEX_WAIT_BITSET(2const)FUTEX_WAIT_REQUEUE_PI(2const)FUTEX_WAKE(2const)FUTEX_WAKE_OP(2const)futimesat(2)getcpu(2)getdents(2)getdomainname(2)getgid(2)getgroups(2)gethostname(2)getitimer(2)get_kernel_syms(2)get_mempolicy(2)getpeername(2)getpriority(2)getrandom(2)getresuid(2)getrlimit(2)getrusage(2)getsid(2)getsockname(2)getsockopt(2)gettimeofday(2)getuid(2)getunwind(2)getxattr(2)init_module(2)inotify_add_watch(2)inotify_init(2)inotify_rm_watch(2)intro(2)io_cancel(2)ioctl(2)ioctl_console(2)ioctl_eventpoll(2)ioctl_fat(2)ioctl_fs(2)ioctl_fsmap(2)ioctl_kd(2)ioctl_tty(2)ioctl_userfaultfd(2)ioctl_vt(2)ioctl_xfs_ag_geometry(2)ioctl_xfs_bulkstat(2)ioctl_xfs_commit_range(2)ioctl_xfs_exchange_range(2)ioctl_xfs_fsbulkstat(2)ioctl_xfs_fscounts(2)ioctl_xfs_fsgeometry(2)ioctl_xfs_fsgetxattr(2)ioctl_xfs_fsinumbers(2)ioctl_xfs_getbmapx(2)ioctl_xfs_getparents(2)ioctl_xfs_getresblks(2)ioctl_xfs_goingdown(2)ioctl_xfs_inumbers(2)ioctl_xfs_rtgroup_geometry(2)ioctl_xfs_scrub_metadata(2)ioctl_xfs_scrubv_metadata(2)io_destroy(2)io_getevents(2)ioperm(2)iopl(2)ioprio_set(2)io_setup(2)io_submit(2)io_uring_enter2(2)io_uring_enter(2)io_uring_register(2)io_uring_setup(2)kcmp(2)kexec_load(2)keyctl(2)KEYCTL_ASSUME_AUTHORITY(2const)KEYCTL_CHOWN(2const)KEYCTL_CLEAR(2const)KEYCTL_DESCRIBE(2const)KEYCTL_DH_COMPUTE(2const)KEYCTL_GET_KEYRING_ID(2const)KEYCTL_GET_PERSISTENT(2const)KEYCTL_GET_SECURITY(2const)KEYCTL_INSTANTIATE(2const)KEYCTL_INVALIDATE(2const)KEYCTL_JOIN_SESSION_KEYRING(2const)KEYCTL_LINK(2const)KEYCTL_READ(2const)KEYCTL_RESTRICT_KEYRING(2const)KEYCTL_REVOKE(2const)KEYCTL_SEARCH(2const)KEYCTL_SESSION_TO_PARENT(2const)KEYCTL_SETPERM(2const)KEYCTL_SET_REQKEY_KEYRING(2const)KEYCTL_SET_TIMEOUT(2const)KEYCTL_UNLINK(2const)KEYCTL_UPDATE(2const)kill(2)landlock_add_rule(2)landlock_create_ruleset(2)landlock_restrict_self(2)link(2)listen(2)listmount(2)listxattr(2)llseek(2)lookup_dcookie(2)lseek(2)madvise(2)mbind(2)membarrier(2)memfd_create(2)memfd_secret(2)migrate_pages(2)mincore(2)mkdir(2)mknod(2)mlock(2)mmap2(2)mmap(2)modify_ldt(2)mount(2)mount_setattr(2)move_pages(2)mprotect(2)mremap(2)msgctl(2)msgget(2)msgop(2)msync(2)nanosleep(2)nfsservctl(2)nice(2)NS_GET_NSTYPE(2const)NS_GET_OWNER_UID(2const)NS_GET_USERNS(2const)open(2)openat2(2)open_by_handle_at(2)PAGEMAP_SCAN(2const)pause(2)pciconfig_read(2)perf_event_open(2)perfmonctl(2)personality(2)pidfd_getfd(2)pidfd_open(2)pidfd_send_signal(2)pipe(2)pivot_root(2)pkey_alloc(2)poll(2)PR_CAP_AMBIENT(2const)PR_CAP_AMBIENT_CLEAR_ALL(2const)PR_CAP_AMBIENT_IS_SET(2const)PR_CAP_AMBIENT_LOWER(2const)PR_CAP_AMBIENT_RAISE(2const)PR_CAPBSET_DROP(2const)PR_CAPBSET_READ(2const)prctl(2)pread(2)PR_FUTEX_HASH(2const)PR_GET_AUXV(2const)PR_GET_CHILD_SUBREAPER(2const)PR_GET_DUMPABLE(2const)PR_GET_ENDIAN(2const)PR_GET_FPEMU(2const)PR_GET_FPEXC(2const)PR_GET_FP_MODE(2const)PR_GET_IO_FLUSHER(2const)PR_GET_KEEPCAPS(2const)PR_GET_MDWE(2const)PR_GET_NO_NEW_PRIVS(2const)PR_GET_PDEATHSIG(2const)PR_GET_SECCOMP(2const)PR_GET_SECUREBITS(2const)PR_GET_SPECULATION_CTRL(2const)PR_GET_TAGGED_ADDR_CTRL(2const)PR_GET_THP_DISABLE(2const)PR_GET_TID_ADDRESS(2const)PR_GET_TIMERSLACK(2const)PR_GET_TIMING(2const)PR_GET_TSC(2const)PR_GET_UNALIGN(2const)PR_MCE_KILL(2const)PR_MCE_KILL_CLEAR(2const)PR_MCE_KILL_GET(2const)PR_MCE_KILL_SET(2const)PR_MPX_ENABLE_MANAGEMENT(2const)process_madvise(2)process_vm_readv(2)PR_PAC_RESET_KEYS(2const)PR_SET_CHILD_SUBREAPER(2const)PR_SET_DUMPABLE(2const)PR_SET_ENDIAN(2const)PR_SET_FPEMU(2const)PR_SET_FPEXC(2const)PR_SET_FP_MODE(2const)PR_SET_IO_FLUSHER(2const)PR_SET_KEEPCAPS(2const)PR_SET_MDWE(2const)PR_SET_MM(2const)PR_SET_MM_ARG_START(2const)PR_SET_MM_AUXV(2const)PR_SET_MM_BRK(2const)PR_SET_MM_EXE_FILE(2const)PR_SET_MM_MAP(2const)PR_SET_MM_START_BRK(2const)PR_SET_MM_START_CODE(2const)PR_SET_MM_START_DATA(2const)PR_SET_MM_START_STACK(2const)PR_SET_NAME(2const)PR_SET_NO_NEW_PRIVS(2const)PR_SET_PDEATHSIG(2const)PR_SET_PTRACER(2const)PR_SET_SECCOMP(2const)PR_SET_SECUREBITS(2const)PR_SET_SPECULATION_CTRL(2const)PR_SET_SYSCALL_USER_DISPATCH(2const)PR_SET_TAGGED_ADDR_CTRL(2const)PR_SET_THP_DISABLE(2const)PR_SET_TIMERSLACK(2const)PR_SET_TIMING(2const)PR_SET_TSC(2const)PR_SET_UNALIGN(2const)PR_SET_VMA(2const)PR_SVE_GET_VL(2const)PR_SVE_SET_VL(2const)PR_TASK_PERF_EVENTS_DISABLE(2const)ptrace(2)query_module(2)quotactl(2)read(2)readahead(2)readdir(2)readlink(2)readv(2)reboot(2)recv(2)recvmmsg(2)remap_file_pages(2)removexattr(2)rename(2)request_key(2)restart_syscall(2)rmdir(2)rt_sigqueueinfo(2)s390_guarded_storage(2)s390_pci_mmio_write(2)s390_runtime_instr(2)s390_sthyi(2)sched_get_priority_max(2)sched_rr_get_interval(2)sched_setaffinity(2)sched_setattr(2)sched_setparam(2)sched_setscheduler(2)sched_yield(2)seccomp(2)seccomp_unotify(2)select(2)select_tut(2)semctl(2)semget(2)semop(2)send(2)sendfile(2)sendmmsg(2)seteuid(2)setfsgid(2)setfsuid(2)setgid(2)set_mempolicy(2)setns(2)setpgid(2)setresuid(2)setreuid(2)setsid(2)set_thread_area(2)setuid(2)setxattr(2)shmctl(2)shmget(2)shmop(2)shutdown(2)sigaction(2)sigaltstack(2)signal(2)signalfd(2)sigpending(2)sigprocmask(2)sigreturn(2)sigsuspend(2)sigwaitinfo(2)socket(2)socketpair(2)splice(2)spu_create(2)spu_run(2)stat(2)statfs(2)statmount(2)statx(2)stime(2)swapon(2)symlink(2)sync(2)sync_file_range(2)syscall(2)_syscall(2)syscalls(2)sysctl(2)sysfs(2)sysinfo(2)syslog(2)TCSBRK(2const)TCSETS(2const)TCXONC(2const)tee(2)time(2)timer_create(2)timer_delete(2)timerfd_create(2)timer_getoverrun(2)timer_settime(2)times(2)TIOCCONS(2const)TIOCEXCL(2const)TIOCLINUX(2const)TIOCMSET(2const)TIOCPKT(2const)TIOCSCTTY(2const)TIOCSETD(2const)TIOCSLCKTRMIOS(2const)TIOCSPGRP(2const)TIOCSSOFTCAR(2const)TIOCSTI(2const)TIOCSWINSZ(2const)TIOCTTYGSTRUCT(2const)tkill(2)truncate(2)UFFDIO_API(2const)UFFDIO_CONTINUE(2const)UFFDIO_COPY(2const)UFFDIO_MOVE(2const)UFFDIO_POISON(2const)UFFDIO_REGISTER(2const)UFFDIO_UNREGISTER(2const)UFFDIO_WAKE(2const)UFFDIO_WRITEPROTECT(2const)UFFDIO_ZEROPAGE(2const)umount(2)uname(2)unimplemented(2)unlink(2)unshare(2)uselib(2)userfaultfd(2)ustat(2)utime(2)utimensat(2)VFAT_IOCTL_READDIR_BOTH(2const)vhangup(2)vm86(2)vmsplice(2)wait(2)write(2)accept(3p)access(3p)acl_add_perm(3)acl_calc_mask(3)acl_check(3)acl_clear_perms(3)acl_cmp(3)acl_copy_entry(3)acl_copy_ext(3)acl_copy_int(3)acl_create_entry(3)acl_delete_def_file(3)acl_delete_entry(3)acl_delete_perm(3)acl_dup(3)acl_entries(3)acl_equiv_mode(3)acl_extended_fd(3)acl_extended_file(3)acl_free(3)acl_from_mode(3)acl_from_text(3)acl_get_entry(3)acl_get_fd(3)acl_get_file(3)acl_get_perm(3)acl_get_permset(3)acl_get_qualifier(3)acl_get_tag_type(3)acl_init(3)acl_set_fd(3)acl_set_file(3)acl_set_permset(3)acl_set_qualifier(3)acl_set_tag_type(3)acl_size(3)acl_to_any_text(3)acl_to_text(3)acl_valid(3)acos(3)acos(3p)acosh(3)acosh(3p)adjtime(3)aio_cancel(3)aio_cancel(3p)aio_error(3)aio_error(3p)aio_fsync(3)aio_fsync(3p)aio_read(3)aio_read(3p)aio_return(3)aio_return(3p)aio_suspend(3)aio_suspend(3p)aio_write(3)aio_write(3p)alphasort(3p)asin(3)asin(3p)asinh(3p)asprintf(3)atan2(3p)atan(3p)atanh(3)atanh(3p)atoi(3)attr_get(3)attr_list(3)attr_multi(3)attr_remove(3)attr_set(3)audit_open(3)avc_add_callback(3)avc_compute_create(3)avc_context_to_sid(3)avc_has_perm(3)avc_init(3)avc_netlink_loop(3)avc_open(3)bind(3p)bindresvport(3)btree(3)calloc(3p)canonicalize_file_name(3)cap_clear(3)cap_from_text(3)cap_get_file(3)cap_get_proc(3)cap_iab(3)cap_init(3)cap_launch(3)catclose(3p)catgets(3p)catopen(3)catopen(3p)ceil(3)cfree(3)cfsetispeed(3p)cfsetospeed(3p)chdir(3p)chmod(3p)chown(3p)clearerr(3p)clock_getres(3p)close(3p)closedir(3)closedir(3p)closelog(3p)confstr(3)confstr(3p)connect(3p)context_new(3)cos(3)cos(3p)cosh(3)cosh(3p)crypt(3p)ctime(3)daemon(3)dbopen(3)dirfd(3)dirfd(3p)dup(3p)duplocale(3)duplocale(3p)encrypt(3)encrypt(3p)endgrent(3p)endpwent(3p)erf(3)erf(3p)erfc(3)erfc(3p)err(3)errno(3p)error(3)euidaccess(3)exec(3)exec(3p)_Exit(3p)exp10(3)exp2(3p)exp(3)exp(3p)expm1(3)expm1(3p)fattach(3p)fchdir(3p)fchmod(3p)fchown(3p)fclose(3)fclose(3p)fcntl(3p)fdatasync(3p)fdetach(3p)fdim(3)fdim(3p)fdopen(3p)fdopendir(3p)feof(3p)ferror(3)ferror(3p)fexecve(3)fflush(3)fflush(3p)fgetc(3p)fgetgrent(3)fgetpos(3p)fgetpwent(3)fgets(3p)fgetwc(3)fgetwc(3p)fgetws(3p)fileno(3)fileno(3p)floor(3)fma(3)fma(3p)fmemopen(3)fmemopen(3p)fmod(3)fmod(3p)fopen(3)fopen(3p)fork(3p)form(3x)form_cursor(3x)form_driver(3x)form_field(3x)form_field_attributes(3x)form_field_buffer(3x)form_field_info(3x)form_field_just(3x)form_field_opts(3x)form_fieldtype(3x)form_field_validation(3x)form_hook(3x)form_opts(3x)form_page(3x)form_post(3x)form_win(3x)fpathconf(3)fpathconf(3p)fprintf(3p)fpurge(3)fputc(3p)fputs(3p)fputwc(3)fputwc(3p)fputws(3p)fread(3p)freeaddrinfo(3p)freopen(3p)fscanf(3p)fseek(3)fseek(3p)fseeko(3)fsetpos(3p)fstat(3p)fstatat(3p)fstatvfs(3p)fsync(3p)ftell(3p)ftok(3)ftok(3p)ftruncate(3p)fts(3)ftw(3p)futimens(3p)futimes(3)fwide(3p)fwprintf(3p)fwrite(3p)fwscanf(3p)getaddrinfo(3)getcontext(3)getcwd(3)getcwd(3p)getdate(3)getdate(3p)getdelim(3p)getdirentries(3)getegid(3p)getentropy(3)geteuid(3p)getexeccon(3)getfilecon(3)getgid(3p)getgrent(3)getgrgid(3p)getgrnam(3)getgrnam(3p)getgroups(3p)gethostid(3)getifaddrs(3)getitimer(3p)getline(3)getlogin(3)getlogin(3p)getmsg(3p)getnameinfo(3)getnameinfo(3p)getopt(3p)getpass(3)getpeername(3p)getpgid(3p)get_phys_pages(3)getpriority(3p)getpt(3)getpw(3)getpwent(3)getpwnam(3)getpwnam(3p)getpwuid(3p)getrlimit(3p)getrusage(3p)gets(3p)getseuserbyname(3)getsid(3p)getsockname(3p)getsockopt(3p)getspnam(3)getuid(3p)getutent(3)getwchar(3)glob(3)glob(3p)gmtime(3p)gnutls_transport_set_errno(3)grantpt(3)grantpt(3p)handle(3)hash(3)hsearch(3)hypot(3)hypot(3p)ibv_free_device_list(3)ibv_get_device_list(3)iconv(3)iconv(3p)iconv_close(3)iconv_close(3p)iconv_open(3)iconv_open(3p)if_indextoname(3p)if_nameindex(3)if_nameindex(3p)if_nametoindex(3)ilogb(3)ilogb(3p)inet_net_pton(3)inet_ntop(3)inet_ntop(3p)inet_pton(3)initgroups(3)intro(3)ioctl(3p)io_uring_prep_accept(3)io_uring_prep_accept_direct(3)io_uring_prep_bind(3)io_uring_prep_close(3)io_uring_prep_close_direct(3)io_uring_prep_cmd_discard(3)io_uring_prep_connect(3)io_uring_prep_epoll_wait(3)io_uring_prep_fadvise(3)io_uring_prep_fadvise64(3)io_uring_prep_fallocate(3)io_uring_prep_fsync(3)io_uring_prep_ftruncate(3)io_uring_prep_futex_wait(3)io_uring_prep_futex_waitv(3)io_uring_prep_futex_wake(3)io_uring_prep_link(3)io_uring_prep_linkat(3)io_uring_prep_listen(3)io_uring_prep_madvise(3)io_uring_prep_madvise64(3)io_uring_prep_mkdir(3)io_uring_prep_mkdirat(3)io_uring_prep_multishot_accept(3)io_uring_prep_multishot_accept_direct(3)io_uring_prep_open(3)io_uring_prep_openat2(3)io_uring_prep_openat2_direct(3)io_uring_prep_openat(3)io_uring_prep_openat_direct(3)io_uring_prep_open_direct(3)io_uring_prep_pipe(3)io_uring_prep_poll_add(3)io_uring_prep_poll_multishot(3)io_uring_prep_read(3)io_uring_prep_read_fixed(3)io_uring_prep_read_multishot(3)io_uring_prep_readv2(3)io_uring_prep_readv(3)io_uring_prep_recv(3)io_uring_prep_recvmsg(3)io_uring_prep_recvmsg_multishot(3)io_uring_prep_recv_multishot(3)io_uring_prep_rename(3)io_uring_prep_renameat(3)io_uring_prep_send(3)io_uring_prep_send_bundle(3)io_uring_prep_sendmsg(3)io_uring_prep_sendmsg_zc(3)io_uring_prep_sendto(3)io_uring_prep_send_zc(3)io_uring_prep_send_zc_fixed(3)io_uring_prep_shutdown(3)io_uring_prep_socket(3)io_uring_prep_socket_direct(3)io_uring_prep_socket_direct_alloc(3)io_uring_prep_splice(3)io_uring_prep_statx(3)io_uring_prep_symlink(3)io_uring_prep_symlinkat(3)io_uring_prep_sync_file_range(3)io_uring_prep_tee(3)io_uring_prep_unlink(3)io_uring_prep_unlinkat(3)io_uring_prep_waitid(3)io_uring_prep_write(3)io_uring_prep_write_fixed(3)io_uring_prep_writev2(3)io_uring_prep_writev(3)isastream(3p)isatty(3)isatty(3p)isfdtype(3)j0(3)j0(3p)keyctl_capabilities(3)keyctl_chown(3)keyctl_clear(3)keyctl_describe(3)keyctl_get_keyring_ID(3)keyctl_get_persistent(3)keyctl_get_security(3)keyctl_instantiate(3)keyctl_invalidate(3)keyctl_join_session_keyring(3)keyctl_link(3)keyctl_move(3)keyctl_pkey_encrypt(3)keyctl_pkey_query(3)keyctl_pkey_sign(3)keyctl_read(3)keyctl_restrict_keyring(3)keyctl_revoke(3)keyctl_search(3)keyctl_session_to_parent(3)keyctl_setperm(3)keyctl_set_reqkey_keyring(3)keyctl_set_timeout(3)keyctl_update(3)keyctl_watch_key(3)kill(3p)killpg(3)lchown(3p)ldap_dup(3)ldap_get_dn(3)ldap_open(3)ldexp(3)ldexp(3p)lgamma(3)lgamma(3p)libcap(3)libmagic(3)libpsx(3)link(3p)lio_listio(3)lio_listio(3p)listen(3p)llrint(3p)llround(3p)localtime(3p)lockf(3)lockf(3p)log10(3p)log1p(3)log1p(3p)log2(3p)log(3)log(3p)logb(3)logb(3p)lrint(3)lrint(3p)lround(3)lround(3p)lseek(3p)makecontext(3)malloc(3)malloc(3p)malloc_info(3)mallopt(3)matherr(3)mblen(3p)mbrlen(3)mbrlen(3p)mbrtowc(3)mbrtowc(3p)mbsnrtowcs(3)mbsrtowcs(3)mbsrtowcs(3p)mbstowcs(3p)mbtowc(3p)menu(3x)menu_attributes(3x)menu_cursor(3x)menu_driver(3x)menu_format(3x)menu_hook(3x)menu_items(3x)menu_mark(3x)menu_new(3x)menu_opts(3x)menu_pattern(3x)menu_post(3x)menu_win(3x)mitem_current(3x)mitem_new(3x)mitem_opts(3x)mitem_value(3x)mkdir(3p)mkdtemp(3)mkdtemp(3p)mkfifo(3)mkfifo(3p)mknod(3p)mkstemp(3)mktemp(3)mktime(3p)mlock(3p)mlockall(3p)mmap(3p)mmv_stats_init(3)mmv_stats_registry(3)mpool(3)mprotect(3p)mq_close(3)mq_close(3p)mq_getattr(3)mq_getattr(3p)mq_notify(3)mq_notify(3p)mq_open(3)mq_open(3p)mq_receive(3)mq_receive(3p)mq_send(3)mq_send(3p)mq_setattr(3p)mq_unlink(3)mq_unlink(3p)msgctl(3p)msgget(3p)msgrcv(3p)msgsnd(3p)msync(3p)munmap(3p)nanosleep(3p)newlocale(3)newlocale(3p)nextafter(3)nextafter(3p)nftw(3p)nice(3p)numa(3)open(3p)opendir(3)open_memstream(3)open_memstream(3p)openpty(3)pause(3p)pclose(3p)pcpintro(3)perror(3)perror(3p)pipe(3p)pmfault(3)pmfstring(3)pmrecord(3)poll(3p)popen(3)popen(3p)posix_fallocate(3)posix_memalign(3)posix_openpt(3)posix_openpt(3p)posix_typed_mem_open(3p)pow(3)pow(3p)printf(3)probe::kprocess.exec_complete(3stap)pselect(3p)psiginfo(3p)pthread_sigmask(3p)ptsname(3)ptsname(3p)putenv(3)putenv(3p)putmsg(3p)putpwent(3)puts(3p)putwchar(3)raise(3p)random(3)random_r(3)rcmd(3)read(3p)readdir(3)readdir(3p)readlink(3p)realloc(3p)realpath(3)realpath(3p)recno(3)recursive_key_scan(3)recv(3p)recvfrom(3p)recvmsg(3p)regcomp(3p)remainder(3)remainder(3p)remove(3)remquo(3)remquo(3p)rename(3p)rewind(3p)rint(3)rint(3p)rmdir(3p)round(3)rpmatch(3)rtime(3)scalb(3)scalbln(3)scalbln(3p)scandir(3)scanf(3)sched_getcpu(3)sched_getparam(3p)sched_get_priority_max(3p)sched_getscheduler(3p)sched_rr_get_interval(3p)sched_setparam(3p)sched_setscheduler(3p)sched_yield(3p)sctp_bindx(3)sctp_connectx(3)sctp_peeloff(3)sd_bus_error(3)sd_bus_error_add_map(3)sd-bus-errors(3)sd_bus_message_new_method_error(3)sd_bus_process(3)sd_bus_wait(3)sd_journal_print(3)seccomp_export_bpf(3)seccomp_init(3)seccomp_load(3)seccomp_notify_alloc(3)seccomp_precompute(3)seccomp_rule_add(3)security_class_to_string(3)selabel_digest(3)selabel_lookup(3)selabel_lookup_best_match(3)selabel_open(3)selinux_file_context_verify(3)selinux_raw_context_to_color(3)selinux_restorecon(3)selinux_restorecon_default_handle(3)selinux_restorecon_set_alt_rootpath(3)selinux_restorecon_xattr(3)selinux_set_callback(3)selinux_set_mapping(3)sem_close(3)sem_close(3p)semctl(3p)sem_destroy(3)sem_destroy(3p)semget(3p)sem_getvalue(3)sem_getvalue(3p)sem_init(3)sem_init(3p)semop(3p)sem_open(3)sem_open(3p)sem_post(3)sem_post(3p)sem_timedwait(3p)sem_trywait(3p)sem_unlink(3)sem_unlink(3p)sem_wait(3)send(3p)sendmsg(3p)sendto(3p)setbuf(3)setbuf(3p)setegid(3p)setenv(3)setenv(3p)seteuid(3p)setfilecon(3)setgid(3p)setkey(3p)setpgid(3p)setregid(3p)setreuid(3p)setsid(3p)setsockopt(3p)setuid(3p)setvbuf(3p)shmat(3p)shmctl(3p)shmdt(3p)shmget(3p)shm_open(3)shm_open(3p)shm_unlink(3p)shutdown(3p)sigaction(3p)sigaddset(3p)sigaltstack(3p)sigdelset(3p)sigemptyset(3p)sigfillset(3p)sighold(3p)siginterrupt(3)siginterrupt(3p)sigismember(3p)signal(3p)sigpause(3)sigpending(3p)sigqueue(3)sigqueue(3p)sigset(3)sigsetops(3)sigsuspend(3p)sigtimedwait(3p)sigvec(3)sin(3)sin(3p)sincos(3)sinh(3)sinh(3p)sockatmark(3)sockatmark(3p)socket(3p)socketpair(3p)sqrt(3)sqrt(3p)statvfs(3)strcoll(3p)strdup(3)strdup(3p)strerror(3)strerror(3p)strfmon(3)strfmon(3p)strftime(3)strsignal(3p)strtod(3)strtod(3p)strtoimax(3)strtoimax(3p)strtol(3)strtol(3p)strtoul(3)strtoul(3p)strxfrm(3p)symlink(3p)sysconf(3)sysconf(3p)syslog(3)system(3)system(3p)tan(3)tan(3p)tanh(3p)tcdrain(3p)tcflow(3p)tcflush(3p)tcgetattr(3p)tcgetpgrp(3)tcgetpgrp(3p)tcgetsid(3)tcgetsid(3p)tcsendbreak(3p)tcsetattr(3p)tcsetpgrp(3p)telldir(3)tempnam(3)tempnam(3p)termios(3)tgamma(3)tgamma(3p)timegm(3)timer_create(3p)timer_delete(3p)timer_getoverrun(3p)times(3p)tmpfile(3)tmpfile(3p)towctrans(3p)tracefs_filter_string_append(3)truncate(3p)ttyname(3)ttyname(3p)udev_device_new_from_syspath(3)ulimit(3)ulimit(3p)uname(3p)ungetwc(3)unlink(3p)unlockpt(3)unlockpt(3p)unsetenv(3p)uselocale(3)uselocale(3p)usleep(3)utime(3p)wait(3p)waitid(3p)wcrtomb(3)wcrtomb(3p)wcscoll(3p)wcsdup(3)wcsdup(3p)wcsnrtombs(3)wcsrtombs(3)wcsrtombs(3p)wcstod(3p)wcstoimax(3p)wcstol(3p)wcstoul(3p)wcsxfrm(3p)wctrans(3p)wordexp(3p)wprintf(3)write(3p)writev(3p)y0(3)y0(3p)random(4)proc_sys_fs(5)selabel_file(5)sudo_plugin(5)systemd.exec(5)cpuset(7)fanotify(7)io_uring(7)ip(7)man-pages(7)math_error(7)pipe(7)pthreads(7)signal-safety(7)socket(7)spufs(7)string_copying(7)systemd.journal-fields(7)tcp(7)unix(7)ausearch(8)



HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp