mirror of https://github.com/mkerrisk/man-pages
_exit.2, bpf.2, cacheflush.2, capget.2, chdir.2, chmod.2, chroot.2, clock_getres.2, clock_nanosleep.2, close.2, connect.2, create_module.2, dup.2, epoll_create.2, epoll_ctl.2, epoll_wait.2, eventfd.2, execve.2, execveat.2, exit_group.2, fanotify_mark.2, flock.2, fork.2, fsync.2, futex.2, futimesat.2, get_kernel_syms.2, get_mempolicy.2, get_robust_list.2, getcpu.2, getdomainname.2, getgid.2, getgroups.2, gethostname.2, getitimer.2, getpagesize.2, getpeername.2, getpid.2, getpriority.2, getrandom.2, getresuid.2, getrlimit.2, getrusage.2, getsid.2, getsockname.2, getsockopt.2, gettid.2, gettimeofday.2, getuid.2, getunwind.2, getxattr.2, idle.2, inotify_add_watch.2, inotify_init.2, inotify_rm_watch.2, ioctl.2, ioctl_fat.2, ioctl_ficlonerange.2, ioctl_fideduperange.2, ioctl_getfsmap.2, ioctl_tty.2, ioperm.2, iopl.2, keyctl.2, kill.2, link.2, listen.2, listxattr.2, llseek.2, lseek.2, madvise.2, mbind.2, membarrier.2, memfd_create.2, migrate_pages.2, mincore.2, mkdir.2, mknod.2, mlock.2, mmap.2, mmap2.2, modify_ldt.2, mount.2, move_pages.2, mprotect.2, mq_getsetattr.2, mremap.2, msgop.2, msync.2, nanosleep.2, nfsservctl.2, nice.2, pause.2, pciconfig_read.2, perf_event_open.2, perfmonctl.2, personality.2, pkey_alloc.2, poll.2, posix_fadvise.2, prctl.2, pread.2, process_vm_readv.2, ptrace.2, query_module.2, read.2, readahead.2, readdir.2, readv.2, reboot.2, recv.2, remap_file_pages.2, removexattr.2, rename.2, request_key.2, rmdir.2, rt_sigqueueinfo.2, sched_get_priority_max.2, sched_rr_get_interval.2, sched_setaffinity.2, sched_setparam.2, sched_setscheduler.2, sched_yield.2, select.2, select_tut.2, semctl.2, semget.2, semop.2, send.2, sendfile.2, set_mempolicy.2, set_tid_address.2, seteuid.2, setfsgid.2, setfsuid.2, setgid.2, setns.2, setpgid.2, setresuid.2, setreuid.2, setsid.2, setuid.2, setup.2, setxattr.2, sgetmask.2, shmctl.2, shmget.2, shutdown.2, sigaction.2, sigaltstack.2, sigpending.2, sigprocmask.2, sigsuspend.2, sigwaitinfo.2, socket.2, socketcall.2, socketpair.2, stat.2, statfs.2, stime.2, swapon.2, symlink.2, sync.2, sysctl.2, sysinfo.2, syslog.2, time.2, timer_create.2, timer_delete.2, timer_getoverrun.2, timer_settime.2, timerfd_create.2, times.2, tkill.2, truncate.2, umask.2, umount.2, uname.2, unlink.2, unshare.2, uselib.2, userfaultfd.2, ustat.2, utime.2, utimensat.2, vfork.2, vhangup.2, vm86.2, wait.2, wait4.2, write.2, CPU_SET.3, INFINITY.3, __ppc_get_timebase.3, __ppc_set_ppr_med.3, __ppc_yield.3, __setfpucw.3, a64l.3, abort.3, abs.3, acos.3, acosh.3, addseverity.3, adjtime.3, aio_cancel.3, aio_error.3, aio_fsync.3, aio_init.3, aio_read.3, aio_return.3, aio_suspend.3, aio_write.3, alloca.3, argz_add.3, asin.3, asinh.3, asprintf.3, assert.3, assert_perror.3, atan.3, atan2.3, atanh.3, atexit.3, atof.3, atoi.3, basename.3, bcmp.3, bcopy.3, bsd_signal.3, bsearch.3, bstring.3, btowc.3, byteorder.3, cabs.3, cacos.3, cacosh.3, canonicalize_file_name.3, carg.3, casin.3, casinh.3, catan.3, catanh.3, catopen.3, cbrt.3, ccos.3, ccosh.3, ceil.3, cexp.3, cexp2.3, cfree.3, cimag.3, clearenv.3, clock.3, clock_getcpuclockid.3, clog.3, clog10.3, clog2.3, closedir.3, cmsg.3, confstr.3, conj.3, copysign.3, cos.3, cosh.3, cpow.3, cproj.3, creal.3, crypt.3, csin.3, csinh.3, csqrt.3, ctan.3, ctanh.3, ctermid.3, ctime.3, daemon.3, difftime.3, dirfd.3, div.3, dlerror.3, dlopen.3, dlsym.3, drand48.3, drand48_r.3, duplocale.3, dysize.3, ecvt.3, ecvt_r.3, encrypt.3, endian.3, erf.3, erfc.3, err.3, errno.3, ether_aton.3, euidaccess.3, exec.3, exit.3, exp.3, exp10.3, exp2.3, expm1.3, fabs.3, fclose.3, fcloseall.3, fdim.3, fenv.3, ferror.3, fexecve.3, fflush.3, ffs.3, fgetc.3, fgetgrent.3, fgetpwent.3, fgetwc.3, fgetws.3, finite.3, flockfile.3, floor.3, fma.3, fmax.3, fmemopen.3, fmin.3, fmod.3, fmtmsg.3, fnmatch.3, fopen.3, fpathconf.3, fpclassify.3, fpurge.3, fputwc.3, fputws.3, fread.3, frexp.3, fseek.3, fseeko.3, ftime.3, ftok.3, fts.3, ftw.3, futimes.3, fwide.3, gamma.3, gcvt.3, get_nprocs_conf.3, get_phys_pages.3, getaddrinfo.3, getaddrinfo_a.3, getauxval.3, getcontext.3, getcwd.3, getdate.3, getdirentries.3, getdtablesize.3, getentropy.3, getenv.3, getfsent.3, getgrent.3, getgrent_r.3, getgrnam.3, getgrouplist.3, gethostbyname.3, gethostid.3, getifaddrs.3, getipnodebyname.3, getline.3, getloadavg.3, getlogin.3, getmntent.3, getnameinfo.3, getnetent.3, getnetent_r.3, getopt.3, getpass.3, getprotoent.3, getprotoent_r.3, getpt.3, getpw.3, getpwent.3, getpwent_r.3, getpwnam.3, getrpcent_r.3, getrpcport.3, gets.3, getservent.3, getservent_r.3, getspnam.3, getsubopt.3, getttyent.3, getumask.3, getusershell.3, getutent.3, getw.3, getwchar.3, glob.3, grantpt.3, group_member.3, gsignal.3, hsearch.3, hypot.3, iconv.3, iconv_close.3, iconv_open.3, if_nameindex.3, if_nametoindex.3, ilogb.3, index.3, inet.3, inet_net_pton.3, inet_ntop.3, infnan.3, initgroups.3, insque.3, isalpha.3, isatty.3, isfdtype.3, isgreater.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, j0.3, key_setsecret.3, killpg.3, ldexp.3, lgamma.3, localeconv.3, lockf.3, log.3, log10.3, log1p.3, log2.3, logb.3, login.3, lrint.3, lround.3, lsearch.3, lseek64.3, makecontext.3, malloc.3, malloc_get_state.3, malloc_hook.3, malloc_info.3, matherr.3, mblen.3, mbrlen.3, mbrtowc.3, mbsinit.3, mbsnrtowcs.3, mbsrtowcs.3, mbstowcs.3, mbtowc.3, mcheck.3, memccpy.3, memchr.3, memcmp.3, memcpy.3, memfrob.3, memmem.3, memmove.3, mempcpy.3, memset.3, mkdtemp.3, mkfifo.3, mkstemp.3, mktemp.3, modf.3, mpool.3, mq_close.3, mq_getattr.3, mq_notify.3, mq_open.3, mq_receive.3, mq_send.3, mq_unlink.3, mtrace.3, nan.3, netlink.3, newlocale.3, nextafter.3, nl_langinfo.3, offsetof.3, on_exit.3, open_memstream.3, opendir.3, openpty.3, perror.3, popen.3, posix_fallocate.3, posix_madvise.3, posix_memalign.3, posix_openpt.3, pow.3, pow10.3, printf.3, profil.3, psignal.3, pthread_atfork.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_cleanup_push_defer_np.3, pthread_create.3, pthread_detach.3, pthread_equal.3, pthread_exit.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_join.3, pthread_kill.3, pthread_rwlockattr_setkind_np.3, pthread_self.3, pthread_setaffinity_np.3, pthread_setcancelstate.3, pthread_setconcurrency.3, pthread_setname_np.3, pthread_setschedparam.3, pthread_setschedprio.3, pthread_sigmask.3, pthread_sigqueue.3, pthread_testcancel.3, pthread_tryjoin_np.3, pthread_yield.3, ptsname.3, putenv.3, putgrent.3, putpwent.3, puts.3, putwchar.3, qecvt.3, qsort.3, raise.3, rand.3, random.3, random_r.3, rcmd.3, re_comp.3, readdir.3, realpath.3, remainder.3, remove.3, remquo.3, resolver.3, rewinddir.3, rexec.3, rint.3, round.3, rpmatch.3, rtime.3, rtnetlink.3, scalb.3, scalbln.3, scandir.3, scanf.3, sched_getcpu.3, seekdir.3, sem_close.3, sem_destroy.3, sem_getvalue.3, sem_init.3, sem_open.3, sem_post.3, sem_unlink.3, sem_wait.3, setaliasent.3, setbuf.3, setenv.3, setlocale.3, setlogmask.3, setnetgrent.3, shm_open.3, siginterrupt.3, signbit.3, significand.3, sigpause.3, sigqueue.3, sigset.3, sigvec.3, sigwait.3, sin.3, sincos.3, sinh.3, sleep.3, sockatmark.3, sqrt.3, statvfs.3, stdarg.3, stdio.3, stdio_ext.3, stpcpy.3, stpncpy.3, strcasecmp.3, strcat.3, strchr.3, strcmp.3, strcoll.3, strcpy.3, strdup.3, strerror.3, strfmon.3, strfromd.3, strfry.3, strftime.3, strlen.3, strnlen.3, strpbrk.3, strptime.3, strsep.3, strsignal.3, strspn.3, strstr.3, strtod.3, strtoimax.3, strtok.3, strtol.3, strtoul.3, strverscmp.3, strxfrm.3, swab.3, sysconf.3, syslog.3, system.3, sysv_signal.3, tan.3, tanh.3, tcgetpgrp.3, tcgetsid.3, telldir.3, tempnam.3, termios.3, tgamma.3, timegm.3, timeradd.3, tmpfile.3, tmpnam.3, toascii.3, toupper.3, towctrans.3, towlower.3, towupper.3, trunc.3, tsearch.3, ttyname.3, ttyslot.3, tzset.3, ualarm.3, ulimit.3, ungetwc.3, unlocked_stdio.3, unlockpt.3, updwtmp.3, uselocale.3, usleep.3, wcpcpy.3, wcpncpy.3, wcrtomb.3, wcscasecmp.3, wcscat.3, wcschr.3, wcscmp.3, wcscpy.3, wcscspn.3, wcsdup.3, wcslen.3, wcsncasecmp.3, wcsncat.3, wcsncmp.3, wcsncpy.3, wcsnlen.3, wcsnrtombs.3, wcspbrk.3, wcsrchr.3, wcsrtombs.3, wcsspn.3, wcsstr.3, wcstoimax.3, wcstok.3, wcstombs.3, wcswidth.3, wctob.3, wctomb.3, wctrans.3, wctype.3, wcwidth.3, wmemchr.3, wmemcmp.3, wmemcpy.3, wmemmove.3, wmemset.3, wordexp.3, wprintf.3, xcrypt.3, y0.3, dsp56k.4, random.4, rtc.4, st.4, ddp.7, ip.7, ipv6.7, packet.7, rtnetlink.7, socket.7, tcp.7, udp.7, udplite.7, x25.7: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
080522cba4
commit
68e4db0a44
10
man2/_exit.2
10
man2/_exit.2
|
@ -31,18 +31,18 @@
|
|||
_exit, _Exit \- terminate the calling process
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "void _exit(int " status );
|
||||
.sp
|
||||
.PP
|
||||
.B #include <stdlib.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "void _Exit(int " status );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.BR _Exit ():
|
||||
.RS 4
|
||||
|
|
|
@ -29,7 +29,7 @@ bpf \- perform a command on an extended BPF map or program
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <linux/bpf.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int bpf(int " cmd ", union bpf_attr *" attr ", unsigned int " size ");
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
|
|
|
@ -28,7 +28,7 @@ cacheflush \- flush contents of instruction and/or data cache
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <asm/cachectl.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int cacheflush(char *" addr ", int "nbytes ", int "cache );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
capget, capset \- set/get capabilities of thread(s)
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/capability.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int capget(cap_user_header_t " hdrp ", cap_user_data_t " datap );
|
||||
.sp
|
||||
.PP
|
||||
.BI "int capset(cap_user_header_t " hdrp ", const cap_user_data_t " datap );
|
||||
.SH DESCRIPTION
|
||||
As of Linux 2.2,
|
||||
|
|
|
@ -35,16 +35,16 @@
|
|||
chdir, fchdir \- change working directory
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int chdir(const char *" path );
|
||||
.br
|
||||
.BI "int fchdir(int " fd );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR fchdir ():
|
||||
.PD 0
|
||||
.ad l
|
||||
|
|
12
man2/chmod.2
12
man2/chmod.2
|
@ -35,23 +35,23 @@ chmod, fchmod, fchmodat \- change permissions of a file
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/stat.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int chmod(const char *" pathname ", mode_t " mode );
|
||||
.br
|
||||
.BI "int fchmod(int " fd ", mode_t " mode );
|
||||
.sp
|
||||
.PP
|
||||
.BR "#include <fcntl.h>" " /* Definition of AT_* constants */"
|
||||
.B #include <sys/stat.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int fchmodat(int " dirfd ", const char *" pathname ", mode_t " \
|
||||
mode ", int " flags );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.PD 0
|
||||
.BR fchmod ():
|
||||
|
@ -75,7 +75,7 @@ Glibc 2.11 and earlier:
|
|||
.\" || (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
|
||||
.RE
|
||||
.PD
|
||||
.sp
|
||||
.PP
|
||||
.BR fchmodat ():
|
||||
.PD 0
|
||||
.ad l
|
||||
|
|
|
@ -35,14 +35,14 @@
|
|||
chroot \- change root directory
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int chroot(const char *" path );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR chroot ():
|
||||
.ad l
|
||||
.RS 4
|
||||
|
|
|
@ -32,20 +32,20 @@
|
|||
clock_getres, clock_gettime, clock_settime \- clock and time functions
|
||||
.SH SYNOPSIS
|
||||
.B #include <time.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int clock_getres(clockid_t " clk_id ", struct timespec *" res );
|
||||
|
||||
.BI "int clock_gettime(clockid_t " clk_id ", struct timespec *" tp );
|
||||
|
||||
.BI "int clock_settime(clockid_t " clk_id ", const struct timespec *" tp );
|
||||
.sp
|
||||
.PP
|
||||
Link with \fI\-lrt\fP (only for glibc versions before 2.17).
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.BR clock_getres (),
|
||||
.BR clock_gettime (),
|
||||
|
|
|
@ -29,20 +29,20 @@ clock_nanosleep \- high-resolution sleep with specifiable clock
|
|||
.SH SYNOPSIS
|
||||
.B #include <time.h>
|
||||
.nf
|
||||
.sp
|
||||
.PP
|
||||
.BI "int clock_nanosleep(clockid_t " clock_id ", int " flags ,
|
||||
.BI " const struct timespec *" request ,
|
||||
.BI " struct timespec *" remain );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
Link with \fI\-lrt\fP (only for glibc versions before 2.17).
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR clock_nanosleep ():
|
||||
.RS 4
|
||||
_POSIX_C_SOURCE\ >=\ 200112L
|
||||
|
|
|
@ -39,7 +39,7 @@ close \- close a file descriptor
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int close(int " fd );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -72,7 +72,7 @@ connect \- initiate a connection on a socket
|
|||
.BR "#include <sys/types.h>" " /* See NOTES */"
|
||||
.br
|
||||
.B #include <sys/socket.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int connect(int " sockfd ", const struct sockaddr *" addr ,
|
||||
.BI " socklen_t " addrlen );
|
||||
.fi
|
||||
|
|
|
@ -13,7 +13,7 @@ create_module \- create a loadable module entry
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <linux/module.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "caddr_t create_module(const char *" name ", size_t " size );
|
||||
.fi
|
||||
|
||||
|
|
|
@ -40,14 +40,14 @@ dup, dup2, dup3 \- duplicate a file descriptor
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int dup(int " oldfd );
|
||||
.BI "int dup2(int " oldfd ", int " newfd );
|
||||
.sp
|
||||
.PP
|
||||
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
||||
.BR "#include <fcntl.h>" " /* Obtain O_* constant definitions */
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int dup3(int " oldfd ", int " newfd ", int " flags );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -27,7 +27,7 @@ epoll_create, epoll_create1 \- open an epoll file descriptor
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/epoll.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int epoll_create(int " size );
|
||||
.BI "int epoll_create1(int " flags );
|
||||
.fi
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
epoll_ctl \- control interface for an epoll file descriptor
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/epoll.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int epoll_ctl(int " epfd ", int " op ", int " fd \
|
||||
", struct epoll_event *" event );
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -25,7 +25,7 @@ epoll_wait, epoll_pwait \- wait for an I/O event on an epoll file descriptor
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/epoll.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int epoll_wait(int " epfd ", struct epoll_event *" events ,
|
||||
.BI " int " maxevents ", int " timeout );
|
||||
.BI "int epoll_pwait(int " epfd ", struct epoll_event *" events ,
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
eventfd \- create a file descriptor for event notification
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/eventfd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int eventfd(unsigned int " initval ", int " flags );
|
||||
.SH DESCRIPTION
|
||||
.BR eventfd ()
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
execve \- execute program
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int execve(const char *" filename ", char *const " argv "[], "
|
||||
.br
|
||||
.BI " char *const " envp []);
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
execveat \- execute program relative to a directory file descriptor
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int execveat(int " dirfd ", const char *" pathname ","
|
||||
.br
|
||||
.BI " char *const " argv "[], char *const " envp "[],"
|
||||
|
|
|
@ -28,7 +28,7 @@ exit_group \- exit all threads in a process
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <linux/unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "void exit_group(int " status );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -28,7 +28,7 @@ object
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/fanotify.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int fanotify_mark(int " fanotify_fd ", unsigned int " flags ,
|
||||
.BI " uint64_t " mask ", int " dirfd \
|
||||
", const char *" pathname );
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
flock \- apply or remove an advisory lock on an open file
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/file.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int flock(int " fd ", int " operation );
|
||||
.SH DESCRIPTION
|
||||
Apply or remove an advisory lock on the open file specified by
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
fork \- create a child process
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.B pid_t fork(void);
|
||||
.SH DESCRIPTION
|
||||
.BR fork ()
|
||||
|
|
|
@ -40,16 +40,16 @@
|
|||
fsync, fdatasync \- synchronize a file's in-core state with storage device
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int fsync(int " fd );
|
||||
.sp
|
||||
.PP
|
||||
.BI "int fdatasync(int " fd );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR fsync ():
|
||||
Glibc 2.16 and later:
|
||||
No feature test macros need be defined
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
futex \- fast user-space locking
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.sp
|
||||
.PP
|
||||
.B "#include <linux/futex.h>"
|
||||
.B "#include <sys/time.h>"
|
||||
.sp
|
||||
.PP
|
||||
.BI "int futex(int *" uaddr ", int " futex_op ", int " val ,
|
||||
.BI " const struct timespec *" timeout , \
|
||||
" \fR /* or: \fBuint32_t \fIval2\fP */
|
||||
|
|
|
@ -30,16 +30,16 @@ directory file descriptor
|
|||
.nf
|
||||
.B #include <fcntl.h> /* Definition of AT_* constants */
|
||||
.B #include <sys/time.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int futimesat(int " dirfd ", const char *" pathname ,
|
||||
.BI " const struct timeval " times [2]);
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR futimesat ():
|
||||
_GNU_SOURCE
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -13,7 +13,7 @@ get_kernel_syms \- retrieve exported kernel and module symbols
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <linux/module.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int get_kernel_syms(struct kernel_sym *" table );
|
||||
.fi
|
||||
|
||||
|
|
|
@ -30,11 +30,11 @@ get_mempolicy \- retrieve NUMA memory policy for a thread
|
|||
.SH SYNOPSIS
|
||||
.B "#include <numaif.h>"
|
||||
.nf
|
||||
.sp
|
||||
.PP
|
||||
.BI "long get_mempolicy(int *" mode ", unsigned long *" nodemask ,
|
||||
.BI " unsigned long " maxnode ", void *" addr ,
|
||||
.BI " unsigned long " flags );
|
||||
.sp
|
||||
.PP
|
||||
Link with \fI\-lnuma\fP.
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -34,7 +34,7 @@ get_robust_list, set_robust_list \- get/set list of robust futexes
|
|||
.B #include <linux/futex.h>
|
||||
.B #include <sys/types.h>
|
||||
.B #include <syscall.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "long get_robust_list(int " pid ", struct robust_list_head **" head_ptr ,
|
||||
.BI " size_t *" len_ptr );
|
||||
.BI "long set_robust_list(struct robust_list_head *" head ", size_t " len );
|
||||
|
|
|
@ -15,7 +15,7 @@ getcpu \- determine CPU and NUMA node on which the calling thread is running
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <linux/getcpu.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getcpu(unsigned *" cpu ", unsigned *" node \
|
||||
", struct getcpu_cache *" tcache );
|
||||
.fi
|
||||
|
|
|
@ -31,16 +31,16 @@
|
|||
getdomainname, setdomainname \- get/set NIS domain name
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getdomainname(char *" name ", size_t " len );
|
||||
.br
|
||||
.BI "int setdomainname(const char *" name ", size_t " len );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.BR getdomainname (),
|
||||
.BR setdomainname ():
|
||||
|
|
|
@ -29,7 +29,7 @@ getgid, getegid \- get group identity
|
|||
.B #include <unistd.h>
|
||||
.br
|
||||
.B #include <sys/types.h>
|
||||
.sp
|
||||
.PP
|
||||
.B gid_t getgid(void);
|
||||
.br
|
||||
.B gid_t getegid(void);
|
||||
|
|
|
@ -36,18 +36,18 @@ getgroups, setgroups \- get/set list of supplementary group IDs
|
|||
.B #include <sys/types.h>
|
||||
.br
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getgroups(int " size ", gid_t " list []);
|
||||
.sp
|
||||
.PP
|
||||
.B #include <grp.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int setgroups(size_t " size ", const gid_t *" list );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR setgroups ():
|
||||
Since glibc 2.19:
|
||||
_DEFAULT_SOURCE
|
||||
|
|
|
@ -34,16 +34,16 @@
|
|||
gethostname, sethostname \- get/set hostname
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int gethostname(char *" name ", size_t " len );
|
||||
.br
|
||||
.BI "int sethostname(const char *" name ", size_t " len );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.PD 0
|
||||
.BR gethostname ():
|
||||
|
|
|
@ -16,7 +16,7 @@ getitimer, setitimer \- get or set value of an interval timer
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/time.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getitimer(int " which ", struct itimerval *" curr_value );
|
||||
.br
|
||||
.BI "int setitimer(int " which ", const struct itimerval *" new_value ,
|
||||
|
|
|
@ -27,14 +27,14 @@
|
|||
getpagesize \- get memory page size
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.B int getpagesize(void);
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR getpagesize ():
|
||||
.ad l
|
||||
.RS 4
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
getpeername \- get name of connected peer socket
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/socket.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getpeername(int " sockfd ", struct sockaddr *" addr \
|
||||
", socklen_t *" addrlen );
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -29,7 +29,7 @@ getpid, getppid \- get process identification
|
|||
.B #include <sys/types.h>
|
||||
.br
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.B pid_t getpid(void);
|
||||
.br
|
||||
.B pid_t getppid(void);
|
||||
|
|
|
@ -49,7 +49,7 @@ getpriority, setpriority \- get/set program scheduling priority
|
|||
.B #include <sys/time.h>
|
||||
.br
|
||||
.B #include <sys/resource.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getpriority(int " which ", id_t " who );
|
||||
.br
|
||||
.BI "int setpriority(int " which ", id_t " who ", int " prio );
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
getrandom \- obtain a series of random bytes
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/random.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getrandom(void *"buf ", size_t " buflen ", unsigned int " flags );
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
|
|
|
@ -32,7 +32,7 @@ getresuid, getresgid \- get real, effective and saved user/group IDs
|
|||
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
||||
.br
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getresuid(uid_t *" ruid ", uid_t *" euid ", uid_t *" suid );
|
||||
.br
|
||||
.BI "int getresgid(gid_t *" rgid ", gid_t *" egid ", gid_t *" sgid );
|
||||
|
|
|
@ -68,21 +68,21 @@ getrlimit, setrlimit, prlimit \- get/set resource limits
|
|||
.B #include <sys/time.h>
|
||||
.br
|
||||
.B #include <sys/resource.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getrlimit(int " resource ", struct rlimit *" rlim );
|
||||
.br
|
||||
.BI "int setrlimit(int " resource ", const struct rlimit *" rlim );
|
||||
.sp
|
||||
.PP
|
||||
.BI "int prlimit(pid_t " pid ", int " resource \
|
||||
", const struct rlimit *" new_limit ,
|
||||
.br
|
||||
.BI " struct rlimit *" old_limit );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR prlimit ():
|
||||
_GNU_SOURCE
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -43,7 +43,7 @@ getrusage \- get resource usage
|
|||
.B #include <sys/time.h>
|
||||
.br
|
||||
.B #include <sys/resource.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getrusage(int " who ", struct rusage *" usage );
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
|
|
|
@ -29,14 +29,14 @@
|
|||
getsid \- get session ID
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "pid_t getsid(pid_t" " pid" );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.PD 0
|
||||
.BR getsid ():
|
||||
|
|
|
@ -43,7 +43,7 @@ getsockname \- get socket name
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/socket.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getsockname(int " sockfd ", struct sockaddr *" addr \
|
||||
", socklen_t *" addrlen );
|
||||
.fi
|
||||
|
|
|
@ -49,7 +49,7 @@ getsockopt, setsockopt \- get and set options on sockets
|
|||
.BR "#include <sys/types.h>" " /* See NOTES */"
|
||||
.br
|
||||
.B #include <sys/socket.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int getsockopt(int " sockfd ", int " level ", int " optname ,
|
||||
.BI " void *" optval ", socklen_t *" optlen );
|
||||
.BI "int setsockopt(int " sockfd ", int " level ", int " optname ,
|
||||
|
|
|
@ -29,7 +29,7 @@ gettid \- get thread identification
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/types.h>
|
||||
.sp
|
||||
.PP
|
||||
.B pid_t gettid(void);
|
||||
.fi
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ gettimeofday, settimeofday \- get / set time
|
|||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR settimeofday ():
|
||||
Since glibc 2.19:
|
||||
_DEFAULT_SOURCE
|
||||
|
|
|
@ -30,7 +30,7 @@ getuid, geteuid \- get user identity
|
|||
.B #include <unistd.h>
|
||||
.br
|
||||
.B #include <sys/types.h>
|
||||
.sp
|
||||
.PP
|
||||
.B uid_t getuid(void);
|
||||
.br
|
||||
.B uid_t geteuid(void);
|
||||
|
|
|
@ -31,7 +31,7 @@ getunwind \- copy the unwind data to caller's buffer
|
|||
.nf
|
||||
.B #include <syscall.h>
|
||||
.B #include <linux/unwind.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "long getunwind(void " *buf ", size_t " buf_size );
|
||||
.fi
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ getxattr, lgetxattr, fgetxattr \- retrieve an extended attribute value
|
|||
.nf
|
||||
.B #include <sys/types.h>
|
||||
.B #include <sys/xattr.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "ssize_t getxattr(const char\ *" path ", const char\ *" name ,
|
||||
.BI " void\ *" value ", size_t " size );
|
||||
.BI "ssize_t lgetxattr(const char\ *" path ", const char\ *" name ,
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
idle \- make process 0 idle
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.B int idle(void);
|
||||
.SH DESCRIPTION
|
||||
.BR idle ()
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
inotify_add_watch \- add a watch to an initialized inotify instance
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/inotify.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int inotify_add_watch(int " fd ", const char *" pathname ", uint32_t " mask );
|
||||
.SH DESCRIPTION
|
||||
.BR inotify_add_watch ()
|
||||
|
|
|
@ -32,7 +32,7 @@ inotify_init, inotify_init1 \- initialize an inotify instance
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/inotify.h>
|
||||
.sp
|
||||
.PP
|
||||
.B "int inotify_init(void);"
|
||||
.BI "int inotify_init1(int " flags );
|
||||
.fi
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
inotify_rm_watch \- remove an existing watch from an inotify instance
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/inotify.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int inotify_rm_watch(int " fd ", int " wd );
|
||||
.\" Before glibc 2.10, the second argument was types as uint32_t.
|
||||
.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
ioctl \- control device
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/ioctl.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int ioctl(int " fd ", unsigned long " request ", ...);"
|
||||
.\" POSIX says 'request' is int, but glibc has the above
|
||||
.\" See https://bugzilla.kernel.org/show_bug.cgi?id=42705
|
||||
|
|
|
@ -29,7 +29,7 @@ ioctl_fat \- manipulating the FAT filesystem
|
|||
.B #include <linux/msdos_fs.h>
|
||||
.br
|
||||
.B #include <sys/ioctl.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int ioctl(int " fd ", FAT_IOCTL_GET_ATTRIBUTES, uint32_t *" attr );
|
||||
.BI "int ioctl(int " fd ", FAT_IOCTL_SET_ATTRIBUTES, uint32_t *" attr );
|
||||
.BI "int ioctl(int " fd ", FAT_IOCTL_GET_VOLUME_ID, uint32_t *" id );
|
||||
|
|
|
@ -28,7 +28,7 @@ ioctl_ficlonerange, ioctl_ficlone \- share some the data of one file with anothe
|
|||
.B #include <sys/ioctl.h>
|
||||
.br
|
||||
.B #include <linux/fs.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int ioctl(int " dest_fd ", FICLONERANGE, struct file_clone_range *" arg );
|
||||
.br
|
||||
.BI "int ioctl(int " dest_fd ", FICLONE, int " src_fd );
|
||||
|
|
|
@ -28,7 +28,7 @@ ioctl_fideduperange \- share some the data of one file with another file
|
|||
.B #include <sys/ioctl.h>
|
||||
.br
|
||||
.B #include <linux/fs.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int ioctl(int " src_fd ", FIDEDUPERANGE, struct file_dedupe_range *" arg );
|
||||
.SH DESCRIPTION
|
||||
If a filesystem supports files sharing physical storage between multiple
|
||||
|
|
|
@ -30,7 +30,7 @@ ioctl_getfsmap \- retrieve the physical layout of the filesystem
|
|||
.B #include <linux/fs.h>
|
||||
.br
|
||||
.B #include <linux/fsmap.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int ioctl(int " fd ", FS_IOC_GETFSMAP, struct fsmap_head * " arg );
|
||||
.SH DESCRIPTION
|
||||
This
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
ioctl_tty \- ioctls for terminals and serial lines
|
||||
.SH SYNOPSIS
|
||||
.B "#include <termios.h>"
|
||||
.sp
|
||||
.PP
|
||||
.BI "int ioctl(int " fd ", int " cmd ", ...);"
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
|
|
|
@ -37,7 +37,7 @@ ioperm \- set port input/output permissions
|
|||
.SH SYNOPSIS
|
||||
.B #include <sys/io.h>
|
||||
/* for glibc */
|
||||
.sp
|
||||
.PP
|
||||
.BI "int ioperm(unsigned long " from ", unsigned long " num ", int " turn_on );
|
||||
.SH DESCRIPTION
|
||||
.BR ioperm ()
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
iopl \- change I/O privilege level
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/io.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int iopl(int " level );
|
||||
.SH DESCRIPTION
|
||||
.BR iopl ()
|
||||
|
|
|
@ -32,14 +32,14 @@ keyctl \- manipulate the kernel's key management facility
|
|||
.nf
|
||||
.B #include <sys/types.h>
|
||||
.B #include <keyutils.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "long keyctl(int " operation ", ...)"
|
||||
.sp
|
||||
.PP
|
||||
.B "/* For direct call via syscall(2): */"
|
||||
.B #include <asm/unistd.h>
|
||||
.B #include <linux/keyctl.h>
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "long syscall(__NR_keyctl, int " operation ", __kernel_ulong_t " arg2 ,
|
||||
.BI " __kernel_ulong_t " arg3 ", __kernel_ulong_t " arg4 ,
|
||||
.BI " __kernel_ulong_t " arg5 );
|
||||
|
|
|
@ -49,15 +49,15 @@ kill \- send signal to a process
|
|||
.B #include <sys/types.h>
|
||||
.br
|
||||
.B #include <signal.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int kill(pid_t " pid ", int " sig );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.BR kill ():
|
||||
_POSIX_C_SOURCE
|
||||
|
|
10
man2/link.2
10
man2/link.2
|
@ -35,21 +35,21 @@ link, linkat \- make a new name for a file
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int link(const char *" oldpath ", const char *" newpath );
|
||||
.sp
|
||||
.PP
|
||||
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int linkat(int " olddirfd ", const char *" oldpath ,
|
||||
.BI " int " newdirfd ", const char *" newpath ", int " flags );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR linkat ():
|
||||
.PD 0
|
||||
.ad l
|
||||
|
|
|
@ -50,7 +50,7 @@ listen \- listen for connections on a socket
|
|||
.BR "#include <sys/types.h>" " /* See NOTES */"
|
||||
.br
|
||||
.B #include <sys/socket.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int listen(int " sockfd ", int " backlog );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -31,7 +31,7 @@ listxattr, llistxattr, flistxattr \- list extended attribute names
|
|||
.nf
|
||||
.B #include <sys/types.h>
|
||||
.B #include <sys/xattr.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "ssize_t listxattr(const char\ *" path ", char\ *" list \
|
||||
", size_t " size );
|
||||
.BI "ssize_t llistxattr(const char\ *" path ", char\ *" list \
|
||||
|
|
|
@ -32,7 +32,7 @@ _llseek \- reposition read/write file offset
|
|||
.nf
|
||||
.B #include <sys/types.h>
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int _llseek(unsigned int " fd ", unsigned long " offset_high ,
|
||||
.BI " unsigned long " offset_low ", loff_t *" result ,
|
||||
.BI " unsigned int " whence );
|
||||
|
|
|
@ -51,7 +51,7 @@ lseek \- reposition read/write file offset
|
|||
.B #include <sys/types.h>
|
||||
.br
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "off_t lseek(int " fd ", off_t " offset ", int " whence );
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
|
|
|
@ -37,14 +37,14 @@
|
|||
madvise \- give advice about use of memory
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int madvise(void *" addr ", size_t " length ", int " advice );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR madvise ():
|
||||
.PD 0
|
||||
.RS 4
|
||||
|
|
|
@ -38,11 +38,11 @@ mbind \- set memory policy for a memory range
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B "#include <numaif.h>"
|
||||
.sp
|
||||
.PP
|
||||
.BI "long mbind(void *" addr ", unsigned long " len ", int " mode ,
|
||||
.BI " const unsigned long *" nodemask ", unsigned long " maxnode ,
|
||||
.BI " unsigned " flags );
|
||||
.sp
|
||||
.PP
|
||||
Link with \fI\-lnuma\fP.
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
membarrier \- issue memory barriers on a set of threads
|
||||
.SH SYNOPSIS
|
||||
.B #include <linux/membarrier.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int membarrier(int " cmd ", int " flags ");
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
memfd_create \- create an anonymous file
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/memfd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int memfd_create(const char *" name ", unsigned int " flags ");"
|
||||
|
||||
.IR Note :
|
||||
|
|
|
@ -21,12 +21,12 @@ migrate_pages \- move all pages in a process to another set of nodes
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <numaif.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "long migrate_pages(int " pid ", unsigned long " maxnode,
|
||||
.BI " const unsigned long *" old_nodes,
|
||||
.BI " const unsigned long *" new_nodes );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
Link with \fI\-lnuma\fP.
|
||||
.SH DESCRIPTION
|
||||
.BR migrate_pages ()
|
||||
|
|
|
@ -38,14 +38,14 @@ mincore \- determine whether pages are resident in memory
|
|||
.B #include <unistd.h>
|
||||
.br
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mincore(void *" addr ", size_t " length ", unsigned char *" vec );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR mincore ():
|
||||
Since glibc 2.19:
|
||||
_DEFAULT_SOURCE
|
||||
|
|
10
man2/mkdir.2
10
man2/mkdir.2
|
@ -16,20 +16,20 @@ mkdir, mkdirat \- create a directory
|
|||
.B #include <sys/stat.h>
|
||||
.B #include <sys/types.h>
|
||||
.\" .B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mkdir(const char *" pathname ", mode_t " mode );
|
||||
.sp
|
||||
.PP
|
||||
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
|
||||
.B #include <sys/stat.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mkdirat(int " dirfd ", const char *" pathname ", mode_t " mode );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR mkdirat ():
|
||||
.PD 0
|
||||
.ad l
|
||||
|
|
10
man2/mknod.2
10
man2/mknod.2
|
@ -21,21 +21,21 @@ mknod, mknodat \- create a special or ordinary file
|
|||
.B #include <sys/stat.h>
|
||||
.B #include <fcntl.h>
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mknod(const char *" pathname ", mode_t " mode ", dev_t " dev );
|
||||
.sp
|
||||
.PP
|
||||
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
|
||||
.B #include <sys/stat.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mknodat(int " dirfd ", const char *" pathname ", mode_t " mode \
|
||||
", dev_t " dev );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR mknod ():
|
||||
.ad l
|
||||
.RS 4
|
||||
|
|
|
@ -29,11 +29,11 @@ mlock, mlock2, munlock, mlockall, munlockall \- lock and unlock memory
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mlock(const void *" addr ", size_t " len );
|
||||
.BI "int mlock2(const void *" addr ", size_t " len ", int " flags );
|
||||
.BI "int munlock(const void *" addr ", size_t " len );
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mlockall(int " flags );
|
||||
.B int munlockall(void);
|
||||
.fi
|
||||
|
|
|
@ -43,7 +43,7 @@ mmap, munmap \- map or unmap files or devices into memory
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "void *mmap(void *" addr ", size_t " length \
|
||||
", int " prot ", int " flags ,
|
||||
.BI " int " fd ", off_t " offset );
|
||||
|
|
|
@ -32,7 +32,7 @@ mmap2 \- map files or devices into memory
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "void *mmap2(void *" addr ", size_t " length ", int " prot ,
|
||||
.BI " int " flags ", int " fd ", off_t " pgoffset );
|
||||
.fi
|
||||
|
|
|
@ -28,7 +28,7 @@ modify_ldt \- get or set a per-process LDT entry
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/types.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int modify_ldt(int " func ", void *" ptr ", unsigned long " bytecount );
|
||||
.fi
|
||||
.PP
|
||||
|
|
|
@ -43,7 +43,7 @@ mount \- mount filesystem
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B "#include <sys/mount.h>"
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mount(const char *" source ", const char *" target ,
|
||||
.BI " const char *" filesystemtype ", unsigned long " mountflags ,
|
||||
.BI " const void *" data );
|
||||
|
|
|
@ -23,11 +23,11 @@ move_pages \- move individual pages of a process to another node
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <numaif.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "long move_pages(int " pid ", unsigned long count, void **" pages ,
|
||||
.BI " const int *" nodes ", int *" status ", int " flags );
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
Link with \fI\-lnuma\fP.
|
||||
.SH DESCRIPTION
|
||||
.BR move_pages ()
|
||||
|
|
|
@ -36,7 +36,7 @@ mprotect, pkey_mprotect \- set protection on a region of memory
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mprotect(void *" addr ", size_t " len ", int " prot );
|
||||
.BI "int pkey_mprotect(void *" addr ", size_t " len ", int " prot ", int " pkey ");
|
||||
.fi
|
||||
|
|
|
@ -30,7 +30,7 @@ mq_getsetattr \- get/set message queue attributes
|
|||
.nf
|
||||
.B #include <sys/types.h>
|
||||
.B #include <mqueue.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int mq_getsetattr(mqd_t " mqdes ", struct mq_attr *" newattr ","
|
||||
.BI " struct mq_attr *" oldattr );
|
||||
.fi
|
||||
|
|
|
@ -35,7 +35,7 @@ mremap \- remap a virtual memory address
|
|||
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
||||
.br
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "void *mremap(void *" old_address ", size_t " old_size ,
|
||||
.BI " size_t " new_size ", int " flags ", ... /* void *" new_address " */);"
|
||||
.fi
|
||||
|
|
|
@ -44,10 +44,10 @@ msgrcv, msgsnd \- System V message queue operations
|
|||
.B #include <sys/types.h>
|
||||
.B #include <sys/ipc.h>
|
||||
.B #include <sys/msg.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int msgsnd(int " msqid ", const void *" msgp ", size_t " msgsz \
|
||||
", int " msgflg );
|
||||
.sp
|
||||
.PP
|
||||
.BI "ssize_t msgrcv(int " msqid ", void *" msgp ", size_t " msgsz \
|
||||
", long " msgtyp ,
|
||||
.BI " int " msgflg );
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
msync \- synchronize a file with a memory map
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int msync(void *" addr ", size_t " length ", int " flags );
|
||||
.SH DESCRIPTION
|
||||
.BR msync ()
|
||||
|
|
|
@ -36,14 +36,14 @@
|
|||
nanosleep \- high-resolution sleep
|
||||
.SH SYNOPSIS
|
||||
.B #include <time.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int nanosleep(const struct timespec *" req ", struct timespec *" rem );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR nanosleep ():
|
||||
_POSIX_C_SOURCE\ >=\ 199309L
|
||||
.SH DESCRIPTION
|
||||
|
|
|
@ -8,7 +8,7 @@ nfsservctl \- syscall interface to kernel nfs daemon
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <linux/nfsd/syscall.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "long nfsservctl(int " cmd ", struct nfsctl_arg *" argp ,
|
||||
.BI " union nfsctl_res *" resp );
|
||||
.fi
|
||||
|
|
|
@ -33,14 +33,14 @@
|
|||
nice \- change process priority
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int nice(int " inc );
|
||||
.sp
|
||||
.PP
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR nice ():
|
||||
_XOPEN_SOURCE
|
||||
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
pause \- wait for signal
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
.PP
|
||||
.B int pause(void);
|
||||
.SH DESCRIPTION
|
||||
.BR pause ()
|
||||
|
|
|
@ -11,7 +11,7 @@ pciconfig_read, pciconfig_write, pciconfig_iobase \- pci device information hand
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <pci.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int pciconfig_read(unsigned long " bus ", unsigned long " dfn ,
|
||||
.BI " unsigned long " off ", unsigned long " len ", void *" buf );
|
||||
.BI "int pciconfig_write(unsigned long " bus ", unsigned long " dfn ,
|
||||
|
|
|
@ -31,7 +31,7 @@ perf_event_open \- set up performance monitoring
|
|||
.nf
|
||||
.B #include <linux/perf_event.h>
|
||||
.B #include <linux/hw_breakpoint.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int perf_event_open(struct perf_event_attr *" attr ,
|
||||
.BI " pid_t " pid ", int " cpu ", int " group_fd ,
|
||||
.BI " unsigned long " flags );
|
||||
|
|
|
@ -31,7 +31,7 @@ perfmonctl \- interface to IA-64 performance monitoring unit
|
|||
.nf
|
||||
.B #include <syscall.h>
|
||||
.B #include <perfmon.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "long perfmonctl(int " fd ", int " cmd ", void *" arg ", int " narg ");
|
||||
.fi
|
||||
.IR Note :
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
personality \- set the process execution domain
|
||||
.SH SYNOPSIS
|
||||
.B #include <sys/personality.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int personality(unsigned long " persona );
|
||||
.SH DESCRIPTION
|
||||
Linux supports different execution domains, or personalities, for each
|
||||
|
|
|
@ -28,7 +28,7 @@ pkey_alloc, pkey_free \- allocate or free a protection key
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/mman.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int pkey_alloc(unsigned long " flags ", unsigned long " access_rights ");"
|
||||
.BI "int pkey_free(int " pkey ");"
|
||||
.fi
|
||||
|
|
|
@ -34,13 +34,13 @@ poll, ppoll \- wait for some event on a file descriptor
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <poll.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int poll(struct pollfd *" fds ", nfds_t " nfds ", int " timeout );
|
||||
.sp
|
||||
.PP
|
||||
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
|
||||
.B #include <signal.h>
|
||||
.B #include <poll.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int ppoll(struct pollfd *" fds ", nfds_t " nfds ", "
|
||||
.BI " const struct timespec *" tmo_p ", const sigset_t *" sigmask );
|
||||
.fi
|
||||
|
|
|
@ -32,17 +32,17 @@ posix_fadvise \- predeclare an access pattern for file data
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <fcntl.h>
|
||||
.sp
|
||||
.PP
|
||||
.BI "int posix_fadvise(int " fd ", off_t " offset ", off_t " len \
|
||||
", int " advice ");"
|
||||
.fi
|
||||
.sp
|
||||
.PP
|
||||
.ad l
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.PP
|
||||
.BR posix_fadvise ():
|
||||
.RS 4
|
||||
_POSIX_C_SOURCE\ >=\ 200112L
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue