OSDN Git Service

(split) LDP: Support po4a.
[linuxjm/LDP_man-pages.git] / po4a / unistd / po / unistd.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2012-03-19 23:50+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: build/C/man2/_syscall.2:38
21 #, no-wrap
22 msgid "_SYSCALL"
23 msgstr ""
24
25 #. type: TH
26 #: build/C/man2/_syscall.2:38
27 #, no-wrap
28 msgid "2007-12-19"
29 msgstr ""
30
31 #. type: TH
32 #: build/C/man2/_syscall.2:38 build/C/man2/access.2:43 build/C/man2/alarm.2:30 build/C/man2/brk.2:30 build/C/man2/chdir.2:33 build/C/man2/chmod.2:31 build/C/man2/chown.2:38 build/C/man2/chroot.2:33 build/C/man2/close.2:35 build/C/man2/dup.2:36 build/C/man7/environ.7:33 build/C/man2/execve.2:37 build/C/man2/exit_group.2:23 build/C/man2/fcntl.2:61 build/C/man3/fexecve.3:25 build/C/man2/flock.2:34 build/C/man2/fork.2:39 build/C/man2/fsync.2:37 build/C/man2/get_thread_area.2:6 build/C/man2/getdomainname.2:29 build/C/man2/getdtablesize.2:27 build/C/man3/gethostid.3:29 build/C/man2/gethostname.2:32 build/C/man2/getpagesize.2:23 build/C/man2/gettid.2:26 build/C/man2/idle.2:32 build/C/man2/ioctl.2:39 build/C/man2/ioctl_list.2:27 build/C/man2/ioperm.2:35 build/C/man2/mincore.2:34 build/C/man2/mkdir.2:9 build/C/man2/nice.2:31 build/C/man2/pread.2:23 build/C/man2/set_thread_area.2:7 build/C/man2/setup.2:34 build/C/man2/swapon.2:37 build/C/man2/syscall.2:38 build/C/man2/syscalls.2:29 build/C/man2/sysctl.2:28 build/C/man2/sysinfo.2:14 build/C/man2/truncate.2:41 build/C/man2/umask.2:34 build/C/man2/uname.2:25 build/C/man2/uselib.2:31 build/C/man2/vfork.2:26 build/C/man2/vhangup.2:27
33 #, no-wrap
34 msgid "Linux"
35 msgstr ""
36
37 #. type: TH
38 #: build/C/man2/_syscall.2:38 build/C/man2/access.2:43 build/C/man2/alarm.2:30 build/C/man2/brk.2:30 build/C/man2/chdir.2:33 build/C/man2/chmod.2:31 build/C/man2/chown.2:38 build/C/man2/chroot.2:33 build/C/man2/close.2:35 build/C/man3/confstr.3:29 build/C/man3/crypt.3:35 build/C/man3/daemon.3:34 build/C/man3/des_crypt.3:10 build/C/man2/dup.2:36 build/C/man3/encrypt.3:24 build/C/man7/environ.7:33 build/C/man3/euidaccess.3:26 build/C/man3/exec.3:39 build/C/man2/execve.2:37 build/C/man2/exit_group.2:23 build/C/man2/fcntl.2:61 build/C/man3/fexecve.3:25 build/C/man2/flock.2:34 build/C/man2/fork.2:39 build/C/man3/fpathconf.3:24 build/C/man2/fsync.2:37 build/C/man2/get_thread_area.2:6 build/C/man3/getcwd.3:30 build/C/man2/getdomainname.2:29 build/C/man2/getdtablesize.2:27 build/C/man3/gethostid.3:29 build/C/man2/gethostname.2:32 build/C/man3/getlogin.3:28 build/C/man3/getopt.3:39 build/C/man2/getpagesize.2:23 build/C/man2/gettid.2:26 build/C/man3/getumask.3:26 build/C/man3/getusershell.3:28 build/C/man2/idle.2:32 build/C/man2/ioctl.2:39 build/C/man2/ioctl_list.2:27 build/C/man2/ioperm.2:35 build/C/man3/lockf.3:22 build/C/man2/mincore.2:34 build/C/man2/mkdir.2:9 build/C/man2/nice.2:31 build/C/man2/pread.2:23 build/C/man2/set_thread_area.2:7 build/C/man2/setup.2:34 build/C/man5/shells.5:27 build/C/man3/sleep.3:24 build/C/man3/swab.3:29 build/C/man2/swapon.2:37 build/C/man2/syscall.2:38 build/C/man2/syscalls.2:29 build/C/man3/sysconf.3:25 build/C/man2/sysctl.2:28 build/C/man2/sysinfo.2:14 build/C/man3/tcgetpgrp.3:23 build/C/man2/truncate.2:41 build/C/man3/ualarm.3:23 build/C/man2/umask.2:34 build/C/man2/uname.2:25 build/C/man2/uselib.2:31 build/C/man3/usleep.3:31 build/C/man2/vfork.2:26 build/C/man2/vhangup.2:27
39 #, no-wrap
40 msgid "Linux Programmer's Manual"
41 msgstr ""
42
43 #. type: SH
44 #: build/C/man2/_syscall.2:39 build/C/man2/access.2:44 build/C/man2/alarm.2:31 build/C/man2/brk.2:31 build/C/man2/chdir.2:34 build/C/man2/chmod.2:32 build/C/man2/chown.2:39 build/C/man2/chroot.2:34 build/C/man2/close.2:36 build/C/man3/confstr.3:30 build/C/man3/crypt.3:36 build/C/man3/daemon.3:35 build/C/man3/des_crypt.3:11 build/C/man2/dup.2:37 build/C/man3/encrypt.3:25 build/C/man7/environ.7:34 build/C/man3/euidaccess.3:27 build/C/man3/exec.3:40 build/C/man2/execve.2:38 build/C/man2/exit_group.2:24 build/C/man2/fcntl.2:62 build/C/man3/fexecve.3:26 build/C/man2/flock.2:35 build/C/man2/fork.2:40 build/C/man3/fpathconf.3:25 build/C/man2/fsync.2:38 build/C/man2/get_thread_area.2:7 build/C/man3/getcwd.3:31 build/C/man2/getdomainname.2:30 build/C/man2/getdtablesize.2:28 build/C/man3/gethostid.3:30 build/C/man2/gethostname.2:33 build/C/man3/getlogin.3:29 build/C/man3/getopt.3:40 build/C/man2/getpagesize.2:24 build/C/man2/gettid.2:27 build/C/man3/getumask.3:27 build/C/man3/getusershell.3:29 build/C/man2/idle.2:33 build/C/man2/ioctl.2:40 build/C/man2/ioctl_list.2:28 build/C/man2/ioperm.2:36 build/C/man3/lockf.3:23 build/C/man2/mincore.2:35 build/C/man2/mkdir.2:10 build/C/man2/nice.2:32 build/C/man2/pread.2:24 build/C/man2/set_thread_area.2:8 build/C/man2/setup.2:35 build/C/man5/shells.5:28 build/C/man3/sleep.3:25 build/C/man3/swab.3:30 build/C/man2/swapon.2:38 build/C/man2/syscall.2:39 build/C/man2/syscalls.2:30 build/C/man3/sysconf.3:26 build/C/man2/sysctl.2:29 build/C/man2/sysinfo.2:15 build/C/man3/tcgetpgrp.3:24 build/C/man2/truncate.2:42 build/C/man3/ualarm.3:24 build/C/man2/umask.2:35 build/C/man2/uname.2:26 build/C/man2/uselib.2:32 build/C/man3/usleep.3:32 build/C/man2/vfork.2:27 build/C/man2/vhangup.2:28
45 #, no-wrap
46 msgid "NAME"
47 msgstr ""
48
49 #. type: Plain text
50 #: build/C/man2/_syscall.2:41
51 msgid "_syscall - invoking a system call without library support (OBSOLETE)"
52 msgstr ""
53
54 #. type: SH
55 #: build/C/man2/_syscall.2:41 build/C/man2/access.2:46 build/C/man2/alarm.2:33 build/C/man2/brk.2:33 build/C/man2/chdir.2:36 build/C/man2/chmod.2:34 build/C/man2/chown.2:41 build/C/man2/chroot.2:36 build/C/man2/close.2:38 build/C/man3/confstr.3:32 build/C/man3/crypt.3:38 build/C/man3/daemon.3:37 build/C/man3/des_crypt.3:14 build/C/man2/dup.2:39 build/C/man3/encrypt.3:27 build/C/man7/environ.7:36 build/C/man3/euidaccess.3:29 build/C/man3/exec.3:42 build/C/man2/execve.2:40 build/C/man2/exit_group.2:26 build/C/man2/fcntl.2:64 build/C/man3/fexecve.3:28 build/C/man2/flock.2:37 build/C/man2/fork.2:42 build/C/man3/fpathconf.3:27 build/C/man2/fsync.2:40 build/C/man2/get_thread_area.2:9 build/C/man3/getcwd.3:33 build/C/man2/getdomainname.2:32 build/C/man2/getdtablesize.2:30 build/C/man3/gethostid.3:32 build/C/man2/gethostname.2:35 build/C/man3/getlogin.3:31 build/C/man3/getopt.3:43 build/C/man2/getpagesize.2:26 build/C/man2/gettid.2:29 build/C/man3/getumask.3:29 build/C/man3/getusershell.3:31 build/C/man2/idle.2:35 build/C/man2/ioctl.2:42 build/C/man2/ioperm.2:38 build/C/man3/lockf.3:25 build/C/man2/mincore.2:37 build/C/man2/mkdir.2:12 build/C/man2/nice.2:34 build/C/man2/pread.2:26 build/C/man2/set_thread_area.2:10 build/C/man2/setup.2:37 build/C/man3/sleep.3:27 build/C/man3/swab.3:32 build/C/man2/swapon.2:40 build/C/man2/syscall.2:41 build/C/man2/syscalls.2:32 build/C/man3/sysconf.3:28 build/C/man2/sysctl.2:31 build/C/man2/sysinfo.2:17 build/C/man3/tcgetpgrp.3:26 build/C/man2/truncate.2:44 build/C/man3/ualarm.3:26 build/C/man2/umask.2:37 build/C/man2/uname.2:28 build/C/man2/uselib.2:34 build/C/man3/usleep.3:34 build/C/man2/vfork.2:29 build/C/man2/vhangup.2:30
56 #, no-wrap
57 msgid "SYNOPSIS"
58 msgstr ""
59
60 #. type: Plain text
61 #: build/C/man2/_syscall.2:43 build/C/man2/get_thread_area.2:11 build/C/man2/set_thread_area.2:12
62 msgid "B<#include E<lt>linux/unistd.hE<gt>>"
63 msgstr ""
64
65 #. type: Plain text
66 #: build/C/man2/_syscall.2:45
67 msgid "A _syscall macro"
68 msgstr ""
69
70 #. type: Plain text
71 #: build/C/man2/_syscall.2:47
72 msgid "desired system call"
73 msgstr ""
74
75 #. type: SH
76 #: build/C/man2/_syscall.2:47 build/C/man2/access.2:52 build/C/man2/alarm.2:39 build/C/man2/brk.2:65 build/C/man2/chdir.2:59 build/C/man2/chmod.2:57 build/C/man2/chown.2:67 build/C/man2/chroot.2:63 build/C/man2/close.2:44 build/C/man3/confstr.3:46 build/C/man3/crypt.3:55 build/C/man3/daemon.3:49 build/C/man3/des_crypt.3:30 build/C/man2/dup.2:51 build/C/man3/encrypt.3:50 build/C/man7/environ.7:41 build/C/man3/euidaccess.3:37 build/C/man3/exec.3:70 build/C/man2/execve.2:46 build/C/man2/exit_group.2:32 build/C/man2/fcntl.2:71 build/C/man3/fexecve.3:53 build/C/man2/flock.2:41 build/C/man2/fork.2:46 build/C/man3/fpathconf.3:35 build/C/man2/fsync.2:60 build/C/man2/get_thread_area.2:15 build/C/man3/getcwd.3:73 build/C/man2/getdomainname.2:51 build/C/man2/getdtablesize.2:57 build/C/man3/gethostid.3:56 build/C/man2/gethostname.2:63 build/C/man3/getlogin.3:52 build/C/man3/getopt.3:77 build/C/man2/getpagesize.2:53 build/C/man2/gettid.2:35 build/C/man3/getumask.3:37 build/C/man3/getusershell.3:55 build/C/man2/idle.2:39 build/C/man2/ioctl.2:46 build/C/man2/ioctl_list.2:30 build/C/man2/ioperm.2:46 build/C/man3/lockf.3:42 build/C/man2/mincore.2:51 build/C/man2/mkdir.2:20 build/C/man2/nice.2:46 build/C/man2/pread.2:51 build/C/man2/set_thread_area.2:16 build/C/man2/setup.2:41 build/C/man5/shells.5:30 build/C/man3/sleep.3:33 build/C/man3/swab.3:39 build/C/man2/swapon.2:50 build/C/man2/syscall.2:49 build/C/man2/syscalls.2:34 build/C/man3/sysconf.3:34 build/C/man2/sysctl.2:39 build/C/man2/sysinfo.2:21 build/C/man3/tcgetpgrp.3:32 build/C/man2/truncate.2:77 build/C/man3/ualarm.3:57 build/C/man2/umask.2:43 build/C/man2/uname.2:32 build/C/man2/uselib.2:38 build/C/man3/usleep.3:65 build/C/man2/vfork.2:60 build/C/man2/vhangup.2:44
77 #, no-wrap
78 msgid "DESCRIPTION"
79 msgstr ""
80
81 #. type: Plain text
82 #: build/C/man2/_syscall.2:53
83 msgid ""
84 "The important thing to know about a system call is its prototype.  You need "
85 "to know how many arguments, their types, and the function return type.  "
86 "There are seven macros that make the actual call into the system easier.  "
87 "They have the form:"
88 msgstr ""
89
90 #. type: Plain text
91 #: build/C/man2/_syscall.2:56
92 msgid "_syscallI<X>(I<type>,I<name>,I<type1>,I<arg1>,I<type2>,I<arg2>,...)"
93 msgstr ""
94
95 #. type: Plain text
96 #: build/C/man2/_syscall.2:59
97 msgid "where"
98 msgstr ""
99
100 #. type: Plain text
101 #: build/C/man2/_syscall.2:62
102 msgid "I<X> is 0\\(en6, which are the number of arguments taken by the system call"
103 msgstr ""
104
105 #. type: Plain text
106 #: build/C/man2/_syscall.2:64
107 msgid "I<type> is the return type of the system call"
108 msgstr ""
109
110 #. type: Plain text
111 #: build/C/man2/_syscall.2:66
112 msgid "I<name> is the name of the system call"
113 msgstr ""
114
115 #. type: Plain text
116 #: build/C/man2/_syscall.2:68
117 msgid "I<typeN> is the Nth argument's type"
118 msgstr ""
119
120 #. type: Plain text
121 #: build/C/man2/_syscall.2:70
122 msgid "I<argN> is the name of the Nth argument"
123 msgstr ""
124
125 #. type: Plain text
126 #: build/C/man2/_syscall.2:75
127 msgid ""
128 "These macros create a function called I<name> with the arguments you "
129 "specify.  Once you include the _syscall() in your source file, you call the "
130 "system call by I<name>."
131 msgstr ""
132
133 #. type: SH
134 #: build/C/man2/_syscall.2:75 build/C/man3/getlogin.3:130 build/C/man3/getusershell.3:79 build/C/man5/shells.5:41
135 #, no-wrap
136 msgid "FILES"
137 msgstr ""
138
139 #. type: Plain text
140 #: build/C/man2/_syscall.2:77
141 msgid "I</usr/include/linux/unistd.h>"
142 msgstr ""
143
144 #. type: SH
145 #: build/C/man2/_syscall.2:77 build/C/man2/access.2:148 build/C/man2/alarm.2:61 build/C/man2/brk.2:115 build/C/man2/chdir.2:125 build/C/man2/chmod.2:218 build/C/man2/chown.2:181 build/C/man2/chroot.2:134 build/C/man2/close.2:84 build/C/man3/confstr.3:125 build/C/man3/crypt.3:162 build/C/man3/daemon.3:88 build/C/man3/des_crypt.3:130 build/C/man2/dup.2:169 build/C/man3/encrypt.3:118 build/C/man3/euidaccess.3:74 build/C/man3/exec.3:197 build/C/man2/execve.2:435 build/C/man2/exit_group.2:41 build/C/man2/fcntl.2:1136 build/C/man3/fexecve.3:94 build/C/man2/flock.2:137 build/C/man2/fork.2:187 build/C/man3/fpathconf.3:152 build/C/man2/fsync.2:122 build/C/man2/get_thread_area.2:41 build/C/man3/getcwd.3:206 build/C/man2/getdomainname.2:110 build/C/man2/getdtablesize.2:69 build/C/man3/gethostid.3:92 build/C/man2/gethostname.2:124 build/C/man3/getlogin.3:138 build/C/man3/getopt.3:316 build/C/man2/getpagesize.2:62 build/C/man2/gettid.2:55 build/C/man3/getumask.3:56 build/C/man3/getusershell.3:83 build/C/man2/idle.2:61 build/C/man2/ioctl.2:115 build/C/man2/ioperm.2:95 build/C/man3/lockf.3:148 build/C/man2/mincore.2:134 build/C/man2/mkdir.2:113 build/C/man2/nice.2:75 build/C/man2/pread.2:113 build/C/man2/set_thread_area.2:59 build/C/man2/setup.2:62 build/C/man3/sleep.3:42 build/C/man3/swab.3:56 build/C/man2/swapon.2:151 build/C/man3/sysconf.3:322 build/C/man2/sysctl.2:95 build/C/man2/sysinfo.2:83 build/C/man3/tcgetpgrp.3:104 build/C/man2/truncate.2:193 build/C/man3/ualarm.3:91 build/C/man2/umask.2:93 build/C/man2/uname.2:71 build/C/man2/uselib.2:76 build/C/man3/usleep.3:84 build/C/man2/vfork.2:147 build/C/man2/vhangup.2:62
146 #, no-wrap
147 msgid "CONFORMING TO"
148 msgstr ""
149
150 #. type: Plain text
151 #: build/C/man2/_syscall.2:79
152 msgid "The use of these macros is Linux-specific, and deprecated."
153 msgstr ""
154
155 #. type: SH
156 #: build/C/man2/_syscall.2:79 build/C/man2/access.2:150 build/C/man2/alarm.2:63 build/C/man2/brk.2:123 build/C/man2/chdir.2:127 build/C/man2/chown.2:192 build/C/man2/chroot.2:139 build/C/man2/close.2:87 build/C/man3/crypt.3:167 build/C/man3/daemon.3:94 build/C/man2/dup.2:179 build/C/man3/encrypt.3:129 build/C/man3/euidaccess.3:80 build/C/man3/exec.3:203 build/C/man2/execve.2:443 build/C/man2/exit_group.2:43 build/C/man2/fcntl.2:1186 build/C/man3/fexecve.3:98 build/C/man2/flock.2:146 build/C/man2/fork.2:189 build/C/man3/fpathconf.3:154 build/C/man2/fsync.2:137 build/C/man2/get_thread_area.2:45 build/C/man3/getcwd.3:228 build/C/man2/getdomainname.2:113 build/C/man2/getdtablesize.2:77 build/C/man3/gethostid.3:102 build/C/man2/gethostname.2:130 build/C/man3/getopt.3:348 build/C/man2/getpagesize.2:69 build/C/man2/gettid.2:59 build/C/man3/getumask.3:58 build/C/man2/ioctl.2:130 build/C/man2/ioperm.2:99 build/C/man2/mkdir.2:116 build/C/man2/nice.2:82 build/C/man2/pread.2:115 build/C/man2/set_thread_area.2:63 build/C/man2/setup.2:65 build/C/man2/swapon.2:157 build/C/man2/syscall.2:63 build/C/man2/syscalls.2:593 build/C/man2/sysctl.2:109 build/C/man3/tcgetpgrp.3:106 build/C/man2/truncate.2:206 build/C/man3/ualarm.3:99 build/C/man2/umask.2:95 build/C/man2/uname.2:80 build/C/man2/uselib.2:80 build/C/man3/usleep.3:102 build/C/man2/vfork.2:161
157 #, no-wrap
158 msgid "NOTES"
159 msgstr ""
160
161 #. type: Plain text
162 #: build/C/man2/_syscall.2:89
163 msgid ""
164 "Starting around kernel 2.6.18, the _syscall macros were removed from header "
165 "files supplied to user space.  Use B<syscall>(2)  instead.  (Some "
166 "architectures, notably ia64, never provided the _syscall macros; on those "
167 "architectures, B<syscall>(2)  was always required.)"
168 msgstr ""
169
170 #. type: Plain text
171 #: build/C/man2/_syscall.2:93
172 msgid ""
173 "The _syscall() macros I<do not> produce a prototype.  You may have to create "
174 "one, especially for C++ users."
175 msgstr ""
176
177 #. type: Plain text
178 #: build/C/man2/_syscall.2:105
179 msgid ""
180 "System calls are not required to return only positive or negative error "
181 "codes.  You need to read the source to be sure how it will return errors.  "
182 "Usually, it is the negative of a standard error code, for example, "
183 "-B<EPERM>.  The _syscall() macros will return the result I<r> of the system "
184 "call when I<r> is nonnegative, but will return -1 and set the variable "
185 "I<errno> to -I<r> when I<r> is negative.  For the error codes, see "
186 "B<errno>(3)."
187 msgstr ""
188
189 #.  The preferred way to invoke system calls that glibc does not know
190 #.  about yet is via
191 #.  .BR syscall (2).
192 #.  However, this mechanism can only be used if using a libc
193 #.  (such as glibc) that supports
194 #.  .BR syscall (2),
195 #.  and if the
196 #.  .I <sys/syscall.h>
197 #.  header file contains the required SYS_foo definition.
198 #.  Otherwise, the use of a _syscall macro is required.
199 #. type: Plain text
200 #: build/C/man2/_syscall.2:119
201 msgid ""
202 "When defining a system call, the argument types I<must> be passed by-value "
203 "or by-pointer (for aggregates like structs)."
204 msgstr ""
205
206 #. type: SH
207 #: build/C/man2/_syscall.2:119 build/C/man2/chown.2:288 build/C/man3/confstr.3:127 build/C/man3/encrypt.3:131 build/C/man2/execve.2:527 build/C/man2/fork.2:212 build/C/man3/getopt.3:374 build/C/man5/shells.5:43 build/C/man2/syscall.2:67 build/C/man2/sysctl.2:129
208 #, no-wrap
209 msgid "EXAMPLE"
210 msgstr ""
211
212 #. type: Plain text
213 #: build/C/man2/_syscall.2:126
214 #, no-wrap
215 msgid ""
216 "#include E<lt>stdio.hE<gt>\n"
217 "#include E<lt>stdlib.hE<gt>\n"
218 "#include E<lt>errno.hE<gt>\n"
219 "#include E<lt>linux/unistd.hE<gt>       /* for _syscallX macros/related "
220 "stuff */\n"
221 "#include E<lt>linux/kernel.hE<gt>       /* for struct sysinfo */\n"
222 msgstr ""
223
224 #. type: Plain text
225 #: build/C/man2/_syscall.2:128
226 #, no-wrap
227 msgid "_syscall1(int, sysinfo, struct sysinfo *, info);\n"
228 msgstr ""
229
230 #. type: Plain text
231 #: build/C/man2/_syscall.2:131
232 #, no-wrap
233 msgid ""
234 "/* Note: if you copy directly from the nroff source, remember to\n"
235 "REMOVE the extra backslashes in the printf statement. */\n"
236 msgstr ""
237
238 #. type: Plain text
239 #: build/C/man2/_syscall.2:137
240 #, no-wrap
241 msgid ""
242 "int\n"
243 "main(void)\n"
244 "{\n"
245 "    struct sysinfo s_info;\n"
246 "    int error;\n"
247 msgstr ""
248
249 #. type: Plain text
250 #: build/C/man2/_syscall.2:152
251 #, no-wrap
252 msgid ""
253 "    error = sysinfo(&s_info);\n"
254 "    printf(\"code error = %d\\en\", error);\n"
255 "    printf(\"Uptime = %lds\\enLoad: 1 min %lu / 5 min %lu / 15 min "
256 "%lu\\en\"\n"
257 "           \"RAM: total %lu / free %lu / shared %lu\\en\"\n"
258 "           \"Memory in buffers = %lu\\enSwap: total %lu / free %lu\\en\"\n"
259 "           \"Number of processes = %d\\en\",\n"
260 "           s_info.uptime, s_info.loads[0],\n"
261 "           s_info.loads[1], s_info.loads[2],\n"
262 "           s_info.totalram, s_info.freeram,\n"
263 "           s_info.sharedram, s_info.bufferram,\n"
264 "           s_info.totalswap, s_info.freeswap,\n"
265 "           s_info.procs);\n"
266 "    exit(EXIT_SUCCESS);\n"
267 "}\n"
268 msgstr ""
269
270 #. type: SS
271 #: build/C/man2/_syscall.2:153
272 #, no-wrap
273 msgid "Sample Output"
274 msgstr ""
275
276 #. type: Plain text
277 #: build/C/man2/_syscall.2:162
278 #, no-wrap
279 msgid ""
280 "code error = 0\n"
281 "uptime = 502034s\n"
282 "Load: 1 min 13376 / 5 min 5504 / 15 min 1152\n"
283 "RAM: total 15343616 / free 827392 / shared 8237056\n"
284 "Memory in buffers = 5066752\n"
285 "Swap: total 27881472 / free 24698880\n"
286 "Number of processes = 40\n"
287 msgstr ""
288
289 #. type: SH
290 #: build/C/man2/_syscall.2:163 build/C/man2/access.2:241 build/C/man2/alarm.2:81 build/C/man2/brk.2:165 build/C/man2/chdir.2:136 build/C/man2/chmod.2:220 build/C/man2/chown.2:336 build/C/man2/chroot.2:151 build/C/man2/close.2:125 build/C/man3/confstr.3:144 build/C/man3/crypt.3:228 build/C/man3/daemon.3:102 build/C/man3/des_crypt.3:133 build/C/man2/dup.2:206 build/C/man3/encrypt.3:155 build/C/man7/environ.7:227 build/C/man3/euidaccess.3:95 build/C/man3/exec.3:239 build/C/man2/execve.2:622 build/C/man2/exit_group.2:47 build/C/man2/fcntl.2:1287 build/C/man3/fexecve.3:106 build/C/man2/flock.2:200 build/C/man2/fork.2:217 build/C/man3/fpathconf.3:163 build/C/man2/fsync.2:181 build/C/man2/get_thread_area.2:49 build/C/man3/getcwd.3:247 build/C/man2/getdomainname.2:127 build/C/man2/getdtablesize.2:90 build/C/man3/gethostid.3:124 build/C/man2/gethostname.2:176 build/C/man3/getlogin.3:193 build/C/man3/getopt.3:512 build/C/man2/getpagesize.2:106 build/C/man2/gettid.2:68 build/C/man3/getumask.3:61 build/C/man3/getusershell.3:85 build/C/man2/ioctl.2:138 build/C/man2/ioctl_list.2:866 build/C/man2/ioperm.2:108 build/C/man3/lockf.3:150 build/C/man2/mincore.2:166 build/C/man2/mkdir.2:128 build/C/man2/nice.2:105 build/C/man2/pread.2:131 build/C/man2/set_thread_area.2:67 build/C/man5/shells.5:52 build/C/man3/sleep.3:59 build/C/man3/swab.3:58 build/C/man2/swapon.2:191 build/C/man2/syscall.2:82 build/C/man2/syscalls.2:816 build/C/man3/sysconf.3:333 build/C/man2/sysctl.2:167 build/C/man2/sysinfo.2:94 build/C/man3/tcgetpgrp.3:115 build/C/man2/truncate.2:249 build/C/man3/ualarm.3:134 build/C/man2/umask.2:116 build/C/man2/uname.2:155 build/C/man2/uselib.2:102 build/C/man3/usleep.3:135 build/C/man2/vfork.2:219 build/C/man2/vhangup.2:65
291 #, no-wrap
292 msgid "SEE ALSO"
293 msgstr ""
294
295 #. type: Plain text
296 #: build/C/man2/_syscall.2:167
297 msgid "B<intro>(2), B<syscall>(2), B<errno>(3)"
298 msgstr ""
299
300 #. type: SH
301 #: build/C/man2/_syscall.2:167 build/C/man2/access.2:252 build/C/man2/alarm.2:90 build/C/man2/brk.2:170 build/C/man2/chdir.2:140 build/C/man2/chmod.2:227 build/C/man2/chown.2:342 build/C/man2/chroot.2:154 build/C/man2/close.2:132 build/C/man3/confstr.3:148 build/C/man3/crypt.3:234 build/C/man3/daemon.3:105 build/C/man3/des_crypt.3:137 build/C/man2/dup.2:210 build/C/man3/encrypt.3:160 build/C/man7/environ.7:241 build/C/man3/euidaccess.3:106 build/C/man3/exec.3:246 build/C/man2/execve.2:633 build/C/man2/exit_group.2:49 build/C/man2/fcntl.2:1309 build/C/man3/fexecve.3:108 build/C/man2/flock.2:214 build/C/man2/fork.2:227 build/C/man3/fpathconf.3:168 build/C/man2/fsync.2:190 build/C/man2/get_thread_area.2:52 build/C/man3/getcwd.3:254 build/C/man2/getdomainname.2:131 build/C/man2/getdtablesize.2:95 build/C/man3/gethostid.3:127 build/C/man2/gethostname.2:180 build/C/man3/getlogin.3:197 build/C/man3/getopt.3:514 build/C/man2/getpagesize.2:109 build/C/man2/gettid.2:72 build/C/man3/getumask.3:63 build/C/man3/getusershell.3:87 build/C/man2/idle.2:64 build/C/man2/ioctl.2:146 build/C/man2/ioctl_list.2:868 build/C/man2/ioperm.2:111 build/C/man3/lockf.3:166 build/C/man2/mincore.2:169 build/C/man2/mkdir.2:140 build/C/man2/nice.2:112 build/C/man2/pread.2:136 build/C/man2/set_thread_area.2:69 build/C/man2/setup.2:72 build/C/man5/shells.5:55 build/C/man3/sleep.3:64 build/C/man3/swab.3:60 build/C/man2/swapon.2:195 build/C/man2/syscall.2:86 build/C/man2/syscalls.2:820 build/C/man3/sysconf.3:341 build/C/man2/sysctl.2:169 build/C/man2/sysinfo.2:96 build/C/man3/tcgetpgrp.3:119 build/C/man2/truncate.2:253 build/C/man3/ualarm.3:142 build/C/man2/umask.2:122 build/C/man2/uname.2:159 build/C/man2/uselib.2:112 build/C/man3/usleep.3:144 build/C/man2/vfork.2:225 build/C/man2/vhangup.2:68
302 #, no-wrap
303 msgid "COLOPHON"
304 msgstr ""
305
306 #. type: Plain text
307 #: build/C/man2/_syscall.2:174 build/C/man2/access.2:259 build/C/man2/alarm.2:97 build/C/man2/brk.2:177 build/C/man2/chdir.2:147 build/C/man2/chmod.2:234 build/C/man2/chown.2:349 build/C/man2/chroot.2:161 build/C/man2/close.2:139 build/C/man3/confstr.3:155 build/C/man3/crypt.3:241 build/C/man3/daemon.3:112 build/C/man3/des_crypt.3:144 build/C/man2/dup.2:217 build/C/man3/encrypt.3:167 build/C/man7/environ.7:248 build/C/man3/euidaccess.3:113 build/C/man3/exec.3:253 build/C/man2/execve.2:640 build/C/man2/exit_group.2:56 build/C/man2/fcntl.2:1316 build/C/man3/fexecve.3:115 build/C/man2/flock.2:221 build/C/man2/fork.2:234 build/C/man3/fpathconf.3:175 build/C/man2/fsync.2:197 build/C/man2/get_thread_area.2:59 build/C/man3/getcwd.3:261 build/C/man2/getdomainname.2:138 build/C/man2/getdtablesize.2:102 build/C/man3/gethostid.3:134 build/C/man2/gethostname.2:187 build/C/man3/getlogin.3:204 build/C/man3/getopt.3:521 build/C/man2/getpagesize.2:116 build/C/man2/gettid.2:79 build/C/man3/getumask.3:70 build/C/man3/getusershell.3:94 build/C/man2/idle.2:71 build/C/man2/ioctl.2:153 build/C/man2/ioctl_list.2:875 build/C/man2/ioperm.2:118 build/C/man3/lockf.3:173 build/C/man2/mincore.2:176 build/C/man2/mkdir.2:147 build/C/man2/nice.2:119 build/C/man2/pread.2:143 build/C/man2/set_thread_area.2:76 build/C/man2/setup.2:79 build/C/man5/shells.5:62 build/C/man3/sleep.3:71 build/C/man3/swab.3:67 build/C/man2/swapon.2:202 build/C/man2/syscall.2:93 build/C/man2/syscalls.2:827 build/C/man3/sysconf.3:348 build/C/man2/sysctl.2:176 build/C/man2/sysinfo.2:103 build/C/man3/tcgetpgrp.3:126 build/C/man2/truncate.2:260 build/C/man3/ualarm.3:149 build/C/man2/umask.2:129 build/C/man2/uname.2:166 build/C/man2/uselib.2:119 build/C/man3/usleep.3:151 build/C/man2/vfork.2:232 build/C/man2/vhangup.2:75
308 msgid ""
309 "This page is part of release 3.35 of the Linux I<man-pages> project.  A "
310 "description of the project, and information about reporting bugs, can be "
311 "found at http://man7.org/linux/man-pages/."
312 msgstr ""
313
314 #. type: TH
315 #: build/C/man2/access.2:43
316 #, no-wrap
317 msgid "ACCESS"
318 msgstr ""
319
320 #. type: TH
321 #: build/C/man2/access.2:43
322 #, no-wrap
323 msgid "2010-10-24"
324 msgstr ""
325
326 #. type: Plain text
327 #: build/C/man2/access.2:46
328 msgid "access - check real user's permissions for a file"
329 msgstr ""
330
331 #. type: Plain text
332 #: build/C/man2/access.2:49 build/C/man2/alarm.2:36 build/C/man2/close.2:41 build/C/man3/confstr.3:35 build/C/man3/crypt.3:43 build/C/man2/dup.2:42 build/C/man3/fexecve.3:31 build/C/man3/fpathconf.3:30 build/C/man3/getcwd.3:36 build/C/man3/getopt.3:46 build/C/man3/getusershell.3:34 build/C/man3/sleep.3:30 build/C/man3/sysconf.3:31 build/C/man2/sysctl.2:34 build/C/man3/ualarm.3:29 build/C/man3/usleep.3:37
333 #, no-wrap
334 msgid "B<#include E<lt>unistd.hE<gt>>\n"
335 msgstr ""
336
337 #. type: Plain text
338 #: build/C/man2/access.2:51
339 #, no-wrap
340 msgid "B<int access(const char *>I<pathname>B<, int >I<mode>B<);>\n"
341 msgstr ""
342
343 #. type: Plain text
344 #: build/C/man2/access.2:59
345 msgid ""
346 "B<access>()  checks whether the calling process can access the file "
347 "I<pathname>.  If I<pathname> is a symbolic link, it is dereferenced."
348 msgstr ""
349
350 #.  F_OK is defined as 0 on every system that I know of.
351 #. type: Plain text
352 #: build/C/man2/access.2:73
353 msgid ""
354 "The I<mode> specifies the accessibility check(s) to be performed, and is "
355 "either the value B<F_OK>, or a mask consisting of the bitwise OR of one or "
356 "more of B<R_OK>, B<W_OK>, and B<X_OK>.  B<F_OK> tests for the existence of "
357 "the file.  B<R_OK>, B<W_OK>, and B<X_OK> test whether the file exists and "
358 "grants read, write, and execute permissions, respectively."
359 msgstr ""
360
361 #. type: Plain text
362 #: build/C/man2/access.2:82
363 msgid ""
364 "The check is done using the calling process's I<real> UID and GID, rather "
365 "than the effective IDs as is done when actually attempting an operation "
366 "(e.g., B<open>(2))  on the file.  This allows set-user-ID programs to easily "
367 "determine the invoking user's authority."
368 msgstr ""
369
370 #. type: Plain text
371 #: build/C/man2/access.2:88
372 msgid ""
373 "If the calling process is privileged (i.e., its real UID is zero), then an "
374 "B<X_OK> check is successful for a regular file if execute permission is "
375 "enabled for any of the file owner, group, or other."
376 msgstr ""
377
378 #. type: SH
379 #: build/C/man2/access.2:88 build/C/man2/alarm.2:56 build/C/man2/brk.2:94 build/C/man2/chdir.2:70 build/C/man2/chmod.2:152 build/C/man2/chown.2:119 build/C/man2/chroot.2:90 build/C/man2/close.2:64 build/C/man3/confstr.3:92 build/C/man3/crypt.3:119 build/C/man3/daemon.3:70 build/C/man3/des_crypt.3:102 build/C/man2/dup.2:119 build/C/man3/encrypt.3:107 build/C/man3/euidaccess.3:59 build/C/man3/exec.3:181 build/C/man2/execve.2:340 build/C/man2/exit_group.2:37 build/C/man2/fcntl.2:1041 build/C/man3/fexecve.3:67 build/C/man2/flock.2:110 build/C/man2/fork.2:160 build/C/man3/fpathconf.3:143 build/C/man2/fsync.2:105 build/C/man2/get_thread_area.2:24 build/C/man3/getcwd.3:154 build/C/man2/getdomainname.2:75 build/C/man2/getdtablesize.2:61 build/C/man3/gethostid.3:71 build/C/man2/gethostname.2:89 build/C/man3/getlogin.3:95 build/C/man3/getopt.3:272 build/C/man2/gettid.2:47 build/C/man3/getusershell.3:75 build/C/man2/idle.2:52 build/C/man2/ioctl.2:81 build/C/man2/ioctl_list.2:103 build/C/man2/ioperm.2:73 build/C/man3/lockf.3:110 build/C/man2/mincore.2:94 build/C/man2/mkdir.2:47 build/C/man2/nice.2:56 build/C/man2/pread.2:77 build/C/man2/set_thread_area.2:40 build/C/man2/setup.2:53 build/C/man3/sleep.3:38 build/C/man3/swab.3:52 build/C/man2/swapon.2:108 build/C/man2/syscall.2:57 build/C/man3/sysconf.3:309 build/C/man2/sysctl.2:69 build/C/man2/sysinfo.2:74 build/C/man3/tcgetpgrp.3:59 build/C/man2/truncate.2:108 build/C/man3/ualarm.3:80 build/C/man2/umask.2:90 build/C/man2/uname.2:61 build/C/man2/uselib.2:48 build/C/man3/usleep.3:73 build/C/man2/vhangup.2:49
380 #, no-wrap
381 msgid "RETURN VALUE"
382 msgstr ""
383
384 #. type: Plain text
385 #: build/C/man2/access.2:96 build/C/man3/euidaccess.3:67
386 msgid ""
387 "On success (all requested permissions granted), zero is returned.  On error "
388 "(at least one bit in I<mode> asked for a permission that is denied, or some "
389 "other error occurred), -1 is returned, and I<errno> is set appropriately."
390 msgstr ""
391
392 #. type: SH
393 #: build/C/man2/access.2:96 build/C/man2/chdir.2:75 build/C/man2/chmod.2:157 build/C/man2/chown.2:124 build/C/man2/chroot.2:95 build/C/man2/close.2:70 build/C/man3/confstr.3:119 build/C/man3/crypt.3:122 build/C/man2/dup.2:125 build/C/man3/encrypt.3:109 build/C/man3/euidaccess.3:67 build/C/man3/exec.3:188 build/C/man2/execve.2:346 build/C/man2/fcntl.2:1074 build/C/man3/fexecve.3:74 build/C/man2/flock.2:115 build/C/man2/fork.2:167 build/C/man2/fsync.2:110 build/C/man2/get_thread_area.2:30 build/C/man3/getcwd.3:170 build/C/man2/getdomainname.2:80 build/C/man2/getdtablesize.2:63 build/C/man3/gethostid.3:81 build/C/man2/gethostname.2:94 build/C/man3/getlogin.3:101 build/C/man2/gettid.2:49 build/C/man2/idle.2:55 build/C/man2/ioctl.2:90 build/C/man2/ioperm.2:78 build/C/man3/lockf.3:115 build/C/man2/mincore.2:101 build/C/man2/mkdir.2:52 build/C/man2/nice.2:61 build/C/man2/pread.2:87 build/C/man2/set_thread_area.2:45 build/C/man2/setup.2:56 build/C/man2/swapon.2:113 build/C/man2/sysctl.2:76 build/C/man2/sysinfo.2:79 build/C/man3/tcgetpgrp.3:81 build/C/man2/truncate.2:113 build/C/man3/ualarm.3:83 build/C/man2/uname.2:66 build/C/man2/uselib.2:53 build/C/man3/usleep.3:75 build/C/man2/vhangup.2:54
394 #, no-wrap
395 msgid "ERRORS"
396 msgstr ""
397
398 #. type: Plain text
399 #: build/C/man2/access.2:99
400 msgid "B<access>()  shall fail if:"
401 msgstr ""
402
403 #. type: TP
404 #: build/C/man2/access.2:99 build/C/man2/chdir.2:81 build/C/man2/chdir.2:117 build/C/man2/chmod.2:162 build/C/man2/chown.2:129 build/C/man2/chroot.2:98 build/C/man2/execve.2:354 build/C/man2/execve.2:361 build/C/man2/execve.2:364 build/C/man2/execve.2:367 build/C/man3/getcwd.3:171 build/C/man3/gethostid.3:84 build/C/man2/mkdir.2:53 build/C/man2/truncate.2:116 build/C/man2/uselib.2:59
405 #, no-wrap
406 msgid "B<EACCES>"
407 msgstr ""
408
409 #. type: Plain text
410 #: build/C/man2/access.2:106
411 msgid ""
412 "The requested access would be denied to the file, or search permission is "
413 "denied for one of the directories in the path prefix of I<pathname>.  (See "
414 "also B<path_resolution>(7).)"
415 msgstr ""
416
417 #. type: TP
418 #: build/C/man2/access.2:106 build/C/man2/chdir.2:94 build/C/man2/chmod.2:174 build/C/man2/chown.2:138 build/C/man2/chroot.2:112 build/C/man2/execve.2:388 build/C/man2/mkdir.2:71 build/C/man2/truncate.2:149
419 #, no-wrap
420 msgid "B<ELOOP>"
421 msgstr ""
422
423 #. type: Plain text
424 #: build/C/man2/access.2:110 build/C/man2/mkdir.2:75
425 msgid "Too many symbolic links were encountered in resolving I<pathname>."
426 msgstr ""
427
428 #. type: TP
429 #: build/C/man2/access.2:110 build/C/man2/chdir.2:98 build/C/man2/chmod.2:178 build/C/man2/chown.2:142 build/C/man2/chroot.2:116 build/C/man2/execve.2:396 build/C/man2/gethostname.2:109 build/C/man2/mkdir.2:79 build/C/man2/truncate.2:152
430 #, no-wrap
431 msgid "B<ENAMETOOLONG>"
432 msgstr ""
433
434 #. type: Plain text
435 #: build/C/man2/access.2:114
436 msgid "I<pathname> is too long."
437 msgstr ""
438
439 #. type: TP
440 #: build/C/man2/access.2:114 build/C/man2/chdir.2:102 build/C/man2/chmod.2:182 build/C/man2/chown.2:146 build/C/man2/chown.2:172 build/C/man2/chroot.2:120 build/C/man2/execve.2:403 build/C/man3/getcwd.3:196 build/C/man3/getlogin.3:120 build/C/man2/mkdir.2:82 build/C/man2/swapon.2:136 build/C/man2/truncate.2:156
441 #, no-wrap
442 msgid "B<ENOENT>"
443 msgstr ""
444
445 #. type: Plain text
446 #: build/C/man2/access.2:119
447 msgid "A component of I<pathname> does not exist or is a dangling symbolic link."
448 msgstr ""
449
450 #. type: TP
451 #: build/C/man2/access.2:119 build/C/man2/chdir.2:108 build/C/man2/chmod.2:188 build/C/man2/chown.2:152 build/C/man2/chroot.2:126 build/C/man2/execve.2:417 build/C/man2/mkdir.2:99 build/C/man2/sysctl.2:83 build/C/man2/truncate.2:159
452 #, no-wrap
453 msgid "B<ENOTDIR>"
454 msgstr ""
455
456 #. type: Plain text
457 #: build/C/man2/access.2:124 build/C/man2/mkdir.2:104
458 msgid "A component used as a directory in I<pathname> is not, in fact, a directory."
459 msgstr ""
460
461 #. type: TP
462 #: build/C/man2/access.2:124 build/C/man2/chmod.2:197 build/C/man2/chmod.2:215 build/C/man2/chown.2:159 build/C/man2/chown.2:178 build/C/man2/mkdir.2:109 build/C/man2/truncate.2:168
463 #, no-wrap
464 msgid "B<EROFS>"
465 msgstr ""
466
467 #. type: Plain text
468 #: build/C/man2/access.2:127
469 msgid "Write permission was requested for a file on a read-only file system."
470 msgstr ""
471
472 #. type: Plain text
473 #: build/C/man2/access.2:130
474 msgid "B<access>()  may fail if:"
475 msgstr ""
476
477 #. type: TP
478 #: build/C/man2/access.2:130 build/C/man2/chdir.2:87 build/C/man2/chmod.2:167 build/C/man2/chown.2:134 build/C/man2/chroot.2:105 build/C/man2/execve.2:371 build/C/man2/fcntl.2:1096 build/C/man2/get_thread_area.2:31 build/C/man3/getcwd.3:174 build/C/man2/getdomainname.2:83 build/C/man2/gethostname.2:95 build/C/man2/ioctl.2:95 build/C/man2/mincore.2:104 build/C/man2/mkdir.2:68 build/C/man2/set_thread_area.2:49 build/C/man2/sysctl.2:77 build/C/man2/sysinfo.2:80 build/C/man2/truncate.2:122 build/C/man2/uname.2:67
479 #, no-wrap
480 msgid "B<EFAULT>"
481 msgstr ""
482
483 #. type: Plain text
484 #: build/C/man2/access.2:134 build/C/man2/mkdir.2:71
485 msgid "I<pathname> points outside your accessible address space."
486 msgstr ""
487
488 #. type: TP
489 #: build/C/man2/access.2:134 build/C/man3/confstr.3:120 build/C/man2/dup.2:150 build/C/man2/execve.2:375 build/C/man2/fcntl.2:1112 build/C/man3/fexecve.3:78 build/C/man2/flock.2:125 build/C/man2/get_thread_area.2:34 build/C/man3/getcwd.3:178 build/C/man2/getdomainname.2:87 build/C/man2/getdomainname.2:99 build/C/man2/gethostname.2:99 build/C/man2/ioctl.2:99 build/C/man2/ioperm.2:79 build/C/man3/lockf.3:141 build/C/man2/mincore.2:108 build/C/man2/set_thread_area.2:46 build/C/man2/swapon.2:121 build/C/man3/tcgetpgrp.3:86 build/C/man2/truncate.2:138 build/C/man2/truncate.2:189 build/C/man3/ualarm.3:87 build/C/man3/usleep.3:80
490 #, no-wrap
491 msgid "B<EINVAL>"
492 msgstr ""
493
494 #. type: Plain text
495 #: build/C/man2/access.2:138
496 msgid "I<mode> was incorrectly specified."
497 msgstr ""
498
499 #. type: TP
500 #: build/C/man2/access.2:138 build/C/man2/chdir.2:91 build/C/man2/chmod.2:171 build/C/man2/chmod.2:209 build/C/man2/chown.2:169 build/C/man2/chroot.2:109 build/C/man2/close.2:81 build/C/man2/execve.2:379 build/C/man2/fsync.2:115 build/C/man2/ioperm.2:85 build/C/man2/truncate.2:143
501 #, no-wrap
502 msgid "B<EIO>"
503 msgstr ""
504
505 #. type: Plain text
506 #: build/C/man2/access.2:141 build/C/man2/chdir.2:94 build/C/man2/chmod.2:174 build/C/man2/chroot.2:112 build/C/man2/close.2:84 build/C/man2/execve.2:382
507 msgid "An I/O error occurred."
508 msgstr ""
509
510 #. type: TP
511 #: build/C/man2/access.2:141 build/C/man2/chdir.2:105 build/C/man2/chmod.2:185 build/C/man2/chown.2:149 build/C/man2/chroot.2:123 build/C/man2/execve.2:414 build/C/man2/fork.2:183 build/C/man3/getlogin.3:123 build/C/man2/ioperm.2:88 build/C/man2/mincore.2:112 build/C/man2/mincore.2:124 build/C/man2/mkdir.2:87 build/C/man2/swapon.2:141
512 #, no-wrap
513 msgid "B<ENOMEM>"
514 msgstr ""
515
516 #. type: Plain text
517 #: build/C/man2/access.2:144 build/C/man2/chdir.2:108 build/C/man2/chmod.2:188 build/C/man2/chown.2:152 build/C/man2/chroot.2:126 build/C/man2/execve.2:417 build/C/man2/mkdir.2:90
518 msgid "Insufficient kernel memory was available."
519 msgstr ""
520
521 #. type: TP
522 #: build/C/man2/access.2:144 build/C/man2/execve.2:432 build/C/man2/truncate.2:171
523 #, no-wrap
524 msgid "B<ETXTBSY>"
525 msgstr ""
526
527 #. type: Plain text
528 #: build/C/man2/access.2:148
529 msgid "Write access was requested to an executable which is being executed."
530 msgstr ""
531
532 #. type: Plain text
533 #: build/C/man2/access.2:150 build/C/man2/close.2:87 build/C/man2/fork.2:189 build/C/man3/swab.3:58 build/C/man2/umask.2:95
534 msgid "SVr4, 4.3BSD, POSIX.1-2001."
535 msgstr ""
536
537 #. type: Plain text
538 #: build/C/man2/access.2:165
539 msgid ""
540 "B<Warning>: Using B<access>()  to check if a user is authorized to, for "
541 "example, open a file before actually doing so using B<open>(2)  creates a "
542 "security hole, because the user might exploit the short time interval "
543 "between checking and opening the file to manipulate it.  B<For this reason, "
544 "the use of this system call should be avoided>.  (In the example just "
545 "described, a safer alternative would be to temporarily switch the process's "
546 "effective user ID to the real ID and then call B<open>(2).)"
547 msgstr ""
548
549 #. type: Plain text
550 #: build/C/man2/access.2:172
551 msgid ""
552 "B<access>()  always dereferences symbolic links.  If you need to check the "
553 "permissions on a symbolic link, use B<faccessat(2)> with the flag "
554 "B<AT_SYMLINK_NOFOLLOW>."
555 msgstr ""
556
557 #. type: Plain text
558 #: build/C/man2/access.2:179
559 msgid ""
560 "B<access>()  returns an error if any of the access types in I<mode> is "
561 "denied, even if some of the other access types in I<mode> are permitted."
562 msgstr ""
563
564 #.  HPU-UX 11 and Tru64 5.1 do this.
565 #. type: Plain text
566 #: build/C/man2/access.2:186
567 msgid ""
568 "If the calling process has appropriate privileges (i.e., is superuser), "
569 "POSIX.1-2001 permits an implementation to indicate success for an B<X_OK> "
570 "check even if none of the execute file permission bits are set.  Linux does "
571 "not do this."
572 msgstr ""
573
574 #. type: Plain text
575 #: build/C/man2/access.2:194
576 msgid ""
577 "A file is only accessible if the permissions on each of the directories in "
578 "the path prefix of I<pathname> grant search (i.e., execute) access.  If any "
579 "directory is inaccessible, then the B<access>()  call will fail, regardless "
580 "of the permissions on the file itself."
581 msgstr ""
582
583 #. type: Plain text
584 #: build/C/man2/access.2:202
585 msgid ""
586 "Only access bits are checked, not the file type or contents.  Therefore, if "
587 "a directory is found to be writable, it probably means that files can be "
588 "created in the directory, and not that the directory can be written as a "
589 "file.  Similarly, a DOS file may be found to be \"executable,\" but the "
590 "B<execve>(2)  call will still fail."
591 msgstr ""
592
593 #. type: Plain text
594 #: build/C/man2/access.2:207
595 msgid ""
596 "B<access>()  may not work correctly on NFS file systems with UID mapping "
597 "enabled, because UID mapping is done on the server and hidden from the "
598 "client, which checks permissions."
599 msgstr ""
600
601 #. type: SH
602 #: build/C/man2/access.2:207 build/C/man7/environ.7:189 build/C/man2/fcntl.2:1229 build/C/man3/gethostid.3:122 build/C/man3/getlogin.3:161 build/C/man3/getopt.3:367 build/C/man2/mincore.2:144 build/C/man3/sleep.3:44 build/C/man3/sysconf.3:324 build/C/man2/sysctl.2:121 build/C/man2/truncate.2:241 build/C/man2/vfork.2:189
603 #, no-wrap
604 msgid "BUGS"
605 msgstr ""
606
607 #.  This behavior appears to have been an implementation accident.
608 #. type: Plain text
609 #: build/C/man2/access.2:230
610 msgid ""
611 "In kernel 2.4 (and earlier) there is some strangeness in the handling of "
612 "B<X_OK> tests for superuser.  If all categories of execute permission are "
613 "disabled for a nondirectory file, then the only B<access>()  test that "
614 "returns -1 is when I<mode> is specified as just B<X_OK>; if B<R_OK> or "
615 "B<W_OK> is also specified in I<mode>, then B<access>()  returns 0 for such "
616 "files.  Early 2.6 kernels (up to and including 2.6.3)  also behaved in the "
617 "same way as kernel 2.4."
618 msgstr ""
619
620 #. type: Plain text
621 #: build/C/man2/access.2:241
622 msgid ""
623 "In kernels before 2.6.20, B<access>()  ignored the effect of the "
624 "B<MS_NOEXEC> flag if it was used to B<mount>(2)  the underlying file "
625 "system.  Since kernel 2.6.20, B<access>()  honors this flag."
626 msgstr ""
627
628 #. type: Plain text
629 #: build/C/man2/access.2:252
630 msgid ""
631 "B<chmod>(2), B<chown>(2), B<faccessat>(2), B<open>(2), B<setgid>(2), "
632 "B<setuid>(2), B<stat>(2), B<euidaccess>(3), B<credentials>(7), "
633 "B<path_resolution>(7)"
634 msgstr ""
635
636 #. type: TH
637 #: build/C/man2/alarm.2:30
638 #, no-wrap
639 msgid "ALARM"
640 msgstr ""
641
642 #. type: TH
643 #: build/C/man2/alarm.2:30
644 #, no-wrap
645 msgid "2008-06-12"
646 msgstr ""
647
648 #. type: Plain text
649 #: build/C/man2/alarm.2:33
650 msgid "alarm - set an alarm clock for delivery of a signal"
651 msgstr ""
652
653 #. type: Plain text
654 #: build/C/man2/alarm.2:38
655 #, no-wrap
656 msgid "B<unsigned int alarm(unsigned int >I<seconds>B<);>\n"
657 msgstr ""
658
659 #. type: Plain text
660 #: build/C/man2/alarm.2:46
661 msgid ""
662 "B<alarm>()  arranges for a B<SIGALRM> signal to be delivered to the calling "
663 "process in I<seconds> seconds."
664 msgstr ""
665
666 #. type: Plain text
667 #: build/C/man2/alarm.2:52
668 msgid "If I<seconds> is zero, no new B<alarm>()  is scheduled."
669 msgstr ""
670
671 #. type: Plain text
672 #: build/C/man2/alarm.2:56
673 msgid "In any event any previously set B<alarm>()  is canceled."
674 msgstr ""
675
676 #. type: Plain text
677 #: build/C/man2/alarm.2:61
678 msgid ""
679 "B<alarm>()  returns the number of seconds remaining until any previously "
680 "scheduled alarm was due to be delivered, or zero if there was no previously "
681 "scheduled alarm."
682 msgstr ""
683
684 #. type: Plain text
685 #: build/C/man2/alarm.2:63
686 msgid "SVr4, POSIX.1-2001, 4.3BSD."
687 msgstr ""
688
689 #. type: Plain text
690 #: build/C/man2/alarm.2:69
691 msgid ""
692 "B<alarm>()  and B<setitimer>(2)  share the same timer; calls to one will "
693 "interfere with use of the other."
694 msgstr ""
695
696 #. type: Plain text
697 #: build/C/man2/alarm.2:78
698 msgid ""
699 "B<sleep>(3)  may be implemented using B<SIGALRM>; mixing calls to B<alarm>()  "
700 "and B<sleep>(3)  is a bad idea."
701 msgstr ""
702
703 #. type: Plain text
704 #: build/C/man2/alarm.2:81
705 msgid ""
706 "Scheduling delays can, as ever, cause the execution of the process to be "
707 "delayed by an arbitrary amount of time."
708 msgstr ""
709
710 #. type: Plain text
711 #: build/C/man2/alarm.2:90
712 msgid ""
713 "B<gettimeofday>(2), B<pause>(2), B<select>(2), B<setitimer>(2), "
714 "B<sigaction>(2), B<signal>(2), B<sleep>(3), B<time>(7)"
715 msgstr ""
716
717 #. type: TH
718 #: build/C/man2/brk.2:30
719 #, no-wrap
720 msgid "BRK"
721 msgstr ""
722
723 #. type: TH
724 #: build/C/man2/brk.2:30 build/C/man2/chroot.2:33 build/C/man3/getcwd.3:30 build/C/man2/getdtablesize.2:27 build/C/man3/gethostid.3:29 build/C/man3/ualarm.3:23 build/C/man2/vfork.2:26
725 #, no-wrap
726 msgid "2010-09-20"
727 msgstr ""
728
729 #. type: Plain text
730 #: build/C/man2/brk.2:33
731 msgid "brk, sbrk - change data segment size"
732 msgstr ""
733
734 #. type: Plain text
735 #: build/C/man2/brk.2:35 build/C/man2/chdir.2:38 build/C/man2/chown.2:43 build/C/man2/chroot.2:38 build/C/man3/daemon.3:39 build/C/man3/encrypt.3:31 build/C/man3/exec.3:44 build/C/man2/execve.2:42 build/C/man2/fork.2:44 build/C/man2/fsync.2:42 build/C/man2/getdomainname.2:34 build/C/man2/getdtablesize.2:32 build/C/man3/gethostid.3:34 build/C/man2/gethostname.2:37 build/C/man3/getlogin.3:33 build/C/man2/getpagesize.2:28 build/C/man2/idle.2:37 build/C/man3/lockf.3:27 build/C/man2/mincore.2:39 build/C/man2/nice.2:36 build/C/man2/pread.2:28 build/C/man2/setup.2:39 build/C/man2/swapon.2:42 build/C/man3/tcgetpgrp.3:28 build/C/man2/truncate.2:46 build/C/man2/uselib.2:36 build/C/man2/vfork.2:33 build/C/man2/vhangup.2:32
736 msgid "B<#include E<lt>unistd.hE<gt>>"
737 msgstr ""
738
739 #. type: Plain text
740 #: build/C/man2/brk.2:37
741 msgid "B<int brk(void *>I<addr>B<);>"
742 msgstr ""
743
744 #. type: Plain text
745 #: build/C/man2/brk.2:39
746 msgid "B<void *sbrk(intptr_t >I<increment>B<);>"
747 msgstr ""
748
749 #. type: Plain text
750 #: build/C/man2/brk.2:43 build/C/man2/chdir.2:46 build/C/man2/chmod.2:44 build/C/man2/chown.2:53 build/C/man2/chroot.2:44 build/C/man3/confstr.3:42 build/C/man3/daemon.3:45 build/C/man3/exec.3:66 build/C/man3/fexecve.3:38 build/C/man2/fsync.2:50 build/C/man3/getcwd.3:47 build/C/man2/getdomainname.2:42 build/C/man2/getdtablesize.2:38 build/C/man3/gethostid.3:42 build/C/man2/gethostname.2:45 build/C/man3/getlogin.3:45 build/C/man3/getopt.3:67 build/C/man2/getpagesize.2:34 build/C/man3/getusershell.3:45 build/C/man3/lockf.3:33 build/C/man2/mincore.2:47 build/C/man2/nice.2:42 build/C/man2/pread.2:38 build/C/man2/truncate.2:56 build/C/man3/ualarm.3:36 build/C/man3/usleep.3:44 build/C/man2/vfork.2:39 build/C/man2/vhangup.2:38
751 msgid "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
752 msgstr ""
753
754 #. type: Plain text
755 #: build/C/man2/brk.2:47
756 msgid "B<brk>(), B<sbrk>():"
757 msgstr ""
758
759 #. type: TP
760 #: build/C/man2/brk.2:50 build/C/man3/getcwd.3:58 build/C/man2/getdtablesize.2:44 build/C/man2/getpagesize.2:40 build/C/man3/ualarm.3:42 build/C/man3/usleep.3:50 build/C/man2/vfork.2:45
761 #, no-wrap
762 msgid "Since glibc 2.12:"
763 msgstr ""
764
765 #. type: Plain text
766 #: build/C/man2/brk.2:57
767 #, no-wrap
768 msgid ""
769 "_BSD_SOURCE || _SVID_SOURCE ||\n"
770 "    (_XOPEN_SOURCE\\ E<gt>=\\ 500 ||\n"
771 "        _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED) &&\n"
772 "    !(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600)\n"
773 msgstr ""
774
775 #. type: Plain text
776 #: build/C/man2/brk.2:62
777 msgid ""
778 "Before glibc 2.12: _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ "
779 "500 || _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
780 msgstr ""
781
782 #. type: Plain text
783 #: build/C/man2/brk.2:77
784 msgid ""
785 "B<brk>()  and B<sbrk>()  change the location of the I<program break>, which "
786 "defines the end of the process's data segment (i.e., the program break is "
787 "the first location after the end of the uninitialized data segment).  "
788 "Increasing the program break has the effect of allocating memory to the "
789 "process; decreasing the break deallocates memory."
790 msgstr ""
791
792 #. type: Plain text
793 #: build/C/man2/brk.2:84
794 msgid ""
795 "B<brk>()  sets the end of the data segment to the value specified by "
796 "I<addr>, when that value is reasonable, the system has enough memory, and "
797 "the process does not exceed its maximum data size (see B<setrlimit>(2))."
798 msgstr ""
799
800 #. type: Plain text
801 #: build/C/man2/brk.2:94
802 msgid ""
803 "B<sbrk>()  increments the program's data space by I<increment> bytes.  "
804 "Calling B<sbrk>()  with an I<increment> of 0 can be used to find the current "
805 "location of the program break."
806 msgstr ""
807
808 #. type: Plain text
809 #: build/C/man2/brk.2:103
810 msgid ""
811 "On success, B<brk>()  returns zero.  On error, -1 is returned, and I<errno> "
812 "is set to B<ENOMEM>.  (But see I<Linux Notes> below.)"
813 msgstr ""
814
815 #. type: Plain text
816 #: build/C/man2/brk.2:115
817 msgid ""
818 "On success, B<sbrk>()  returns the previous program break.  (If the break "
819 "was increased, then this value is a pointer to the start of the newly "
820 "allocated memory).  On error, I<(void\\ *)\\ -1> is returned, and I<errno> "
821 "is set to B<ENOMEM>."
822 msgstr ""
823
824 #
825 #.  .BR brk ()
826 #.  and
827 #.  .BR sbrk ()
828 #.  are not defined in the C Standard and are deliberately excluded from the
829 #.  POSIX.1-1990 standard (see paragraphs B.1.1.1.3 and B.8.3.3).
830 #. type: Plain text
831 #: build/C/man2/brk.2:123
832 msgid "4.3BSD; SUSv1, marked LEGACY in SUSv2, removed in POSIX.1-2001."
833 msgstr ""
834
835 #. type: Plain text
836 #: build/C/man2/brk.2:132
837 msgid ""
838 "Avoid using B<brk>()  and B<sbrk>(): the B<malloc>(3)  memory allocation "
839 "package is the portable and comfortable way of allocating memory."
840 msgstr ""
841
842 #.  One sees
843 #.  \fIint\fP (e.g., XPGv4, DU 4.0, HP-UX 11, FreeBSD 4.0, OpenBSD 3.2),
844 #.  \fIssize_t\fP (OSF1 2.0, Irix 5.3, 6.5),
845 #.  \fIptrdiff_t\fP (libc4, libc5, ulibc, glibc 2.0, 2.1),
846 #.  \fIintptr_t\fP (e.g., XPGv5, AIX, SunOS 5.8, 5.9, FreeBSD 4.7, NetBSD 1.6,
847 #.  Tru64 5.1, glibc2.2).
848 #. type: Plain text
849 #: build/C/man2/brk.2:142
850 msgid ""
851 "Various systems use various types for the argument of B<sbrk>().  Common are "
852 "I<int>, I<ssize_t>, I<ptrdiff_t>, I<intptr_t>."
853 msgstr ""
854
855 #. type: SS
856 #: build/C/man2/brk.2:142 build/C/man2/vfork.2:162
857 #, no-wrap
858 msgid "Linux Notes"
859 msgstr ""
860
861 #. type: Plain text
862 #: build/C/man2/brk.2:158
863 msgid ""
864 "The return value described above for B<brk>()  is the behavior provided by "
865 "the glibc wrapper function for the Linux B<brk>()  system call.  (On most "
866 "other implementations, the return value from B<brk>()  is the same; this "
867 "return value was also specified in SUSv2.)  However, the actual Linux system "
868 "call returns the new program break on success.  On failure, the system call "
869 "returns the current break.  The glibc wrapper function does some work (i.e., "
870 "checks whether the new break is less than I<addr>)  to provide the 0 and -1 "
871 "return values described above."
872 msgstr ""
873
874 #. type: Plain text
875 #: build/C/man2/brk.2:165
876 msgid ""
877 "On Linux, B<sbrk>()  is implemented as a library function that uses the "
878 "B<brk>()  system call, and does some internal bookkeeping so that it can "
879 "return the old break value."
880 msgstr ""
881
882 #. type: Plain text
883 #: build/C/man2/brk.2:170
884 msgid "B<execve>(2), B<getrlimit>(2), B<end>(3), B<malloc>(3)"
885 msgstr ""
886
887 #. type: TH
888 #: build/C/man2/chdir.2:33
889 #, no-wrap
890 msgid "CHDIR"
891 msgstr ""
892
893 #. type: TH
894 #: build/C/man2/chdir.2:33
895 #, no-wrap
896 msgid "2010-11-25"
897 msgstr ""
898
899 #. type: Plain text
900 #: build/C/man2/chdir.2:36
901 msgid "chdir, fchdir - change working directory"
902 msgstr ""
903
904 #. type: Plain text
905 #: build/C/man2/chdir.2:40
906 msgid "B<int chdir(const char *>I<path>B<);>"
907 msgstr ""
908
909 #. type: Plain text
910 #: build/C/man2/chdir.2:42
911 msgid "B<int fchdir(int >I<fd>B<);>"
912 msgstr ""
913
914 #. type: Plain text
915 #: build/C/man2/chdir.2:49
916 msgid "B<fchdir>():"
917 msgstr ""
918
919 #. type: Plain text
920 #: build/C/man2/chdir.2:54 build/C/man2/chmod.2:53 build/C/man2/chown.2:62 build/C/man3/gethostid.3:50 build/C/man2/truncate.2:64 build/C/man2/truncate.2:72
921 msgid ""
922 "_BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || _XOPEN_SOURCE\\ &&\\ "
923 "_XOPEN_SOURCE_EXTENDED"
924 msgstr ""
925
926 #. type: Plain text
927 #: build/C/man2/chdir.2:56 build/C/man2/chmod.2:55 build/C/man2/chown.2:64 build/C/man2/pread.2:48 build/C/man2/truncate.2:66
928 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
929 msgstr ""
930
931 #. type: Plain text
932 #: build/C/man2/chdir.2:64
933 msgid ""
934 "B<chdir>()  changes the current working directory of the calling process to "
935 "the directory specified in I<path>."
936 msgstr ""
937
938 #. type: Plain text
939 #: build/C/man2/chdir.2:70
940 msgid ""
941 "B<fchdir>()  is identical to B<chdir>(); the only difference is that the "
942 "directory is given as an open file descriptor."
943 msgstr ""
944
945 #. type: Plain text
946 #: build/C/man2/chdir.2:75 build/C/man2/chmod.2:157 build/C/man2/chown.2:124 build/C/man2/chroot.2:95 build/C/man2/flock.2:115 build/C/man2/getdomainname.2:80 build/C/man2/gethostname.2:94 build/C/man2/ioperm.2:78 build/C/man3/lockf.3:115 build/C/man2/swapon.2:113 build/C/man2/sysinfo.2:79 build/C/man2/truncate.2:113 build/C/man2/uname.2:66 build/C/man2/uselib.2:53 build/C/man2/vhangup.2:54
947 msgid ""
948 "On success, zero is returned.  On error, -1 is returned, and I<errno> is set "
949 "appropriately."
950 msgstr ""
951
952 #. type: Plain text
953 #: build/C/man2/chdir.2:81
954 msgid ""
955 "Depending on the file system, other errors can be returned.  The more "
956 "general errors for B<chdir>()  are listed below:"
957 msgstr ""
958
959 #. type: Plain text
960 #: build/C/man2/chdir.2:87
961 msgid ""
962 "Search permission is denied for one of the components of I<path>.  (See also "
963 "B<path_resolution>(7).)"
964 msgstr ""
965
966 #. type: Plain text
967 #: build/C/man2/chdir.2:91 build/C/man2/chmod.2:171 build/C/man2/chown.2:138 build/C/man2/chroot.2:109
968 msgid "I<path> points outside your accessible address space."
969 msgstr ""
970
971 #. type: Plain text
972 #: build/C/man2/chdir.2:98 build/C/man2/chmod.2:178 build/C/man2/chown.2:142 build/C/man2/chroot.2:116
973 msgid "Too many symbolic links were encountered in resolving I<path>."
974 msgstr ""
975
976 #. type: Plain text
977 #: build/C/man2/chdir.2:102 build/C/man2/chmod.2:182 build/C/man2/chown.2:146 build/C/man2/chroot.2:120
978 msgid "I<path> is too long."
979 msgstr ""
980
981 #. type: Plain text
982 #: build/C/man2/chdir.2:105 build/C/man2/chmod.2:185 build/C/man2/chown.2:149 build/C/man2/chroot.2:123
983 msgid "The file does not exist."
984 msgstr ""
985
986 #. type: Plain text
987 #: build/C/man2/chdir.2:113 build/C/man2/chroot.2:131
988 msgid "A component of I<path> is not a directory."
989 msgstr ""
990
991 #. type: Plain text
992 #: build/C/man2/chdir.2:117
993 msgid "The general errors for B<fchdir>()  are listed below:"
994 msgstr ""
995
996 #. type: Plain text
997 #: build/C/man2/chdir.2:121
998 msgid "Search permission was denied on the directory open on I<fd>."
999 msgstr ""
1000
1001 #. type: TP
1002 #: build/C/man2/chdir.2:121 build/C/man2/chmod.2:204 build/C/man2/chown.2:166 build/C/man2/close.2:71 build/C/man2/dup.2:126 build/C/man2/fcntl.2:1082 build/C/man2/flock.2:116 build/C/man2/fsync.2:111 build/C/man2/ioctl.2:91 build/C/man3/lockf.3:124 build/C/man3/tcgetpgrp.3:82 build/C/man2/truncate.2:181
1003 #, no-wrap
1004 msgid "B<EBADF>"
1005 msgstr ""
1006
1007 #. type: Plain text
1008 #: build/C/man2/chdir.2:125 build/C/man3/tcgetpgrp.3:86
1009 msgid "I<fd> is not a valid file descriptor."
1010 msgstr ""
1011
1012 #. type: Plain text
1013 #: build/C/man2/chdir.2:127
1014 msgid "SVr4, 4.4BSD, POSIX.1-2001."
1015 msgstr ""
1016
1017 #. type: Plain text
1018 #: build/C/man2/chdir.2:130
1019 msgid ""
1020 "The current working directory is the starting point for interpreting "
1021 "relative pathnames (those not starting with \\(aq/\\(aq)."
1022 msgstr ""
1023
1024 #. type: Plain text
1025 #: build/C/man2/chdir.2:136
1026 msgid ""
1027 "A child process created via B<fork>(2)  inherits its parent's current "
1028 "working directory.  The current working directory is left unchanged by "
1029 "B<execve>(2)."
1030 msgstr ""
1031
1032 #. type: Plain text
1033 #: build/C/man2/chdir.2:140
1034 msgid "B<chroot>(2), B<getcwd>(3), B<path_resolution>(7)"
1035 msgstr ""
1036
1037 #. type: TH
1038 #: build/C/man2/chmod.2:31
1039 #, no-wrap
1040 msgid "CHMOD"
1041 msgstr ""
1042
1043 #. type: TH
1044 #: build/C/man2/chmod.2:31 build/C/man2/gethostname.2:32
1045 #, no-wrap
1046 msgid "2010-09-26"
1047 msgstr ""
1048
1049 #. type: Plain text
1050 #: build/C/man2/chmod.2:34
1051 msgid "chmod, fchmod - change permissions of a file"
1052 msgstr ""
1053
1054 #. type: Plain text
1055 #: build/C/man2/chmod.2:36 build/C/man3/getumask.3:35 build/C/man2/umask.2:41
1056 msgid "B<#include E<lt>sys/stat.hE<gt>>"
1057 msgstr ""
1058
1059 #. type: Plain text
1060 #: build/C/man2/chmod.2:38
1061 msgid "B<int chmod(const char *>I<path>B<, mode_t >I<mode>B<);>"
1062 msgstr ""
1063
1064 #. type: Plain text
1065 #: build/C/man2/chmod.2:40
1066 msgid "B<int fchmod(int >I<fd>B<, mode_t >I<mode>B<);>"
1067 msgstr ""
1068
1069 #. type: Plain text
1070 #: build/C/man2/chmod.2:49
1071 msgid "B<fchmod>():"
1072 msgstr ""
1073
1074 #. type: Plain text
1075 #: build/C/man2/chmod.2:60
1076 msgid ""
1077 "These system calls change the permissions of a file.  They differ only in "
1078 "how the file is specified:"
1079 msgstr ""
1080
1081 #. type: IP
1082 #: build/C/man2/chmod.2:60 build/C/man2/chmod.2:65 build/C/man2/chown.2:70 build/C/man2/chown.2:75 build/C/man2/chown.2:79 build/C/man2/chown.2:233 build/C/man2/chown.2:238 build/C/man2/chown.2:244 build/C/man2/dup.2:61 build/C/man2/dup.2:67 build/C/man2/dup.2:100 build/C/man2/dup.2:109 build/C/man2/execve.2:123 build/C/man2/execve.2:127 build/C/man2/execve.2:130 build/C/man2/execve.2:133 build/C/man2/execve.2:136 build/C/man2/execve.2:139 build/C/man2/execve.2:142 build/C/man2/execve.2:145 build/C/man2/execve.2:148 build/C/man2/execve.2:151 build/C/man2/execve.2:155 build/C/man2/execve.2:159 build/C/man2/execve.2:168 build/C/man2/execve.2:175 build/C/man2/execve.2:180 build/C/man2/execve.2:187 build/C/man2/execve.2:194 build/C/man2/execve.2:198 build/C/man2/execve.2:201 build/C/man2/execve.2:209 build/C/man2/execve.2:213 build/C/man2/execve.2:218 build/C/man2/fork.2:52 build/C/man2/fork.2:56 build/C/man2/fork.2:58 build/C/man2/fork.2:62 build/C/man2/fork.2:68 build/C/man2/fork.2:71 build/C/man2/fork.2:74 build/C/man2/fork.2:77 build/C/man2/fork.2:82 build/C/man2/fork.2:94 build/C/man2/fork.2:101 build/C/man2/fork.2:107 build/C/man2/fork.2:113 build/C/man2/fork.2:120 build/C/man2/fork.2:129 build/C/man2/fork.2:143 build/C/man2/fork.2:152 build/C/man2/syscalls.2:85 build/C/man2/syscalls.2:88 build/C/man2/syscalls.2:94 build/C/man2/syscalls.2:110 build/C/man2/syscalls.2:116 build/C/man2/syscalls.2:122 build/C/man2/syscalls.2:128 build/C/man2/syscalls.2:135 build/C/man2/syscalls.2:595 build/C/man2/syscalls.2:633 build/C/man2/syscalls.2:675 build/C/man2/syscalls.2:696 build/C/man2/syscalls.2:707 build/C/man2/syscalls.2:714 build/C/man2/syscalls.2:725 build/C/man2/syscalls.2:737 build/C/man2/syscalls.2:758 build/C/man2/syscalls.2:766
1083 #, no-wrap
1084 msgid "*"
1085 msgstr ""
1086
1087 #. type: Plain text
1088 #: build/C/man2/chmod.2:65
1089 msgid ""
1090 "B<chmod>()  changes the permissions of the file specified whose pathname is "
1091 "given in I<path>, which is dereferenced if it is a symbolic link."
1092 msgstr ""
1093
1094 #. type: Plain text
1095 #: build/C/man2/chmod.2:69
1096 msgid ""
1097 "B<fchmod>()  changes the permissions of the file referred to by the open "
1098 "file descriptor I<fd>."
1099 msgstr ""
1100
1101 #. type: Plain text
1102 #: build/C/man2/chmod.2:74
1103 msgid ""
1104 "The new file permissions are specified in I<mode>, which is a bit mask "
1105 "created by ORing together zero or more of the following:"
1106 msgstr ""
1107
1108 #. type: TP
1109 #: build/C/man2/chmod.2:74
1110 #, no-wrap
1111 msgid "B<S_ISUID>  (04000)"
1112 msgstr ""
1113
1114 #. type: Plain text
1115 #: build/C/man2/chmod.2:78
1116 msgid "set-user-ID (set process effective user ID on B<execve>(2))"
1117 msgstr ""
1118
1119 #. type: TP
1120 #: build/C/man2/chmod.2:78
1121 #, no-wrap
1122 msgid "B<S_ISGID>  (02000)"
1123 msgstr ""
1124
1125 #. type: Plain text
1126 #: build/C/man2/chmod.2:88
1127 msgid ""
1128 "set-group-ID (set process effective group ID on B<execve>(2); mandatory "
1129 "locking, as described in B<fcntl>(2); take a new file's group from parent "
1130 "directory, as described in B<chown>(2)  and B<mkdir>(2))"
1131 msgstr ""
1132
1133 #. type: TP
1134 #: build/C/man2/chmod.2:88
1135 #, no-wrap
1136 msgid "B<S_ISVTX>  (01000)"
1137 msgstr ""
1138
1139 #. type: Plain text
1140 #: build/C/man2/chmod.2:92
1141 msgid "sticky bit (restricted deletion flag, as described in B<unlink>(2))"
1142 msgstr ""
1143
1144 #. type: TP
1145 #: build/C/man2/chmod.2:92
1146 #, no-wrap
1147 msgid "B<S_IRUSR>  (00400)"
1148 msgstr ""
1149
1150 #. type: Plain text
1151 #: build/C/man2/chmod.2:95
1152 msgid "read by owner"
1153 msgstr ""
1154
1155 #. type: TP
1156 #: build/C/man2/chmod.2:95
1157 #, no-wrap
1158 msgid "B<S_IWUSR>  (00200)"
1159 msgstr ""
1160
1161 #. type: Plain text
1162 #: build/C/man2/chmod.2:98
1163 msgid "write by owner"
1164 msgstr ""
1165
1166 #. type: TP
1167 #: build/C/man2/chmod.2:98
1168 #, no-wrap
1169 msgid "B<S_IXUSR>  (00100)"
1170 msgstr ""
1171
1172 #. type: Plain text
1173 #: build/C/man2/chmod.2:102
1174 msgid ""
1175 "execute/search by owner (\"search\" applies for directories, and means that "
1176 "entries within the directory can be accessed)"
1177 msgstr ""
1178
1179 #. type: TP
1180 #: build/C/man2/chmod.2:102
1181 #, no-wrap
1182 msgid "B<S_IRGRP>  (00040)"
1183 msgstr ""
1184
1185 #. type: Plain text
1186 #: build/C/man2/chmod.2:105
1187 msgid "read by group"
1188 msgstr ""
1189
1190 #. type: TP
1191 #: build/C/man2/chmod.2:105
1192 #, no-wrap
1193 msgid "B<S_IWGRP>  (00020)"
1194 msgstr ""
1195
1196 #. type: Plain text
1197 #: build/C/man2/chmod.2:108
1198 msgid "write by group"
1199 msgstr ""
1200
1201 #. type: TP
1202 #: build/C/man2/chmod.2:108
1203 #, no-wrap
1204 msgid "B<S_IXGRP>  (00010)"
1205 msgstr ""
1206
1207 #. type: Plain text
1208 #: build/C/man2/chmod.2:111
1209 msgid "execute/search by group"
1210 msgstr ""
1211
1212 #. type: TP
1213 #: build/C/man2/chmod.2:111
1214 #, no-wrap
1215 msgid "B<S_IROTH>  (00004)"
1216 msgstr ""
1217
1218 #. type: Plain text
1219 #: build/C/man2/chmod.2:114
1220 msgid "read by others"
1221 msgstr ""
1222
1223 #. type: TP
1224 #: build/C/man2/chmod.2:114
1225 #, no-wrap
1226 msgid "B<S_IWOTH>  (00002)"
1227 msgstr ""
1228
1229 #. type: Plain text
1230 #: build/C/man2/chmod.2:117
1231 msgid "write by others"
1232 msgstr ""
1233
1234 #. type: TP
1235 #: build/C/man2/chmod.2:117
1236 #, no-wrap
1237 msgid "B<S_IXOTH>  (00001)"
1238 msgstr ""
1239
1240 #. type: Plain text
1241 #: build/C/man2/chmod.2:120
1242 msgid "execute/search by others"
1243 msgstr ""
1244
1245 #. type: Plain text
1246 #: build/C/man2/chmod.2:125
1247 msgid ""
1248 "The effective UID of the calling process must match the owner of the file, "
1249 "or the process must be privileged (Linux: it must have the B<CAP_FOWNER> "
1250 "capability)."
1251 msgstr ""
1252
1253 #. type: Plain text
1254 #: build/C/man2/chmod.2:134
1255 msgid ""
1256 "If the calling process is not privileged (Linux: does not have the "
1257 "B<CAP_FSETID> capability), and the group of the file does not match the "
1258 "effective group ID of the process or one of its supplementary group IDs, the "
1259 "B<S_ISGID> bit will be turned off, but this will not cause an error to be "
1260 "returned."
1261 msgstr ""
1262
1263 #. type: Plain text
1264 #: build/C/man2/chmod.2:146
1265 msgid ""
1266 "As a security measure, depending on the file system, the set-user-ID and "
1267 "set-group-ID execution bits may be turned off if a file is written.  (On "
1268 "Linux this occurs if the writing process does not have the B<CAP_FSETID> "
1269 "capability.)  On some file systems, only the superuser can set the sticky "
1270 "bit, which may have a special meaning.  For the sticky bit, and for "
1271 "set-user-ID and set-group-ID bits on directories, see B<stat>(2)."
1272 msgstr ""
1273
1274 #. type: Plain text
1275 #: build/C/man2/chmod.2:152
1276 msgid ""
1277 "On NFS file systems, restricting the permissions will immediately influence "
1278 "already open files, because the access control is done on the server, but "
1279 "open files are maintained by the client.  Widening the permissions may be "
1280 "delayed for other clients if attribute caching is enabled on them."
1281 msgstr ""
1282
1283 #. type: Plain text
1284 #: build/C/man2/chmod.2:162
1285 msgid ""
1286 "Depending on the file system, other errors can be returned.  The more "
1287 "general errors for B<chmod>()  are listed below:"
1288 msgstr ""
1289
1290 #.  Also search permission is required on the final component,
1291 #.  maybe just to guarantee that it is a directory?
1292 #. type: Plain text
1293 #: build/C/man2/chmod.2:167 build/C/man2/chown.2:134 build/C/man2/chroot.2:105
1294 msgid ""
1295 "Search permission is denied on a component of the path prefix.  (See also "
1296 "B<path_resolution>(7).)"
1297 msgstr ""
1298
1299 #. type: Plain text
1300 #: build/C/man2/chmod.2:191 build/C/man2/chown.2:155 build/C/man2/truncate.2:162
1301 msgid "A component of the path prefix is not a directory."
1302 msgstr ""
1303
1304 #. type: TP
1305 #: build/C/man2/chmod.2:191 build/C/man2/chmod.2:212 build/C/man2/chown.2:155 build/C/man2/chown.2:175 build/C/man2/chroot.2:131 build/C/man2/execve.2:422 build/C/man2/execve.2:428 build/C/man2/fcntl.2:1131 build/C/man2/getdomainname.2:91 build/C/man3/gethostid.3:88 build/C/man2/gethostname.2:117 build/C/man2/idle.2:56 build/C/man2/ioperm.2:92 build/C/man2/mkdir.2:104 build/C/man2/nice.2:62 build/C/man2/setup.2:57 build/C/man2/swapon.2:144 build/C/man2/sysctl.2:87 build/C/man3/tcgetpgrp.3:99 build/C/man2/truncate.2:162 build/C/man2/vhangup.2:55
1306 #, no-wrap
1307 msgid "B<EPERM>"
1308 msgstr ""
1309
1310 #. type: Plain text
1311 #: build/C/man2/chmod.2:197
1312 msgid ""
1313 "The effective UID does not match the owner of the file, and the process is "
1314 "not privileged (Linux: it does not have the B<CAP_FOWNER> capability)."
1315 msgstr ""
1316
1317 #. type: Plain text
1318 #: build/C/man2/chmod.2:200 build/C/man2/chown.2:162 build/C/man2/truncate.2:171
1319 msgid "The named file resides on a read-only file system."
1320 msgstr ""
1321
1322 #. type: Plain text
1323 #: build/C/man2/chmod.2:204
1324 msgid "The general errors for B<fchmod>()  are listed below:"
1325 msgstr ""
1326
1327 #. type: Plain text
1328 #: build/C/man2/chmod.2:209
1329 msgid "The file descriptor I<fd> is not valid."
1330 msgstr ""
1331
1332 #. type: Plain text
1333 #: build/C/man2/chmod.2:212 build/C/man2/chmod.2:215 build/C/man2/chmod.2:218 build/C/man2/chown.2:175 build/C/man2/chown.2:178 build/C/man2/chown.2:181
1334 msgid "See above."
1335 msgstr ""
1336
1337 #. type: Plain text
1338 #: build/C/man2/chmod.2:220 build/C/man2/chown.2:183
1339 msgid "4.4BSD, SVr4, POSIX.1-2001."
1340 msgstr ""
1341
1342 #. type: Plain text
1343 #: build/C/man2/chmod.2:227
1344 msgid ""
1345 "B<chown>(2), B<execve>(2), B<fchmodat>(2), B<open>(2), B<stat>(2), "
1346 "B<path_resolution>(7)"
1347 msgstr ""
1348
1349 #. type: TH
1350 #: build/C/man2/chown.2:38
1351 #, no-wrap
1352 msgid "CHOWN"
1353 msgstr ""
1354
1355 #. type: TH
1356 #: build/C/man2/chown.2:38
1357 #, no-wrap
1358 msgid "2010-11-22"
1359 msgstr ""
1360
1361 #. type: Plain text
1362 #: build/C/man2/chown.2:41
1363 msgid "chown, fchown, lchown - change ownership of a file"
1364 msgstr ""
1365
1366 #. type: Plain text
1367 #: build/C/man2/chown.2:45
1368 msgid "B<int chown(const char *>I<path>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>"
1369 msgstr ""
1370
1371 #. type: Plain text
1372 #: build/C/man2/chown.2:47
1373 msgid "B<int fchown(int >I<fd>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>"
1374 msgstr ""
1375
1376 #. type: Plain text
1377 #: build/C/man2/chown.2:49
1378 msgid "B<int lchown(const char *>I<path>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>"
1379 msgstr ""
1380
1381 #. type: Plain text
1382 #: build/C/man2/chown.2:57
1383 msgid "B<fchown>(), B<lchown>():"
1384 msgstr ""
1385
1386 #. type: Plain text
1387 #: build/C/man2/chown.2:70
1388 msgid ""
1389 "These system calls change the owner and group of a file.  The differ only in "
1390 "how the file is specified:"
1391 msgstr ""
1392
1393 #. type: Plain text
1394 #: build/C/man2/chown.2:75
1395 msgid ""
1396 "B<chown>()  changes the ownership of the file specified by I<path>, which is "
1397 "dereferenced if it is a symbolic link."
1398 msgstr ""
1399
1400 #. type: Plain text
1401 #: build/C/man2/chown.2:79
1402 msgid ""
1403 "B<fchown>()  changes the ownership of the file referred to by the open file "
1404 "descriptor I<fd>."
1405 msgstr ""
1406
1407 #. type: Plain text
1408 #: build/C/man2/chown.2:84
1409 msgid "B<lchown>()  is like B<chown>(), but does not dereference symbolic links."
1410 msgstr ""
1411
1412 #. type: Plain text
1413 #: build/C/man2/chown.2:93
1414 msgid ""
1415 "Only a privileged process (Linux: one with the B<CAP_CHOWN> capability) may "
1416 "change the owner of a file.  The owner of a file may change the group of the "
1417 "file to any group of which that owner is a member.  A privileged process "
1418 "(Linux: with B<CAP_CHOWN>)  may change the group arbitrarily."
1419 msgstr ""
1420
1421 #. type: Plain text
1422 #: build/C/man2/chown.2:99
1423 msgid "If the I<owner> or I<group> is specified as -1, then that ID is not changed."
1424 msgstr ""
1425
1426 #.  In Linux 2.0 kernels, superuser was like everyone else
1427 #.  In 2.2, up to 2.2.12, these bits were not cleared for superuser.
1428 #.  Since 2.2.13, superuser is once more like everyone else.
1429 #. type: Plain text
1430 #: build/C/man2/chown.2:119
1431 msgid ""
1432 "When the owner or group of an executable file are changed by an unprivileged "
1433 "user the B<S_ISUID> and B<S_ISGID> mode bits are cleared.  POSIX does not "
1434 "specify whether this also should happen when root does the B<chown>(); the "
1435 "Linux behavior depends on the kernel version.  In case of a "
1436 "non-group-executable file (i.e., one for which the B<S_IXGRP> bit is not "
1437 "set) the B<S_ISGID> bit indicates mandatory locking, and is not cleared by a "
1438 "B<chown>()."
1439 msgstr ""
1440
1441 #. type: Plain text
1442 #: build/C/man2/chown.2:129
1443 msgid ""
1444 "Depending on the file system, other errors can be returned.  The more "
1445 "general errors for B<chown>()  are listed below."
1446 msgstr ""
1447
1448 #. type: Plain text
1449 #: build/C/man2/chown.2:159
1450 msgid ""
1451 "The calling process did not have the required permissions (see above) to "
1452 "change owner and/or group."
1453 msgstr ""
1454
1455 #. type: Plain text
1456 #: build/C/man2/chown.2:166
1457 msgid "The general errors for B<fchown>()  are listed below:"
1458 msgstr ""
1459
1460 #. type: Plain text
1461 #: build/C/man2/chown.2:169
1462 msgid "The descriptor is not valid."
1463 msgstr ""
1464
1465 #. type: Plain text
1466 #: build/C/man2/chown.2:172
1467 msgid "A low-level I/O error occurred while modifying the inode."
1468 msgstr ""
1469
1470 #.  chown():
1471 #.  SVr4 documents EINVAL, EINTR, ENOLINK and EMULTIHOP returns, but no
1472 #.  ENOMEM.  POSIX.1 does not document ENOMEM or ELOOP error conditions.
1473 #.  fchown():
1474 #.  SVr4 documents additional EINVAL, EIO, EINTR, and ENOLINK
1475 #.  error conditions.
1476 #. type: Plain text
1477 #: build/C/man2/chown.2:192
1478 msgid ""
1479 "The 4.4BSD version can only be used by the superuser (that is, ordinary "
1480 "users cannot give away files)."
1481 msgstr ""
1482
1483 #. type: Plain text
1484 #: build/C/man2/chown.2:211
1485 msgid ""
1486 "The original Linux B<chown>(), B<fchown>(), and B<lchown>()  system calls "
1487 "supported only 16-bit user and group IDs.  Subsequently, Linux 2.4 added "
1488 "B<chown32>(), B<fchown32>(), and B<lchown32>(), supporting 32-bit IDs.  The "
1489 "glibc B<chown>(), B<fchown>(), and B<lchown>()  wrapper functions "
1490 "transparently deal with the variations across kernel versions."
1491 msgstr ""
1492
1493 #. type: Plain text
1494 #: build/C/man2/chown.2:233
1495 msgid ""
1496 "When a new file is created (by, for example, B<open>(2)  or B<mkdir>(2)), "
1497 "its owner is made the same as the file system user ID of the creating "
1498 "process.  The group of the file depends on a range of factors, including the "
1499 "type of file system, the options used to mount the file system, and whether "
1500 "or not the set-group-ID permission bit is enabled on the parent directory.  "
1501 "If the file system supports the I<-o\\ grpid> (or, synonymously I<-o\\ "
1502 "bsdgroups>)  and I<-o\\ nogrpid> (or, synonymously I<-o\\ sysvgroups>)  "
1503 "B<mount>(8)  options, then the rules are as follows:"
1504 msgstr ""
1505
1506 #. type: Plain text
1507 #: build/C/man2/chown.2:238
1508 msgid ""
1509 "If the file system is mounted with I<-o\\ grpid>, then the group of a new "
1510 "file is made the same as that of the parent directory."
1511 msgstr ""
1512
1513 #. type: Plain text
1514 #: build/C/man2/chown.2:244
1515 msgid ""
1516 "If the file system is mounted with I<-o\\ nogrpid> and the set-group-ID bit "
1517 "is disabled on the parent directory, then the group of a new file is made "
1518 "the same as the process's file system GID."
1519 msgstr ""
1520
1521 #. type: Plain text
1522 #: build/C/man2/chown.2:250
1523 msgid ""
1524 "If the file system is mounted with I<-o\\ nogrpid> and the set-group-ID bit "
1525 "is enabled on the parent directory, then the group of a new file is made the "
1526 "same as that of the parent directory."
1527 msgstr ""
1528
1529 #. type: Plain text
1530 #: build/C/man2/chown.2:260
1531 msgid ""
1532 "As at Linux 2.6.25, the I<-o\\ grpid> and I<-o\\ nogrpid> mount options are "
1533 "supported by ext2, ext3, ext4, and XFS.  File systems that don't support "
1534 "these mount options follow the I<-o\\ nogrpid> rules."
1535 msgstr ""
1536
1537 #. type: Plain text
1538 #: build/C/man2/chown.2:273
1539 msgid ""
1540 "The B<chown>()  semantics are deliberately violated on NFS file systems "
1541 "which have UID mapping enabled.  Additionally, the semantics of all system "
1542 "calls which access the file contents are violated, because B<chown>()  may "
1543 "cause immediate access revocation on already open files.  Client side "
1544 "caching may lead to a delay between the time where ownership have been "
1545 "changed to allow access for a user and the time where the file can actually "
1546 "be accessed by the user on other clients."
1547 msgstr ""
1548
1549 #. type: Plain text
1550 #: build/C/man2/chown.2:288
1551 msgid ""
1552 "In versions of Linux prior to 2.1.81 (and distinct from 2.1.46), B<chown>()  "
1553 "did not follow symbolic links.  Since Linux 2.1.81, B<chown>()  does follow "
1554 "symbolic links, and there is a new system call B<lchown>()  that does not "
1555 "follow symbolic links.  Since Linux 2.1.86, this new call (that has the same "
1556 "semantics as the old B<chown>())  has got the same syscall number, and "
1557 "B<chown>()  got the newly introduced number."
1558 msgstr ""
1559
1560 #. type: Plain text
1561 #: build/C/man2/chown.2:297
1562 msgid ""
1563 "The following program changes the ownership of the file named in its second "
1564 "command-line argument to the value specified in its first command-line "
1565 "argument.  The new owner can be specified either as a numeric user ID, or as "
1566 "a username (which is converted to a user ID by using B<getpwnam>(3)  to "
1567 "perform a lookup in the system password file)."
1568 msgstr ""
1569
1570 #. type: Plain text
1571 #: build/C/man2/chown.2:303
1572 #, no-wrap
1573 msgid ""
1574 "#include E<lt>pwd.hE<gt>\n"
1575 "#include E<lt>stdio.hE<gt>\n"
1576 "#include E<lt>stdlib.hE<gt>\n"
1577 "#include E<lt>unistd.hE<gt>\n"
1578 msgstr ""
1579
1580 #. type: Plain text
1581 #: build/C/man2/chown.2:310
1582 #, no-wrap
1583 msgid ""
1584 "int\n"
1585 "main(int argc, char *argv[])\n"
1586 "{\n"
1587 "    uid_t uid;\n"
1588 "    struct passwd *pwd;\n"
1589 "    char *endptr;\n"
1590 msgstr ""
1591
1592 #. type: Plain text
1593 #: build/C/man2/chown.2:315
1594 #, no-wrap
1595 msgid ""
1596 "    if (argc != 3 || argv[1][0] == \\(aq\\e0\\(aq) {\n"
1597 "        fprintf(stderr, \"%s E<lt>ownerE<gt> E<lt>fileE<gt>\\en\", "
1598 "argv[0]);\n"
1599 "        exit(EXIT_FAILURE);\n"
1600 "    }\n"
1601 msgstr ""
1602
1603 #. type: Plain text
1604 #: build/C/man2/chown.2:317
1605 #, no-wrap
1606 msgid "    uid = strtol(argv[1], &endptr, 10);  /* Allow a numeric string */\n"
1607 msgstr ""
1608
1609 #. type: Plain text
1610 #: build/C/man2/chown.2:324
1611 #, no-wrap
1612 msgid ""
1613 "    if (*endptr != \\(aq\\e0\\(aq) {         /* Was not pure numeric string "
1614 "*/\n"
1615 "        pwd = getpwnam(argv[1]);   /* Try getting UID for username */\n"
1616 "        if (pwd == NULL) {\n"
1617 "            perror(\"getpwnam\");\n"
1618 "            exit(EXIT_FAILURE);\n"
1619 "        }\n"
1620 msgstr ""
1621
1622 #. type: Plain text
1623 #: build/C/man2/chown.2:327
1624 #, no-wrap
1625 msgid ""
1626 "        uid = pwd-E<gt>pw_uid;\n"
1627 "    }\n"
1628 msgstr ""
1629
1630 #. type: Plain text
1631 #: build/C/man2/chown.2:332
1632 #, no-wrap
1633 msgid ""
1634 "    if (chown(argv[2], uid, -1) == -1) {\n"
1635 "        perror(\"chown\");\n"
1636 "        exit(EXIT_FAILURE);\n"
1637 "    }\n"
1638 msgstr ""
1639
1640 #. type: Plain text
1641 #: build/C/man2/chown.2:335 build/C/man2/execve.2:548 build/C/man3/getopt.3:426 build/C/man3/getopt.3:511
1642 #, no-wrap
1643 msgid ""
1644 "    exit(EXIT_SUCCESS);\n"
1645 "}\n"
1646 msgstr ""
1647
1648 #. type: Plain text
1649 #: build/C/man2/chown.2:342
1650 msgid ""
1651 "B<chmod>(2), B<fchownat>(2), B<flock>(2), B<path_resolution>(7), "
1652 "B<symlink>(7)"
1653 msgstr ""
1654
1655 #. type: TH
1656 #: build/C/man2/chroot.2:33
1657 #, no-wrap
1658 msgid "CHROOT"
1659 msgstr ""
1660
1661 #. type: Plain text
1662 #: build/C/man2/chroot.2:36
1663 msgid "chroot - change root directory"
1664 msgstr ""
1665
1666 #. type: Plain text
1667 #: build/C/man2/chroot.2:40
1668 msgid "B<int chroot(const char *>I<path>B<);>"
1669 msgstr ""
1670
1671 #. type: Plain text
1672 #: build/C/man2/chroot.2:47
1673 msgid "B<chroot>():"
1674 msgstr ""
1675
1676 #. type: TP
1677 #: build/C/man2/chroot.2:50
1678 #, no-wrap
1679 msgid "Since glibc 2.2.2:"
1680 msgstr ""
1681
1682 #. type: Plain text
1683 #: build/C/man2/chroot.2:57
1684 #, no-wrap
1685 msgid ""
1686 "_BSD_SOURCE ||\n"
1687 "    (_XOPEN_SOURCE\\ E<gt>=\\ 500 ||\n"
1688 "        _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED) &&\n"
1689 "    !(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600)\n"
1690 msgstr ""
1691
1692 #. type: Plain text
1693 #: build/C/man2/chroot.2:60
1694 msgid "Before glibc 2.2.2: none"
1695 msgstr ""
1696
1697 #. type: Plain text
1698 #: build/C/man2/chroot.2:69
1699 msgid ""
1700 "B<chroot>()  changes the root directory of the calling process to that "
1701 "specified in I<path>.  This directory will be used for pathnames beginning "
1702 "with I</>.  The root directory is inherited by all children of the calling "
1703 "process."
1704 msgstr ""
1705
1706 #. type: Plain text
1707 #: build/C/man2/chroot.2:74
1708 msgid ""
1709 "Only a privileged process (Linux: one with the B<CAP_SYS_CHROOT> capability) "
1710 "may call B<chroot>()."
1711 msgstr ""
1712
1713 #. type: Plain text
1714 #: build/C/man2/chroot.2:77
1715 msgid ""
1716 "This call changes an ingredient in the pathname resolution process and does "
1717 "nothing else."
1718 msgstr ""
1719
1720 #. type: Plain text
1721 #: build/C/man2/chroot.2:83
1722 msgid ""
1723 "This call does not change the current working directory, so that after the "
1724 "call \\(aqI<.>\\(aq can be outside the tree rooted at \\(aqI</>\\(aq.  In "
1725 "particular, the superuser can escape from a \"chroot jail\" by doing:"
1726 msgstr ""
1727
1728 #. type: Plain text
1729 #: build/C/man2/chroot.2:86
1730 #, no-wrap
1731 msgid "    mkdir foo; chroot foo; cd ..\n"
1732 msgstr ""
1733
1734 #. type: Plain text
1735 #: build/C/man2/chroot.2:90
1736 msgid ""
1737 "This call does not close open file descriptors, and such file descriptors "
1738 "may allow access to files outside the chroot tree."
1739 msgstr ""
1740
1741 #. type: Plain text
1742 #: build/C/man2/chroot.2:98
1743 msgid ""
1744 "Depending on the file system, other errors can be returned.  The more "
1745 "general errors are listed below:"
1746 msgstr ""
1747
1748 #. type: Plain text
1749 #: build/C/man2/chroot.2:134
1750 msgid "The caller has insufficient privilege."
1751 msgstr ""
1752
1753 #.  SVr4 documents additional EINTR, ENOLINK and EMULTIHOP error conditions.
1754 #.  X/OPEN does not document EIO, ENOMEM or EFAULT error conditions.
1755 #. type: Plain text
1756 #: build/C/man2/chroot.2:139
1757 msgid ""
1758 "SVr4, 4.4BSD, SUSv2 (marked LEGACY).  This function is not part of "
1759 "POSIX.1-2001."
1760 msgstr ""
1761
1762 #. type: Plain text
1763 #: build/C/man2/chroot.2:145
1764 msgid ""
1765 "A child process created via B<fork>(2)  inherits its parent's root "
1766 "directory.  The root directory is left unchanged by B<execve>(2)."
1767 msgstr ""
1768
1769 #.  FIXME . eventually say something about containers,
1770 #.  virtual servers, etc.?
1771 #. type: Plain text
1772 #: build/C/man2/chroot.2:151
1773 msgid "FreeBSD has a stronger B<jail>()  system call."
1774 msgstr ""
1775
1776 #. type: Plain text
1777 #: build/C/man2/chroot.2:154
1778 msgid "B<chdir>(2), B<path_resolution>(7)"
1779 msgstr ""
1780
1781 #. type: TH
1782 #: build/C/man2/close.2:35
1783 #, no-wrap
1784 msgid "CLOSE"
1785 msgstr ""
1786
1787 #. type: TH
1788 #: build/C/man2/close.2:35
1789 #, no-wrap
1790 msgid "2007-12-28"
1791 msgstr ""
1792
1793 #. type: Plain text
1794 #: build/C/man2/close.2:38
1795 msgid "close - close a file descriptor"
1796 msgstr ""
1797
1798 #. type: Plain text
1799 #: build/C/man2/close.2:43
1800 #, no-wrap
1801 msgid "B<int close(int >I<fd>B<);>\n"
1802 msgstr ""
1803
1804 #. type: Plain text
1805 #: build/C/man2/close.2:53
1806 msgid ""
1807 "B<close>()  closes a file descriptor, so that it no longer refers to any "
1808 "file and may be reused.  Any record locks (see B<fcntl>(2))  held on the "
1809 "file it was associated with, and owned by the process, are removed "
1810 "(regardless of the file descriptor that was used to obtain the lock)."
1811 msgstr ""
1812
1813 #. type: Plain text
1814 #: build/C/man2/close.2:64
1815 msgid ""
1816 "If I<fd> is the last file descriptor referring to the underlying open file "
1817 "description (see B<open>(2)), the resources associated with the open file "
1818 "description are freed; if the descriptor was the last reference to a file "
1819 "which has been removed using B<unlink>(2)  the file is deleted."
1820 msgstr ""
1821
1822 #. type: Plain text
1823 #: build/C/man2/close.2:70
1824 msgid ""
1825 "B<close>()  returns zero on success.  On error, -1 is returned, and I<errno> "
1826 "is set appropriately."
1827 msgstr ""
1828
1829 #. type: Plain text
1830 #: build/C/man2/close.2:75
1831 msgid "I<fd> isn't a valid open file descriptor."
1832 msgstr ""
1833
1834 #. type: TP
1835 #: build/C/man2/close.2:75 build/C/man2/dup.2:142 build/C/man2/fcntl.2:1100 build/C/man2/flock.2:120 build/C/man2/truncate.2:131 build/C/man3/ualarm.3:84 build/C/man3/usleep.3:76
1836 #, no-wrap
1837 msgid "B<EINTR>"
1838 msgstr ""
1839
1840 #. type: Plain text
1841 #: build/C/man2/close.2:81
1842 msgid "The B<close>()  call was interrupted by a signal; see B<signal>(7)."
1843 msgstr ""
1844
1845 #. type: Plain text
1846 #: build/C/man2/close.2:101
1847 msgid ""
1848 "Not checking the return value of B<close>()  is a common but nevertheless "
1849 "serious programming error.  It is quite possible that errors on a previous "
1850 "B<write>(2)  operation are first reported at the final B<close>().  Not "
1851 "checking the return value when closing the file may lead to silent loss of "
1852 "data.  This can especially be observed with NFS and with disk quota."
1853 msgstr ""
1854
1855 #. type: Plain text
1856 #: build/C/man2/close.2:110
1857 msgid ""
1858 "A successful close does not guarantee that the data has been successfully "
1859 "saved to disk, as the kernel defers writes.  It is not common for a file "
1860 "system to flush the buffers when the stream is closed.  If you need to be "
1861 "sure that the data is physically stored use B<fsync>(2).  (It will depend on "
1862 "the disk hardware at this point.)"
1863 msgstr ""
1864
1865 #.  Date: Tue, 4 Sep 2007 13:57:35 +0200
1866 #.  From: Fredrik Noring <noring@nocrew.org>
1867 #.  One such race involves signals and ERESTARTSYS. If a file descriptor
1868 #.  in use by a system call is closed and then reused by e.g. an
1869 #.  independent open() in some unrelated thread, before the original system
1870 #.  call has restared after ERESTARTSYS, the original system call will
1871 #.  later restart with the reused file descriptor. This is most likely a
1872 #.  serious programming error.
1873 #. type: Plain text
1874 #: build/C/man2/close.2:125
1875 msgid ""
1876 "It is probably unwise to close file descriptors while they may be in use by "
1877 "system calls in other threads in the same process.  Since a file descriptor "
1878 "may be reused, there are some obscure race conditions that may cause "
1879 "unintended side effects."
1880 msgstr ""
1881
1882 #. type: Plain text
1883 #: build/C/man2/close.2:132
1884 msgid ""
1885 "B<fcntl>(2), B<fsync>(2), B<open>(2), B<shutdown>(2), B<unlink>(2), "
1886 "B<fclose>(3)"
1887 msgstr ""
1888
1889 #. type: TH
1890 #: build/C/man3/confstr.3:29
1891 #, no-wrap
1892 msgid "CONFSTR"
1893 msgstr ""
1894
1895 #. type: TH
1896 #: build/C/man3/confstr.3:29 build/C/man3/sleep.3:24
1897 #, no-wrap
1898 msgid "2010-02-03"
1899 msgstr ""
1900
1901 #. type: TH
1902 #: build/C/man3/confstr.3:29 build/C/man3/daemon.3:34 build/C/man3/exec.3:39 build/C/man3/fpathconf.3:24 build/C/man3/getcwd.3:30 build/C/man3/getlogin.3:28 build/C/man3/getopt.3:39 build/C/man3/getumask.3:26 build/C/man3/getusershell.3:28 build/C/man3/lockf.3:22 build/C/man3/sleep.3:24 build/C/man3/sysconf.3:25 build/C/man3/tcgetpgrp.3:23
1903 #, no-wrap
1904 msgid "GNU"
1905 msgstr ""
1906
1907 #. type: Plain text
1908 #: build/C/man3/confstr.3:32
1909 msgid "confstr - get configuration dependent string variables"
1910 msgstr ""
1911
1912 #. type: Plain text
1913 #: build/C/man3/confstr.3:37
1914 #, no-wrap
1915 msgid "B<size_t confstr(int >I<name>B<, char *>I<buf>B<, size_t >I<len>B<);>\n"
1916 msgstr ""
1917
1918 #. type: Plain text
1919 #: build/C/man3/confstr.3:46
1920 msgid "B<confstr>(): _POSIX_C_SOURCE\\ E<gt>=\\ 2 || _XOPEN_SOURCE"
1921 msgstr ""
1922
1923 #. type: Plain text
1924 #: build/C/man3/confstr.3:49
1925 msgid "B<confstr>()  gets the value of configuration-dependent string variables."
1926 msgstr ""
1927
1928 #. type: Plain text
1929 #: build/C/man3/confstr.3:54
1930 msgid ""
1931 "The I<name> argument is the system variable to be queried.  The following "
1932 "variables are supported:"
1933 msgstr ""
1934
1935 #. type: TP
1936 #: build/C/man3/confstr.3:54
1937 #, no-wrap
1938 msgid "B<_CS_GNU_LIBC_VERSION> (GNU C library only; since glibc 2.3.2)"
1939 msgstr ""
1940
1941 #. type: Plain text
1942 #: build/C/man3/confstr.3:58
1943 msgid ""
1944 "A string which identifies the GNU C library version on this system (e.g, "
1945 "\"glibc 2.3.4\")."
1946 msgstr ""
1947
1948 #. type: TP
1949 #: build/C/man3/confstr.3:58
1950 #, no-wrap
1951 msgid "B<_CS_GNU_LIBPTHREAD_VERSION> (GNU C library only; since glibc 2.3.2)"
1952 msgstr ""
1953
1954 #. type: Plain text
1955 #: build/C/man3/confstr.3:62
1956 msgid ""
1957 "A string which identifies the POSIX implementation supplied by this C "
1958 "library (e.g, \"NPTL 2.3.4\" or \"linuxthreads-0.10\")."
1959 msgstr ""
1960
1961 #. type: TP
1962 #: build/C/man3/confstr.3:62
1963 #, no-wrap
1964 msgid "B<_CS_PATH>"
1965 msgstr ""
1966
1967 #. type: Plain text
1968 #: build/C/man3/confstr.3:68
1969 msgid ""
1970 "A value for the B<PATH> variable which indicates where all the POSIX.2 "
1971 "standard utilities can be found."
1972 msgstr ""
1973
1974 #. type: Plain text
1975 #: build/C/man3/confstr.3:84
1976 msgid ""
1977 "If I<buf> is not NULL and I<len> is not zero, B<confstr>()  copies the value "
1978 "of the string to I<buf> truncated to I<len - 1> characters if necessary, "
1979 "with a null byte (\\(aq\\e0\\(aq) as terminator.  This can be detected by "
1980 "comparing the return value of B<confstr>()  against I<len>."
1981 msgstr ""
1982
1983 #. type: Plain text
1984 #: build/C/man3/confstr.3:92
1985 msgid ""
1986 "If I<len> is zero and I<buf> is NULL, B<confstr>()  just returns the value "
1987 "as defined below."
1988 msgstr ""
1989
1990 #. type: Plain text
1991 #: build/C/man3/confstr.3:104
1992 msgid ""
1993 "If I<name> is a valid configuration variable, B<confstr>()  returns the "
1994 "number of bytes (including the terminating null byte)  that would be "
1995 "required to hold the entire value of that variable.  This value may be "
1996 "greater than I<len>, which means that the value in I<buf> is truncated."
1997 msgstr ""
1998
1999 #. type: Plain text
2000 #: build/C/man3/confstr.3:119
2001 msgid ""
2002 "If I<name> is a valid configuration variable, but that variable does not "
2003 "have a value, then B<confstr>()  returns 0.  If I<name> does not correspond "
2004 "to a valid configuration variable, B<confstr>()  returns 0, and I<errno> is "
2005 "set to B<EINVAL>."
2006 msgstr ""
2007
2008 #. type: Plain text
2009 #: build/C/man3/confstr.3:125
2010 msgid "If the value of I<name> is invalid."
2011 msgstr ""
2012
2013 #. type: Plain text
2014 #: build/C/man3/confstr.3:127 build/C/man3/fpathconf.3:154 build/C/man2/pread.2:115 build/C/man3/sleep.3:44 build/C/man3/sysconf.3:324 build/C/man3/tcgetpgrp.3:106
2015 msgid "POSIX.1-2001."
2016 msgstr ""
2017
2018 #. type: Plain text
2019 #: build/C/man3/confstr.3:130
2020 msgid ""
2021 "The following code fragment determines the path where to find the POSIX.2 "
2022 "system utilities:"
2023 msgstr ""
2024
2025 #. type: Plain text
2026 #: build/C/man3/confstr.3:136
2027 #, no-wrap
2028 msgid ""
2029 "char *pathbuf;\n"
2030 "size_t n;\n"
2031 msgstr ""
2032
2033 #. type: Plain text
2034 #: build/C/man3/confstr.3:142
2035 #, no-wrap
2036 msgid ""
2037 "n = confstr(_CS_PATH,NULL,(size_t) 0);\n"
2038 "pathbuf = malloc(n);\n"
2039 "if (pathbuf == NULL)\n"
2040 "    abort();\n"
2041 "confstr(_CS_PATH, pathbuf, n);\n"
2042 msgstr ""
2043
2044 #. type: Plain text
2045 #: build/C/man3/confstr.3:148
2046 msgid "B<sh>(1), B<exec>(3), B<system>(3)"
2047 msgstr ""
2048
2049 #. type: TH
2050 #: build/C/man3/crypt.3:35
2051 #, no-wrap
2052 msgid "CRYPT"
2053 msgstr ""
2054
2055 #. type: TH
2056 #: build/C/man3/crypt.3:35 build/C/man2/fcntl.2:61
2057 #, no-wrap
2058 msgid "2011-09-15"
2059 msgstr ""
2060
2061 #. type: Plain text
2062 #: build/C/man3/crypt.3:38
2063 msgid "crypt, crypt_r - password and data encryption"
2064 msgstr ""
2065
2066 #. type: Plain text
2067 #: build/C/man3/crypt.3:41
2068 #, no-wrap
2069 msgid "B<#define _XOPEN_SOURCE>       /* See feature_test_macros(7) */\n"
2070 msgstr ""
2071
2072 #. type: Plain text
2073 #: build/C/man3/crypt.3:45
2074 #, no-wrap
2075 msgid "B<char *crypt(const char *>I<key>B<, const char *>I<salt>B<);>\n"
2076 msgstr ""
2077
2078 #. type: Plain text
2079 #: build/C/man3/crypt.3:47
2080 #, no-wrap
2081 msgid "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
2082 msgstr ""
2083
2084 #. type: Plain text
2085 #: build/C/man3/crypt.3:49
2086 #, no-wrap
2087 msgid "B<#include E<lt>crypt.hE<gt>>\n"
2088 msgstr ""
2089
2090 #. type: Plain text
2091 #: build/C/man3/crypt.3:52
2092 #, no-wrap
2093 msgid ""
2094 "B<char *crypt_r(const char *>I<key>B<, const char *>I<salt>B<,>\n"
2095 "B<              struct crypt_data *>I<data>B<);>\n"
2096 msgstr ""
2097
2098 #. type: Plain text
2099 #: build/C/man3/crypt.3:55
2100 msgid "Link with I<-lcrypt>."
2101 msgstr ""
2102
2103 #. type: Plain text
2104 #: build/C/man3/crypt.3:61
2105 msgid ""
2106 "B<crypt>()  is the password encryption function.  It is based on the Data "
2107 "Encryption Standard algorithm with variations intended (among other things) "
2108 "to discourage use of hardware implementations of a key search."
2109 msgstr ""
2110
2111 #. type: Plain text
2112 #: build/C/man3/crypt.3:64
2113 msgid "I<key> is a user's typed password."
2114 msgstr ""
2115
2116 #. type: Plain text
2117 #: build/C/man3/crypt.3:70
2118 msgid ""
2119 "I<salt> is a two-character string chosen from the set "
2120 "[B<a>\\(enB<zA>\\(enB<Z0>\\(enB<9./>].  This string is used to perturb the "
2121 "algorithm in one of 4096 different ways."
2122 msgstr ""
2123
2124 #. type: Plain text
2125 #: build/C/man3/crypt.3:81
2126 msgid ""
2127 "By taking the lowest 7 bits of each of the first eight characters of the "
2128 "I<key>, a 56-bit key is obtained.  This 56-bit key is used to encrypt "
2129 "repeatedly a constant string (usually a string consisting of all zeros).  "
2130 "The returned value points to the encrypted password, a series of 13 "
2131 "printable ASCII characters (the first two characters represent the salt "
2132 "itself).  The return value points to static data whose content is "
2133 "overwritten by each call."
2134 msgstr ""
2135
2136 #. type: Plain text
2137 #: build/C/man3/crypt.3:83
2138 msgid "Warning: The key space consists of"
2139 msgstr ""
2140
2141 #. type: Plain text
2142 #: build/C/man3/crypt.3:98
2143 msgid ""
2144 "equal 7.2e16 possible values.  Exhaustive searches of this key space are "
2145 "possible using massively parallel computers.  Software, such as B<crack>(1), "
2146 "is available which will search the portion of this key space that is "
2147 "generally used by humans for passwords.  Hence, password selection should, "
2148 "at minimum, avoid common words and names.  The use of a B<passwd>(1)  "
2149 "program that checks for crackable passwords during the selection process is "
2150 "recommended."
2151 msgstr ""
2152
2153 #. type: Plain text
2154 #: build/C/man3/crypt.3:107
2155 msgid ""
2156 "The DES algorithm itself has a few quirks which make the use of the "
2157 "B<crypt>()  interface a very poor choice for anything other than password "
2158 "authentication.  If you are planning on using the B<crypt>()  interface for "
2159 "a cryptography project, don't do it: get a good book on encryption and one "
2160 "of the widely available DES libraries."
2161 msgstr ""
2162
2163 #. type: Plain text
2164 #: build/C/man3/crypt.3:119
2165 msgid ""
2166 "B<crypt_r>()  is a reentrant version of B<crypt>().  The structure pointed "
2167 "to by I<data> is used to store result data and bookkeeping information.  "
2168 "Other than allocating it, the only thing that the caller should do with this "
2169 "structure is to set I<data-E<gt>initialized> to zero before the first call "
2170 "to B<crypt_r>()."
2171 msgstr ""
2172
2173 #. type: Plain text
2174 #: build/C/man3/crypt.3:122
2175 msgid ""
2176 "On success, a pointer to the encrypted password is returned.  On error, NULL "
2177 "is returned."
2178 msgstr ""
2179
2180 #. type: TP
2181 #: build/C/man3/crypt.3:123 build/C/man3/encrypt.3:114 build/C/man3/fexecve.3:86
2182 #, no-wrap
2183 msgid "B<ENOSYS>"
2184 msgstr ""
2185
2186 #.  This level of detail is not necessary in this man page. . .
2187 #.  .PP
2188 #.  When encrypting a plain text P using DES with the key K results in the
2189 #.  encrypted text C, then the complementary plain text P' being encrypted
2190 #.  using the complementary key K' will result in the complementary encrypted
2191 #.  text C'.
2192 #.  .PP
2193 #.  Weak keys are keys which stay invariant under the DES key transformation.
2194 #.  The four known weak keys 0101010101010101, fefefefefefefefe,
2195 #.  1f1f1f1f0e0e0e0e and e0e0e0e0f1f1f1f1 must be avoided.
2196 #.  .PP
2197 #.  There are six known half weak key pairs, which keys lead to the same
2198 #.  encrypted data.  Keys which are part of such key clusters should be
2199 #.  avoided.
2200 #.  Sorry, I could not find out what they are.
2201 #. "
2202 #.  .PP
2203 #.  Heavily redundant data causes trouble with DES encryption, when used in the
2204 #.  .I codebook
2205 #.  mode that
2206 #.  .BR crypt ()
2207 #.  implements.  The
2208 #.  .BR crypt ()
2209 #.  interface should be used only for its intended purpose of password
2210 #.  verification, and should not be used as part of a data encryption tool.
2211 #.  .PP
2212 #.  The first and last three output bits of the fourth S-box can be
2213 #.  represented as function of their input bits.  Empiric studies have
2214 #.  shown that S-boxes partially compute the same output for similar input.
2215 #.  It is suspected that this may contain a back door which could allow the
2216 #.  NSA to decrypt DES encrypted data.
2217 #.  .PP
2218 #.  Making encrypted data computed using crypt() publicly available has
2219 #.  to be considered insecure for the given reasons.
2220 #. type: Plain text
2221 #: build/C/man3/crypt.3:162
2222 msgid ""
2223 "The B<crypt>()  function was not implemented, probably because of "
2224 "U.S.A. export restrictions."
2225 msgstr ""
2226
2227 #. type: Plain text
2228 #: build/C/man3/crypt.3:167
2229 msgid "B<crypt>(): SVr4, 4.3BSD, POSIX.1-2001.  B<crypt_r>()  is a GNU extension."
2230 msgstr ""
2231
2232 #. type: SS
2233 #: build/C/man3/crypt.3:168 build/C/man2/gethostname.2:140
2234 #, no-wrap
2235 msgid "Glibc Notes"
2236 msgstr ""
2237
2238 #. type: Plain text
2239 #: build/C/man3/crypt.3:171
2240 msgid ""
2241 "The glibc2 version of this function supports additional encryption "
2242 "algorithms."
2243 msgstr ""
2244
2245 #. type: Plain text
2246 #: build/C/man3/crypt.3:176
2247 msgid ""
2248 "If I<salt> is a character string starting with the characters \"$I<id>$\" "
2249 "followed by a string terminated by \"$\":"
2250 msgstr ""
2251
2252 #. type: Plain text
2253 #: build/C/man3/crypt.3:179
2254 msgid "$I<id>$I<salt>$I<encrypted>"
2255 msgstr ""
2256
2257 #. type: Plain text
2258 #: build/C/man3/crypt.3:188
2259 msgid ""
2260 "then instead of using the DES machine, I<id> identifies the encryption "
2261 "method used and this then determines how the rest of the password string is "
2262 "interpreted.  The following values of I<id> are supported:"
2263 msgstr ""
2264
2265 #. type: tbl table
2266 #: build/C/man3/crypt.3:191
2267 #, no-wrap
2268 msgid "ID  | Method\n"
2269 msgstr ""
2270
2271 #. type: tbl table
2272 #: build/C/man3/crypt.3:192
2273 #, no-wrap
2274 msgid "_\n"
2275 msgstr ""
2276
2277 #. type: tbl table
2278 #: build/C/man3/crypt.3:193
2279 #, no-wrap
2280 msgid "1   | MD5\n"
2281 msgstr ""
2282
2283 #. type: tbl table
2284 #: build/C/man3/crypt.3:194
2285 #, no-wrap
2286 msgid "2a  | Blowfish (not in mainline glibc; added in some\n"
2287 msgstr ""
2288
2289 #. type: tbl table
2290 #: build/C/man3/crypt.3:195
2291 #, no-wrap
2292 msgid "    | Linux distributions)\n"
2293 msgstr ""
2294
2295 #.  openSUSE has Blowfish, but AFAICS, this option is not supported
2296 #.  natively by glibc -- mtk, Jul 08
2297 #
2298 #.  md5 | Sun MD5
2299 #.  glibc doesn't appear to natively support Sun MD5; I don't know
2300 #.  if any distros add the support.
2301 #. type: tbl table
2302 #: build/C/man3/crypt.3:202
2303 #, no-wrap
2304 msgid "5   | SHA-256 (since glibc 2.7)\n"
2305 msgstr ""
2306
2307 #. type: tbl table
2308 #: build/C/man3/crypt.3:203
2309 #, no-wrap
2310 msgid "6   | SHA-512 (since glibc 2.7)\n"
2311 msgstr ""
2312
2313 #. type: Plain text
2314 #: build/C/man3/crypt.3:210
2315 msgid ""
2316 "So $5$I<salt>$I<encrypted> is an SHA-256 encoded password and "
2317 "$6$I<salt>$I<encrypted> is an SHA-512 encoded one."
2318 msgstr ""
2319
2320 #. type: Plain text
2321 #: build/C/man3/crypt.3:215
2322 msgid ""
2323 "\"I<salt>\" stands for the up to 16 characters following \"$I<id>$\" in the "
2324 "salt.  The encrypted part of the password string is the actual computed "
2325 "password.  The size of this string is fixed:"
2326 msgstr ""
2327
2328 #. type: tbl table
2329 #: build/C/man3/crypt.3:217
2330 #, no-wrap
2331 msgid "MD5     | 22 characters\n"
2332 msgstr ""
2333
2334 #. type: tbl table
2335 #: build/C/man3/crypt.3:218
2336 #, no-wrap
2337 msgid "SHA-256 | 43 characters\n"
2338 msgstr ""
2339
2340 #. type: tbl table
2341 #: build/C/man3/crypt.3:219
2342 #, no-wrap
2343 msgid "SHA-512 | 86 characters\n"
2344 msgstr ""
2345
2346 #. type: Plain text
2347 #: build/C/man3/crypt.3:228
2348 msgid ""
2349 "The characters in \"I<salt>\" and \"I<encrypted>\" are drawn from the set "
2350 "[B<a>\\(enB<zA>\\(enB<Z0>\\(enB<9./>].  In the MD5 and SHA implementations "
2351 "the entire I<key> is significant (instead of only the first 8 bytes in DES)."
2352 msgstr ""
2353
2354 #. type: Plain text
2355 #: build/C/man3/crypt.3:234
2356 msgid "B<login>(1), B<passwd>(1), B<encrypt>(3), B<getpass>(3), B<passwd>(5)"
2357 msgstr ""
2358
2359 #. type: TH
2360 #: build/C/man3/daemon.3:34
2361 #, no-wrap
2362 msgid "DAEMON"
2363 msgstr ""
2364
2365 #. type: TH
2366 #: build/C/man3/daemon.3:34
2367 #, no-wrap
2368 msgid "2009-12-05"
2369 msgstr ""
2370
2371 #. type: Plain text
2372 #: build/C/man3/daemon.3:37
2373 msgid "daemon - run in the background"
2374 msgstr ""
2375
2376 #. type: Plain text
2377 #: build/C/man3/daemon.3:41
2378 msgid "B<int daemon(int >I<nochdir>B<, int >I<noclose>B<);>"
2379 msgstr ""
2380
2381 #. type: Plain text
2382 #: build/C/man3/daemon.3:49
2383 msgid "B<daemon>(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\\ E<lt>\\ 500)"
2384 msgstr ""
2385
2386 #. type: Plain text
2387 #: build/C/man3/daemon.3:54
2388 msgid ""
2389 "The B<daemon>()  function is for programs wishing to detach themselves from "
2390 "the controlling terminal and run in the background as system daemons."
2391 msgstr ""
2392
2393 #. type: Plain text
2394 #: build/C/man3/daemon.3:62
2395 msgid ""
2396 "If I<nochdir> is zero, B<daemon>()  changes the calling process's current "
2397 "working directory to the root directory (\"/\"); otherwise, the current "
2398 "working directory is left unchanged."
2399 msgstr ""
2400
2401 #. type: Plain text
2402 #: build/C/man3/daemon.3:70
2403 msgid ""
2404 "If I<noclose> is zero, B<daemon>()  redirects standard input, standard "
2405 "output and standard error to I</dev/null>; otherwise, no changes are made to "
2406 "these file descriptors."
2407 msgstr ""
2408
2409 #.  not .IR in order not to underline _
2410 #. type: Plain text
2411 #: build/C/man3/daemon.3:88
2412 msgid ""
2413 "(This function forks, and if the B<fork>(2)  succeeds, the parent calls "
2414 "B<_exit>(2), so that further errors are seen by the child only.)  On success "
2415 "B<daemon>()  returns zero.  If an error occurs, B<daemon>()  returns -1 and "
2416 "sets I<errno> to any of the errors specified for the B<fork>(2)  and "
2417 "B<setsid>(2)."
2418 msgstr ""
2419
2420 #. type: Plain text
2421 #: build/C/man3/daemon.3:94
2422 msgid ""
2423 "Not in POSIX.1-2001.  A similar function appears on the BSDs.  The "
2424 "B<daemon>()  function first appeared in 4.4BSD."
2425 msgstr ""
2426
2427 #. type: Plain text
2428 #: build/C/man3/daemon.3:102
2429 msgid ""
2430 "The glibc implementation can also return -1 when I</dev/null> exists but is "
2431 "not a character device with the expected major and minor numbers.  In this "
2432 "case I<errno> need not be set."
2433 msgstr ""
2434
2435 #. type: Plain text
2436 #: build/C/man3/daemon.3:105
2437 msgid "B<fork>(2), B<setsid>(2)"
2438 msgstr ""
2439
2440 #. type: TH
2441 #: build/C/man3/des_crypt.3:10
2442 #, no-wrap
2443 msgid "DES_CRYPT"
2444 msgstr ""
2445
2446 #. type: TH
2447 #: build/C/man3/des_crypt.3:10
2448 #, no-wrap
2449 msgid "2007-05-18"
2450 msgstr ""
2451
2452 #. type: Plain text
2453 #: build/C/man3/des_crypt.3:14
2454 msgid ""
2455 "des_crypt, ecb_crypt, cbc_crypt, des_setparity, DES_FAILED - fast DES "
2456 "encryption"
2457 msgstr ""
2458
2459 #.  Sun version
2460 #.  .B #include <des_crypt.h>
2461 #. type: Plain text
2462 #: build/C/man3/des_crypt.3:19
2463 #, no-wrap
2464 msgid "B<#include E<lt>rpc/des_crypt.hE<gt>>\n"
2465 msgstr ""
2466
2467 #. type: Plain text
2468 #: build/C/man3/des_crypt.3:22
2469 #, no-wrap
2470 msgid ""
2471 "B<int ecb_crypt(char *>I<key>B<, char *>I<data>B<, unsigned "
2472 ">I<datalen>B<,>\n"
2473 "B<              unsigned >I<mode>B<);>\n"
2474 msgstr ""
2475
2476 #. type: Plain text
2477 #: build/C/man3/des_crypt.3:25
2478 #, no-wrap
2479 msgid ""
2480 "B<int cbc_crypt(char *>I<key>B<, char *>I<data>B<, unsigned "
2481 ">I<datalen>B<,>\n"
2482 "B<              unsigned >I<mode>B<, char *>I<ivec>B<);>\n"
2483 msgstr ""
2484
2485 #. type: Plain text
2486 #: build/C/man3/des_crypt.3:27
2487 #, no-wrap
2488 msgid "B<void des_setparity(char *>I<key>B<);>\n"
2489 msgstr ""
2490
2491 #. type: Plain text
2492 #: build/C/man3/des_crypt.3:29
2493 #, no-wrap
2494 msgid "B<int DES_FAILED(int >I<status>B<);>\n"
2495 msgstr ""
2496
2497 #. type: Plain text
2498 #: build/C/man3/des_crypt.3:59
2499 msgid ""
2500 "B<ecb_crypt>()  and B<cbc_crypt>()  implement the NBS DES (Data Encryption "
2501 "Standard).  These routines are faster and more general purpose than "
2502 "B<crypt>(3).  They also are able to utilize DES hardware if it is "
2503 "available.  B<ecb_crypt>()  encrypts in ECB (Electronic Code Book)  mode, "
2504 "which encrypts blocks of data independently.  B<cbc_crypt>()  encrypts in "
2505 "CBC (Cipher Block Chaining)  mode, which chains together successive blocks.  "
2506 "CBC mode protects against insertions, deletions and substitutions of "
2507 "blocks.  Also, regularities in the clear text will not appear in the cipher "
2508 "text."
2509 msgstr ""
2510
2511 #. type: Plain text
2512 #: build/C/man3/des_crypt.3:102
2513 msgid ""
2514 "Here is how to use these routines.  The first argument, I<key>, is the "
2515 "8-byte encryption key with parity.  To set the key's parity, which for DES "
2516 "is in the low bit of each byte, use B<des_setparity>().  The second "
2517 "argument, I<data>, contains the data to be encrypted or decrypted.  The "
2518 "third argument, I<datalen>, is the length in bytes of I<data>, which must be "
2519 "a multiple of 8.  The fourth argument, I<mode>, is formed by ORing together "
2520 "some things.  For the encryption direction OR in either B<DES_ENCRYPT> or "
2521 "B<DES_DECRYPT>.  For software versus hardware encryption, OR in either "
2522 "B<DES_HW> or B<DES_SW>.  If B<DES_HW> is specified, and there is no "
2523 "hardware, then the encryption is performed in software and the routine "
2524 "returns B<DESERR_NOHWDEVICE>.  For B<cbc_crypt>(), the argument I<ivec> is "
2525 "the 8-byte initialization vector for the chaining.  It is updated to the "
2526 "next initialization vector upon return."
2527 msgstr ""
2528
2529 #. type: TP
2530 #: build/C/man3/des_crypt.3:104
2531 #, no-wrap
2532 msgid "B<DESERR_NONE>"
2533 msgstr ""
2534
2535 #. type: Plain text
2536 #: build/C/man3/des_crypt.3:107
2537 msgid "No error."
2538 msgstr ""
2539
2540 #. type: TP
2541 #: build/C/man3/des_crypt.3:107
2542 #, no-wrap
2543 msgid "B<DESERR_NOHWDEVICE>"
2544 msgstr ""
2545
2546 #. type: Plain text
2547 #: build/C/man3/des_crypt.3:110
2548 msgid ""
2549 "Encryption succeeded, but done in software instead of the requested "
2550 "hardware."
2551 msgstr ""
2552
2553 #. type: TP
2554 #: build/C/man3/des_crypt.3:110
2555 #, no-wrap
2556 msgid "B<DESERR_HWERROR>"
2557 msgstr ""
2558
2559 #. type: Plain text
2560 #: build/C/man3/des_crypt.3:113
2561 msgid "An error occurred in the hardware or driver."
2562 msgstr ""
2563
2564 #. type: TP
2565 #: build/C/man3/des_crypt.3:113
2566 #, no-wrap
2567 msgid "B<DESERR_BADPARAM>"
2568 msgstr ""
2569
2570 #. type: Plain text
2571 #: build/C/man3/des_crypt.3:116
2572 msgid "Bad argument to routine."
2573 msgstr ""
2574
2575 #.  .BR DES_FAILED\c
2576 #.  .BR ( stat )
2577 #.  So far the Sun page
2578 #.  Some additions - aeb
2579 #. type: Plain text
2580 #: build/C/man3/des_crypt.3:127
2581 msgid ""
2582 "Given a result status I<stat>, the macro B<DES_FAILED(>I<stat>B<)> is false "
2583 "only for the first two statuses."
2584 msgstr ""
2585
2586 #. type: SH
2587 #: build/C/man3/des_crypt.3:127 build/C/man2/dup.2:164 build/C/man3/euidaccess.3:70 build/C/man3/exec.3:193 build/C/man2/exit_group.2:39 build/C/man3/fexecve.3:91 build/C/man2/get_thread_area.2:37 build/C/man2/gettid.2:51 build/C/man2/idle.2:59 build/C/man2/mincore.2:132 build/C/man2/pread.2:102 build/C/man2/set_thread_area.2:55 build/C/man2/setup.2:60
2588 #, no-wrap
2589 msgid "VERSIONS"
2590 msgstr ""
2591
2592 #. type: Plain text
2593 #: build/C/man3/des_crypt.3:130
2594 msgid ""
2595 "These routines are present in libc 4.6.27 and later, and in glibc 2.1 and "
2596 "later."
2597 msgstr ""
2598
2599 #. type: Plain text
2600 #: build/C/man3/des_crypt.3:133
2601 msgid "4.3BSD.  Not in POSIX.1-2001."
2602 msgstr ""
2603
2604 #. type: Plain text
2605 #: build/C/man3/des_crypt.3:137
2606 msgid "B<des>(1), B<crypt>(3), B<xcrypt>(3)"
2607 msgstr ""
2608
2609 #. type: TH
2610 #: build/C/man2/dup.2:36
2611 #, no-wrap
2612 msgid "DUP"
2613 msgstr ""
2614
2615 #. type: TH
2616 #: build/C/man2/dup.2:36 build/C/man3/getumask.3:26
2617 #, no-wrap
2618 msgid "2010-09-10"
2619 msgstr ""
2620
2621 #. type: Plain text
2622 #: build/C/man2/dup.2:39
2623 msgid "dup, dup2, dup3 - duplicate a file descriptor"
2624 msgstr ""
2625
2626 #. type: Plain text
2627 #: build/C/man2/dup.2:45
2628 #, no-wrap
2629 msgid ""
2630 "B<int dup(int >I<oldfd>B<);>\n"
2631 "B<int dup2(int >I<oldfd>B<, int >I<newfd>B<);>\n"
2632 msgstr ""
2633
2634 #. type: Plain text
2635 #: build/C/man2/dup.2:48 build/C/man3/euidaccess.3:33
2636 #, no-wrap
2637 msgid ""
2638 "B<#define _GNU_SOURCE>             /* See feature_test_macros(7) */\n"
2639 "B<#include E<lt>unistd.hE<gt>>\n"
2640 msgstr ""
2641
2642 #. type: Plain text
2643 #: build/C/man2/dup.2:50
2644 #, no-wrap
2645 msgid "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n"
2646 msgstr ""
2647
2648 #. type: Plain text
2649 #: build/C/man2/dup.2:54
2650 msgid "These system calls create a copy of the file descriptor I<oldfd>."
2651 msgstr ""
2652
2653 #. type: Plain text
2654 #: build/C/man2/dup.2:57
2655 msgid "B<dup>()  uses the lowest-numbered unused descriptor for the new descriptor."
2656 msgstr ""
2657
2658 #. type: Plain text
2659 #: build/C/man2/dup.2:61
2660 msgid ""
2661 "B<dup2>()  makes I<newfd> be the copy of I<oldfd>, closing I<newfd> first if "
2662 "necessary, but note the following:"
2663 msgstr ""
2664
2665 #. type: Plain text
2666 #: build/C/man2/dup.2:67
2667 msgid ""
2668 "If I<oldfd> is not a valid file descriptor, then the call fails, and "
2669 "I<newfd> is not closed."
2670 msgstr ""
2671
2672 #. type: Plain text
2673 #: build/C/man2/dup.2:78
2674 msgid ""
2675 "If I<oldfd> is a valid file descriptor, and I<newfd> has the same value as "
2676 "I<oldfd>, then B<dup2>()  does nothing, and returns I<newfd>."
2677 msgstr ""
2678
2679 #. type: Plain text
2680 #: build/C/man2/dup.2:87
2681 msgid ""
2682 "After a successful return from one of these system calls, the old and new "
2683 "file descriptors may be used interchangeably.  They refer to the same open "
2684 "file description (see B<open>(2))  and thus share file offset and file "
2685 "status flags; for example, if the file offset is modified by using "
2686 "B<lseek>(2)  on one of the descriptors, the offset is also changed for the "
2687 "other."
2688 msgstr ""
2689
2690 #. type: Plain text
2691 #: build/C/man2/dup.2:95
2692 msgid ""
2693 "The two descriptors do not share file descriptor flags (the close-on-exec "
2694 "flag).  The close-on-exec flag (B<FD_CLOEXEC>; see B<fcntl>(2))  for the "
2695 "duplicate descriptor is off."
2696 msgstr ""
2697
2698 #. type: Plain text
2699 #: build/C/man2/dup.2:100
2700 msgid "B<dup3>()  is the same as B<dup2>(), except that:"
2701 msgstr ""
2702
2703 #. type: Plain text
2704 #: build/C/man2/dup.2:109
2705 msgid ""
2706 "The caller can force the close-on-exec flag to be set for the new file "
2707 "descriptor by specifying B<O_CLOEXEC> in I<flags>.  See the description of "
2708 "the same flag in B<open>(2)  for reasons why this may be useful."
2709 msgstr ""
2710
2711 #.  FIXME . To confirm with Al Viro that this was intended, and its rationale
2712 #. type: Plain text
2713 #: build/C/man2/dup.2:119
2714 msgid "If I<oldfd> equals I<newfd>, then B<dup3>()  fails with the error B<EINVAL>."
2715 msgstr ""
2716
2717 #. type: Plain text
2718 #: build/C/man2/dup.2:125
2719 msgid ""
2720 "On success, these system calls return the new descriptor.  On error, -1 is "
2721 "returned, and I<errno> is set appropriately."
2722 msgstr ""
2723
2724 #. type: Plain text
2725 #: build/C/man2/dup.2:132
2726 msgid ""
2727 "I<oldfd> isn't an open file descriptor, or I<newfd> is out of the allowed "
2728 "range for file descriptors."
2729 msgstr ""
2730
2731 #. type: TP
2732 #: build/C/man2/dup.2:132 build/C/man2/swapon.2:114
2733 #, no-wrap
2734 msgid "B<EBUSY>"
2735 msgstr ""
2736
2737 #. type: Plain text
2738 #: build/C/man2/dup.2:142
2739 msgid ""
2740 "(Linux only) This may be returned by B<dup2>()  or B<dup3>()  during a race "
2741 "condition with B<open>(2)  and B<dup>()."
2742 msgstr ""
2743
2744 #. type: Plain text
2745 #: build/C/man2/dup.2:150
2746 msgid ""
2747 "The B<dup2>()  or B<dup3>()  call was interrupted by a signal; see "
2748 "B<signal>(7)."
2749 msgstr ""
2750
2751 #.  FIXME . To confirm with Al Viro that this was intended, and its rationale
2752 #. type: Plain text
2753 #: build/C/man2/dup.2:160
2754 msgid ""
2755 "(B<dup3>())  I<flags> contain an invalid value.  Or, I<oldfd> was equal to "
2756 "I<newfd>."
2757 msgstr ""
2758
2759 #. type: TP
2760 #: build/C/man2/dup.2:160 build/C/man2/execve.2:393 build/C/man2/fcntl.2:1122 build/C/man3/getlogin.3:103
2761 #, no-wrap
2762 msgid "B<EMFILE>"
2763 msgstr ""
2764
2765 #. type: Plain text
2766 #: build/C/man2/dup.2:164
2767 msgid ""
2768 "The process already has the maximum number of file descriptors open and "
2769 "tried to open a new one."
2770 msgstr ""
2771
2772 #. type: Plain text
2773 #: build/C/man2/dup.2:169
2774 msgid ""
2775 "B<dup3>()  was added to Linux in version 2.6.27; glibc support is available "
2776 "starting with version 2.9."
2777 msgstr ""
2778
2779 #. type: Plain text
2780 #: build/C/man2/dup.2:173
2781 msgid "B<dup>(), B<dup2>(): SVr4, 4.3BSD, POSIX.1-2001."
2782 msgstr ""
2783
2784 #.  SVr4 documents additional
2785 #.  EINTR and ENOLINK error conditions.  POSIX.1 adds EINTR.
2786 #.  The EBUSY return is Linux-specific.
2787 #. type: Plain text
2788 #: build/C/man2/dup.2:179
2789 msgid "B<dup3>()  is Linux-specific."
2790 msgstr ""
2791
2792 #. type: Plain text
2793 #: build/C/man2/dup.2:193
2794 msgid ""
2795 "The error returned by B<dup2>()  is different from that returned by "
2796 "B<fcntl(>..., B<F_DUPFD>, ...B<)> when I<newfd> is out of range.  On some "
2797 "systems B<dup2>()  also sometimes returns B<EINVAL> like B<F_DUPFD>."
2798 msgstr ""
2799
2800 #. type: Plain text
2801 #: build/C/man2/dup.2:206
2802 msgid ""
2803 "If I<newfd> was open, any errors that would have been reported at "
2804 "B<close>(2)  time are lost.  A careful programmer will not use B<dup2>()  or "
2805 "B<dup3>()  without closing I<newfd> first."
2806 msgstr ""
2807
2808 #. type: Plain text
2809 #: build/C/man2/dup.2:210
2810 msgid "B<close>(2), B<fcntl>(2), B<open>(2)"
2811 msgstr ""
2812
2813 #. type: TH
2814 #: build/C/man3/encrypt.3:24
2815 #, no-wrap
2816 msgid "ENCRYPT"
2817 msgstr ""
2818
2819 #. type: TH
2820 #: build/C/man3/encrypt.3:24
2821 #, no-wrap
2822 msgid "2003-04-04"
2823 msgstr ""
2824
2825 #. type: Plain text
2826 #: build/C/man3/encrypt.3:27
2827 msgid "encrypt, setkey, encrypt_r, setkey_r - encrypt 64-bit messages"
2828 msgstr ""
2829
2830 #. type: Plain text
2831 #: build/C/man3/encrypt.3:29 build/C/man3/encrypt.3:35
2832 msgid "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */"
2833 msgstr ""
2834
2835 #. type: Plain text
2836 #: build/C/man3/encrypt.3:33
2837 msgid "B<void encrypt(char >I<block>B<[64], int >I<edflag>B<);>"
2838 msgstr ""
2839
2840 #. type: Plain text
2841 #: build/C/man3/encrypt.3:37
2842 msgid "B<#include E<lt>stdlib.hE<gt>>"
2843 msgstr ""
2844
2845 #. type: Plain text
2846 #: build/C/man3/encrypt.3:39
2847 msgid "B<void setkey(const char *>I<key>B<);>"
2848 msgstr ""
2849
2850 #. type: Plain text
2851 #: build/C/man3/encrypt.3:41 build/C/man3/getumask.3:31
2852 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */"
2853 msgstr ""
2854
2855 #. type: Plain text
2856 #: build/C/man3/encrypt.3:43
2857 msgid "B<#include E<lt>crypt.hE<gt>>"
2858 msgstr ""
2859
2860 #. type: Plain text
2861 #: build/C/man3/encrypt.3:45
2862 msgid "B<void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>"
2863 msgstr ""
2864
2865 #. type: Plain text
2866 #: build/C/man3/encrypt.3:48
2867 msgid ""
2868 "B<void encrypt_r(char *>I<block>B<, int >I<edflag>B<, struct crypt_data "
2869 "*>I<data>B<);>"
2870 msgstr ""
2871
2872 #. type: Plain text
2873 #: build/C/man3/encrypt.3:50
2874 msgid "Each of these requires linking with I<-lcrypt>."
2875 msgstr ""
2876
2877 #. type: Plain text
2878 #: build/C/man3/encrypt.3:62
2879 msgid ""
2880 "These functions encrypt and decrypt 64-bit messages.  The B<setkey>()  "
2881 "function sets the key used by B<encrypt>().  The I<key> argument used here "
2882 "is an array of 64 bytes, each of which has numerical value 1 or 0.  The "
2883 "bytes key[n] where n=8*i-1 are ignored, so that the effective key length is "
2884 "56 bits."
2885 msgstr ""
2886
2887 #. type: Plain text
2888 #: build/C/man3/encrypt.3:74
2889 msgid ""
2890 "The B<encrypt>()  function modifies the passed buffer, encoding if I<edflag> "
2891 "is 0, and decoding if 1 is being passed.  Like the I<key> argument, also "
2892 "I<block> is a bit vector representation of the actual value that is "
2893 "encoded.  The result is returned in that same vector."
2894 msgstr ""
2895
2896 #. type: Plain text
2897 #: build/C/man3/encrypt.3:84
2898 msgid ""
2899 "These two functions are not reentrant, that is, the key data is kept in "
2900 "static storage.  The functions B<setkey_r>()  and B<encrypt_r>()  are the "
2901 "reentrant versions.  They use the following structure to hold the key data:"
2902 msgstr ""
2903
2904 #. type: Plain text
2905 #: build/C/man3/encrypt.3:99
2906 #, no-wrap
2907 msgid ""
2908 "struct crypt_data {\n"
2909 "    char     keysched[16 * 8];\n"
2910 "    char     sb0[32768];\n"
2911 "    char     sb1[32768];\n"
2912 "    char     sb2[32768];\n"
2913 "    char     sb3[32768];\n"
2914 "    char     crypt_3_buf[14];\n"
2915 "    char     current_salt[2];\n"
2916 "    long int current_saltbits;\n"
2917 "    int      direction;\n"
2918 "    int      initialized;\n"
2919 "};\n"
2920 msgstr ""
2921
2922 #. type: Plain text
2923 #: build/C/man3/encrypt.3:107
2924 msgid "Before calling B<setkey_r>()  set I<data-E<gt>initialized> to zero."
2925 msgstr ""
2926
2927 #. type: Plain text
2928 #: build/C/man3/encrypt.3:109
2929 msgid "These functions do not return any value."
2930 msgstr ""
2931
2932 #. type: Plain text
2933 #: build/C/man3/encrypt.3:114
2934 msgid ""
2935 "Set I<errno> to zero before calling the above functions.  On success, it is "
2936 "unchanged."
2937 msgstr ""
2938
2939 #. type: Plain text
2940 #: build/C/man3/encrypt.3:118
2941 msgid ""
2942 "The function is not provided.  (For example because of former USA export "
2943 "restrictions.)"
2944 msgstr ""
2945
2946 #. type: Plain text
2947 #: build/C/man3/encrypt.3:129
2948 msgid ""
2949 "The functions B<encrypt>()  and B<setkey>()  conform to SVr4, SUSv2, and "
2950 "POSIX.1-2001.  The functions B<encrypt_r>()  and B<setkey_r>()  are GNU "
2951 "extensions."
2952 msgstr ""
2953
2954 #. type: Plain text
2955 #: build/C/man3/encrypt.3:131
2956 msgid "In glibc 2.2 these functions use the DES algorithm."
2957 msgstr ""
2958
2959 #. type: Plain text
2960 #: build/C/man3/encrypt.3:138
2961 msgid ""
2962 "You need to link with libcrypt to compile this example with glibc.  To do "
2963 "useful work the I<key[]> and I<txt[]> arrays must be filled with a useful "
2964 "bit pattern."
2965 msgstr ""
2966
2967 #. type: Plain text
2968 #: build/C/man3/encrypt.3:143
2969 #, no-wrap
2970 msgid ""
2971 "#define _XOPEN_SOURCE\n"
2972 "#include E<lt>unistd.hE<gt>\n"
2973 "#include E<lt>stdlib.hE<gt>\n"
2974 msgstr ""
2975
2976 #. type: Plain text
2977 #: build/C/man3/encrypt.3:149
2978 #, no-wrap
2979 msgid ""
2980 "int\n"
2981 "main(void)\n"
2982 "{\n"
2983 "    char key[64];      /* bit pattern for key */\n"
2984 "    char txt[64];      /* bit pattern for messages */\n"
2985 msgstr ""
2986
2987 #. type: Plain text
2988 #: build/C/man3/encrypt.3:154
2989 #, no-wrap
2990 msgid ""
2991 "    setkey(key);\n"
2992 "    encrypt(txt, 0);   /* encode */\n"
2993 "    encrypt(txt, 1);   /* decode */\n"
2994 "}\n"
2995 msgstr ""
2996
2997 #.  .BR fcrypt (3)
2998 #. type: Plain text
2999 #: build/C/man3/encrypt.3:160
3000 msgid "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3),"
3001 msgstr ""
3002
3003 #. type: TH
3004 #: build/C/man7/environ.7:33
3005 #, no-wrap
3006 msgid "ENVIRON"
3007 msgstr ""
3008
3009 #. type: TH
3010 #: build/C/man7/environ.7:33 build/C/man2/flock.2:34
3011 #, no-wrap
3012 msgid "2009-07-25"
3013 msgstr ""
3014
3015 #. type: Plain text
3016 #: build/C/man7/environ.7:36
3017 msgid "environ - user environment"
3018 msgstr ""
3019
3020 #. type: Plain text
3021 #: build/C/man7/environ.7:39
3022 #, no-wrap
3023 msgid "B<extern char **>I<environ>B<;>\n"
3024 msgstr ""
3025
3026 #. type: Plain text
3027 #: build/C/man7/environ.7:56
3028 msgid ""
3029 "The variable I<environ> points to an array of pointers to strings called the "
3030 "\"environment\".  The last pointer in this array has the value NULL.  (This "
3031 "variable must be declared in the user program, but is declared in the header "
3032 "file I<E<lt>unistd.hE<gt>> in case the header files came from libc4 or "
3033 "libc5, and in case they came from glibc and B<_GNU_SOURCE> was defined.)  "
3034 "This array of strings is made available to the process by the B<exec>(3)  "
3035 "call that started the process."
3036 msgstr ""
3037
3038 #. type: Plain text
3039 #: build/C/man7/environ.7:61
3040 msgid ""
3041 "By convention the strings in I<environ> have the form "
3042 "\"I<name>B<=>I<value>\".  Common examples are:"
3043 msgstr ""
3044
3045 #. type: TP
3046 #: build/C/man7/environ.7:61
3047 #, no-wrap
3048 msgid "B<USER>"
3049 msgstr ""
3050
3051 #. type: Plain text
3052 #: build/C/man7/environ.7:64
3053 msgid "The name of the logged-in user (used by some BSD-derived programs)."
3054 msgstr ""
3055
3056 #. type: TP
3057 #: build/C/man7/environ.7:64
3058 #, no-wrap
3059 msgid "B<LOGNAME>"
3060 msgstr ""
3061
3062 #. type: Plain text
3063 #: build/C/man7/environ.7:67
3064 msgid "The name of the logged-in user (used by some System-V derived programs)."
3065 msgstr ""
3066
3067 #. type: TP
3068 #: build/C/man7/environ.7:67
3069 #, no-wrap
3070 msgid "B<HOME>"
3071 msgstr ""
3072
3073 #. type: Plain text
3074 #: build/C/man7/environ.7:73
3075 msgid ""
3076 "A user's login directory, set by B<login>(1)  from the password file "
3077 "B<passwd>(5)."
3078 msgstr ""
3079
3080 #. type: TP
3081 #: build/C/man7/environ.7:73
3082 #, no-wrap
3083 msgid "B<LANG>"
3084 msgstr ""
3085
3086 #. type: Plain text
3087 #: build/C/man7/environ.7:80
3088 msgid ""
3089 "The name of a locale to use for locale categories when not overridden by "
3090 "B<LC_ALL> or more specific environment variables like B<LC_COLLATE>, "
3091 "B<LC_CTYPE>, B<LC_MESSAGES>, B<LC_MONETARY>, B<LC_NUMERIC>, B<LC_TIME>, cf.  "
3092 "B<locale>(5)."
3093 msgstr ""
3094
3095 #. type: TP
3096 #: build/C/man7/environ.7:80
3097 #, no-wrap
3098 msgid "B<PATH>"
3099 msgstr ""
3100
3101 #. type: Plain text
3102 #: build/C/man7/environ.7:92
3103 msgid ""
3104 "The sequence of directory prefixes that B<sh>(1)  and many other programs "
3105 "apply in searching for a file known by an incomplete pathname.  The prefixes "
3106 "are separated by \\(aqB<:>\\(aq.  (Similarly one has B<CDPATH> used by some "
3107 "shells to find the target of a change directory command, B<MANPATH> used by "
3108 "B<man>(1)  to find manual pages, etc.)"
3109 msgstr ""
3110
3111 #. type: TP
3112 #: build/C/man7/environ.7:92
3113 #, no-wrap
3114 msgid "B<PWD>"
3115 msgstr ""
3116
3117 #. type: Plain text
3118 #: build/C/man7/environ.7:96
3119 msgid "The current working directory.  Set by some shells."
3120 msgstr ""
3121
3122 #. type: TP
3123 #: build/C/man7/environ.7:96
3124 #, no-wrap
3125 msgid "B<SHELL>"
3126 msgstr ""
3127
3128 #. type: Plain text
3129 #: build/C/man7/environ.7:99
3130 msgid "The pathname of the user's login shell."
3131 msgstr ""
3132
3133 #. type: TP
3134 #: build/C/man7/environ.7:99
3135 #, no-wrap
3136 msgid "B<TERM>"
3137 msgstr ""
3138
3139 #. type: Plain text
3140 #: build/C/man7/environ.7:102
3141 msgid "The terminal type for which output is to be prepared."
3142 msgstr ""
3143
3144 #. type: TP
3145 #: build/C/man7/environ.7:102
3146 #, no-wrap
3147 msgid "B<PAGER>"
3148 msgstr ""
3149
3150 #. type: Plain text
3151 #: build/C/man7/environ.7:105
3152 msgid "The user's preferred utility to display text files."
3153 msgstr ""
3154
3155 #. type: TP
3156 #: build/C/man7/environ.7:105
3157 #, no-wrap
3158 msgid "B<EDITOR>/B<VISUAL>"
3159 msgstr ""
3160
3161 #.  .TP
3162 #.  .B BROWSER
3163 #.  The user's preferred utility to browse URLs. Sequence of colon-separated
3164 #.  browser commands. See http://www.catb.org/~esr/BROWSER/ .
3165 #. type: Plain text
3166 #: build/C/man7/environ.7:112
3167 msgid "The user's preferred utility to edit text files."
3168 msgstr ""
3169
3170 #. type: Plain text
3171 #: build/C/man7/environ.7:127
3172 msgid ""
3173 "Further names may be placed in the environment by the I<export> command and "
3174 "\"name=value\" in B<sh>(1), or by the I<setenv> command if you use "
3175 "B<csh>(1).  Arguments may also be placed in the environment at the point of "
3176 "an B<exec>(3).  A C program can manipulate its environment using the "
3177 "functions B<getenv>(3), B<putenv>(3), B<setenv>(3), and B<unsetenv>(3)."
3178 msgstr ""
3179
3180 #. type: Plain text
3181 #: build/C/man7/environ.7:131
3182 msgid ""
3183 "Note that the behavior of many programs and library routines is influenced "
3184 "by the presence or value of certain environment variables.  A random "
3185 "collection:"
3186 msgstr ""
3187
3188 #. type: Plain text
3189 #: build/C/man7/environ.7:137
3190 msgid ""
3191 "The variables B<LANG>, B<LANGUAGE>, B<NLSPATH>, B<LOCPATH>, B<LC_ALL>, "
3192 "B<LC_MESSAGES>, etc. influence locale handling, cf.  B<locale>(5)."
3193 msgstr ""
3194
3195 #. type: Plain text
3196 #: build/C/man7/environ.7:144
3197 msgid ""
3198 "B<TMPDIR> influences the path prefix of names created by B<tmpnam>(3)  and "
3199 "other routines, the temporary directory used by B<sort>(1)  and other "
3200 "programs, etc."
3201 msgstr ""
3202
3203 #. type: Plain text
3204 #: build/C/man7/environ.7:148
3205 msgid ""
3206 "B<LD_LIBRARY_PATH>, B<LD_PRELOAD> and other LD_* variables influence the "
3207 "behavior of the dynamic loader/linker."
3208 msgstr ""
3209
3210 #. type: Plain text
3211 #: build/C/man7/environ.7:152
3212 msgid ""
3213 "B<POSIXLY_CORRECT> makes certain programs and library routines follow the "
3214 "prescriptions of POSIX."
3215 msgstr ""
3216
3217 #. type: Plain text
3218 #: build/C/man7/environ.7:158
3219 msgid "The behavior of B<malloc>(3)  is influenced by B<MALLOC_*> variables."
3220 msgstr ""
3221
3222 #. type: Plain text
3223 #: build/C/man7/environ.7:164
3224 msgid ""
3225 "The variable B<HOSTALIASES> gives the name of a file containing aliases to "
3226 "be used with B<gethostbyname>(3)."
3227 msgstr ""
3228
3229 #. type: Plain text
3230 #: build/C/man7/environ.7:175
3231 msgid ""
3232 "B<TZ> and B<TZDIR> give timezone information used by B<tzset>(3)  and "
3233 "through that by functions like B<ctime>(3), B<localtime>(3), B<mktime>(3), "
3234 "B<strftime>(3).  See also B<tzselect>(8)."
3235 msgstr ""
3236
3237 #. type: Plain text
3238 #: build/C/man7/environ.7:179
3239 msgid ""
3240 "B<TERMCAP> gives information on how to address a given terminal (or gives "
3241 "the name of a file containing such information)."
3242 msgstr ""
3243
3244 #. type: Plain text
3245 #: build/C/man7/environ.7:182
3246 msgid ""
3247 "B<COLUMNS> and B<LINES> tell applications about the window size, possibly "
3248 "overriding the actual size."
3249 msgstr ""
3250
3251 #. type: Plain text
3252 #: build/C/man7/environ.7:187
3253 msgid ""
3254 "B<PRINTER> or B<LPDEST> may specify the desired printer to use.  See "
3255 "B<lpr>(1)."
3256 msgstr ""
3257
3258 #. type: Plain text
3259 #: build/C/man7/environ.7:189
3260 msgid "Etc."
3261 msgstr ""
3262
3263 #. type: Plain text
3264 #: build/C/man7/environ.7:194
3265 msgid ""
3266 "Clearly there is a security risk here.  Many a system command has been "
3267 "tricked into mischief by a user who specified unusual values for B<IFS> or "
3268 "B<LD_LIBRARY_PATH>."
3269 msgstr ""
3270
3271 #. type: Plain text
3272 #: build/C/man7/environ.7:227
3273 msgid ""
3274 "There is also the risk of name space pollution.  Programs like I<make> and "
3275 "I<autoconf> allow overriding of default utility names from the environment "
3276 "with similarly named variables in all caps.  Thus one uses B<CC> to select "
3277 "the desired C compiler (and similarly B<MAKE>, B<AR>, B<AS>, B<FC>, B<LD>, "
3278 "B<LEX>, B<RM>, B<YACC>, etc.).  However, in some traditional uses such an "
3279 "environment variable gives options for the program instead of a pathname.  "
3280 "Thus, one has B<MORE>, B<LESS>, and B<GZIP>.  Such usage is considered "
3281 "mistaken, and to be avoided in new programs.  The authors of I<gzip> should "
3282 "consider renaming their option to B<GZIP_OPT>."
3283 msgstr ""
3284
3285 #. type: Plain text
3286 #: build/C/man7/environ.7:241
3287 msgid ""
3288 "B<bash>(1), B<csh>(1), B<login>(1), B<sh>(1), B<tcsh>(1), B<execve>(2), "
3289 "B<clearenv>(3), B<exec>(3), B<getenv>(3), B<putenv>(3), B<setenv>(3), "
3290 "B<unsetenv>(3), B<locale>(5)"
3291 msgstr ""
3292
3293 #. type: TH
3294 #: build/C/man3/euidaccess.3:26
3295 #, no-wrap
3296 msgid "EUIDACCESS"
3297 msgstr ""
3298
3299 #. type: TH
3300 #: build/C/man3/euidaccess.3:26 build/C/man3/getopt.3:39
3301 #, no-wrap
3302 msgid "2010-11-01"
3303 msgstr ""
3304
3305 #. type: Plain text
3306 #: build/C/man3/euidaccess.3:29
3307 msgid "euidaccess, eaccess - check effective user's permissions for a file"
3308 msgstr ""
3309
3310 #. type: Plain text
3311 #: build/C/man3/euidaccess.3:36
3312 #, no-wrap
3313 msgid ""
3314 "B<int euidaccess(const char *>I<pathname>B<, int >I<mode>B<);>\n"
3315 "B<int eaccess(const char *>I<pathname>B<, int >I<mode>B<);>\n"
3316 msgstr ""
3317
3318 #. type: Plain text
3319 #: build/C/man3/euidaccess.3:48
3320 msgid ""
3321 "Like B<access>(2), B<euidaccess>()  checks permissions and existence of the "
3322 "file identified by its argument I<pathname>.  However, whereas B<access>(2), "
3323 "performs checks using the real user and group identifiers of the process, "
3324 "B<euidaccess>()  uses the effective identifiers."
3325 msgstr ""
3326
3327 #. type: Plain text
3328 #: build/C/man3/euidaccess.3:54
3329 msgid ""
3330 "I<mode> is a mask consisting of one or more of B<R_OK>, B<W_OK>, B<X_OK> and "
3331 "B<F_OK>, with the same meanings as for B<access>(2)."
3332 msgstr ""
3333
3334 #. type: Plain text
3335 #: build/C/man3/euidaccess.3:59
3336 msgid ""
3337 "B<eaccess>()  is a synonym for B<euidaccess>(), provided for compatibility "
3338 "with some other systems."
3339 msgstr ""
3340
3341 #. type: Plain text
3342 #: build/C/man3/euidaccess.3:70
3343 msgid "As for B<access>(2)."
3344 msgstr ""
3345
3346 #. type: Plain text
3347 #: build/C/man3/euidaccess.3:74
3348 msgid "The B<eaccess>()  function was added to glibc in version 2.4."
3349 msgstr ""
3350
3351 #.  e.g., FreeBSD 6.1.
3352 #. type: Plain text
3353 #: build/C/man3/euidaccess.3:80
3354 msgid ""
3355 "These functions are nonstandard.  Some other systems have an B<eaccess>()  "
3356 "function."
3357 msgstr ""
3358
3359 #. type: Plain text
3360 #: build/C/man3/euidaccess.3:87
3361 msgid ""
3362 "I<Warning>: Using this function to check a process's permissions on a file "
3363 "before performing some operation based on that information leads to race "
3364 "conditions: the file permissions may change between the two steps.  "
3365 "Generally, it is safer just to attempt the desired operation and handle any "
3366 "permission error that occurs."
3367 msgstr ""
3368
3369 #. type: Plain text
3370 #: build/C/man3/euidaccess.3:95
3371 msgid ""
3372 "This function always dereferences symbolic links.  If you need to check the "
3373 "permissions on a symbolic link, use B<faccessat(2)> with the flags "
3374 "B<AT_EACCESS> and B<AT_SYMLINK_NOFOLLOW>."
3375 msgstr ""
3376
3377 #. type: Plain text
3378 #: build/C/man3/euidaccess.3:106
3379 msgid ""
3380 "B<access>(2), B<chmod>(2), B<chown>(2), B<faccessat>(2), B<open>(2), "
3381 "B<setgid>(2), B<setuid>(2), B<stat>(2), B<credentials>(7), "
3382 "B<path_resolution>(7)"
3383 msgstr ""
3384
3385 #. type: TH
3386 #: build/C/man3/exec.3:39
3387 #, no-wrap
3388 msgid "EXEC"
3389 msgstr ""
3390
3391 #. type: TH
3392 #: build/C/man3/exec.3:39
3393 #, no-wrap
3394 msgid "2010-09-25"
3395 msgstr ""
3396
3397 #. type: Plain text
3398 #: build/C/man3/exec.3:42
3399 msgid "execl, execlp, execle, execv, execvp, execvpe - execute a file"
3400 msgstr ""
3401
3402 #. type: Plain text
3403 #: build/C/man3/exec.3:46
3404 msgid "B<extern char **environ;>"
3405 msgstr ""
3406
3407 #. type: Plain text
3408 #: build/C/man3/exec.3:48
3409 msgid "B<int execl(const char *>I<path>B<, const char *>I<arg>B<, ...);>"
3410 msgstr ""
3411
3412 #. type: Plain text
3413 #: build/C/man3/exec.3:50
3414 msgid "B<int execlp(const char *>I<file>B<, const char *>I<arg>B<, ...);>"
3415 msgstr ""
3416
3417 #. type: Plain text
3418 #: build/C/man3/exec.3:52
3419 msgid "B<int execle(const char *>I<path>B<, const char *>I<arg>B<,>"
3420 msgstr ""
3421
3422 #. type: Plain text
3423 #: build/C/man3/exec.3:54
3424 msgid "B< ..., char * const >I<envp>B<[]);>"
3425 msgstr ""
3426
3427 #. type: Plain text
3428 #: build/C/man3/exec.3:56
3429 msgid "B<int execv(const char *>I<path>B<, char *const >I<argv>B<[]);>"
3430 msgstr ""
3431
3432 #. type: Plain text
3433 #: build/C/man3/exec.3:58
3434 msgid "B<int execvp(const char *>I<file>B<, char *const >I<argv>B<[]);>"
3435 msgstr ""
3436
3437 #. type: Plain text
3438 #: build/C/man3/exec.3:60
3439 msgid "B<int execvpe(const char *>I<file>B<, char *const >I<argv>B<[],>"
3440 msgstr ""
3441
3442 #. type: Plain text
3443 #: build/C/man3/exec.3:62 build/C/man2/execve.2:46
3444 msgid "B< char *const >I<envp>B<[]);>"
3445 msgstr ""
3446
3447 #. type: Plain text
3448 #: build/C/man3/exec.3:70
3449 msgid "B<execvpe>(): _GNU_SOURCE"
3450 msgstr ""
3451
3452 #. type: Plain text
3453 #: build/C/man3/exec.3:80
3454 msgid ""
3455 "The B<exec>()  family of functions replaces the current process image with a "
3456 "new process image.  The functions described in this manual page are "
3457 "front-ends for B<execve>(2).  (See the manual page for B<execve>(2)  for "
3458 "further details about the replacement of the current process image.)"
3459 msgstr ""
3460
3461 #. type: Plain text
3462 #: build/C/man3/exec.3:83
3463 msgid ""
3464 "The initial argument for these functions is the name of a file that is to be "
3465 "executed."
3466 msgstr ""
3467
3468 #. type: Plain text
3469 #: build/C/man3/exec.3:105
3470 msgid ""
3471 "The I<const char *arg> and subsequent ellipses in the B<execl>(), "
3472 "B<execlp>(), and B<execle>()  functions can be thought of as I<arg0>, "
3473 "I<arg1>, \\&..., I<argn>.  Together they describe a list of one or more "
3474 "pointers to null-terminated strings that represent the argument list "
3475 "available to the executed program.  The first argument, by convention, "
3476 "should point to the filename associated with the file being executed.  The "
3477 "list of arguments I<must> be terminated by a NULL pointer, and, since these "
3478 "are variadic functions, this pointer must be cast I<(char *) NULL>."
3479 msgstr ""
3480
3481 #. type: Plain text
3482 #: build/C/man3/exec.3:118
3483 msgid ""
3484 "The B<execv>(), B<execvp>(), and B<execvpe>()  functions provide an array of "
3485 "pointers to null-terminated strings that represent the argument list "
3486 "available to the new program.  The first argument, by convention, should "
3487 "point to the filename associated with the file being executed.  The array of "
3488 "pointers I<must> be terminated by a NULL pointer."
3489 msgstr ""
3490
3491 #. type: Plain text
3492 #: build/C/man3/exec.3:135
3493 msgid ""
3494 "The B<execle>()  and B<execvpe>()  functions allow the caller to specify the "
3495 "environment of the executed program via the argument I<envp>.  The I<envp> "
3496 "argument is an array of pointers to null-terminated strings and I<must> be "
3497 "terminated by a NULL pointer.  The other functions take the environment for "
3498 "the new process image from the external variable I<environ> in the calling "
3499 "process."
3500 msgstr ""
3501
3502 #. type: SS
3503 #: build/C/man3/exec.3:135
3504 #, no-wrap
3505 msgid "Special semantics for execlp() and execvp()"
3506 msgstr ""
3507
3508 #. type: Plain text
3509 #: build/C/man3/exec.3:155
3510 msgid ""
3511 "The B<execlp>(), B<execvp>(), and B<execvpe>()  functions duplicate the "
3512 "actions of the shell in searching for an executable file if the specified "
3513 "filename does not contain a slash (/) character.  The file is sought in the "
3514 "colon-separated list of directory pathnames specified in the B<PATH> "
3515 "environment variable.  If this variable isn't defined, the path list "
3516 "defaults to the current directory followed by the list of directories "
3517 "returned by I<confstr(_CS_PATH)>.  (This B<confstr>(3)  call typically "
3518 "returns the value \"/bin:/usr/bin\".)"
3519 msgstr ""
3520
3521 #. type: Plain text
3522 #: build/C/man3/exec.3:159
3523 msgid ""
3524 "If the specified filename includes a slash character, then B<PATH> is "
3525 "ignored, and the file at the specified pathname is executed."
3526 msgstr ""
3527
3528 #. type: Plain text
3529 #: build/C/man3/exec.3:161
3530 msgid "In addition, certain errors are treated specially."
3531 msgstr ""
3532
3533 #. type: Plain text
3534 #: build/C/man3/exec.3:172
3535 msgid ""
3536 "If permission is denied for a file (the attempted B<execve>(2)  failed with "
3537 "the error B<EACCES>), these functions will continue searching the rest of "
3538 "the search path.  If no other file is found, however, they will return with "
3539 "I<errno> set to B<EACCES>."
3540 msgstr ""
3541
3542 #. type: Plain text
3543 #: build/C/man3/exec.3:181
3544 msgid ""
3545 "If the header of a file isn't recognized (the attempted B<execve>(2)  failed "
3546 "with the error B<ENOEXEC>), these functions will execute the shell "
3547 "(I</bin/sh>)  with the path of the file as its first argument.  (If this "
3548 "attempt fails, no further searching is done.)"
3549 msgstr ""
3550
3551 #. type: Plain text
3552 #: build/C/man3/exec.3:188
3553 msgid ""
3554 "The B<exec>()  functions only return if an error has have occurred.  The "
3555 "return value is -1, and I<errno> is set to indicate the error."
3556 msgstr ""
3557
3558 #. type: Plain text
3559 #: build/C/man3/exec.3:193
3560 msgid ""
3561 "All of these functions may fail and set I<errno> for any of the errors "
3562 "specified for B<execve>(2)."
3563 msgstr ""
3564
3565 #. type: Plain text
3566 #: build/C/man3/exec.3:197
3567 msgid "The B<execvpe>()  function first appeared in glibc 2.11."
3568 msgstr ""
3569
3570 #. type: Plain text
3571 #: build/C/man3/exec.3:199
3572 msgid "POSIX.1-2001, POSIX.1-2008."
3573 msgstr ""
3574
3575 #. type: Plain text
3576 #: build/C/man3/exec.3:203
3577 msgid "The B<execvpe>()  function is a GNU extension."
3578 msgstr ""
3579
3580 #. type: Plain text
3581 #: build/C/man3/exec.3:213
3582 msgid ""
3583 "On some other systems, the default path (used when the environment does not "
3584 "contain the variable B<PATH>) has the current working directory listed after "
3585 "I</bin> and I</usr/bin>, as an anti-Trojan-horse measure.  Linux uses here "
3586 "the traditional \"current directory first\" default path."
3587 msgstr ""
3588
3589 #. type: Plain text
3590 #: build/C/man3/exec.3:227
3591 msgid ""
3592 "The behavior of B<execlp>()  and B<execvp>()  when errors occur while "
3593 "attempting to execute the file is historic practice, but has not "
3594 "traditionally been documented and is not specified by the POSIX standard.  "
3595 "BSD (and possibly other systems) do an automatic sleep and retry if "
3596 "B<ETXTBSY> is encountered.  Linux treats it as a hard error and returns "
3597 "immediately."
3598 msgstr ""
3599
3600 #. type: Plain text
3601 #: build/C/man3/exec.3:239
3602 msgid ""
3603 "Traditionally, the functions B<execlp>()  and B<execvp>()  ignored all "
3604 "errors except for the ones described above and B<ENOMEM> and B<E2BIG>, upon "
3605 "which they returned.  They now return if any error other than the ones "
3606 "described above occurs."
3607 msgstr ""
3608
3609 #. type: Plain text
3610 #: build/C/man3/exec.3:246
3611 msgid ""
3612 "B<sh>(1), B<execve>(2), B<fork>(2), B<ptrace>(2), B<fexecve>(3), "
3613 "B<environ>(7)"
3614 msgstr ""
3615
3616 #. type: TH
3617 #: build/C/man2/execve.2:37
3618 #, no-wrap
3619 msgid "EXECVE"
3620 msgstr ""
3621
3622 #. type: TH
3623 #: build/C/man2/execve.2:37
3624 #, no-wrap
3625 msgid "2011-09-14"
3626 msgstr ""
3627
3628 #. type: Plain text
3629 #: build/C/man2/execve.2:40
3630 msgid "execve - execute program"
3631 msgstr ""
3632
3633 #. type: Plain text
3634 #: build/C/man2/execve.2:44
3635 msgid "B<int execve(const char *>I<filename>B<, char *const >I<argv>B<[], >"
3636 msgstr ""
3637
3638 #. type: Plain text
3639 #: build/C/man2/execve.2:51
3640 msgid ""
3641 "B<execve>()  executes the program pointed to by I<filename>.  I<filename> "
3642 "must be either a binary executable, or a script starting with a line of the "
3643 "form:"
3644 msgstr ""
3645
3646 #. type: Plain text
3647 #: build/C/man2/execve.2:55 build/C/man2/execve.2:252
3648 #, no-wrap
3649 msgid "B<#!> I<interpreter >[optional-arg]\n"
3650 msgstr ""
3651
3652 #. type: Plain text
3653 #: build/C/man2/execve.2:59
3654 msgid "For details of the latter case, see \"Interpreter scripts\" below."
3655 msgstr ""
3656
3657 #. type: Plain text
3658 #: build/C/man2/execve.2:68
3659 msgid ""
3660 "I<argv> is an array of argument strings passed to the new program.  By "
3661 "convention, the first of these strings should contain the filename "
3662 "associated with the file being executed.  I<envp> is an array of strings, "
3663 "conventionally of the form B<key=value>, which are passed as environment to "
3664 "the new program.  Both I<argv> and I<envp> must be terminated by a NULL "
3665 "pointer.  The argument vector and environment can be accessed by the called "
3666 "program's main function, when it is defined as:"
3667 msgstr ""
3668
3669 #. type: Plain text
3670 #: build/C/man2/execve.2:72
3671 #, no-wrap
3672 msgid "int main(int argc, char *argv[], char *envp[])\n"
3673 msgstr ""
3674
3675 #. type: Plain text
3676 #: build/C/man2/execve.2:79
3677 msgid ""
3678 "B<execve>()  does not return on success, and the text, data, bss, and stack "
3679 "of the calling process are overwritten by that of the program loaded."
3680 msgstr ""
3681
3682 #. type: Plain text
3683 #: build/C/man2/execve.2:83
3684 msgid ""
3685 "If the current program is being ptraced, a B<SIGTRAP> is sent to it after a "
3686 "successful B<execve>()."
3687 msgstr ""
3688
3689 #. type: Plain text
3690 #: build/C/man2/execve.2:98
3691 msgid ""
3692 "If the set-user-ID bit is set on the program file pointed to by I<filename>, "
3693 "and the underlying file system is not mounted I<nosuid> (the B<MS_NOSUID> "
3694 "flag for B<mount>(2)), and the calling process is not being ptraced, then "
3695 "the effective user ID of the calling process is changed to that of the owner "
3696 "of the program file.  Similarly, when the set-group-ID bit of the program "
3697 "file is set the effective group ID of the calling process is set to the "
3698 "group of the program file."
3699 msgstr ""
3700
3701 #. type: Plain text
3702 #: build/C/man2/execve.2:103
3703 msgid ""
3704 "The effective user ID of the process is copied to the saved set-user-ID; "
3705 "similarly, the effective group ID is copied to the saved set-group-ID.  This "
3706 "copying takes place after any effective ID changes that occur because of the "
3707 "set-user-ID and set-group-ID permission bits."
3708 msgstr ""
3709
3710 #. type: Plain text
3711 #: build/C/man2/execve.2:111
3712 msgid ""
3713 "If the executable is an a.out dynamically linked binary executable "
3714 "containing shared-library stubs, the Linux dynamic linker B<ld.so>(8)  is "
3715 "called at the start of execution to bring needed shared libraries into "
3716 "memory and link the executable with them."
3717 msgstr ""
3718
3719 #. type: Plain text
3720 #: build/C/man2/execve.2:119
3721 msgid ""
3722 "If the executable is a dynamically linked ELF executable, the interpreter "
3723 "named in the PT_INTERP segment is used to load the needed shared libraries.  "
3724 "This interpreter is typically I</lib/ld-linux.so.1> for binaries linked with "
3725 "the Linux libc 5, or I</lib/ld-linux.so.2> for binaries linked with the "
3726 "glibc 2."
3727 msgstr ""
3728
3729 #. type: Plain text
3730 #: build/C/man2/execve.2:123
3731 msgid ""
3732 "All process attributes are preserved during an B<execve>(), except the "
3733 "following:"
3734 msgstr ""
3735
3736 #. type: Plain text
3737 #: build/C/man2/execve.2:127
3738 msgid ""
3739 "The dispositions of any signals that are being caught are reset to the "
3740 "default (B<signal>(7))."
3741 msgstr ""
3742
3743 #. type: Plain text
3744 #: build/C/man2/execve.2:130
3745 msgid "Any alternate signal stack is not preserved (B<sigaltstack>(2))."
3746 msgstr ""
3747
3748 #. type: Plain text
3749 #: build/C/man2/execve.2:133
3750 msgid "Memory mappings are not preserved (B<mmap>(2))."
3751 msgstr ""
3752
3753 #. type: Plain text
3754 #: build/C/man2/execve.2:136
3755 msgid "Attached System V shared memory segments are detached (B<shmat>(2))."
3756 msgstr ""
3757
3758 #. type: Plain text
3759 #: build/C/man2/execve.2:139
3760 msgid "POSIX shared memory regions are unmapped (B<shm_open>(3))."
3761 msgstr ""
3762
3763 #. type: Plain text
3764 #: build/C/man2/execve.2:142
3765 msgid "Open POSIX message queue descriptors are closed (B<mq_overview>(7))."
3766 msgstr ""
3767
3768 #. type: Plain text
3769 #: build/C/man2/execve.2:145
3770 msgid "Any open POSIX named semaphores are closed (B<sem_overview>(7))."
3771 msgstr ""
3772
3773 #. type: Plain text
3774 #: build/C/man2/execve.2:148
3775 msgid "POSIX timers are not preserved (B<timer_create>(2))."
3776 msgstr ""
3777
3778 #. type: Plain text
3779 #: build/C/man2/execve.2:151
3780 msgid "Any open directory streams are closed (B<opendir>(3))."
3781 msgstr ""
3782
3783 #. type: Plain text
3784 #: build/C/man2/execve.2:155
3785 msgid "Memory locks are not preserved (B<mlock>(2), B<mlockall>(2))."
3786 msgstr ""
3787
3788 #. type: Plain text
3789 #: build/C/man2/execve.2:159
3790 msgid "Exit handlers are not preserved (B<atexit>(3), B<on_exit>(3))."
3791 msgstr ""
3792
3793 #. type: Plain text
3794 #: build/C/man2/execve.2:162
3795 msgid "The floating-point environment is reset to the default (see B<fenv>(3))."
3796 msgstr ""
3797
3798 #. type: Plain text
3799 #: build/C/man2/execve.2:168
3800 msgid ""
3801 "The process attributes in the preceding list are all specified in "
3802 "POSIX.1-2001.  The following Linux-specific process attributes are also not "
3803 "preserved during an B<execve>():"
3804 msgstr ""
3805
3806 #. type: Plain text
3807 #: build/C/man2/execve.2:175
3808 msgid ""
3809 "The B<prctl>(2)  B<PR_SET_DUMPABLE> flag is set, unless a set-user-ID or "
3810 "set-group ID program is being executed, in which case it is cleared."
3811 msgstr ""
3812
3813 #. type: Plain text
3814 #: build/C/man2/execve.2:180
3815 msgid "The B<prctl>(2)  B<PR_SET_KEEPCAPS> flag is cleared."
3816 msgstr ""
3817
3818 #. type: Plain text
3819 #: build/C/man2/execve.2:187
3820 msgid ""
3821 "The process name, as set by B<prctl>(2)  B<PR_SET_NAME> (and displayed by "
3822 "I<ps\\ -o comm>), is reset to the name of the new executable file."
3823 msgstr ""
3824
3825 #. type: Plain text
3826 #: build/C/man2/execve.2:192
3827 msgid "The termination signal is reset to B<SIGCHLD> (see B<clone>(2))."
3828 msgstr ""
3829
3830 #. type: Plain text
3831 #: build/C/man2/execve.2:194 build/C/man2/fork.2:120
3832 msgid "Note the following further points:"
3833 msgstr ""
3834
3835 #. type: Plain text
3836 #: build/C/man2/execve.2:198
3837 msgid ""
3838 "All threads other than the calling thread are destroyed during an "
3839 "B<execve>().  Mutexes, condition variables, and other pthreads objects are "
3840 "not preserved."
3841 msgstr ""
3842
3843 #. type: Plain text
3844 #: build/C/man2/execve.2:201
3845 msgid ""
3846 "The equivalent of I<setlocale(LC_ALL, \"C\")> is executed at program "
3847 "start-up."
3848 msgstr ""
3849
3850 #. type: Plain text
3851 #: build/C/man2/execve.2:209
3852 msgid ""
3853 "POSIX.1-2001 specifies that the dispositions of any signals that are ignored "
3854 "or set to the default are left unchanged.  POSIX.1-2001 specifies one "
3855 "exception: if B<SIGCHLD> is being ignored, then an implementation may leave "
3856 "the disposition unchanged or reset it to the default; Linux does the former."
3857 msgstr ""
3858
3859 #. type: Plain text
3860 #: build/C/man2/execve.2:213
3861 msgid ""
3862 "Any outstanding asynchronous I/O operations are canceled (B<aio_read>(3), "
3863 "B<aio_write>(3))."
3864 msgstr ""
3865
3866 #. type: Plain text
3867 #: build/C/man2/execve.2:218
3868 msgid "For the handling of capabilities during B<execve>(), see B<capabilities>(7)."
3869 msgstr ""
3870
3871 #.  On Linux it appears that these file descriptors are
3872 #.  always open after an execve(), and it looks like
3873 #.  Solaris 8 and FreeBSD 6.1 are the same. -- mtk, 30 Apr 2007
3874 #. type: Plain text
3875 #: build/C/man2/execve.2:245
3876 msgid ""
3877 "By default, file descriptors remain open across an B<execve>().  File "
3878 "descriptors that are marked close-on-exec are closed; see the description of "
3879 "B<FD_CLOEXEC> in B<fcntl>(2).  (If a file descriptor is closed, this will "
3880 "cause the release of all record locks obtained on the underlying file by "
3881 "this process.  See B<fcntl>(2)  for details.)  POSIX.1-2001 says that if "
3882 "file descriptors 0, 1, and 2 would otherwise be closed after a successful "
3883 "B<execve>(), and the process would gain privilege because the set-user_ID or "
3884 "set-group_ID permission bit was set on the executed file, then the system "
3885 "may open an unspecified file for each of these file descriptors.  As a "
3886 "general principle, no portable program, whether privileged or not, can "
3887 "assume that these three file descriptors will remain closed across an "
3888 "B<execve>()."
3889 msgstr ""
3890
3891 #. type: SS
3892 #: build/C/man2/execve.2:245
3893 #, no-wrap
3894 msgid "Interpreter scripts"
3895 msgstr ""
3896
3897 #. type: Plain text
3898 #: build/C/man2/execve.2:248
3899 msgid ""
3900 "An interpreter script is a text file that has execute permission enabled and "
3901 "whose first line is of the form:"
3902 msgstr ""
3903
3904 #. type: Plain text
3905 #: build/C/man2/execve.2:266
3906 msgid ""
3907 "The I<interpreter> must be a valid pathname for an executable which is not "
3908 "itself a script.  If the I<filename> argument of B<execve>()  specifies an "
3909 "interpreter script, then I<interpreter> will be invoked with the following "
3910 "arguments:"
3911 msgstr ""
3912
3913 #. type: Plain text
3914 #: build/C/man2/execve.2:270
3915 #, no-wrap
3916 msgid "I<interpreter> [optional-arg] I<filename> arg...\n"
3917 msgstr ""
3918
3919 #. type: Plain text
3920 #: build/C/man2/execve.2:279
3921 msgid ""
3922 "where I<arg...> is the series of words pointed to by the I<argv> argument of "
3923 "B<execve>()."
3924 msgstr ""
3925
3926 #. type: Plain text
3927 #: build/C/man2/execve.2:284
3928 msgid ""
3929 "For portable use, I<optional-arg> should either be absent, or be specified "
3930 "as a single word (i.e., it should not contain white space); see NOTES below."
3931 msgstr ""
3932
3933 #. type: SS
3934 #: build/C/man2/execve.2:284
3935 #, no-wrap
3936 msgid "Limits on size of arguments and environment"
3937 msgstr ""
3938
3939 #. type: Plain text
3940 #: build/C/man2/execve.2:297
3941 msgid ""
3942 "Most UNIX implementations impose some limit on the total size of the "
3943 "command-line argument (I<argv>)  and environment (I<envp>)  strings that may "
3944 "be passed to a new program.  POSIX.1 allows an implementation to advertise "
3945 "this limit using the B<ARG_MAX> constant (either defined in "
3946 "I<E<lt>limits.hE<gt>> or available at run time using the call "
3947 "I<sysconf(_SC_ARG_MAX)>)."
3948 msgstr ""
3949
3950 #. type: Plain text
3951 #: build/C/man2/execve.2:304
3952 msgid ""
3953 "On Linux prior to kernel 2.6.23, the memory used to store the environment "
3954 "and argument strings was limited to 32 pages (defined by the kernel constant "
3955 "B<MAX_ARG_PAGES>).  On architectures with a 4-kB page size, this yields a "
3956 "maximum size of 128 kB."
3957 msgstr ""
3958
3959 #.  For some background on the changes to ARG_MAX in kernels 2.6.23 and
3960 #.  2.6.25, see:
3961 #.      http://sourceware.org/bugzilla/show_bug.cgi?id=5786
3962 #.      http://bugzilla.kernel.org/show_bug.cgi?id=10095
3963 #.      http://thread.gmane.org/gmane.linux.kernel/646709/focus=648101,
3964 #.      checked into 2.6.25 as commit a64e715fc74b1a7dcc5944f848acc38b2c4d4ee2.
3965 #.  Ollie: That doesn't include the lists of pointers, though,
3966 #.  so the actual usage is a bit higher (1 pointer per argument).
3967 #. type: Plain text
3968 #: build/C/man2/execve.2:340
3969 msgid ""
3970 "On kernel 2.6.23 and later, most architectures support a size limit derived "
3971 "from the soft B<RLIMIT_STACK> resource limit (see B<getrlimit>(2))  that is "
3972 "in force at the time of the B<execve>()  call.  (Architectures with no "
3973 "memory management unit are excepted: they maintain the limit that was in "
3974 "effect before kernel 2.6.23.)  This change allows programs to have a much "
3975 "larger argument and/or environment list.  For these architectures, the total "
3976 "size is limited to 1/4 of the allowed stack size.  (Imposing the 1/4-limit "
3977 "ensures that the new program always has some stack space.)  Since Linux "
3978 "2.6.25, the kernel places a floor of 32 pages on this size limit, so that, "
3979 "even when B<RLIMIT_STACK> is set very low, applications are guaranteed to "
3980 "have at least as much argument and environment space as was provided by "
3981 "Linux 2.6.23 and earlier.  (This guarantee was not provided in Linux 2.6.23 "
3982 "and 2.6.24.)  Additionally, the limit per string is 32 pages (the kernel "
3983 "constant B<MAX_ARG_STRLEN>), and the maximum number of strings is "
3984 "0x7FFFFFFF."
3985 msgstr ""
3986
3987 #. type: Plain text
3988 #: build/C/man2/execve.2:346
3989 msgid ""
3990 "On success, B<execve>()  does not return, on error -1 is returned, and "
3991 "I<errno> is set appropriately."
3992 msgstr ""
3993
3994 #. type: TP
3995 #: build/C/man2/execve.2:347
3996 #, no-wrap
3997 msgid "B<E2BIG>"
3998 msgstr ""
3999
4000 #. type: Plain text
4001 #: build/C/man2/execve.2:354
4002 msgid ""
4003 "The total number of bytes in the environment (I<envp>)  and argument list "
4004 "(I<argv>)  is too large."
4005 msgstr ""
4006
4007 #. type: Plain text
4008 #: build/C/man2/execve.2:361
4009 msgid ""
4010 "Search permission is denied on a component of the path prefix of I<filename> "
4011 "or the name of a script interpreter.  (See also B<path_resolution>(7).)"
4012 msgstr ""
4013
4014 #. type: Plain text
4015 #: build/C/man2/execve.2:364
4016 msgid "The file or a script interpreter is not a regular file."
4017 msgstr ""
4018
4019 #. type: Plain text
4020 #: build/C/man2/execve.2:367
4021 msgid "Execute permission is denied for the file or a script or ELF interpreter."
4022 msgstr ""
4023
4024 #. type: Plain text
4025 #: build/C/man2/execve.2:371
4026 msgid "The file system is mounted I<noexec>."
4027 msgstr ""
4028
4029 #. type: Plain text
4030 #: build/C/man2/execve.2:375
4031 msgid "I<filename> points outside your accessible address space."
4032 msgstr ""
4033
4034 #. type: Plain text
4035 #: build/C/man2/execve.2:379
4036 msgid ""
4037 "An ELF executable had more than one PT_INTERP segment (i.e., tried to name "
4038 "more than one interpreter)."
4039 msgstr ""
4040
4041 #. type: TP
4042 #: build/C/man2/execve.2:382 build/C/man2/truncate.2:146
4043 #, no-wrap
4044 msgid "B<EISDIR>"
4045 msgstr ""
4046
4047 #. type: Plain text
4048 #: build/C/man2/execve.2:385
4049 msgid "An ELF interpreter was a directory."
4050 msgstr ""
4051
4052 #. type: TP
4053 #: build/C/man2/execve.2:385
4054 #, no-wrap
4055 msgid "B<ELIBBAD>"
4056 msgstr ""
4057
4058 #. type: Plain text
4059 #: build/C/man2/execve.2:388
4060 msgid "An ELF interpreter was not in a recognized format."
4061 msgstr ""
4062
4063 #. type: Plain text
4064 #: build/C/man2/execve.2:393
4065 msgid ""
4066 "Too many symbolic links were encountered in resolving I<filename> or the "
4067 "name of a script or ELF interpreter."
4068 msgstr ""
4069
4070 #. type: Plain text
4071 #: build/C/man2/execve.2:396
4072 msgid "The process has the maximum number of files open."
4073 msgstr ""
4074
4075 #. type: Plain text
4076 #: build/C/man2/execve.2:400
4077 msgid "I<filename> is too long."
4078 msgstr ""
4079
4080 #. type: TP
4081 #: build/C/man2/execve.2:400 build/C/man3/getlogin.3:106 build/C/man2/swapon.2:133 build/C/man2/uselib.2:67
4082 #, no-wrap
4083 msgid "B<ENFILE>"
4084 msgstr ""
4085
4086 #. type: Plain text
4087 #: build/C/man2/execve.2:403 build/C/man2/swapon.2:136 build/C/man2/uselib.2:70
4088 msgid "The system limit on the total number of open files has been reached."
4089 msgstr ""
4090
4091 #. type: Plain text
4092 #: build/C/man2/execve.2:409
4093 msgid ""
4094 "The file I<filename> or a script or ELF interpreter does not exist, or a "
4095 "shared library needed for file or interpreter cannot be found."
4096 msgstr ""
4097
4098 #. type: TP
4099 #: build/C/man2/execve.2:409 build/C/man2/uselib.2:70
4100 #, no-wrap
4101 msgid "B<ENOEXEC>"
4102 msgstr ""
4103
4104 #. type: Plain text
4105 #: build/C/man2/execve.2:414
4106 msgid ""
4107 "An executable is not in a recognized format, is for the wrong architecture, "
4108 "or has some other format error that means it cannot be executed."
4109 msgstr ""
4110
4111 #. type: Plain text
4112 #: build/C/man2/execve.2:422
4113 msgid ""
4114 "A component of the path prefix of I<filename> or a script or ELF interpreter "
4115 "is not a directory."
4116 msgstr ""
4117
4118 #. type: Plain text
4119 #: build/C/man2/execve.2:428
4120 msgid ""
4121 "The file system is mounted I<nosuid>, the user is not the superuser, and the "
4122 "file has the set-user-ID or set-group-ID bit set."
4123 msgstr ""
4124
4125 #. type: Plain text
4126 #: build/C/man2/execve.2:432
4127 msgid ""
4128 "The process is being traced, the user is not the superuser and the file has "
4129 "the set-user-ID or set-group-ID bit set."
4130 msgstr ""
4131
4132 #. type: Plain text
4133 #: build/C/man2/execve.2:435
4134 msgid "Executable was open for writing by one or more processes."
4135 msgstr ""
4136
4137 #.  SVr4 documents additional error
4138 #.  conditions EAGAIN, EINTR, ELIBACC, ENOLINK, EMULTIHOP; POSIX does not
4139 #.  document ETXTBSY, EPERM, EFAULT, ELOOP, EIO, ENFILE, EMFILE, EINVAL,
4140 #.  EISDIR or ELIBBAD error conditions.
4141 #. type: Plain text
4142 #: build/C/man2/execve.2:443
4143 msgid ""
4144 "SVr4, 4.3BSD, POSIX.1-2001.  POSIX.1-2001 does not document the #! behavior "
4145 "but is otherwise compatible."
4146 msgstr ""
4147
4148 #. type: Plain text
4149 #: build/C/man2/execve.2:446
4150 msgid "Set-user-ID and set-group-ID processes can not be B<ptrace>(2)d."
4151 msgstr ""
4152
4153 #. type: Plain text
4154 #: build/C/man2/execve.2:448
4155 msgid "Linux ignores the set-user-ID and set-group-ID bits on scripts."
4156 msgstr ""
4157
4158 #. type: Plain text
4159 #: build/C/man2/execve.2:459
4160 msgid ""
4161 "The result of mounting a file system I<nosuid> varies across Linux kernel "
4162 "versions: some will refuse execution of set-user-ID and set-group-ID "
4163 "executables when this would give the user powers she did not have already "
4164 "(and return B<EPERM>), some will just ignore the set-user-ID and "
4165 "set-group-ID bits and B<exec>()  successfully."
4166 msgstr ""
4167
4168 #. type: Plain text
4169 #: build/C/man2/execve.2:462
4170 msgid ""
4171 "A maximum line length of 127 characters is allowed for the first line in a "
4172 "#! executable shell script."
4173 msgstr ""
4174
4175 #.  e.g., Solaris 8
4176 #.  e.g., FreeBSD before 6.0, but not FreeBSD 6.0 onward
4177 #. type: Plain text
4178 #: build/C/man2/execve.2:481
4179 msgid ""
4180 "The semantics of the I<optional-arg> argument of an interpreter script vary "
4181 "across implementations.  On Linux, the entire string following the "
4182 "I<interpreter> name is passed as a single argument to the interpreter, and "
4183 "this string can include white space.  However, behavior differs on some "
4184 "other systems.  Some systems use the first white space to terminate "
4185 "I<optional-arg>.  On some systems, an interpreter script can have multiple "
4186 "arguments, and white spaces in I<optional-arg> are used to delimit the "
4187 "arguments."
4188 msgstr ""
4189
4190 #.  e.g., EFAULT on Solaris 8 and FreeBSD 6.1; but
4191 #.  HP-UX 11 is like Linux -- mtk, Apr 2007
4192 #.  Bug filed 30 Apr 2007: http://bugzilla.kernel.org/show_bug.cgi?id=8408
4193 #.  Bug rejected (because fix would constitute an ABI change).
4194 #. type: Plain text
4195 #: build/C/man2/execve.2:496
4196 msgid ""
4197 "On Linux, I<argv> can be specified as NULL, which has the same effect as "
4198 "specifying this argument as a pointer to a list containing a single NULL "
4199 "pointer.  B<Do not take advantage of this misfeature!> It is nonstandard and "
4200 "nonportable: on most other UNIX systems doing this will result in an error "
4201 "(B<EFAULT>)."
4202 msgstr ""
4203
4204 #
4205 #.  .SH BUGS
4206 #.  Some Linux versions have failed to check permissions on ELF
4207 #.  interpreters.  This is a security hole, because it allows users to
4208 #.  open any file, such as a rewinding tape device, for reading.  Some
4209 #.  Linux versions have also had other security holes in
4210 #.  .BR execve ()
4211 #.  that could be exploited for denial of service by a suitably crafted
4212 #.  ELF binary. There are no known problems with 2.0.34 or 2.2.15.
4213 #. type: Plain text
4214 #: build/C/man2/execve.2:516
4215 msgid ""
4216 "POSIX.1-2001 says that values returned by B<sysconf>(3)  should be invariant "
4217 "over the lifetime of a process.  However, since Linux 2.6.23, if the "
4218 "B<RLIMIT_STACK> resource limit changes, then the value reported by "
4219 "B<_SC_ARG_MAX> will also change, to reflect the fact that the limit on space "
4220 "for holding command-line arguments and environment variables has changed."
4221 msgstr ""
4222
4223 #. type: SS
4224 #: build/C/man2/execve.2:516
4225 #, no-wrap
4226 msgid "Historical"
4227 msgstr ""
4228
4229 #. type: Plain text
4230 #: build/C/man2/execve.2:527
4231 msgid ""
4232 "With UNIX V6 the argument list of an B<exec>()  call was ended by 0, while "
4233 "the argument list of I<main> was ended by -1.  Thus, this argument list was "
4234 "not directly usable in a further B<exec>()  call.  Since UNIX V7 both are "
4235 "NULL."
4236 msgstr ""
4237
4238 #. type: Plain text
4239 #: build/C/man2/execve.2:530
4240 msgid ""
4241 "The following program is designed to be execed by the second program below.  "
4242 "It just echoes its command-line one per line."
4243 msgstr ""
4244
4245 #. type: Plain text
4246 #: build/C/man2/execve.2:534
4247 #, no-wrap
4248 msgid "/* myecho.c */\n"
4249 msgstr ""
4250
4251 #. type: Plain text
4252 #: build/C/man2/execve.2:537
4253 #, no-wrap
4254 msgid ""
4255 "#include E<lt>stdio.hE<gt>\n"
4256 "#include E<lt>stdlib.hE<gt>\n"
4257 msgstr ""
4258
4259 #. type: Plain text
4260 #: build/C/man2/execve.2:542
4261 #, no-wrap
4262 msgid ""
4263 "int\n"
4264 "main(int argc, char *argv[])\n"
4265 "{\n"
4266 "    int j;\n"
4267 msgstr ""
4268
4269 #. type: Plain text
4270 #: build/C/man2/execve.2:545
4271 #, no-wrap
4272 msgid ""
4273 "    for (j = 0; j E<lt> argc; j++)\n"
4274 "        printf(\"argv[%d]: %s\\en\", j, argv[j]);\n"
4275 msgstr ""
4276
4277 #. type: Plain text
4278 #: build/C/man2/execve.2:553
4279 msgid ""
4280 "This program can be used to exec the program named in its command-line "
4281 "argument:"
4282 msgstr ""
4283
4284 #. type: Plain text
4285 #: build/C/man2/execve.2:557
4286 #, no-wrap
4287 msgid "/* execve.c */\n"
4288 msgstr ""
4289
4290 #. type: Plain text
4291 #: build/C/man2/execve.2:561
4292 #, no-wrap
4293 msgid ""
4294 "#include E<lt>stdio.hE<gt>\n"
4295 "#include E<lt>stdlib.hE<gt>\n"
4296 "#include E<lt>unistd.hE<gt>\n"
4297 msgstr ""
4298
4299 #. type: Plain text
4300 #: build/C/man2/execve.2:567
4301 #, no-wrap
4302 msgid ""
4303 "int\n"
4304 "main(int argc, char *argv[])\n"
4305 "{\n"
4306 "    char *newargv[] = { NULL, \"hello\", \"world\", NULL };\n"
4307 "    char *newenviron[] = { NULL };\n"
4308 msgstr ""
4309
4310 #. type: Plain text
4311 #: build/C/man2/execve.2:572
4312 #, no-wrap
4313 msgid ""
4314 "    if (argc != 2) {\n"
4315 "\tfprintf(stderr, \"Usage: %s E<lt>file-to-execE<gt>\\en\", argv[0]);\n"
4316 "\texit(EXIT_FAILURE);\n"
4317 "    }\n"
4318 msgstr ""
4319
4320 #. type: Plain text
4321 #: build/C/man2/execve.2:574
4322 #, no-wrap
4323 msgid "    newargv[0] = argv[1];\n"
4324 msgstr ""
4325
4326 #. type: Plain text
4327 #: build/C/man2/execve.2:579
4328 #, no-wrap
4329 msgid ""
4330 "    execve(argv[1], newargv, newenviron);\n"
4331 "    perror(\"execve\");   /* execve() only returns on error */\n"
4332 "    exit(EXIT_FAILURE);\n"
4333 "}\n"
4334 msgstr ""
4335
4336 #. type: Plain text
4337 #: build/C/man2/execve.2:583
4338 msgid "We can use the second program to exec the first as follows:"
4339 msgstr ""
4340
4341 #. type: Plain text
4342 #: build/C/man2/execve.2:592
4343 #, no-wrap
4344 msgid ""
4345 "$B< cc myecho.c -o myecho>\n"
4346 "$B< cc execve.c -o execve>\n"
4347 "$B< ./execve ./myecho>\n"
4348 "argv[0]: ./myecho\n"
4349 "argv[1]: hello\n"
4350 "argv[2]: world\n"
4351 msgstr ""
4352
4353 #. type: Plain text
4354 #: build/C/man2/execve.2:600
4355 msgid ""
4356 "We can also use these programs to demonstrate the use of a script "
4357 "interpreter.  To do this we create a script whose \"interpreter\" is our "
4358 "I<myecho> program:"
4359 msgstr ""
4360
4361 #. type: Plain text
4362 #: build/C/man2/execve.2:607
4363 #, no-wrap
4364 msgid ""
4365 "$B< cat E<gt> script.sh>\n"
4366 "B<#! ./myecho script-arg>\n"
4367 "B<^D>\n"
4368 "$B< chmod +x script.sh>\n"
4369 msgstr ""
4370
4371 #. type: Plain text
4372 #: build/C/man2/execve.2:611
4373 msgid "We can then use our program to exec the script:"
4374 msgstr ""
4375
4376 #. type: Plain text
4377 #: build/C/man2/execve.2:620
4378 #, no-wrap
4379 msgid ""
4380 "$B< ./execve ./script.sh>\n"
4381 "argv[0]: ./myecho\n"
4382 "argv[1]: script-arg\n"
4383 "argv[2]: ./script.sh\n"
4384 "argv[3]: hello\n"
4385 "argv[4]: world\n"
4386 msgstr ""
4387
4388 #. type: Plain text
4389 #: build/C/man2/execve.2:633
4390 msgid ""
4391 "B<chmod>(2), B<fork>(2), B<ptrace>(2), B<execl>(3), B<fexecve>(3), "
4392 "B<getopt>(3), B<credentials>(7), B<environ>(7), B<path_resolution>(7), "
4393 "B<ld.so>(8)"
4394 msgstr ""
4395
4396 #. type: TH
4397 #: build/C/man2/exit_group.2:23
4398 #, no-wrap
4399 msgid "EXIT_GROUP"
4400 msgstr ""
4401
4402 #. type: TH
4403 #: build/C/man2/exit_group.2:23 build/C/man2/get_thread_area.2:6 build/C/man2/set_thread_area.2:7
4404 #, no-wrap
4405 msgid "2008-11-27"
4406 msgstr ""
4407
4408 #. type: Plain text
4409 #: build/C/man2/exit_group.2:26
4410 msgid "exit_group - exit all threads in a process"
4411 msgstr ""
4412
4413 #. type: Plain text
4414 #: build/C/man2/exit_group.2:29
4415 #, no-wrap
4416 msgid "B<#include E<lt>linux/unistd.hE<gt>>\n"
4417 msgstr ""
4418
4419 #. type: Plain text
4420 #: build/C/man2/exit_group.2:31
4421 #, no-wrap
4422 msgid "B<void exit_group(int >I<status>B<);>\n"
4423 msgstr ""
4424
4425 #. type: Plain text
4426 #: build/C/man2/exit_group.2:37
4427 msgid ""
4428 "This system call is equivalent to B<exit>(2)  except that it terminates not "
4429 "only the calling thread, but all threads in the calling process's thread "
4430 "group."
4431 msgstr ""
4432
4433 #. type: Plain text
4434 #: build/C/man2/exit_group.2:39
4435 msgid "This system call does not return."
4436 msgstr ""
4437
4438 #. type: Plain text
4439 #: build/C/man2/exit_group.2:41
4440 msgid "This call is present since Linux 2.5.35."
4441 msgstr ""
4442
4443 #. type: Plain text
4444 #: build/C/man2/exit_group.2:43
4445 msgid "This call is Linux-specific."
4446 msgstr ""
4447
4448 #. type: Plain text
4449 #: build/C/man2/exit_group.2:47
4450 msgid ""
4451 "Since glibc 2.3, this is the system call invoked when the B<exit>(2)  "
4452 "wrapper function is called."
4453 msgstr ""
4454
4455 #. type: Plain text
4456 #: build/C/man2/exit_group.2:49
4457 msgid "B<exit>(2)"
4458 msgstr ""
4459
4460 #. type: TH
4461 #: build/C/man2/fcntl.2:61
4462 #, no-wrap
4463 msgid "FCNTL"
4464 msgstr ""
4465
4466 #. type: Plain text
4467 #: build/C/man2/fcntl.2:64
4468 msgid "fcntl - manipulate file descriptor"
4469 msgstr ""
4470
4471 #. type: Plain text
4472 #: build/C/man2/fcntl.2:68
4473 #, no-wrap
4474 msgid ""
4475 "B<#include E<lt>unistd.hE<gt>>\n"
4476 "B<#include E<lt>fcntl.hE<gt>>\n"
4477 msgstr ""
4478
4479 #. type: Plain text
4480 #: build/C/man2/fcntl.2:70
4481 #, no-wrap
4482 msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
4483 msgstr ""
4484
4485 #. type: Plain text
4486 #: build/C/man2/fcntl.2:77
4487 msgid ""
4488 "B<fcntl>()  performs one of the operations described below on the open file "
4489 "descriptor I<fd>.  The operation is determined by I<cmd>."
4490 msgstr ""
4491
4492 #. type: Plain text
4493 #: build/C/man2/fcntl.2:91
4494 msgid ""
4495 "B<fcntl>()  can take an optional third argument.  Whether or not this "
4496 "argument is required is determined by I<cmd>.  The required argument type is "
4497 "indicated in parentheses after each I<cmd> name (in most cases, the required "
4498 "type is I<long>, and we identify the argument using the name I<arg>), or "
4499 "I<void> is specified if the argument is not required."
4500 msgstr ""
4501
4502 #. type: SS
4503 #: build/C/man2/fcntl.2:91
4504 #, no-wrap
4505 msgid "Duplicating a file descriptor"
4506 msgstr ""
4507
4508 #. type: TP
4509 #: build/C/man2/fcntl.2:92
4510 #, no-wrap
4511 msgid "B<F_DUPFD> (I<long>)"
4512 msgstr ""
4513
4514 #. type: Plain text
4515 #: build/C/man2/fcntl.2:102
4516 msgid ""
4517 "Find the lowest numbered available file descriptor greater than or equal to "
4518 "I<arg> and make it be a copy of I<fd>.  This is different from B<dup2>(2), "
4519 "which uses exactly the descriptor specified."
4520 msgstr ""
4521
4522 #. type: Plain text
4523 #: build/C/man2/fcntl.2:104
4524 msgid "On success, the new descriptor is returned."
4525 msgstr ""
4526
4527 #. type: Plain text
4528 #: build/C/man2/fcntl.2:108
4529 msgid "See B<dup>(2)  for further details."
4530 msgstr ""
4531
4532 #. type: TP
4533 #: build/C/man2/fcntl.2:108
4534 #, no-wrap
4535 msgid "B<F_DUPFD_CLOEXEC> (I<long>; since Linux 2.6.24)"
4536 msgstr ""
4537
4538 #. type: Plain text
4539 #: build/C/man2/fcntl.2:125
4540 msgid ""
4541 "As for B<F_DUPFD>, but additionally set the close-on-exec flag for the "
4542 "duplicate descriptor.  Specifying this flag permits a program to avoid an "
4543 "additional B<fcntl>()  B<F_SETFD> operation to set the B<FD_CLOEXEC> flag.  "
4544 "For an explanation of why this flag is useful, see the description of "
4545 "B<O_CLOEXEC> in B<open>(2)."
4546 msgstr ""
4547
4548 #. type: SS
4549 #: build/C/man2/fcntl.2:125
4550 #, no-wrap
4551 msgid "File descriptor flags"
4552 msgstr ""
4553
4554 #. type: Plain text
4555 #: build/C/man2/fcntl.2:136
4556 msgid ""
4557 "The following commands manipulate the flags associated with a file "
4558 "descriptor.  Currently, only one such flag is defined: B<FD_CLOEXEC>, the "
4559 "close-on-exec flag.  If the B<FD_CLOEXEC> bit is 0, the file descriptor will "
4560 "remain open across an B<execve>(2), otherwise it will be closed."
4561 msgstr ""
4562
4563 #. type: TP
4564 #: build/C/man2/fcntl.2:136
4565 #, no-wrap
4566 msgid "B<F_GETFD> (I<void>)"
4567 msgstr ""
4568
4569 #. type: Plain text
4570 #: build/C/man2/fcntl.2:141
4571 msgid "Read the file descriptor flags; I<arg> is ignored."
4572 msgstr ""
4573
4574 #. type: TP
4575 #: build/C/man2/fcntl.2:141
4576 #, no-wrap
4577 msgid "B<F_SETFD> (I<long>)"
4578 msgstr ""
4579
4580 #. type: Plain text
4581 #: build/C/man2/fcntl.2:145
4582 msgid "Set the file descriptor flags to the value specified by I<arg>."
4583 msgstr ""
4584
4585 #. type: SS
4586 #: build/C/man2/fcntl.2:145
4587 #, no-wrap
4588 msgid "File status flags"
4589 msgstr ""
4590
4591 #.  or
4592 #.  .BR creat (2),
4593 #. type: Plain text
4594 #: build/C/man2/fcntl.2:160
4595 msgid ""
4596 "Each open file description has certain associated status flags, initialized "
4597 "by B<open>(2)  and possibly modified by B<fcntl>().  Duplicated file "
4598 "descriptors (made with B<dup>(2), B<fcntl>(F_DUPFD), B<fork>(2), etc.) refer "
4599 "to the same open file description, and thus share the same file status "
4600 "flags."
4601 msgstr ""
4602
4603 #. type: Plain text
4604 #: build/C/man2/fcntl.2:163
4605 msgid "The file status flags and their semantics are described in B<open>(2)."
4606 msgstr ""
4607
4608 #. type: TP
4609 #: build/C/man2/fcntl.2:163
4610 #, no-wrap
4611 msgid "B<F_GETFL> (I<void>)"
4612 msgstr ""
4613
4614 #. type: Plain text
4615 #: build/C/man2/fcntl.2:168
4616 msgid "Get the file access mode and the file status flags; I<arg> is ignored."
4617 msgstr ""
4618
4619 #. type: TP
4620 #: build/C/man2/fcntl.2:168
4621 #, no-wrap
4622 msgid "B<F_SETFL> (I<long>)"
4623 msgstr ""
4624
4625 #.  FIXME . According to POSIX.1-2001, O_SYNC should also be modifiable
4626 #.  via fcntl(2), but currently Linux does not permit this
4627 #.  See http://bugzilla.kernel.org/show_bug.cgi?id=5994
4628 #. type: Plain text
4629 #: build/C/man2/fcntl.2:191
4630 msgid ""
4631 "Set the file status flags to the value specified by I<arg>.  File access "
4632 "mode (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>)  and file creation flags (i.e., "
4633 "B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>)  in I<arg> are ignored.  On "
4634 "Linux this command can change only the B<O_APPEND>, B<O_ASYNC>, B<O_DIRECT>, "
4635 "B<O_NOATIME>, and B<O_NONBLOCK> flags."
4636 msgstr ""
4637
4638 #. type: SS
4639 #: build/C/man2/fcntl.2:191
4640 #, no-wrap
4641 msgid "Advisory locking"
4642 msgstr ""
4643
4644 #. type: Plain text
4645 #: build/C/man2/fcntl.2:199
4646 msgid ""
4647 "B<F_GETLK>, B<F_SETLK> and B<F_SETLKW> are used to acquire, release, and "
4648 "test for the existence of record locks (also known as file-segment or "
4649 "file-region locks).  The third argument, I<lock>, is a pointer to a "
4650 "structure that has at least the following fields (in unspecified order)."
4651 msgstr ""
4652
4653 #. type: Plain text
4654 #: build/C/man2/fcntl.2:214
4655 #, no-wrap
4656 msgid ""
4657 "struct flock {\n"
4658 "    ...\n"
4659 "    short l_type;    /* Type of lock: F_RDLCK,\n"
4660 "                        F_WRLCK, F_UNLCK */\n"
4661 "    short l_whence;  /* How to interpret l_start:\n"
4662 "                        SEEK_SET, SEEK_CUR, SEEK_END */\n"
4663 "    off_t l_start;   /* Starting offset for lock */\n"
4664 "    off_t l_len;     /* Number of bytes to lock */\n"
4665 "    pid_t l_pid;     /* PID of process blocking our lock\n"
4666 "                        (F_GETLK only) */\n"
4667 "    ...\n"
4668 "};\n"
4669 msgstr ""
4670
4671 #. type: Plain text
4672 #: build/C/man2/fcntl.2:222
4673 msgid ""
4674 "The I<l_whence>, I<l_start>, and I<l_len> fields of this structure specify "
4675 "the range of bytes we wish to lock.  Bytes past the end of the file may be "
4676 "locked, but not bytes before the start of the file."
4677 msgstr ""
4678
4679 #. type: Plain text
4680 #: build/C/man2/fcntl.2:242
4681 msgid ""
4682 "I<l_start> is the starting offset for the lock, and is interpreted relative "
4683 "to either: the start of the file (if I<l_whence> is B<SEEK_SET>); the "
4684 "current file offset (if I<l_whence> is B<SEEK_CUR>); or the end of the file "
4685 "(if I<l_whence> is B<SEEK_END>).  In the final two cases, I<l_start> can be "
4686 "a negative number provided the offset does not lie before the start of the "
4687 "file."
4688 msgstr ""
4689
4690 #. type: Plain text
4691 #: build/C/man2/fcntl.2:257
4692 msgid ""
4693 "I<l_len> specifies the number of bytes to be locked.  If I<l_len> is "
4694 "positive, then the range to be locked covers bytes I<l_start> up to and "
4695 "including I<l_start>+I<l_len>-I<1>.  Specifying 0 for I<l_len> has the "
4696 "special meaning: lock all bytes starting at the location specified by "
4697 "I<l_whence> and I<l_start> through to the end of file, no matter how large "
4698 "the file grows."
4699 msgstr ""
4700
4701 #. type: Plain text
4702 #: build/C/man2/fcntl.2:270
4703 msgid ""
4704 "POSIX.1-2001 allows (but does not require)  an implementation to support a "
4705 "negative I<l_len> value; if I<l_len> is negative, the interval described by "
4706 "I<lock> covers bytes I<l_start>+I<l_len> up to and including I<l_start>-1.  "
4707 "This is supported by Linux since kernel versions 2.4.21 and 2.5.49."
4708 msgstr ""
4709
4710 #. type: Plain text
4711 #: build/C/man2/fcntl.2:289
4712 msgid ""
4713 "The I<l_type> field can be used to place a read (B<F_RDLCK>)  or a write "
4714 "(B<F_WRLCK>)  lock on a file.  Any number of processes may hold a read lock "
4715 "(shared lock)  on a file region, but only one process may hold a write lock "
4716 "(exclusive lock).  An exclusive lock excludes all other locks, both shared "
4717 "and exclusive.  A single process can hold only one type of lock on a file "
4718 "region; if a new lock is applied to an already-locked region, then the "
4719 "existing lock is converted to the new lock type.  (Such conversions may "
4720 "involve splitting, shrinking, or coalescing with an existing lock if the "
4721 "byte range specified by the new lock does not precisely coincide with the "
4722 "range of the existing lock.)"
4723 msgstr ""
4724
4725 #. type: TP
4726 #: build/C/man2/fcntl.2:289
4727 #, no-wrap
4728 msgid "B<F_SETLK> (I<struct flock *>)"
4729 msgstr ""
4730
4731 #. type: Plain text
4732 #: build/C/man2/fcntl.2:312
4733 msgid ""
4734 "Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>)  or release a "
4735 "lock (when I<l_type> is B<F_UNLCK>)  on the bytes specified by the "
4736 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>.  If a conflicting "
4737 "lock is held by another process, this call returns -1 and sets I<errno> to "
4738 "B<EACCES> or B<EAGAIN>."
4739 msgstr ""
4740
4741 #. type: TP
4742 #: build/C/man2/fcntl.2:312
4743 #, no-wrap
4744 msgid "B<F_SETLKW> (I<struct flock *>)"
4745 msgstr ""
4746
4747 #. type: Plain text
4748 #: build/C/man2/fcntl.2:326
4749 msgid ""
4750 "As for B<F_SETLK>, but if a conflicting lock is held on the file, then wait "
4751 "for that lock to be released.  If a signal is caught while waiting, then the "
4752 "call is interrupted and (after the signal handler has returned)  returns "
4753 "immediately (with return value -1 and I<errno> set to B<EINTR>; see "
4754 "B<signal>(7))."
4755 msgstr ""
4756
4757 #. type: TP
4758 #: build/C/man2/fcntl.2:326
4759 #, no-wrap
4760 msgid "B<F_GETLK> (I<struct flock *>)"
4761 msgstr ""
4762
4763 #. type: Plain text
4764 #: build/C/man2/fcntl.2:350
4765 msgid ""
4766 "On input to this call, I<lock> describes a lock we would like to place on "
4767 "the file.  If the lock could be placed, B<fcntl>()  does not actually place "
4768 "it, but returns B<F_UNLCK> in the I<l_type> field of I<lock> and leaves the "
4769 "other fields of the structure unchanged.  If one or more incompatible locks "
4770 "would prevent this lock being placed, then B<fcntl>()  returns details about "
4771 "one of these locks in the I<l_type>, I<l_whence>, I<l_start>, and I<l_len> "
4772 "fields of I<lock> and sets I<l_pid> to be the PID of the process holding "
4773 "that lock."
4774 msgstr ""
4775
4776 #. type: Plain text
4777 #: build/C/man2/fcntl.2:358
4778 msgid ""
4779 "In order to place a read lock, I<fd> must be open for reading.  In order to "
4780 "place a write lock, I<fd> must be open for writing.  To place both types of "
4781 "lock, open a file read-write."
4782 msgstr ""
4783
4784 #.  (Additional file descriptors referring to the same file
4785 #.  may have been obtained by calls to
4786 #.  .BR open "(2), " dup "(2), " dup2 "(2), or " fcntl ().)
4787 #. type: Plain text
4788 #: build/C/man2/fcntl.2:375
4789 msgid ""
4790 "As well as being removed by an explicit B<F_UNLCK>, record locks are "
4791 "automatically released when the process terminates or if it closes I<any> "
4792 "file descriptor referring to a file on which locks are held.  This is bad: "
4793 "it means that a process can lose the locks on a file like I</etc/passwd> or "
4794 "I</etc/mtab> when for some reason a library function decides to open, read "
4795 "and close it."
4796 msgstr ""
4797
4798 #. type: Plain text
4799 #: build/C/man2/fcntl.2:380
4800 msgid ""
4801 "Record locks are not inherited by a child created via B<fork>(2), but are "
4802 "preserved across an B<execve>(2)."
4803 msgstr ""
4804
4805 #. type: Plain text
4806 #: build/C/man2/fcntl.2:389
4807 msgid ""
4808 "Because of the buffering performed by the B<stdio>(3)  library, the use of "
4809 "record locking with routines in that package should be avoided; use "
4810 "B<read>(2)  and B<write>(2)  instead."
4811 msgstr ""
4812
4813 #. type: SS
4814 #: build/C/man2/fcntl.2:389
4815 #, no-wrap
4816 msgid "Mandatory locking"
4817 msgstr ""
4818
4819 #. type: Plain text
4820 #: build/C/man2/fcntl.2:393
4821 msgid ""
4822 "(Non-POSIX.)  The above record locks may be either advisory or mandatory, "
4823 "and are advisory by default."
4824 msgstr ""
4825
4826 #. type: Plain text
4827 #: build/C/man2/fcntl.2:396
4828 msgid ""
4829 "Advisory locks are not enforced and are useful only between cooperating "
4830 "processes."
4831 msgstr ""
4832
4833 #. type: Plain text
4834 #: build/C/man2/fcntl.2:415
4835 msgid ""
4836 "Mandatory locks are enforced for all processes.  If a process tries to "
4837 "perform an incompatible access (e.g., B<read>(2)  or B<write>(2))  on a file "
4838 "region that has an incompatible mandatory lock, then the result depends upon "
4839 "whether the B<O_NONBLOCK> flag is enabled for its open file description.  If "
4840 "the B<O_NONBLOCK> flag is not enabled, then system call is blocked until the "
4841 "lock is removed or converted to a mode that is compatible with the access.  "
4842 "If the B<O_NONBLOCK> flag is enabled, then the system call fails with the "
4843 "error B<EAGAIN>."
4844 msgstr ""
4845
4846 #. type: Plain text
4847 #: build/C/man2/fcntl.2:432
4848 msgid ""
4849 "To make use of mandatory locks, mandatory locking must be enabled both on "
4850 "the file system that contains the file to be locked, and on the file "
4851 "itself.  Mandatory locking is enabled on a file system using the \"-o mand\" "
4852 "option to B<mount>(8), or the B<MS_MANDLOCK> flag for B<mount>(2).  "
4853 "Mandatory locking is enabled on a file by disabling group execute permission "
4854 "on the file and enabling the set-group-ID permission bit (see B<chmod>(1)  "
4855 "and B<chmod>(2))."
4856 msgstr ""
4857
4858 #. type: Plain text
4859 #: build/C/man2/fcntl.2:435
4860 msgid ""
4861 "The Linux implementation of mandatory locking is unreliable.  See BUGS "
4862 "below."
4863 msgstr ""
4864
4865 #. type: SS
4866 #: build/C/man2/fcntl.2:435
4867 #, no-wrap
4868 msgid "Managing signals"
4869 msgstr ""
4870
4871 #. type: Plain text
4872 #: build/C/man2/fcntl.2:444
4873 msgid ""
4874 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG> and "
4875 "B<F_SETSIG> are used to manage I/O availability signals:"
4876 msgstr ""
4877
4878 #. type: TP
4879 #: build/C/man2/fcntl.2:444
4880 #, no-wrap
4881 msgid "B<F_GETOWN> (I<void>)"
4882 msgstr ""
4883
4884 #. type: Plain text
4885 #: build/C/man2/fcntl.2:457
4886 msgid ""
4887 "Return (as the function result)  the process ID or process group currently "
4888 "receiving B<SIGIO> and B<SIGURG> signals for events on file descriptor "
4889 "I<fd>.  Process IDs are returned as positive values; process group IDs are "
4890 "returned as negative values (but see BUGS below).  I<arg> is ignored."
4891 msgstr ""
4892
4893 #. type: TP
4894 #: build/C/man2/fcntl.2:457
4895 #, no-wrap
4896 msgid "B<F_SETOWN> (I<long>)"
4897 msgstr ""
4898
4899 #. type: Plain text
4900 #: build/C/man2/fcntl.2:474
4901 msgid ""
4902 "Set the process ID or process group ID that will receive B<SIGIO> and "
4903 "B<SIGURG> signals for events on file descriptor I<fd> to the ID given in "
4904 "I<arg>.  A process ID is specified as a positive value; a process group ID "
4905 "is specified as a negative value.  Most commonly, the calling process "
4906 "specifies itself as the owner (that is, I<arg> is specified as "
4907 "B<getpid>(2))."
4908 msgstr ""
4909
4910 #.  From glibc.info:
4911 #. type: Plain text
4912 #: build/C/man2/fcntl.2:491
4913 msgid ""
4914 "If you set the B<O_ASYNC> status flag on a file descriptor by using the "
4915 "B<F_SETFL> command of B<fcntl>(), a B<SIGIO> signal is sent whenever input "
4916 "or output becomes possible on that file descriptor.  B<F_SETSIG> can be used "
4917 "to obtain delivery of a signal other than B<SIGIO>.  If this permission "
4918 "check fails, then the signal is silently discarded."
4919 msgstr ""
4920
4921 #. type: Plain text
4922 #: build/C/man2/fcntl.2:499
4923 msgid ""
4924 "Sending a signal to the owner process (group) specified by B<F_SETOWN> is "
4925 "subject to the same permissions checks as are described for B<kill>(2), "
4926 "where the sending process is the one that employs B<F_SETOWN> (but see BUGS "
4927 "below)."
4928 msgstr ""
4929
4930 #.  The following appears to be rubbish.  It doesn't seem to
4931 #.  be true according to the kernel source, and I can write
4932 #.  a program that gets a terminal-generated SIGIO even though
4933 #.  it is not the foreground process group of the terminal.
4934 #.  -- MTK, 8 Apr 05
4935 #
4936 #.  If the file descriptor
4937 #.  .I fd
4938 #.  refers to a terminal device, then SIGIO
4939 #.  signals are sent to the foreground process group of the terminal.
4940 #. type: Plain text
4941 #: build/C/man2/fcntl.2:523
4942 msgid ""
4943 "If the file descriptor I<fd> refers to a socket, B<F_SETOWN> also selects "
4944 "the recipient of B<SIGURG> signals that are delivered when out-of-band data "
4945 "arrives on that socket.  (B<SIGURG> is sent in any situation where "
4946 "B<select>(2)  would report the socket as having an \"exceptional "
4947 "condition\".)"
4948 msgstr ""
4949
4950 #. type: Plain text
4951 #: build/C/man2/fcntl.2:526
4952 msgid "The following was true in 2.6.x kernels up to and including kernel 2.6.11:"
4953 msgstr ""
4954
4955 #.  The relevant place in the (2.6) kernel source is the
4956 #.  'switch' in fs/fcntl.c::send_sigio_to_task() -- MTK, Apr 2005
4957 #.  send_sigurg()/send_sigurg_to_task() bypasses
4958 #.  kill_fasync()/send_sigio()/send_sigio_to_task()
4959 #.  to directly call send_group_sig_info()
4960 #.      -- MTK, Apr 2005 (kernel 2.6.11)
4961 #. type: Plain text
4962 #: build/C/man2/fcntl.2:566
4963 msgid ""
4964 "If a nonzero value is given to B<F_SETSIG> in a multithreaded process "
4965 "running with a threading library that supports thread groups (e.g., NPTL), "
4966 "then a positive value given to B<F_SETOWN> has a different meaning: instead "
4967 "of being a process ID identifying a whole process, it is a thread ID "
4968 "identifying a specific thread within a process.  Consequently, it may be "
4969 "necessary to pass B<F_SETOWN> the result of B<gettid>(2)  instead of "
4970 "B<getpid>(2)  to get sensible results when B<F_SETSIG> is used.  (In current "
4971 "Linux threading implementations, a main thread's thread ID is the same as "
4972 "its process ID.  This means that a single-threaded program can equally use "
4973 "B<gettid>(2)  or B<getpid>(2)  in this scenario.)  Note, however, that the "
4974 "statements in this paragraph do not apply to the B<SIGURG> signal generated "
4975 "for out-of-band data on a socket: this signal is always sent to either a "
4976 "process or a process group, depending on the value given to B<F_SETOWN>."
4977 msgstr ""
4978
4979 #. type: Plain text
4980 #: build/C/man2/fcntl.2:577
4981 msgid ""
4982 "The above behavior was accidentally dropped in Linux 2.6.12, and won't be "
4983 "restored.  From Linux 2.6.32 onward, use B<F_SETOWN_EX> to target B<SIGIO> "
4984 "and B<SIGURG> signals at a particular thread."
4985 msgstr ""
4986
4987 #. type: TP
4988 #: build/C/man2/fcntl.2:577
4989 #, no-wrap
4990 msgid "B<F_GETOWN_EX> (struct f_owner_ex *) (since Linux 2.6.32)"
4991 msgstr ""
4992
4993 #. type: Plain text
4994 #: build/C/man2/fcntl.2:586
4995 msgid ""
4996 "Return the current file descriptor owner settings as defined by a previous "
4997 "B<F_SETOWN_EX> operation.  The information is returned in the structure "
4998 "pointed to by I<arg>, which has the following form:"
4999 msgstr ""
5000
5001 #. type: Plain text
5002 #: build/C/man2/fcntl.2:593
5003 #, no-wrap
5004 msgid ""
5005 "struct f_owner_ex {\n"
5006 "    int   type;\n"
5007 "    pid_t pid;\n"
5008 "};\n"
5009 msgstr ""
5010
5011 #. type: Plain text
5012 #: build/C/man2/fcntl.2:610
5013 msgid ""
5014 "The I<type> field will have one of the values B<F_OWNER_TID>, "
5015 "B<F_OWNER_PID>, or B<F_OWNER_PGRP>.  The I<pid> field is a positive integer "
5016 "representing a thread ID, process ID, or process group ID.  See "
5017 "B<F_SETOWN_EX> for more details."
5018 msgstr ""
5019
5020 #. type: TP
5021 #: build/C/man2/fcntl.2:610
5022 #, no-wrap
5023 msgid "B<F_SETOWN_EX> (struct f_owner_ex *) (since Linux 2.6.32)"
5024 msgstr ""
5025
5026 #. type: Plain text
5027 #: build/C/man2/fcntl.2:626
5028 msgid ""
5029 "This operation performs a similar task to B<F_SETOWN>.  It allows the caller "
5030 "to direct I/O availability signals to a specific thread, process, or process "
5031 "group.  The caller specifies the target of signals via I<arg>, which is a "
5032 "pointer to a I<f_owner_ex> structure.  The I<type> field has one of the "
5033 "following values, which define how I<pid> is interpreted:"
5034 msgstr ""
5035
5036 #. type: TP
5037 #: build/C/man2/fcntl.2:627
5038 #, no-wrap
5039 msgid "B<F_OWNER_TID>"
5040 msgstr ""
5041
5042 #. type: Plain text
5043 #: build/C/man2/fcntl.2:636
5044 msgid ""
5045 "Send the signal to the thread whose thread ID (the value returned by a call "
5046 "to B<clone>(2)  or B<gettid>(2))  is specified in I<pid>."
5047 msgstr ""
5048
5049 #. type: TP
5050 #: build/C/man2/fcntl.2:636
5051 #, no-wrap
5052 msgid "B<F_OWNER_PID>"
5053 msgstr ""
5054
5055 #. type: Plain text
5056 #: build/C/man2/fcntl.2:641
5057 msgid "Send the signal to the process whose ID is specified in I<pid>."
5058 msgstr ""
5059
5060 #. type: TP
5061 #: build/C/man2/fcntl.2:641
5062 #, no-wrap
5063 msgid "B<F_OWNER_PGRP>"
5064 msgstr ""
5065
5066 #. type: Plain text
5067 #: build/C/man2/fcntl.2:649
5068 msgid ""
5069 "Send the signal to the process group whose ID is specified in I<pid>.  (Note "
5070 "that, unlike with B<F_SETOWN>, a process group ID is specified as a positive "
5071 "value here.)"
5072 msgstr ""
5073
5074 #. type: TP
5075 #: build/C/man2/fcntl.2:650
5076 #, no-wrap
5077 msgid "B<F_GETSIG> (I<void>)"
5078 msgstr ""
5079
5080 #. type: Plain text
5081 #: build/C/man2/fcntl.2:665
5082 msgid ""
5083 "Return (as the function result)  the signal sent when input or output "
5084 "becomes possible.  A value of zero means B<SIGIO> is sent.  Any other value "
5085 "(including B<SIGIO>)  is the signal sent instead, and in this case "
5086 "additional info is available to the signal handler if installed with "
5087 "B<SA_SIGINFO>.  I<arg> is ignored."
5088 msgstr ""
5089
5090 #. type: TP
5091 #: build/C/man2/fcntl.2:665
5092 #, no-wrap
5093 msgid "B<F_SETSIG> (I<long>)"
5094 msgstr ""
5095
5096 #
5097 #.  The following was true only up until 2.6.11:
5098 #
5099 #.  Additionally, passing a nonzero value to
5100 #.  .B F_SETSIG
5101 #.  changes the signal recipient from a whole process to a specific thread
5102 #.  within a process.
5103 #.  See the description of
5104 #.  .B F_SETOWN
5105 #.  for more details.
5106 #. type: Plain text
5107 #: build/C/man2/fcntl.2:688
5108 msgid ""
5109 "Set the signal sent when input or output becomes possible to the value given "
5110 "in I<arg>.  A value of zero means to send the default B<SIGIO> signal.  Any "
5111 "other value (including B<SIGIO>)  is the signal to send instead, and in this "
5112 "case additional info is available to the signal handler if installed with "
5113 "B<SA_SIGINFO>."
5114 msgstr ""
5115
5116 #. type: Plain text
5117 #: build/C/man2/fcntl.2:716
5118 msgid ""
5119 "By using B<F_SETSIG> with a nonzero value, and setting B<SA_SIGINFO> for the "
5120 "signal handler (see B<sigaction>(2)), extra information about I/O events is "
5121 "passed to the handler in a I<siginfo_t> structure.  If the I<si_code> field "
5122 "indicates the source is B<SI_SIGIO>, the I<si_fd> field gives the file "
5123 "descriptor associated with the event.  Otherwise, there is no indication "
5124 "which file descriptors are pending, and you should use the usual mechanisms "
5125 "(B<select>(2), B<poll>(2), B<read>(2)  with B<O_NONBLOCK> set etc.) to "
5126 "determine which file descriptors are available for I/O."
5127 msgstr ""
5128
5129 #. type: Plain text
5130 #: build/C/man2/fcntl.2:725
5131 msgid ""
5132 "By selecting a real time signal (value E<gt>= B<SIGRTMIN>), multiple I/O "
5133 "events may be queued using the same signal numbers.  (Queuing is dependent "
5134 "on available memory).  Extra information is available if B<SA_SIGINFO> is "
5135 "set for the signal handler, as above."
5136 msgstr ""
5137
5138 #.  See fs/fcntl.c::send_sigio_to_task() (2.4/2.6) sources -- MTK, Apr 05
5139 #. type: Plain text
5140 #: build/C/man2/fcntl.2:738
5141 msgid ""
5142 "Note that Linux imposes a limit on the number of real-time signals that may "
5143 "be queued to a process (see B<getrlimit>(2)  and B<signal>(7))  and if this "
5144 "limit is reached, then the kernel reverts to delivering B<SIGIO>, and this "
5145 "signal is delivered to the entire process rather than to a specific thread."
5146 msgstr ""
5147
5148 #. type: Plain text
5149 #: build/C/man2/fcntl.2:745
5150 msgid ""
5151 "Using these mechanisms, a program can implement fully asynchronous I/O "
5152 "without using B<select>(2)  or B<poll>(2)  most of the time."
5153 msgstr ""
5154
5155 #. type: Plain text
5156 #: build/C/man2/fcntl.2:761
5157 msgid ""
5158 "The use of B<O_ASYNC>, B<F_GETOWN>, B<F_SETOWN> is specific to BSD and "
5159 "Linux.  B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and B<F_SETSIG> are "
5160 "Linux-specific.  POSIX has asynchronous I/O and the I<aio_sigevent> "
5161 "structure to achieve similar things; these are also available in Linux as "
5162 "part of the GNU C Library (Glibc)."
5163 msgstr ""
5164
5165 #. type: SS
5166 #: build/C/man2/fcntl.2:761
5167 #, no-wrap
5168 msgid "Leases"
5169 msgstr ""
5170
5171 #. type: Plain text
5172 #: build/C/man2/fcntl.2:776
5173 msgid ""
5174 "B<F_SETLEASE> and B<F_GETLEASE> (Linux 2.4 onward) are used (respectively) "
5175 "to establish a new lease, and retrieve the current lease, on the open file "
5176 "description referred to by the file descriptor I<fd>.  A file lease provides "
5177 "a mechanism whereby the process holding the lease (the \"lease holder\") is "
5178 "notified (via delivery of a signal)  when a process (the \"lease breaker\") "
5179 "tries to B<open>(2)  or B<truncate>(2)  the file referred to by that file "
5180 "descriptor."
5181 msgstr ""
5182
5183 #. type: TP
5184 #: build/C/man2/fcntl.2:776
5185 #, no-wrap
5186 msgid "B<F_SETLEASE> (I<long>)"
5187 msgstr ""
5188
5189 #. type: Plain text
5190 #: build/C/man2/fcntl.2:781
5191 msgid ""
5192 "Set or remove a file lease according to which of the following values is "
5193 "specified in the integer I<arg>:"
5194 msgstr ""
5195
5196 #. type: TP
5197 #: build/C/man2/fcntl.2:782
5198 #, no-wrap
5199 msgid "B<F_RDLCK>"
5200 msgstr ""
5201
5202 #.  The following became true in kernel 2.6.10:
5203 #.  See the man-pages-2.09 Changelog for further info.
5204 #. type: Plain text
5205 #: build/C/man2/fcntl.2:791
5206 msgid ""
5207 "Take out a read lease.  This will cause the calling process to be notified "
5208 "when the file is opened for writing or is truncated.  A read lease can only "
5209 "be placed on a file descriptor that is opened read-only."
5210 msgstr ""
5211
5212 #. type: TP
5213 #: build/C/man2/fcntl.2:791
5214 #, no-wrap
5215 msgid "B<F_WRLCK>"
5216 msgstr ""
5217
5218 #. type: Plain text
5219 #: build/C/man2/fcntl.2:798
5220 msgid ""
5221 "Take out a write lease.  This will cause the caller to be notified when the "
5222 "file is opened for reading or writing or is truncated.  A write lease may be "
5223 "placed on a file only if there are no other open file descriptors for the "
5224 "file."
5225 msgstr ""
5226
5227 #. type: TP
5228 #: build/C/man2/fcntl.2:798
5229 #, no-wrap
5230 msgid "B<F_UNLCK>"
5231 msgstr ""
5232
5233 #. type: Plain text
5234 #: build/C/man2/fcntl.2:801
5235 msgid "Remove our lease from the file."
5236 msgstr ""
5237
5238 #. type: Plain text
5239 #: build/C/man2/fcntl.2:815
5240 msgid ""
5241 "Leases are associated with an open file description (see B<open>(2)).  This "
5242 "means that duplicate file descriptors (created by, for example, B<fork>(2)  "
5243 "or B<dup>(2))  refer to the same lease, and this lease may be modified or "
5244 "released using any of these descriptors.  Furthermore, the lease is released "
5245 "by either an explicit B<F_UNLCK> operation on any of these duplicate "
5246 "descriptors, or when all such descriptors have been closed."
5247 msgstr ""
5248
5249 #. type: Plain text
5250 #: build/C/man2/fcntl.2:822
5251 msgid ""
5252 "Leases may only be taken out on regular files.  An unprivileged process may "
5253 "only take out a lease on a file whose UID (owner) matches the file system "
5254 "UID of the process.  A process with the B<CAP_LEASE> capability may take out "
5255 "leases on arbitrary files."
5256 msgstr ""
5257
5258 #. type: TP
5259 #: build/C/man2/fcntl.2:822
5260 #, no-wrap
5261 msgid "B<F_GETLEASE> (I<void>)"
5262 msgstr ""
5263
5264 #. type: Plain text
5265 #: build/C/man2/fcntl.2:831
5266 msgid ""
5267 "Indicates what type of lease is associated with the file descriptor I<fd> by "
5268 "returning either B<F_RDLCK>, B<F_WRLCK>, or B<F_UNLCK>, indicating, "
5269 "respectively, a read lease , a write lease, or no lease.  I<arg> is ignored."
5270 msgstr ""
5271
5272 #. type: Plain text
5273 #: build/C/man2/fcntl.2:862
5274 msgid ""
5275 "When a process (the \"lease breaker\") performs an B<open>(2)  or "
5276 "B<truncate>(2)  that conflicts with a lease established via B<F_SETLEASE>, "
5277 "the system call is blocked by the kernel and the kernel notifies the lease "
5278 "holder by sending it a signal (B<SIGIO> by default).  The lease holder "
5279 "should respond to receipt of this signal by doing whatever cleanup is "
5280 "required in preparation for the file to be accessed by another process "
5281 "(e.g., flushing cached buffers) and then either remove or downgrade its "
5282 "lease.  A lease is removed by performing an B<F_SETLEASE> command specifying "
5283 "I<arg> as B<F_UNLCK>.  If the lease holder currently holds a write lease on "
5284 "the file, and the lease breaker is opening the file for reading, then it is "
5285 "sufficient for the lease holder to downgrade the lease to a read lease.  "
5286 "This is done by performing an B<F_SETLEASE> command specifying I<arg> as "
5287 "B<F_RDLCK>."
5288 msgstr ""
5289
5290 #. type: Plain text
5291 #: build/C/man2/fcntl.2:867
5292 msgid ""
5293 "If the lease holder fails to downgrade or remove the lease within the number "
5294 "of seconds specified in I</proc/sys/fs/lease-break-time> then the kernel "
5295 "forcibly removes or downgrades the lease holder's lease."
5296 msgstr ""
5297
5298 #. type: Plain text
5299 #: build/C/man2/fcntl.2:871
5300 msgid ""
5301 "Once the lease has been voluntarily or forcibly removed or downgraded, and "
5302 "assuming the lease breaker has not unblocked its system call, the kernel "
5303 "permits the lease breaker's system call to proceed."
5304 msgstr ""
5305
5306 #. type: Plain text
5307 #: build/C/man2/fcntl.2:892
5308 msgid ""
5309 "If the lease breaker's blocked B<open>(2)  or B<truncate>(2)  is interrupted "
5310 "by a signal handler, then the system call fails with the error B<EINTR>, but "
5311 "the other steps still occur as described above.  If the lease breaker is "
5312 "killed by a signal while blocked in B<open>(2)  or B<truncate>(2), then the "
5313 "other steps still occur as described above.  If the lease breaker specifies "
5314 "the B<O_NONBLOCK> flag when calling B<open>(2), then the call immediately "
5315 "fails with the error B<EWOULDBLOCK>, but the other steps still occur as "
5316 "described above."
5317 msgstr ""
5318
5319 #. type: Plain text
5320 #: build/C/man2/fcntl.2:913
5321 msgid ""
5322 "The default signal used to notify the lease holder is B<SIGIO>, but this can "
5323 "be changed using the B<F_SETSIG> command to B<fcntl>().  If a B<F_SETSIG> "
5324 "command is performed (even one specifying B<SIGIO>), and the signal handler "
5325 "is established using B<SA_SIGINFO>, then the handler will receive a "
5326 "I<siginfo_t> structure as its second argument, and the I<si_fd> field of "
5327 "this argument will hold the descriptor of the leased file that has been "
5328 "accessed by another process.  (This is useful if the caller holds leases "
5329 "against multiple files)."
5330 msgstr ""
5331
5332 #. type: SS
5333 #: build/C/man2/fcntl.2:913
5334 #, no-wrap
5335 msgid "File and directory change notification (dnotify)"
5336 msgstr ""
5337
5338 #. type: TP
5339 #: build/C/man2/fcntl.2:914
5340 #, no-wrap
5341 msgid "B<F_NOTIFY> (I<long>)"
5342 msgstr ""
5343
5344 #. type: Plain text
5345 #: build/C/man2/fcntl.2:924
5346 msgid ""
5347 "(Linux 2.4 onward)  Provide notification when the directory referred to by "
5348 "I<fd> or any of the files that it contains is changed.  The events to be "
5349 "notified are specified in I<arg>, which is a bit mask specified by ORing "
5350 "together zero or more of the following bits:"
5351 msgstr ""
5352
5353 #. type: TP
5354 #: build/C/man2/fcntl.2:927
5355 #, no-wrap
5356 msgid "B<DN_ACCESS>"
5357 msgstr ""
5358
5359 #. type: Plain text
5360 #: build/C/man2/fcntl.2:930
5361 msgid "A file was accessed (read, pread, readv)"
5362 msgstr ""
5363
5364 #. type: TP
5365 #: build/C/man2/fcntl.2:930
5366 #, no-wrap
5367 msgid "B<DN_MODIFY>"
5368 msgstr ""
5369
5370 #. type: Plain text
5371 #: build/C/man2/fcntl.2:933
5372 msgid "A file was modified (write, pwrite, writev, truncate, ftruncate)."
5373 msgstr ""
5374
5375 #. type: TP
5376 #: build/C/man2/fcntl.2:933
5377 #, no-wrap
5378 msgid "B<DN_CREATE>"
5379 msgstr ""
5380
5381 #. type: Plain text
5382 #: build/C/man2/fcntl.2:936
5383 msgid "A file was created (open, creat, mknod, mkdir, link, symlink, rename)."
5384 msgstr ""
5385
5386 #. type: TP
5387 #: build/C/man2/fcntl.2:936
5388 #, no-wrap
5389 msgid "B<DN_DELETE>"
5390 msgstr ""
5391
5392 #. type: Plain text
5393 #: build/C/man2/fcntl.2:939
5394 msgid "A file was unlinked (unlink, rename to another directory, rmdir)."
5395 msgstr ""
5396
5397 #. type: TP
5398 #: build/C/man2/fcntl.2:939
5399 #, no-wrap
5400 msgid "B<DN_RENAME>"
5401 msgstr ""
5402
5403 #. type: Plain text
5404 #: build/C/man2/fcntl.2:942
5405 msgid "A file was renamed within this directory (rename)."
5406 msgstr ""
5407
5408 #. type: TP
5409 #: build/C/man2/fcntl.2:942
5410 #, no-wrap
5411 msgid "B<DN_ATTRIB>"
5412 msgstr ""
5413
5414 #. type: Plain text
5415 #: build/C/man2/fcntl.2:945
5416 msgid "The attributes of a file were changed (chown, chmod, utime[s])."
5417 msgstr ""
5418
5419 #. type: Plain text
5420 #: build/C/man2/fcntl.2:953
5421 msgid ""
5422 "(In order to obtain these definitions, the B<_GNU_SOURCE> feature test macro "
5423 "must be defined before including I<any> header files.)"
5424 msgstr ""
5425
5426 #. type: Plain text
5427 #: build/C/man2/fcntl.2:961
5428 msgid ""
5429 "Directory notifications are normally \"one-shot\", and the application must "
5430 "reregister to receive further notifications.  Alternatively, if "
5431 "B<DN_MULTISHOT> is included in I<arg>, then notification will remain in "
5432 "effect until explicitly removed."
5433 msgstr ""
5434
5435 #.  The following does seem a poor API-design choice...
5436 #. type: Plain text
5437 #: build/C/man2/fcntl.2:973
5438 msgid ""
5439 "A series of B<F_NOTIFY> requests is cumulative, with the events in I<arg> "
5440 "being added to the set already monitored.  To disable notification of all "
5441 "events, make an B<F_NOTIFY> call specifying I<arg> as 0."
5442 msgstr ""
5443
5444 #. type: Plain text
5445 #: build/C/man2/fcntl.2:991
5446 msgid ""
5447 "Notification occurs via delivery of a signal.  The default signal is "
5448 "B<SIGIO>, but this can be changed using the B<F_SETSIG> command to "
5449 "B<fcntl>().  In the latter case, the signal handler receives a I<siginfo_t> "
5450 "structure as its second argument (if the handler was established using "
5451 "B<SA_SIGINFO>)  and the I<si_fd> field of this structure contains the file "
5452 "descriptor which generated the notification (useful when establishing "
5453 "notification on multiple directories)."
5454 msgstr ""
5455
5456 #. type: Plain text
5457 #: build/C/man2/fcntl.2:996
5458 msgid ""
5459 "Especially when using B<DN_MULTISHOT>, a real time signal should be used for "
5460 "notification, so that multiple notifications can be queued."
5461 msgstr ""
5462
5463 #. type: Plain text
5464 #: build/C/man2/fcntl.2:1005
5465 msgid ""
5466 "B<NOTE:> New applications should use the I<inotify> interface (available "
5467 "since kernel 2.6.13), which provides a much superior interface for obtaining "
5468 "notifications of file system events.  See B<inotify>(7)."
5469 msgstr ""
5470
5471 #. type: SS
5472 #: build/C/man2/fcntl.2:1005
5473 #, no-wrap
5474 msgid "Changing the capacity of a pipe"
5475 msgstr ""
5476
5477 #. type: TP
5478 #: build/C/man2/fcntl.2:1006
5479 #, no-wrap
5480 msgid "B<F_SETPIPE_SZ> (I<long>; since Linux 2.6.35)"
5481 msgstr ""
5482
5483 #. type: Plain text
5484 #: build/C/man2/fcntl.2:1037
5485 msgid ""
5486 "Change the capacity of the pipe referred to by I<fd> to be at least I<arg> "
5487 "bytes.  An unprivileged process can adjust the pipe capacity to any value "
5488 "between the system page size and the limit defined in "
5489 "I</proc/sys/fs/pipe-size-max> (see B<proc>(5)).  Attempts to set the pipe "
5490 "capacity below the page size are silently rounded up to the page size.  "
5491 "Attempts by an unprivileged process to set the pipe capacity above the limit "
5492 "in I</proc/sys/fs/pipe-size-max> yield the error B<EPERM>; a privileged "
5493 "process (B<CAP_SYS_RESOURCE>)  can override the limit.  When allocating the "
5494 "buffer for the pipe, the kernel may use a capacity larger than I<arg>, if "
5495 "that is convenient for the implementation.  The B<F_GETPIPE_SZ> operation "
5496 "returns the actual size used.  Attempting to set the pipe capacity smaller "
5497 "than the amount of buffer space currently used to store data produces the "
5498 "error B<EBUSY>."
5499 msgstr ""
5500
5501 #. type: TP
5502 #: build/C/man2/fcntl.2:1037
5503 #, no-wrap
5504 msgid "B<F_GETPIPE_SZ> (I<void>; since Linux 2.6.35)"
5505 msgstr ""
5506
5507 #. type: Plain text
5508 #: build/C/man2/fcntl.2:1041
5509 msgid ""
5510 "Return (as the function result) the capacity of the pipe referred to by "
5511 "I<fd>."
5512 msgstr ""
5513
5514 #. type: Plain text
5515 #: build/C/man2/fcntl.2:1043
5516 msgid "For a successful call, the return value depends on the operation:"
5517 msgstr ""
5518
5519 #. type: TP
5520 #: build/C/man2/fcntl.2:1043
5521 #, no-wrap
5522 msgid "B<F_DUPFD>"
5523 msgstr ""
5524
5525 #. type: Plain text
5526 #: build/C/man2/fcntl.2:1046
5527 msgid "The new descriptor."
5528 msgstr ""
5529
5530 #. type: TP
5531 #: build/C/man2/fcntl.2:1046
5532 #, no-wrap
5533 msgid "B<F_GETFD>"
5534 msgstr ""
5535
5536 #. type: Plain text
5537 #: build/C/man2/fcntl.2:1049
5538 msgid "Value of file descriptor flags."
5539 msgstr ""
5540
5541 #. type: TP
5542 #: build/C/man2/fcntl.2:1049
5543 #, no-wrap
5544 msgid "B<F_GETFL>"
5545 msgstr ""
5546
5547 #. type: Plain text
5548 #: build/C/man2/fcntl.2:1052
5549 msgid "Value of file status flags."
5550 msgstr ""
5551
5552 #. type: TP
5553 #: build/C/man2/fcntl.2:1052
5554 #, no-wrap
5555 msgid "B<F_GETLEASE>"
5556 msgstr ""
5557
5558 #. type: Plain text
5559 #: build/C/man2/fcntl.2:1055
5560 msgid "Type of lease held on file descriptor."
5561 msgstr ""
5562
5563 #. type: TP
5564 #: build/C/man2/fcntl.2:1055
5565 #, no-wrap
5566 msgid "B<F_GETOWN>"
5567 msgstr ""
5568
5569 #. type: Plain text
5570 #: build/C/man2/fcntl.2:1058
5571 msgid "Value of descriptor owner."
5572 msgstr ""
5573
5574 #. type: TP
5575 #: build/C/man2/fcntl.2:1058
5576 #, no-wrap
5577 msgid "B<F_GETSIG>"
5578 msgstr ""
5579
5580 #. type: Plain text
5581 #: build/C/man2/fcntl.2:1064
5582 msgid ""
5583 "Value of signal sent when read or write becomes possible, or zero for "
5584 "traditional B<SIGIO> behavior."
5585 msgstr ""
5586
5587 #. type: TP
5588 #: build/C/man2/fcntl.2:1064
5589 #, no-wrap
5590 msgid "B<F_GETPIPE_SZ>"
5591 msgstr ""
5592
5593 #. type: Plain text
5594 #: build/C/man2/fcntl.2:1067
5595 msgid "The pipe capacity."
5596 msgstr ""
5597
5598 #. type: TP
5599 #: build/C/man2/fcntl.2:1067
5600 #, no-wrap
5601 msgid "All other commands"
5602 msgstr ""
5603
5604 #. type: Plain text
5605 #: build/C/man2/fcntl.2:1070
5606 msgid "Zero."
5607 msgstr ""
5608
5609 #. type: Plain text
5610 #: build/C/man2/fcntl.2:1074
5611 msgid "On error, -1 is returned, and I<errno> is set appropriately."
5612 msgstr ""
5613
5614 #. type: TP
5615 #: build/C/man2/fcntl.2:1075 build/C/man3/lockf.3:116
5616 #, no-wrap
5617 msgid "B<EACCES> or B<EAGAIN>"
5618 msgstr ""
5619
5620 #. type: Plain text
5621 #: build/C/man2/fcntl.2:1078
5622 msgid "Operation is prohibited by locks held by other processes."
5623 msgstr ""
5624
5625 #. type: TP
5626 #: build/C/man2/fcntl.2:1078 build/C/man2/fork.2:168 build/C/man2/fork.2:173
5627 #, no-wrap
5628 msgid "B<EAGAIN>"
5629 msgstr ""
5630
5631 #. type: Plain text
5632 #: build/C/man2/fcntl.2:1082
5633 msgid ""
5634 "The operation is prohibited because the file has been memory-mapped by "
5635 "another process."
5636 msgstr ""
5637
5638 #. type: Plain text
5639 #: build/C/man2/fcntl.2:1091
5640 msgid ""
5641 "I<fd> is not an open file descriptor, or the command was B<F_SETLK> or "
5642 "B<F_SETLKW> and the file descriptor open mode doesn't match with the type of "
5643 "lock requested."
5644 msgstr ""
5645
5646 #. type: TP
5647 #: build/C/man2/fcntl.2:1091 build/C/man3/lockf.3:136
5648 #, no-wrap
5649 msgid "B<EDEADLK>"
5650 msgstr ""
5651
5652 #. type: Plain text
5653 #: build/C/man2/fcntl.2:1096
5654 msgid ""
5655 "It was detected that the specified B<F_SETLKW> command would cause a "
5656 "deadlock."
5657 msgstr ""
5658
5659 #. type: Plain text
5660 #: build/C/man2/fcntl.2:1100
5661 msgid "I<lock> is outside your accessible address space."
5662 msgstr ""
5663
5664 #. type: Plain text
5665 #: build/C/man2/fcntl.2:1112
5666 msgid ""
5667 "For B<F_SETLKW>, the command was interrupted by a signal; see B<signal>(7).  "
5668 "For B<F_GETLK> and B<F_SETLK>, the command was interrupted by a signal "
5669 "before the lock was checked or acquired.  Most likely when locking a remote "
5670 "file (e.g., locking over NFS), but can sometimes happen locally."
5671 msgstr ""
5672
5673 #. type: Plain text
5674 #: build/C/man2/fcntl.2:1122
5675 msgid ""
5676 "For B<F_DUPFD>, I<arg> is negative or is greater than the maximum allowable "
5677 "value.  For B<F_SETSIG>, I<arg> is not an allowable signal number."
5678 msgstr ""
5679
5680 #. type: Plain text
5681 #: build/C/man2/fcntl.2:1127
5682 msgid ""
5683 "For B<F_DUPFD>, the process already has the maximum number of file "
5684 "descriptors open."
5685 msgstr ""
5686
5687 #. type: TP
5688 #: build/C/man2/fcntl.2:1127 build/C/man2/flock.2:129 build/C/man3/lockf.3:145
5689 #, no-wrap
5690 msgid "B<ENOLCK>"
5691 msgstr ""
5692
5693 #. type: Plain text
5694 #: build/C/man2/fcntl.2:1131
5695 msgid ""
5696 "Too many segment locks open, lock table is full, or a remote locking "
5697 "protocol failed (e.g., locking over NFS)."
5698 msgstr ""
5699
5700 #. type: Plain text
5701 #: build/C/man2/fcntl.2:1136
5702 msgid ""
5703 "Attempted to clear the B<O_APPEND> flag on a file that has the append-only "
5704 "attribute set."
5705 msgstr ""
5706
5707 #. type: Plain text
5708 #: build/C/man2/fcntl.2:1149
5709 msgid ""
5710 "SVr4, 4.3BSD, POSIX.1-2001.  Only the operations B<F_DUPFD>, B<F_GETFD>, "
5711 "B<F_SETFD>, B<F_GETFL>, B<F_SETFL>, B<F_GETLK>, B<F_SETLK> and B<F_SETLKW>, "
5712 "are specified in POSIX.1-2001."
5713 msgstr ""
5714
5715 #. type: Plain text
5716 #: build/C/man2/fcntl.2:1161
5717 msgid ""
5718 "B<F_GETOWN> and B<F_SETOWN> are specified in POSIX.1-2001.  (To get their "
5719 "definitions, define B<BSD_SOURCE>, or B<_XOPEN_SOURCE> with the value 500 or "
5720 "greater, or define B<_POSIX_C_SOURCE> with the value 200809L or greater.)"
5721 msgstr ""
5722
5723 #. type: Plain text
5724 #: build/C/man2/fcntl.2:1169
5725 msgid ""
5726 "B<F_DUPFD_CLOEXEC> is specified in POSIX.1-2008.  (To get this definition, "
5727 "define B<_POSIX_C_SOURCE> with the value 200809L or greater, or "
5728 "B<_XOPEN_SOURCE> with the value 700 or greater.)"
5729 msgstr ""
5730
5731 #.  .PP
5732 #.  SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
5733 #. type: Plain text
5734 #: build/C/man2/fcntl.2:1186
5735 msgid ""
5736 "B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_SETPIPE_SZ>, B<F_GETPIPE_SZ>, "
5737 "B<F_GETSIG>, B<F_SETSIG>, B<F_NOTIFY>, B<F_GETLEASE>, and B<F_SETLEASE> are "
5738 "Linux-specific.  (Define the B<_GNU_SOURCE> macro to obtain these "
5739 "definitions.)"
5740 msgstr ""
5741
5742 #. type: Plain text
5743 #: build/C/man2/fcntl.2:1207
5744 msgid ""
5745 "The original Linux B<fcntl>()  system call was not designed to handle large "
5746 "file offsets (in the I<flock> structure).  Consequently, an B<fcntl64>()  "
5747 "system call was added in Linux 2.4.  The newer system call employs a "
5748 "different structure for file locking, I<flock64>, and corresponding "
5749 "commands, B<F_GETLK64>, B<F_SETLK64>, and B<F_SETLKW64>.  However, these "
5750 "details can be ignored by applications using glibc, whose B<fcntl>()  "
5751 "wrapper function transparently employs the more recent system call where it "
5752 "is available."
5753 msgstr ""
5754
5755 #. type: Plain text
5756 #: build/C/man2/fcntl.2:1212
5757 msgid ""
5758 "The errors returned by B<dup2>(2)  are different from those returned by "
5759 "B<F_DUPFD>."
5760 msgstr ""
5761
5762 #. type: Plain text
5763 #: build/C/man2/fcntl.2:1218
5764 msgid ""
5765 "Since kernel 2.0, there is no interaction between the types of lock placed "
5766 "by B<flock>(2)  and B<fcntl>()."
5767 msgstr ""
5768
5769 #.  e.g., Solaris 8 documents this field in fcntl(2), and Irix 6.5
5770 #.  documents it in fcntl(5).  mtk, May 2007
5771 #. type: Plain text
5772 #: build/C/man2/fcntl.2:1229
5773 msgid ""
5774 "Several systems have more fields in I<struct flock> such as, for example, "
5775 "I<l_sysid>.  Clearly, I<l_pid> alone is not going to be very useful if the "
5776 "process holding the lock may live on a different machine."
5777 msgstr ""
5778
5779 #.  glibc source: sysdeps/unix/sysv/linux/i386/sysdep.h
5780 #.  mtk, Dec 04: some limited testing on alpha and ia64 seems to
5781 #.  indicate that ANY negative PGID value will cause F_GETOWN
5782 #.  to misinterpret the return as an error. Some other architectures
5783 #.  seem to have the same range check as i386.
5784 #. type: Plain text
5785 #: build/C/man2/fcntl.2:1255
5786 msgid ""
5787 "A limitation of the Linux system call conventions on some architectures "
5788 "(notably i386) means that if a (negative)  process group ID to be returned "
5789 "by B<F_GETOWN> falls in the range -1 to -4095, then the return value is "
5790 "wrongly interpreted by glibc as an error in the system call; that is, the "
5791 "return value of B<fcntl>()  will be -1, and I<errno> will contain the "
5792 "(positive) process group ID.  The Linux-specific B<F_GETOWN_EX> operation "
5793 "avoids this problem.  Since glibc version 2.11, glibc makes the kernel "
5794 "B<F_GETOWN> problem invisible by implementing B<F_GETOWN> using "
5795 "B<F_GETOWN_EX>."
5796 msgstr ""
5797
5798 #. type: Plain text
5799 #: build/C/man2/fcntl.2:1272
5800 msgid ""
5801 "In Linux 2.4 and earlier, there is bug that can occur when an unprivileged "
5802 "process uses B<F_SETOWN> to specify the owner of a socket file descriptor as "
5803 "a process (group) other than the caller.  In this case, B<fcntl>()  can "
5804 "return -1 with I<errno> set to B<EPERM>, even when the owner process (group) "
5805 "is one that the caller has permission to send signals to.  Despite this "
5806 "error return, the file descriptor owner is set, and signals will be sent to "
5807 "the owner."
5808 msgstr ""
5809
5810 #.  http://marc.info/?l=linux-kernel&m=119013491707153&w=2
5811 #. type: Plain text
5812 #: build/C/man2/fcntl.2:1287
5813 msgid ""
5814 "The implementation of mandatory locking in all known versions of Linux is "
5815 "subject to race conditions which render it unreliable: a B<write>(2)  call "
5816 "that overlaps with a lock may modify data after the mandatory lock is "
5817 "acquired; a B<read>(2)  call that overlaps with a lock may detect changes to "
5818 "data that were made only after a write lock was acquired.  Similar races "
5819 "exist between mandatory locks and B<mmap>(2).  It is therefore inadvisable "
5820 "to rely on mandatory locking."
5821 msgstr ""
5822
5823 #. type: Plain text
5824 #: build/C/man2/fcntl.2:1295
5825 msgid ""
5826 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
5827 "B<capabilities>(7), B<feature_test_macros>(7)"
5828 msgstr ""
5829
5830 #. type: Plain text
5831 #: build/C/man2/fcntl.2:1309
5832 msgid ""
5833 "See also I<locks.txt>, I<mandatory-locking.txt>, and I<dnotify.txt> in the "
5834 "kernel source directory I<Documentation/filesystems/>.  (On older kernels, "
5835 "these files are directly under the I<Documentation/> directory, and "
5836 "I<mandatory-locking.txt> is called I<mandatory.txt>.)"
5837 msgstr ""
5838
5839 #. type: TH
5840 #: build/C/man3/fexecve.3:25
5841 #, no-wrap
5842 msgid "FEXECVE"
5843 msgstr ""
5844
5845 #. type: TH
5846 #: build/C/man3/fexecve.3:25
5847 #, no-wrap
5848 msgid "2010-09-15"
5849 msgstr ""
5850
5851 #. type: Plain text
5852 #: build/C/man3/fexecve.3:28
5853 msgid "fexecve - execute program specified via file descriptor"
5854 msgstr ""
5855
5856 #. type: Plain text
5857 #: build/C/man3/fexecve.3:33
5858 #, no-wrap
5859 msgid ""
5860 "B<int fexecve(int >I<fd>B<, char *const >I<argv>B<[], char *const "
5861 ">I<envp>B<[]);>\n"
5862 msgstr ""
5863
5864 #. type: Plain text
5865 #: build/C/man3/fexecve.3:41
5866 msgid "B<fexecve>():"
5867 msgstr ""
5868
5869 #. type: TP
5870 #: build/C/man3/fexecve.3:44
5871 #, no-wrap
5872 msgid "Since glibc 2.10:"
5873 msgstr ""
5874
5875 #. type: Plain text
5876 #: build/C/man3/fexecve.3:47
5877 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 700 || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
5878 msgstr ""
5879
5880 #. type: TP
5881 #: build/C/man3/fexecve.3:47
5882 #, no-wrap
5883 msgid "Before glibc 2.10:"
5884 msgstr ""
5885
5886 #. type: Plain text
5887 #: build/C/man3/fexecve.3:50 build/C/man3/getcwd.3:52
5888 msgid "_GNU_SOURCE"
5889 msgstr ""
5890
5891 #.  POSIX.1-2008 specifies the O_EXEC flag for open as an alternative,
5892 #.  but Linux doesn't support this flag yet.
5893 #. type: Plain text
5894 #: build/C/man3/fexecve.3:67
5895 msgid ""
5896 "B<fexecve>()  performs the same task as B<execve>(2), with the difference "
5897 "that the file to be executed is specified via a file descriptor, I<fd>, "
5898 "rather than via a pathname.  The file descriptor I<fd> must be opened "
5899 "read-only, and the caller must have permission to execute the file that it "
5900 "refers to."
5901 msgstr ""
5902
5903 #. type: Plain text
5904 #: build/C/man3/fexecve.3:74
5905 msgid ""
5906 "A successful call to B<fexecve>()  never returns.  On error, the function "
5907 "returns, with a result value of -1, and I<errno> is set appropriately."
5908 msgstr ""
5909
5910 #. type: Plain text
5911 #: build/C/man3/fexecve.3:78
5912 msgid "Errors are as for B<execve>(2), with the following additions:"
5913 msgstr ""
5914
5915 #. type: Plain text
5916 #: build/C/man3/fexecve.3:86
5917 msgid ""
5918 "I<fd> is not a valid file descriptor, or I<argv> is NULL, or I<envp> is "
5919 "NULL."
5920 msgstr ""
5921
5922 #. type: Plain text
5923 #: build/C/man3/fexecve.3:91
5924 msgid "The I</proc> file system could not be accessed."
5925 msgstr ""
5926
5927 #. type: Plain text
5928 #: build/C/man3/fexecve.3:94
5929 msgid "B<fexecve>()  is implemented since glibc 2.3.2."
5930 msgstr ""
5931
5932 #. type: Plain text
5933 #: build/C/man3/fexecve.3:98
5934 msgid ""
5935 "POSIX.1-2008.  This function is not specified in POSIX.1-2001, and is not "
5936 "widely available on other systems."
5937 msgstr ""
5938
5939 #. type: Plain text
5940 #: build/C/man3/fexecve.3:106
5941 msgid ""
5942 "On Linux, B<fexecve>()  is implemented using the B<proc>(5)  file system, so "
5943 "I</proc> needs to be mounted and available at the time of the call."
5944 msgstr ""
5945
5946 #. type: Plain text
5947 #: build/C/man3/fexecve.3:108
5948 msgid "B<execve>(2)"
5949 msgstr ""
5950
5951 #. type: TH
5952 #: build/C/man2/flock.2:34
5953 #, no-wrap
5954 msgid "FLOCK"
5955 msgstr ""
5956
5957 #. type: Plain text
5958 #: build/C/man2/flock.2:37
5959 msgid "flock - apply or remove an advisory lock on an open file"
5960 msgstr ""
5961
5962 #. type: Plain text
5963 #: build/C/man2/flock.2:39
5964 msgid "B<#include E<lt>sys/file.hE<gt>>"
5965 msgstr ""
5966
5967 #. type: Plain text
5968 #: build/C/man2/flock.2:41
5969 msgid "B<int flock(int >I<fd>B<, int >I<operation>B<);>"
5970 msgstr ""
5971
5972 #. type: Plain text
5973 #: build/C/man2/flock.2:47
5974 msgid ""
5975 "Apply or remove an advisory lock on the open file specified by I<fd>.  The "
5976 "argument I<operation> is one of the following:"
5977 msgstr ""
5978
5979 #. type: TP
5980 #: build/C/man2/flock.2:48
5981 #, no-wrap
5982 msgid "B<LOCK_SH>"
5983 msgstr ""
5984
5985 #. type: Plain text
5986 #: build/C/man2/flock.2:53
5987 msgid ""
5988 "Place a shared lock.  More than one process may hold a shared lock for a "
5989 "given file at a given time."
5990 msgstr ""
5991
5992 #. type: TP
5993 #: build/C/man2/flock.2:53
5994 #, no-wrap
5995 msgid "B<LOCK_EX>"
5996 msgstr ""
5997
5998 #. type: Plain text
5999 #: build/C/man2/flock.2:58
6000 msgid ""
6001 "Place an exclusive lock.  Only one process may hold an exclusive lock for a "
6002 "given file at a given time."
6003 msgstr ""
6004
6005 #. type: TP
6006 #: build/C/man2/flock.2:58
6007 #, no-wrap
6008 msgid "B<LOCK_UN>"
6009 msgstr ""
6010
6011 #. type: Plain text
6012 #: build/C/man2/flock.2:61
6013 msgid "Remove an existing lock held by this process."
6014 msgstr ""
6015
6016 #. type: Plain text
6017 #: build/C/man2/flock.2:70
6018 msgid ""
6019 "A call to B<flock>()  may block if an incompatible lock is held by another "
6020 "process.  To make a nonblocking request, include B<LOCK_NB> (by ORing)  with "
6021 "any of the above operations."
6022 msgstr ""
6023
6024 #. type: Plain text
6025 #: build/C/man2/flock.2:72
6026 msgid "A single file may not simultaneously have both shared and exclusive locks."
6027 msgstr ""
6028
6029 #. type: Plain text
6030 #: build/C/man2/flock.2:86
6031 msgid ""
6032 "Locks created by B<flock>()  are associated with an open file table entry.  "
6033 "This means that duplicate file descriptors (created by, for example, "
6034 "B<fork>(2)  or B<dup>(2))  refer to the same lock, and this lock may be "
6035 "modified or released using any of these descriptors.  Furthermore, the lock "
6036 "is released either by an explicit B<LOCK_UN> operation on any of these "
6037 "duplicate descriptors, or when all such descriptors have been closed."
6038 msgstr ""
6039
6040 #. type: Plain text
6041 #: build/C/man2/flock.2:95
6042 msgid ""
6043 "If a process uses B<open>(2)  (or similar) to obtain more than one "
6044 "descriptor for the same file, these descriptors are treated independently by "
6045 "B<flock>().  An attempt to lock the file using one of these file descriptors "
6046 "may be denied by a lock that the calling process has already placed via "
6047 "another descriptor."
6048 msgstr ""
6049
6050 #. type: Plain text
6051 #: build/C/man2/flock.2:102
6052 msgid ""
6053 "A process may only hold one type of lock (shared or exclusive)  on a file.  "
6054 "Subsequent B<flock>()  calls on an already locked file will convert an "
6055 "existing lock to the new lock mode."
6056 msgstr ""
6057
6058 #. type: Plain text
6059 #: build/C/man2/flock.2:107
6060 msgid "Locks created by B<flock>()  are preserved across an B<execve>(2)."
6061 msgstr ""
6062
6063 #. type: Plain text
6064 #: build/C/man2/flock.2:110
6065 msgid ""
6066 "A shared or exclusive lock can be placed on a file regardless of the mode in "
6067 "which the file was opened."
6068 msgstr ""
6069
6070 #. type: Plain text
6071 #: build/C/man2/flock.2:120
6072 msgid "I<fd> is not an open file descriptor."
6073 msgstr ""
6074
6075 #. type: Plain text
6076 #: build/C/man2/flock.2:125
6077 msgid ""
6078 "While waiting to acquire a lock, the call was interrupted by delivery of a "
6079 "signal caught by a handler; see B<signal>(7)."
6080 msgstr ""
6081
6082 #. type: Plain text
6083 #: build/C/man2/flock.2:129
6084 msgid "I<operation> is invalid."
6085 msgstr ""
6086
6087 #. type: Plain text
6088 #: build/C/man2/flock.2:132
6089 msgid "The kernel ran out of memory for allocating lock records."
6090 msgstr ""
6091
6092 #. type: TP
6093 #: build/C/man2/flock.2:132
6094 #, no-wrap
6095 msgid "B<EWOULDBLOCK>"
6096 msgstr ""
6097
6098 #. type: Plain text
6099 #: build/C/man2/flock.2:137
6100 msgid "The file is locked and the B<LOCK_NB> flag was selected."
6101 msgstr ""
6102
6103 #. type: Plain text
6104 #: build/C/man2/flock.2:146
6105 msgid ""
6106 "4.4BSD (the B<flock>()  call first appeared in 4.2BSD).  A version of "
6107 "B<flock>(), possibly implemented in terms of B<fcntl>(2), appears on most "
6108 "UNIX systems."
6109 msgstr ""
6110
6111 #. type: Plain text
6112 #: build/C/man2/flock.2:153
6113 msgid ""
6114 "B<flock>()  does not lock files over NFS.  Use B<fcntl>(2)  instead: that "
6115 "does work over NFS, given a sufficiently recent version of Linux and a "
6116 "server which supports locking."
6117 msgstr ""
6118
6119 #. type: Plain text
6120 #: build/C/man2/flock.2:168
6121 msgid ""
6122 "Since kernel 2.0, B<flock>()  is implemented as a system call in its own "
6123 "right rather than being emulated in the GNU C library as a call to "
6124 "B<fcntl>(2).  This yields true BSD semantics: there is no interaction "
6125 "between the types of lock placed by B<flock>()  and B<fcntl>(2), and "
6126 "B<flock>()  does not detect deadlock."
6127 msgstr ""
6128
6129 #. type: Plain text
6130 #: build/C/man2/flock.2:174
6131 msgid ""
6132 "B<flock>()  places advisory locks only; given suitable permissions on a "
6133 "file, a process is free to ignore the use of B<flock>()  and perform I/O on "
6134 "the file."
6135 msgstr ""
6136
6137 #. type: Plain text
6138 #: build/C/man2/flock.2:187
6139 msgid ""
6140 "B<flock>()  and B<fcntl>(2)  locks have different semantics with respect to "
6141 "forked processes and B<dup>(2).  On systems that implement B<flock>()  using "
6142 "B<fcntl>(2), the semantics of B<flock>()  will be different from those "
6143 "described in this manual page."
6144 msgstr ""
6145
6146 #.  Kernel 2.5.21 changed things a little: during lock conversion
6147 #.  it is now the highest priority process that will get the lock -- mtk
6148 #. type: Plain text
6149 #: build/C/man2/flock.2:200
6150 msgid ""
6151 "Converting a lock (shared to exclusive, or vice versa) is not guaranteed to "
6152 "be atomic: the existing lock is first removed, and then a new lock is "
6153 "established.  Between these two steps, a pending lock request by another "
6154 "process may be granted, with the result that the conversion either blocks, "
6155 "or fails if B<LOCK_NB> was specified.  (This is the original BSD behavior, "
6156 "and occurs on many other implementations.)"
6157 msgstr ""
6158
6159 #. type: Plain text
6160 #: build/C/man2/flock.2:208
6161 msgid ""
6162 "B<close>(2), B<dup>(2), B<execve>(2), B<fcntl>(2), B<fork>(2), B<open>(2), "
6163 "B<lockf>(3)"
6164 msgstr ""
6165
6166 #. type: Plain text
6167 #: build/C/man2/flock.2:214
6168 msgid ""
6169 "See also I<Documentation/filesystem/locks.txt> in the kernel source "
6170 "(I<Documentation/locks.txt> in older kernels)."
6171 msgstr ""
6172
6173 #. type: TH
6174 #: build/C/man2/fork.2:39
6175 #, no-wrap
6176 msgid "FORK"
6177 msgstr ""
6178
6179 #. type: TH
6180 #: build/C/man2/fork.2:39
6181 #, no-wrap
6182 msgid "2009-04-27"
6183 msgstr ""
6184
6185 #. type: Plain text
6186 #: build/C/man2/fork.2:42
6187 msgid "fork - create a child process"
6188 msgstr ""
6189
6190 #. type: Plain text
6191 #: build/C/man2/fork.2:46
6192 msgid "B<pid_t fork(void);>"
6193 msgstr ""
6194
6195 #. type: Plain text
6196 #: build/C/man2/fork.2:52
6197 msgid ""
6198 "B<fork>()  creates a new process by duplicating the calling process.  The "
6199 "new process, referred to as the I<child>, is an exact duplicate of the "
6200 "calling process, referred to as the I<parent>, except for the following "
6201 "points:"
6202 msgstr ""
6203
6204 #. type: Plain text
6205 #: build/C/man2/fork.2:56
6206 msgid ""
6207 "The child has its own unique process ID, and this PID does not match the ID "
6208 "of any existing process group (B<setpgid>(2))."
6209 msgstr ""
6210
6211 #. type: Plain text
6212 #: build/C/man2/fork.2:58
6213 msgid "The child's parent process ID is the same as the parent's process ID."
6214 msgstr ""
6215
6216 #. type: Plain text
6217 #: build/C/man2/fork.2:62
6218 msgid ""
6219 "The child does not inherit its parent's memory locks (B<mlock>(2), "
6220 "B<mlockall>(2))."
6221 msgstr ""
6222
6223 #. type: Plain text
6224 #: build/C/man2/fork.2:68
6225 msgid ""
6226 "Process resource utilizations (B<getrusage>(2))  and CPU time counters "
6227 "(B<times>(2))  are reset to zero in the child."
6228 msgstr ""
6229
6230 #. type: Plain text
6231 #: build/C/man2/fork.2:71
6232 msgid "The child's set of pending signals is initially empty (B<sigpending>(2))."
6233 msgstr ""
6234
6235 #. type: Plain text
6236 #: build/C/man2/fork.2:74
6237 msgid ""
6238 "The child does not inherit semaphore adjustments from its parent "
6239 "(B<semop>(2))."
6240 msgstr ""
6241
6242 #. type: Plain text
6243 #: build/C/man2/fork.2:77
6244 msgid "The child does not inherit record locks from its parent (B<fcntl>(2))."
6245 msgstr ""
6246
6247 #. type: Plain text
6248 #: build/C/man2/fork.2:82
6249 msgid ""
6250 "The child does not inherit timers from its parent (B<setitimer>(2), "
6251 "B<alarm>(2), B<timer_create>(2))."
6252 msgstr ""
6253
6254 #. type: Plain text
6255 #: build/C/man2/fork.2:89
6256 msgid ""
6257 "The child does not inherit outstanding asynchronous I/O operations from its "
6258 "parent (B<aio_read>(3), B<aio_write>(3)), nor does it inherit any "
6259 "asynchronous I/O contexts from its parent (see B<io_setup>(2))."
6260 msgstr ""
6261
6262 #. type: Plain text
6263 #: build/C/man2/fork.2:94
6264 msgid ""
6265 "The process attributes in the preceding list are all specified in "
6266 "POSIX.1-2001.  The parent and child also differ with respect to the "
6267 "following Linux-specific process attributes:"
6268 msgstr ""
6269
6270 #. type: Plain text
6271 #: build/C/man2/fork.2:101
6272 msgid ""
6273 "The child does not inherit directory change notifications (dnotify)  from "
6274 "its parent (see the description of B<F_NOTIFY> in B<fcntl>(2))."
6275 msgstr ""
6276
6277 #. type: Plain text
6278 #: build/C/man2/fork.2:107
6279 msgid ""
6280 "The B<prctl>(2)  B<PR_SET_PDEATHSIG> setting is reset so that the child does "
6281 "not receive a signal when its parent terminates."
6282 msgstr ""
6283
6284 #. type: Plain text
6285 #: build/C/man2/fork.2:113
6286 msgid ""
6287 "Memory mappings that have been marked with the B<madvise>(2)  "
6288 "B<MADV_DONTFORK> flag are not inherited across a B<fork>()."
6289 msgstr ""
6290
6291 #. type: Plain text
6292 #: build/C/man2/fork.2:118
6293 msgid "The termination signal of the child is always B<SIGCHLD> (see B<clone>(2))."
6294 msgstr ""
6295
6296 #. type: Plain text
6297 #: build/C/man2/fork.2:129
6298 msgid ""
6299 "The child process is created with a single thread\\(emthe one that called "
6300 "B<fork>().  The entire virtual address space of the parent is replicated in "
6301 "the child, including the states of mutexes, condition variables, and other "
6302 "pthreads objects; the use of B<pthread_atfork>(3)  may be helpful for "
6303 "dealing with problems that this can cause."
6304 msgstr ""
6305
6306 #. type: Plain text
6307 #: build/C/man2/fork.2:143
6308 msgid ""
6309 "The child inherits copies of the parent's set of open file descriptors.  "
6310 "Each file descriptor in the child refers to the same open file description "
6311 "(see B<open>(2))  as the corresponding file descriptor in the parent.  This "
6312 "means that the two descriptors share open file status flags, current file "
6313 "offset, and signal-driven I/O attributes (see the description of B<F_SETOWN> "
6314 "and B<F_SETSIG> in B<fcntl>(2))."
6315 msgstr ""
6316
6317 #. type: Plain text
6318 #: build/C/man2/fork.2:152
6319 msgid ""
6320 "The child inherits copies of the parent's set of open message queue "
6321 "descriptors (see B<mq_overview>(7)).  Each descriptor in the child refers to "
6322 "the same open message queue description as the corresponding descriptor in "
6323 "the parent.  This means that the two descriptors share the same flags "
6324 "(I<mq_flags>)."
6325 msgstr ""
6326
6327 #. type: Plain text
6328 #: build/C/man2/fork.2:160
6329 msgid ""
6330 "The child inherits copies of the parent's set of open directory streams (see "
6331 "B<opendir>(3)).  POSIX.1-2001 says that the corresponding directory streams "
6332 "in the parent and child I<may> share the directory stream positioning; on "
6333 "Linux/glibc they do not."
6334 msgstr ""
6335
6336 #. type: Plain text
6337 #: build/C/man2/fork.2:167
6338 msgid ""
6339 "On success, the PID of the child process is returned in the parent, and 0 is "
6340 "returned in the child.  On failure, -1 is returned in the parent, no child "
6341 "process is created, and I<errno> is set appropriately."
6342 msgstr ""
6343
6344 #. type: Plain text
6345 #: build/C/man2/fork.2:173
6346 msgid ""
6347 "B<fork>()  cannot allocate sufficient memory to copy the parent's page "
6348 "tables and allocate a task structure for the child."
6349 msgstr ""
6350
6351 #. type: Plain text
6352 #: build/C/man2/fork.2:183
6353 msgid ""
6354 "It was not possible to create a new process because the caller's "
6355 "B<RLIMIT_NPROC> resource limit was encountered.  To exceed this limit, the "
6356 "process must have either the B<CAP_SYS_ADMIN> or the B<CAP_SYS_RESOURCE> "
6357 "capability."
6358 msgstr ""
6359
6360 #. type: Plain text
6361 #: build/C/man2/fork.2:187
6362 msgid ""
6363 "B<fork>()  failed to allocate the necessary kernel structures because memory "
6364 "is tight."
6365 msgstr ""
6366
6367 #. type: Plain text
6368 #: build/C/man2/fork.2:196
6369 msgid ""
6370 "Under Linux, B<fork>()  is implemented using copy-on-write pages, so the "
6371 "only penalty that it incurs is the time and memory required to duplicate the "
6372 "parent's page tables, and to create a unique task structure for the child."
6373 msgstr ""
6374
6375 #.  nptl/sysdeps/unix/sysv/linux/fork.c
6376 #.  and does some magic to ensure that getpid(2) returns the right value.
6377 #. type: Plain text
6378 #: build/C/man2/fork.2:212
6379 msgid ""
6380 "Since version 2.3.3, rather than invoking the kernel's B<fork>()  system "
6381 "call, the glibc B<fork>()  wrapper that is provided as part of the NPTL "
6382 "threading implementation invokes B<clone>(2)  with flags that provide the "
6383 "same effect as the traditional system call.  The glibc wrapper invokes any "
6384 "fork handlers that have been established using B<pthread_atfork>(3)."
6385 msgstr ""
6386
6387 #. type: Plain text
6388 #: build/C/man2/fork.2:217
6389 msgid "See B<pipe>(2)  and B<wait>(2)."
6390 msgstr ""
6391
6392 #. type: Plain text
6393 #: build/C/man2/fork.2:227
6394 msgid ""
6395 "B<clone>(2), B<execve>(2), B<setrlimit>(2), B<unshare>(2), B<vfork>(2), "
6396 "B<wait>(2), B<daemon>(3), B<capabilities>(7), B<credentials>(7)"
6397 msgstr ""
6398
6399 #. type: TH
6400 #: build/C/man3/fpathconf.3:24
6401 #, no-wrap
6402 msgid "FPATHCONF"
6403 msgstr ""
6404
6405 #. type: TH
6406 #: build/C/man3/fpathconf.3:24
6407 #, no-wrap
6408 msgid "1993-04-04"
6409 msgstr ""
6410
6411 #. type: Plain text
6412 #: build/C/man3/fpathconf.3:27
6413 msgid "fpathconf, pathconf - get configuration values for files"
6414 msgstr ""
6415
6416 #. type: Plain text
6417 #: build/C/man3/fpathconf.3:32
6418 #, no-wrap
6419 msgid "B<long fpathconf(int >I<fd>B<, int >I<name>B<);>\n"
6420 msgstr ""
6421
6422 #. type: Plain text
6423 #: build/C/man3/fpathconf.3:34
6424 #, no-wrap
6425 msgid "B<long pathconf(char *>I<path>B<, int >I<name>B<);>\n"
6426 msgstr ""
6427
6428 #. type: Plain text
6429 #: build/C/man3/fpathconf.3:41
6430 msgid ""
6431 "B<fpathconf>()  gets a value for the configuration option I<name> for the "
6432 "open file descriptor I<fd>."
6433 msgstr ""
6434
6435 #. type: Plain text
6436 #: build/C/man3/fpathconf.3:47
6437 msgid ""
6438 "B<pathconf>()  gets a value for configuration option I<name> for the "
6439 "filename I<path>."
6440 msgstr ""
6441
6442 #. type: Plain text
6443 #: build/C/man3/fpathconf.3:56
6444 msgid ""
6445 "The corresponding macros defined in I<E<lt>unistd.hE<gt>> are minimum "
6446 "values; if an application wants to take advantage of values which may "
6447 "change, a call to B<fpathconf>()  or B<pathconf>()  can be made, which may "
6448 "yield more liberal results."
6449 msgstr ""
6450
6451 #. type: Plain text
6452 #: build/C/man3/fpathconf.3:61
6453 msgid ""
6454 "Setting I<name> equal to one of the following constants returns the "
6455 "following configuration options:"
6456 msgstr ""
6457
6458 #. type: TP
6459 #: build/C/man3/fpathconf.3:61
6460 #, no-wrap
6461 msgid "B<_PC_LINK_MAX>"
6462 msgstr ""
6463
6464 #. type: Plain text
6465 #: build/C/man3/fpathconf.3:71
6466 msgid ""
6467 "returns the maximum number of links to the file.  If I<fd> or I<path> refer "
6468 "to a directory, then the value applies to the whole directory.  The "
6469 "corresponding macro is B<_POSIX_LINK_MAX>."
6470 msgstr ""
6471
6472 #. type: TP
6473 #: build/C/man3/fpathconf.3:71
6474 #, no-wrap
6475 msgid "B<_PC_MAX_CANON>"
6476 msgstr ""
6477
6478 #. type: Plain text
6479 #: build/C/man3/fpathconf.3:80
6480 msgid ""
6481 "returns the maximum length of a formatted input line, where I<fd> or I<path> "
6482 "must refer to a terminal.  The corresponding macro is B<_POSIX_MAX_CANON>."
6483 msgstr ""
6484
6485 #. type: TP
6486 #: build/C/man3/fpathconf.3:80
6487 #, no-wrap
6488 msgid "B<_PC_MAX_INPUT>"
6489 msgstr ""
6490
6491 #. type: Plain text
6492 #: build/C/man3/fpathconf.3:89
6493 msgid ""
6494 "returns the maximum length of an input line, where I<fd> or I<path> must "
6495 "refer to a terminal.  The corresponding macro is B<_POSIX_MAX_INPUT>."
6496 msgstr ""
6497
6498 #. type: TP
6499 #: build/C/man3/fpathconf.3:89
6500 #, no-wrap
6501 msgid "B<_PC_NAME_MAX>"
6502 msgstr ""
6503
6504 #. type: Plain text
6505 #: build/C/man3/fpathconf.3:98
6506 msgid ""
6507 "returns the maximum length of a filename in the directory I<path> or I<fd> "
6508 "that the process is allowed to create.  The corresponding macro is "
6509 "B<_POSIX_NAME_MAX>."
6510 msgstr ""
6511
6512 #. type: TP
6513 #: build/C/man3/fpathconf.3:98
6514 #, no-wrap
6515 msgid "B<_PC_PATH_MAX>"
6516 msgstr ""
6517
6518 #. type: Plain text
6519 #: build/C/man3/fpathconf.3:107
6520 msgid ""
6521 "returns the maximum length of a relative pathname when I<path> or I<fd> is "
6522 "the current working directory.  The corresponding macro is "
6523 "B<_POSIX_PATH_MAX>."
6524 msgstr ""
6525
6526 #. type: TP
6527 #: build/C/man3/fpathconf.3:107
6528 #, no-wrap
6529 msgid "B<_PC_PIPE_BUF>"
6530 msgstr ""
6531
6532 #. type: Plain text
6533 #: build/C/man3/fpathconf.3:116
6534 msgid ""
6535 "returns the size of the pipe buffer, where I<fd> must refer to a pipe or "
6536 "FIFO and I<path> must refer to a FIFO.  The corresponding macro is "
6537 "B<_POSIX_PIPE_BUF>."
6538 msgstr ""
6539
6540 #. type: TP
6541 #: build/C/man3/fpathconf.3:116
6542 #, no-wrap
6543 msgid "B<_PC_CHOWN_RESTRICTED>"
6544 msgstr ""
6545
6546 #. type: Plain text
6547 #: build/C/man3/fpathconf.3:129
6548 msgid ""
6549 "returns nonzero if the B<chown>(2)  call may not be used on this file.  If "
6550 "I<fd> or I<path> refer to a directory, then this applies to all files in "
6551 "that directory.  The corresponding macro is B<_POSIX_CHOWN_RESTRICTED>."
6552 msgstr ""
6553
6554 #. type: TP
6555 #: build/C/man3/fpathconf.3:129
6556 #, no-wrap
6557 msgid "B<_PC_NO_TRUNC>"
6558 msgstr ""
6559
6560 #. type: Plain text
6561 #: build/C/man3/fpathconf.3:136
6562 msgid ""
6563 "returns nonzero if accessing filenames longer than B<_POSIX_NAME_MAX> "
6564 "generates an error.  The corresponding macro is B<_POSIX_NO_TRUNC>."
6565 msgstr ""
6566
6567 #. type: TP
6568 #: build/C/man3/fpathconf.3:136
6569 #, no-wrap
6570 msgid "B<_PC_VDISABLE>"
6571 msgstr ""
6572
6573 #. type: Plain text
6574 #: build/C/man3/fpathconf.3:143
6575 msgid ""
6576 "returns nonzero if special character processing can be disabled, where I<fd> "
6577 "or I<path> must refer to a terminal."
6578 msgstr ""
6579
6580 #. type: Plain text
6581 #: build/C/man3/fpathconf.3:152
6582 msgid ""
6583 "The limit is returned, if one exists.  If the system does not have a limit "
6584 "for the requested resource, -1 is returned, and I<errno> is unchanged.  If "
6585 "there is an error, -1 is returned, and I<errno> is set to reflect the nature "
6586 "of the error."
6587 msgstr ""
6588
6589 #. type: Plain text
6590 #: build/C/man3/fpathconf.3:160
6591 msgid ""
6592 "Files with name lengths longer than the value returned for I<name> equal to "
6593 "B<_PC_NAME_MAX> may exist in the given directory."
6594 msgstr ""
6595
6596 #. type: Plain text
6597 #: build/C/man3/fpathconf.3:163 build/C/man3/sysconf.3:333
6598 msgid ""
6599 "Some returned values may be huge; they are not suitable for allocating "
6600 "memory."
6601 msgstr ""
6602
6603 #. type: Plain text
6604 #: build/C/man3/fpathconf.3:168
6605 msgid "B<getconf>(1), B<open>(2), B<statfs>(2), B<sysconf>(3)"
6606 msgstr ""
6607
6608 #. type: TH
6609 #: build/C/man2/fsync.2:37
6610 #, no-wrap
6611 msgid "FSYNC"
6612 msgstr ""
6613
6614 #. type: TH
6615 #: build/C/man2/fsync.2:37
6616 #, no-wrap
6617 msgid "2008-11-07"
6618 msgstr ""
6619
6620 #. type: Plain text
6621 #: build/C/man2/fsync.2:40
6622 msgid "fsync, fdatasync - synchronize a file's in-core state with storage device"
6623 msgstr ""
6624
6625 #. type: Plain text
6626 #: build/C/man2/fsync.2:44
6627 msgid "B<int fsync(int >I<fd>B<);>"
6628 msgstr ""
6629
6630 #. type: Plain text
6631 #: build/C/man2/fsync.2:46
6632 msgid "B<int fdatasync(int >I<fd>B<);>"
6633 msgstr ""
6634
6635 #. type: Plain text
6636 #: build/C/man2/fsync.2:54
6637 msgid "B<fsync>(): _BSD_SOURCE || _XOPEN_SOURCE"
6638 msgstr ""
6639
6640 #.  _POSIX_C_SOURCE\ >=\ 200112L only since glibc 2.8
6641 #. type: Plain text
6642 #: build/C/man2/fsync.2:57
6643 #, no-wrap
6644 msgid "         || /* since glibc 2.8: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L\n"
6645 msgstr ""
6646
6647 #. type: Plain text
6648 #: build/C/man2/fsync.2:60
6649 msgid ""
6650 "B<fdatasync>(): _POSIX_C_SOURCE\\ E<gt>=\\ 199309L || _XOPEN_SOURCE\\ "
6651 "E<gt>=\\ 500"
6652 msgstr ""
6653
6654 #. type: Plain text
6655 #: build/C/man2/fsync.2:71
6656 msgid ""
6657 "B<fsync>()  transfers (\"flushes\") all modified in-core data of (i.e., "
6658 "modified buffer cache pages for) the file referred to by the file descriptor "
6659 "I<fd> to the disk device (or other permanent storage device)  where that "
6660 "file resides.  The call blocks until the device reports that the transfer "
6661 "has completed.  It also flushes metadata information associated with the "
6662 "file (see B<stat>(2))."
6663 msgstr ""
6664
6665 #. type: Plain text
6666 #: build/C/man2/fsync.2:79
6667 msgid ""
6668 "Calling B<fsync>()  does not necessarily ensure that the entry in the "
6669 "directory containing the file has also reached disk.  For that an explicit "
6670 "B<fsync>()  on a file descriptor for the directory is also needed."
6671 msgstr ""
6672
6673 #. type: Plain text
6674 #: build/C/man2/fsync.2:100
6675 msgid ""
6676 "B<fdatasync>()  is similar to B<fsync>(), but does not flush modified "
6677 "metadata unless that metadata is needed in order to allow a subsequent data "
6678 "retrieval to be correctly handled.  For example, changes to I<st_atime> or "
6679 "I<st_mtime> (respectively, time of last access and time of last "
6680 "modification; see B<stat>(2))  do not require flushing because they are not "
6681 "necessary for a subsequent data read to be handled correctly.  On the other "
6682 "hand, a change to the file size (I<st_size>, as made by say "
6683 "B<ftruncate>(2)), would require a metadata flush."
6684 msgstr ""
6685
6686 #. type: Plain text
6687 #: build/C/man2/fsync.2:105
6688 msgid ""
6689 "The aim of B<fdatasync>()  is to reduce disk activity for applications that "
6690 "do not require all metadata to be synchronized with the disk."
6691 msgstr ""
6692
6693 #. type: Plain text
6694 #: build/C/man2/fsync.2:110
6695 msgid ""
6696 "On success, these system calls return zero.  On error, -1 is returned, and "
6697 "I<errno> is set appropriately."
6698 msgstr ""
6699
6700 #. type: Plain text
6701 #: build/C/man2/fsync.2:115
6702 msgid "I<fd> is not a valid file descriptor open for writing."
6703 msgstr ""
6704
6705 #. type: Plain text
6706 #: build/C/man2/fsync.2:118
6707 msgid "An error occurred during synchronization."
6708 msgstr ""
6709
6710 #. type: TP
6711 #: build/C/man2/fsync.2:118
6712 #, no-wrap
6713 msgid "B<EROFS>, B<EINVAL>"
6714 msgstr ""
6715
6716 #. type: Plain text
6717 #: build/C/man2/fsync.2:122
6718 msgid "I<fd> is bound to a special file which does not support synchronization."
6719 msgstr ""
6720
6721 #. type: Plain text
6722 #: build/C/man2/fsync.2:124
6723 msgid "4.3BSD, POSIX.1-2001."
6724 msgstr ""
6725
6726 #. type: SH
6727 #: build/C/man2/fsync.2:124
6728 #, no-wrap
6729 msgid "AVAILABILITY"
6730 msgstr ""
6731
6732 #.  POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
6733 #.  -1: unavailable, 0: ask using sysconf().
6734 #.  glibc defines them to 1.
6735 #. type: Plain text
6736 #: build/C/man2/fsync.2:137
6737 msgid ""
6738 "On POSIX systems on which B<fdatasync>()  is available, "
6739 "B<_POSIX_SYNCHRONIZED_IO> is defined in I<E<lt>unistd.hE<gt>> to a value "
6740 "greater than 0.  (See also B<sysconf>(3).)"
6741 msgstr ""
6742
6743 #. type: Plain text
6744 #: build/C/man2/fsync.2:152
6745 msgid ""
6746 "Applications that access databases or log files often write a tiny data "
6747 "fragment (e.g., one line in a log file) and then call B<fsync>()  "
6748 "immediately in order to ensure that the written data is physically stored on "
6749 "the harddisk.  Unfortunately, B<fsync>()  will always initiate two write "
6750 "operations: one for the newly written data and another one in order to "
6751 "update the modification time stored in the inode.  If the modification time "
6752 "is not a part of the transaction concept B<fdatasync>()  can be used to "
6753 "avoid unnecessary inode disk write operations."
6754 msgstr ""
6755
6756 #.  See
6757 #.  .BR hdparm (8)
6758 #.  for how to disable that cache for IDE disks.
6759 #. type: Plain text
6760 #: build/C/man2/fsync.2:162
6761 msgid ""
6762 "If the underlying hard disk has write caching enabled, then the data may not "
6763 "really be on permanent storage when B<fsync>()  / B<fdatasync>()  return."
6764 msgstr ""
6765
6766 #. type: Plain text
6767 #: build/C/man2/fsync.2:167
6768 msgid ""
6769 "When an ext2 file system is mounted with the I<sync> option, directory "
6770 "entries are also implicitly synced by B<fsync>()."
6771 msgstr ""
6772
6773 #. type: Plain text
6774 #: build/C/man2/fsync.2:175
6775 msgid ""
6776 "On kernels before 2.4, B<fsync>()  on big files can be inefficient.  An "
6777 "alternative might be to use the B<O_SYNC> flag to B<open>(2)."
6778 msgstr ""
6779
6780 #. type: Plain text
6781 #: build/C/man2/fsync.2:181
6782 msgid ""
6783 "In Linux 2.2 and earlier, B<fdatasync>()  is equivalent to B<fsync>(), and "
6784 "so has no performance advantage."
6785 msgstr ""
6786
6787 #. type: Plain text
6788 #: build/C/man2/fsync.2:190
6789 msgid ""
6790 "B<bdflush>(2), B<open>(2), B<sync>(2), B<sync_file_range>(2), B<hdparm>(8), "
6791 "B<mount>(8), B<sync>(8), B<update>(8)"
6792 msgstr ""
6793
6794 #. type: TH
6795 #: build/C/man2/get_thread_area.2:6
6796 #, no-wrap
6797 msgid "GET_THREAD_AREA"
6798 msgstr ""
6799
6800 #. type: Plain text
6801 #: build/C/man2/get_thread_area.2:9
6802 msgid "get_thread_area - Get a Thread Local Storage (TLS) area"
6803 msgstr ""
6804
6805 #. type: Plain text
6806 #: build/C/man2/get_thread_area.2:13 build/C/man2/set_thread_area.2:14
6807 msgid "B<#include E<lt>asm/ldt.hE<gt>>"
6808 msgstr ""
6809
6810 #. type: Plain text
6811 #: build/C/man2/get_thread_area.2:15
6812 msgid "B<int get_thread_area(struct user_desc *>I<u_info>B<);>"
6813 msgstr ""
6814
6815 #. type: Plain text
6816 #: build/C/man2/get_thread_area.2:24
6817 msgid ""
6818 "B<get_thread_area>()  returns an entry in the current thread's Thread Local "
6819 "Storage (TLS) array.  The index of the entry corresponds to the value of "
6820 "I<u_info-E<gt>entry_number>, passed in by the user.  If the value is in "
6821 "bounds, B<get_thread_area>()  copies the corresponding TLS entry into the "
6822 "area pointed to by I<u_info>."
6823 msgstr ""
6824
6825 #. type: Plain text
6826 #: build/C/man2/get_thread_area.2:30
6827 msgid ""
6828 "B<get_thread_area>()  returns 0 on success.  Otherwise, it returns -1 and "
6829 "sets I<errno> appropriately."
6830 msgstr ""
6831
6832 #. type: Plain text
6833 #: build/C/man2/get_thread_area.2:34 build/C/man2/set_thread_area.2:52
6834 msgid "I<u_info> is an invalid pointer."
6835 msgstr ""
6836
6837 #. type: Plain text
6838 #: build/C/man2/get_thread_area.2:37 build/C/man2/set_thread_area.2:49
6839 msgid "I<u_info-E<gt>entry_number> is out of bounds."
6840 msgstr ""
6841
6842 #. type: Plain text
6843 #: build/C/man2/get_thread_area.2:41
6844 msgid "A version of B<get_thread_area>()  first appeared in Linux 2.5.32."
6845 msgstr ""
6846
6847 #. type: Plain text
6848 #: build/C/man2/get_thread_area.2:45
6849 msgid ""
6850 "B<get_thread_area>()  is Linux-specific and should not be used in programs "
6851 "that are intended to be portable."
6852 msgstr ""
6853
6854 #. type: Plain text
6855 #: build/C/man2/get_thread_area.2:49 build/C/man2/gettid.2:64 build/C/man2/set_thread_area.2:67 build/C/man2/sysctl.2:112
6856 msgid ""
6857 "Glibc does not provide a wrapper for this system call; call it using "
6858 "B<syscall>(2)."
6859 msgstr ""
6860
6861 #. type: Plain text
6862 #: build/C/man2/get_thread_area.2:52
6863 msgid "B<modify_ldt>(2), B<set_thread_area>(2)"
6864 msgstr ""
6865
6866 #. type: TH
6867 #: build/C/man3/getcwd.3:30
6868 #, no-wrap
6869 msgid "GETCWD"
6870 msgstr ""
6871
6872 #. type: Plain text
6873 #: build/C/man3/getcwd.3:33
6874 msgid "getcwd, getwd, get_current_dir_name - Get current working directory"
6875 msgstr ""
6876
6877 #. type: Plain text
6878 #: build/C/man3/getcwd.3:38
6879 #, no-wrap
6880 msgid "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
6881 msgstr ""
6882
6883 #. type: Plain text
6884 #: build/C/man3/getcwd.3:40
6885 #, no-wrap
6886 msgid "B<char *getwd(char *>I<buf>B<);>\n"
6887 msgstr ""
6888
6889 #. type: Plain text
6890 #: build/C/man3/getcwd.3:42
6891 #, no-wrap
6892 msgid "B<char *get_current_dir_name(void);>\n"
6893 msgstr ""
6894
6895 #. type: Plain text
6896 #: build/C/man3/getcwd.3:50
6897 msgid "B<get_current_dir_name>():"
6898 msgstr ""
6899
6900 #. type: Plain text
6901 #: build/C/man3/getcwd.3:55
6902 msgid "B<getwd>():"
6903 msgstr ""
6904
6905 #. type: Plain text
6906 #: build/C/man3/getcwd.3:65 build/C/man3/ualarm.3:49 build/C/man3/usleep.3:57 build/C/man2/vfork.2:52
6907 #, no-wrap
6908 msgid ""
6909 "_BSD_SOURCE ||\n"
6910 "    (_XOPEN_SOURCE\\ E<gt>=\\ 500 ||\n"
6911 "        _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED) &&\n"
6912 "    !(_POSIX_C_SOURCE\\ E<gt>=\\ 200809L || _XOPEN_SOURCE\\ E<gt>=\\ 700)\n"
6913 msgstr ""
6914
6915 #. type: Plain text
6916 #: build/C/man3/getcwd.3:70 build/C/man2/getdtablesize.2:54 build/C/man2/getpagesize.2:50 build/C/man3/ualarm.3:54 build/C/man3/usleep.3:62 build/C/man2/vfork.2:57
6917 msgid ""
6918 "Before glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
6919 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
6920 msgstr ""
6921
6922 #. type: Plain text
6923 #: build/C/man3/getcwd.3:80
6924 msgid ""
6925 "These functions return a null-terminated string containing an absolute "
6926 "pathname that is the current working directory of the calling process.  The "
6927 "pathname is returned as the function result and via the argument I<buf>, if "
6928 "present."
6929 msgstr ""
6930
6931 #. type: Plain text
6932 #: build/C/man3/getcwd.3:88
6933 msgid ""
6934 "The B<getcwd>()  function copies an absolute pathname of the current working "
6935 "directory to the array pointed to by I<buf>, which is of length I<size>."
6936 msgstr ""
6937
6938 #. type: Plain text
6939 #: build/C/man3/getcwd.3:98
6940 msgid ""
6941 "If the length of the absolute pathname of the current working directory, "
6942 "including the terminating null byte, exceeds I<size> bytes, NULL is "
6943 "returned, and I<errno> is set to B<ERANGE>; an application should check for "
6944 "this error, and allocate a larger buffer if necessary."
6945 msgstr ""
6946
6947 #. type: Plain text
6948 #: build/C/man3/getcwd.3:116
6949 msgid ""
6950 "As an extension to the POSIX.1-2001 standard, Linux (libc4, libc5, glibc)  "
6951 "B<getcwd>()  allocates the buffer dynamically using B<malloc>(3)  if I<buf> "
6952 "is NULL.  In this case, the allocated buffer has the length I<size> unless "
6953 "I<size> is zero, when I<buf> is allocated as big as necessary.  The caller "
6954 "should B<free>(3)  the returned buffer."
6955 msgstr ""
6956
6957 #. type: Plain text
6958 #: build/C/man3/getcwd.3:129
6959 msgid ""
6960 "B<get_current_dir_name>()  will B<malloc>(3)  an array big enough to hold "
6961 "the absolute pathname of the current working directory.  If the environment "
6962 "variable B<PWD> is set, and its value is correct, then that value will be "
6963 "returned.  The caller should B<free>(3)  the returned buffer."
6964 msgstr ""
6965
6966 #. type: Plain text
6967 #: build/C/man3/getcwd.3:154
6968 msgid ""
6969 "B<getwd>()  does not B<malloc>(3)  any memory.  The I<buf> argument should "
6970 "be a pointer to an array at least B<PATH_MAX> bytes long.  If the length of "
6971 "the absolute pathname of the current working directory, including the "
6972 "terminating null byte, exceeds B<PATH_MAX> bytes, NULL is returned, and "
6973 "I<errno> is set to B<ENAMETOOLONG>.  (Note that on some systems, B<PATH_MAX> "
6974 "may not be a compile-time constant; furthermore, its value may depend on the "
6975 "file system, see B<pathconf>(3).)  For portability and security reasons, use "
6976 "of B<getwd>()  is deprecated."
6977 msgstr ""
6978
6979 #. type: Plain text
6980 #: build/C/man3/getcwd.3:163
6981 msgid ""
6982 "On success, these functions return a pointer to a string containing the "
6983 "pathname of the current working directory.  In the case B<getcwd>()  and "
6984 "B<getwd>()  this is the same value as I<buf>."
6985 msgstr ""
6986
6987 #. type: Plain text
6988 #: build/C/man3/getcwd.3:170
6989 msgid ""
6990 "On failure, these functions return NULL, and I<errno> is set to indicate the "
6991 "error.  The contents of the array pointed to by I<buf> are undefined on "
6992 "error."
6993 msgstr ""
6994
6995 #. type: Plain text
6996 #: build/C/man3/getcwd.3:174
6997 msgid "Permission to read or search a component of the filename was denied."
6998 msgstr ""
6999
7000 #. type: Plain text
7001 #: build/C/man3/getcwd.3:178
7002 msgid "I<buf> points to a bad address."
7003 msgstr ""
7004
7005 #. type: Plain text
7006 #: build/C/man3/getcwd.3:185
7007 msgid "The I<size> argument is zero and I<buf> is not a NULL pointer."
7008 msgstr ""
7009
7010 #. type: TP
7011 #: build/C/man3/getcwd.3:185
7012 #, no-wrap
7013 msgid "EINVAL"
7014 msgstr ""
7015
7016 #. type: Plain text
7017 #: build/C/man3/getcwd.3:190
7018 msgid "B<getwd>(): I<buf> is NULL."
7019 msgstr ""
7020
7021 #. type: TP
7022 #: build/C/man3/getcwd.3:190
7023 #, no-wrap
7024 msgid "ENAMETOOLONG"
7025 msgstr ""
7026
7027 #. type: Plain text
7028 #: build/C/man3/getcwd.3:196
7029 msgid ""
7030 "B<getwd>(): The size of the null-terminated absolute pathname string exceeds "
7031 "B<PATH_MAX> bytes."
7032 msgstr ""
7033
7034 #. type: Plain text
7035 #: build/C/man3/getcwd.3:199
7036 msgid "The current working directory has been unlinked."
7037 msgstr ""
7038
7039 #. type: TP
7040 #: build/C/man3/getcwd.3:199 build/C/man3/getlogin.3:112
7041 #, no-wrap
7042 msgid "B<ERANGE>"
7043 msgstr ""
7044
7045 #. type: Plain text
7046 #: build/C/man3/getcwd.3:206
7047 msgid ""
7048 "The I<size> argument is less than the length of the absolute pathname of the "
7049 "working directory, including the terminating null byte.  You need to "
7050 "allocate a bigger array and try again."
7051 msgstr ""
7052
7053 #. type: Plain text
7054 #: build/C/man3/getcwd.3:214
7055 msgid ""
7056 "B<getcwd>()  conforms to POSIX.1-2001.  Note however that POSIX.1-2001 "
7057 "leaves the behavior of B<getcwd>()  unspecified if I<buf> is NULL."
7058 msgstr ""
7059
7060 #. type: Plain text
7061 #: build/C/man3/getcwd.3:225
7062 msgid ""
7063 "B<getwd>()  is present in POSIX.1-2001, but marked LEGACY.  POSIX.1-2008 "
7064 "removes the specification of B<getwd>().  Use B<getcwd>()  instead.  "
7065 "POSIX.1-2001 does not define any errors for B<getwd>()."
7066 msgstr ""
7067
7068 #. type: Plain text
7069 #: build/C/man3/getcwd.3:228
7070 msgid "B<get_current_dir_name>()  is a GNU extension."
7071 msgstr ""
7072
7073 #. type: Plain text
7074 #: build/C/man3/getcwd.3:239
7075 msgid ""
7076 "Under Linux, the function B<getcwd>()  is a system call (since 2.1.92).  On "
7077 "older systems it would query I</proc/self/cwd>.  If both system call and "
7078 "proc file system are missing, a generic implementation is called.  Only in "
7079 "that case can these calls fail under Linux with B<EACCES>."
7080 msgstr ""
7081
7082 #. type: Plain text
7083 #: build/C/man3/getcwd.3:247
7084 msgid ""
7085 "These functions are often used to save the location of the current working "
7086 "directory for the purpose of returning to it later.  Opening the current "
7087 "directory (\".\") and calling B<fchdir>(2)  to return is usually a faster "
7088 "and more reliable alternative when sufficiently many file descriptors are "
7089 "available, especially on platforms other than Linux."
7090 msgstr ""
7091
7092 #. type: Plain text
7093 #: build/C/man3/getcwd.3:254
7094 msgid ""
7095 "B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
7096 "B<malloc>(3)"
7097 msgstr ""
7098
7099 #. type: TH
7100 #: build/C/man2/getdomainname.2:29
7101 #, no-wrap
7102 msgid "GETDOMAINNAME"
7103 msgstr ""
7104
7105 #. type: TH
7106 #: build/C/man2/getdomainname.2:29
7107 #, no-wrap
7108 msgid "2009-09-27"
7109 msgstr ""
7110
7111 #. type: Plain text
7112 #: build/C/man2/getdomainname.2:32
7113 msgid "getdomainname, setdomainname - get/set domain name"
7114 msgstr ""
7115
7116 #. type: Plain text
7117 #: build/C/man2/getdomainname.2:36
7118 msgid "B<int getdomainname(char *>I<name>B<, size_t >I<len>B<);>"
7119 msgstr ""
7120
7121 #. type: Plain text
7122 #: build/C/man2/getdomainname.2:38
7123 msgid "B<int setdomainname(const char *>I<name>B<, size_t >I<len>B<);>"
7124 msgstr ""
7125
7126 #. type: Plain text
7127 #: build/C/man2/getdomainname.2:47
7128 msgid "B<getdomainname>(), B<setdomainname>():"
7129 msgstr ""
7130
7131 #. type: Plain text
7132 #: build/C/man2/getdomainname.2:49 build/C/man3/gethostid.3:54 build/C/man2/gethostname.2:60 build/C/man3/getusershell.3:53
7133 msgid "_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\\ E<lt>\\ 500)"
7134 msgstr ""
7135
7136 #. type: Plain text
7137 #: build/C/man2/getdomainname.2:54
7138 msgid ""
7139 "These functions are used to access or to change the domain name of the host "
7140 "system."
7141 msgstr ""
7142
7143 #. type: Plain text
7144 #: build/C/man2/getdomainname.2:65
7145 msgid ""
7146 "B<setdomainname>()  sets the domain name to the value given in the character "
7147 "array I<name>.  The I<len> argument specifies the number of bytes in "
7148 "I<name>.  (Thus, I<name> does not require a terminating null byte.)"
7149 msgstr ""
7150
7151 #. type: Plain text
7152 #: build/C/man2/getdomainname.2:75
7153 msgid ""
7154 "B<getdomainname>()  returns the null-terminated domain name in the character "
7155 "array I<name>, which has a length of I<len> bytes.  If the null-terminated "
7156 "domain name requires more than I<len> bytes, B<getdomainname>()  returns the "
7157 "first I<len> bytes (glibc) or gives an error (libc)."
7158 msgstr ""
7159
7160 #. type: Plain text
7161 #: build/C/man2/getdomainname.2:83
7162 msgid "B<setdomainname>()  can fail with the following errors:"
7163 msgstr ""
7164
7165 #. type: Plain text
7166 #: build/C/man2/getdomainname.2:87
7167 msgid "I<name> pointed outside of user address space."
7168 msgstr ""
7169
7170 #. type: Plain text
7171 #: build/C/man2/getdomainname.2:91
7172 msgid "I<len> was negative or too large."
7173 msgstr ""
7174
7175 #. type: Plain text
7176 #: build/C/man2/getdomainname.2:96
7177 msgid ""
7178 "the caller is unprivileged (Linux: does not have the B<CAP_SYS_ADMIN> "
7179 "capability)."
7180 msgstr ""
7181
7182 #. type: Plain text
7183 #: build/C/man2/getdomainname.2:99
7184 msgid "B<getdomainname>()  can fail with the following errors:"
7185 msgstr ""
7186
7187 #. type: Plain text
7188 #: build/C/man2/getdomainname.2:110
7189 msgid ""
7190 "For B<getdomainname>()  under libc: I<name> is NULL or I<name> is longer "
7191 "than I<len> bytes."
7192 msgstr ""
7193
7194 #.  But they appear on most systems...
7195 #. type: Plain text
7196 #: build/C/man2/getdomainname.2:113
7197 msgid "POSIX does not specify these calls."
7198 msgstr ""
7199
7200 #. type: Plain text
7201 #: build/C/man2/getdomainname.2:117
7202 msgid ""
7203 "Since Linux 1.0, the limit on the length of a domain name, including the "
7204 "terminating null byte, is 64 bytes.  In older kernels, it was 8 bytes."
7205 msgstr ""
7206
7207 #. type: Plain text
7208 #: build/C/man2/getdomainname.2:127
7209 msgid ""
7210 "On most Linux architectures (including x86), there is no B<getdomainname>()  "
7211 "system call; instead, glibc implements B<getdomainname>()  as a library "
7212 "function that returns a copy of the I<domainname> field returned from a call "
7213 "to B<uname>(2)."
7214 msgstr ""
7215
7216 #. type: Plain text
7217 #: build/C/man2/getdomainname.2:131
7218 msgid "B<gethostname>(2), B<sethostname>(2), B<uname>(2)"
7219 msgstr ""
7220
7221 #. type: TH
7222 #: build/C/man2/getdtablesize.2:27
7223 #, no-wrap
7224 msgid "GETDTABLESIZE"
7225 msgstr ""
7226
7227 #. type: Plain text
7228 #: build/C/man2/getdtablesize.2:30
7229 msgid "getdtablesize - get descriptor table size"
7230 msgstr ""
7231
7232 #. type: Plain text
7233 #: build/C/man2/getdtablesize.2:34
7234 msgid "B<int getdtablesize(void);>"
7235 msgstr ""
7236
7237 #. type: Plain text
7238 #: build/C/man2/getdtablesize.2:41
7239 msgid "B<getdtablesize>():"
7240 msgstr ""
7241
7242 #. type: Plain text
7243 #: build/C/man2/getdtablesize.2:49 build/C/man2/getpagesize.2:45
7244 #, no-wrap
7245 msgid ""
7246 "_BSD_SOURCE ||\n"
7247 "    !(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600)\n"
7248 msgstr ""
7249
7250 #. type: Plain text
7251 #: build/C/man2/getdtablesize.2:61
7252 msgid ""
7253 "B<getdtablesize>()  returns the maximum number of files a process can have "
7254 "open, one more than the largest possible value for a file descriptor."
7255 msgstr ""
7256
7257 #. type: Plain text
7258 #: build/C/man2/getdtablesize.2:63
7259 msgid "The current limit on the number of open files per process."
7260 msgstr ""
7261
7262 #. type: Plain text
7263 #: build/C/man2/getdtablesize.2:69
7264 msgid ""
7265 "On Linux, B<getdtablesize>()  can return any of the errors described for "
7266 "B<getrlimit>(2); see NOTES below."
7267 msgstr ""
7268
7269 #. type: Plain text
7270 #: build/C/man2/getdtablesize.2:77
7271 msgid ""
7272 "SVr4, 4.4BSD (the B<getdtablesize>()  function first appeared in 4.2BSD).  "
7273 "It is not specified in POSIX.1-2001; portable applications should employ "
7274 "I<sysconf(_SC_OPEN_MAX)> instead of this call."
7275 msgstr ""
7276
7277 #. type: Plain text
7278 #: build/C/man2/getdtablesize.2:90
7279 msgid ""
7280 "B<getdtablesize>()  is implemented as a libc library function.  The glibc "
7281 "version calls B<getrlimit>(2)  and returns the current B<RLIMIT_NOFILE> "
7282 "limit, or B<OPEN_MAX> when that fails.  The libc4 and libc5 versions return "
7283 "B<OPEN_MAX> (set to 256 since Linux 0.98.4)."
7284 msgstr ""
7285
7286 #. type: Plain text
7287 #: build/C/man2/getdtablesize.2:95
7288 msgid "B<close>(2), B<dup>(2), B<getrlimit>(2), B<open>(2)"
7289 msgstr ""
7290
7291 #. type: TH
7292 #: build/C/man3/gethostid.3:29
7293 #, no-wrap
7294 msgid "GETHOSTID"
7295 msgstr ""
7296
7297 #. type: Plain text
7298 #: build/C/man3/gethostid.3:32
7299 msgid "gethostid, sethostid - get or set the unique identifier of the current host"
7300 msgstr ""
7301
7302 #. type: Plain text
7303 #: build/C/man3/gethostid.3:36
7304 msgid "B<long gethostid(void);>"
7305 msgstr ""
7306
7307 #. type: Plain text
7308 #: build/C/man3/gethostid.3:38
7309 msgid "B<int sethostid(long >I<hostid>B<);>"
7310 msgstr ""
7311
7312 #. type: Plain text
7313 #: build/C/man3/gethostid.3:47
7314 msgid "B<gethostid>():"
7315 msgstr ""
7316
7317 #. type: Plain text
7318 #: build/C/man3/gethostid.3:52
7319 msgid "B<sethostid>():"
7320 msgstr ""
7321
7322 #. type: Plain text
7323 #: build/C/man3/gethostid.3:67
7324 msgid ""
7325 "B<gethostid>()  and B<sethostid>()  respectively get or set a unique 32-bit "
7326 "identifier for the current machine.  The 32-bit identifier is intended to be "
7327 "unique among all UNIX systems in existence.  This normally resembles the "
7328 "Internet address for the local machine, as returned by B<gethostbyname>(3), "
7329 "and thus usually never needs to be set."
7330 msgstr ""
7331
7332 #. type: Plain text
7333 #: build/C/man3/gethostid.3:71
7334 msgid "The B<sethostid>()  call is restricted to the superuser."
7335 msgstr ""
7336
7337 #. type: Plain text
7338 #: build/C/man3/gethostid.3:75
7339 msgid ""
7340 "B<gethostid>()  returns the 32-bit identifier for the current host as set by "
7341 "B<sethostid>()."
7342 msgstr ""
7343
7344 #. type: Plain text
7345 #: build/C/man3/gethostid.3:81
7346 msgid ""
7347 "On success, B<sethostid>()  returns 0; on error, -1 is returned, and "
7348 "I<errno> is set to indicate the error."
7349 msgstr ""
7350
7351 #. type: Plain text
7352 #: build/C/man3/gethostid.3:84
7353 msgid "B<sethostid>()  can fail with the following errors:"
7354 msgstr ""
7355
7356 #. type: Plain text
7357 #: build/C/man3/gethostid.3:88
7358 msgid ""
7359 "The caller did not have permission to write to the file used to store the "
7360 "host ID."
7361 msgstr ""
7362
7363 #. type: Plain text
7364 #: build/C/man3/gethostid.3:92
7365 msgid ""
7366 "The calling process's effective user or group ID is not the same as its "
7367 "corresponding real ID."
7368 msgstr ""
7369
7370 #. type: Plain text
7371 #: build/C/man3/gethostid.3:102
7372 msgid ""
7373 "4.2BSD; these functions were dropped in 4.4BSD.  SVr4 includes "
7374 "B<gethostid>()  but not B<sethostid>().  POSIX.1-2001 specifies "
7375 "B<gethostid>()  but not B<sethostid>()."
7376 msgstr ""
7377
7378 #.  libc5 used /etc/hostid; libc4 didn't have these functions
7379 #. type: Plain text
7380 #: build/C/man3/gethostid.3:111
7381 msgid ""
7382 "In the glibc implementation, the I<hostid> is stored in the file "
7383 "I</etc/hostid>.  (In glibc versions before 2.2, the file I</var/adm/hostid> "
7384 "was used.)"
7385 msgstr ""
7386
7387 #. type: Plain text
7388 #: build/C/man3/gethostid.3:122
7389 msgid ""
7390 "In the glibc implementation, if B<gethostid>()  cannot open the file "
7391 "containing the host ID, then it obtains the hostname using "
7392 "B<gethostname>(2), passes that hostname to B<gethostbyname_r>(3)  in order "
7393 "to obtain the host's IPv4 address, and returns a value obtained by "
7394 "bit-twiddling the IPv4 address.  (This value may not be unique.)"
7395 msgstr ""
7396
7397 #. type: Plain text
7398 #: build/C/man3/gethostid.3:124
7399 msgid "It is impossible to ensure that the identifier is globally unique."
7400 msgstr ""
7401
7402 #. type: Plain text
7403 #: build/C/man3/gethostid.3:127
7404 msgid "B<hostid>(1), B<gethostbyname>(3)"
7405 msgstr ""
7406
7407 #. type: TH
7408 #: build/C/man2/gethostname.2:32
7409 #, no-wrap
7410 msgid "GETHOSTNAME"
7411 msgstr ""
7412
7413 #. type: Plain text
7414 #: build/C/man2/gethostname.2:35
7415 msgid "gethostname, sethostname - get/set hostname"
7416 msgstr ""
7417
7418 #. type: Plain text
7419 #: build/C/man2/gethostname.2:39
7420 msgid "B<int gethostname(char *>I<name>B<, size_t >I<len>B<);>"
7421 msgstr ""
7422
7423 #. type: Plain text
7424 #: build/C/man2/gethostname.2:41
7425 msgid "B<int sethostname(const char *>I<name>B<, size_t >I<len>B<);>"
7426 msgstr ""
7427
7428 #. type: Plain text
7429 #: build/C/man2/gethostname.2:50
7430 msgid "B<gethostname>():"
7431 msgstr ""
7432
7433 #. type: Plain text
7434 #: build/C/man2/gethostname.2:53
7435 msgid "Since glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500"
7436 msgstr ""
7437
7438 #. type: Plain text
7439 #: build/C/man2/gethostname.2:55
7440 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L"
7441 msgstr ""
7442
7443 #. type: Plain text
7444 #: build/C/man2/gethostname.2:58
7445 msgid "B<sethostname>():"
7446 msgstr ""
7447
7448 #. type: Plain text
7449 #: build/C/man2/gethostname.2:66
7450 msgid ""
7451 "These system calls are used to access or to change the hostname of the "
7452 "current processor."
7453 msgstr ""
7454
7455 #. type: Plain text
7456 #: build/C/man2/gethostname.2:77
7457 msgid ""
7458 "B<sethostname>()  sets the hostname to the value given in the character "
7459 "array I<name>.  The I<len> argument specifies the number of bytes in "
7460 "I<name>.  (Thus, I<name> does not require a terminating null byte.)"
7461 msgstr ""
7462
7463 #. type: Plain text
7464 #: build/C/man2/gethostname.2:89
7465 msgid ""
7466 "B<gethostname>()  returns the null-terminated hostname in the character "
7467 "array I<name>, which has a length of I<len> bytes.  If the null-terminated "
7468 "hostname is too large to fit, then the name is truncated, and no error is "
7469 "returned (but see NOTES below).  POSIX.1-2001 says that if such truncation "
7470 "occurs, then it is unspecified whether the returned buffer includes a "
7471 "terminating null byte."
7472 msgstr ""
7473
7474 #. type: Plain text
7475 #: build/C/man2/gethostname.2:99
7476 msgid "I<name> is an invalid address."
7477 msgstr ""
7478
7479 #.  Can't occur for gethostbyname() wrapper, since 'len' has an
7480 #.  unsigned type; can occur for the underlying system call.
7481 #. type: Plain text
7482 #: build/C/man2/gethostname.2:109
7483 msgid ""
7484 "I<len> is negative or, for B<sethostname>(), I<len> is larger than the "
7485 "maximum allowed size."
7486 msgstr ""
7487
7488 #. type: Plain text
7489 #: build/C/man2/gethostname.2:117
7490 msgid ""
7491 "(glibc B<gethostname>())  I<len> is smaller than the actual size.  (Before "
7492 "version 2.1, glibc uses B<EINVAL> for this case.)"
7493 msgstr ""
7494
7495 #. type: Plain text
7496 #: build/C/man2/gethostname.2:124
7497 msgid ""
7498 "For B<sethostname>(), the caller did not have the B<CAP_SYS_ADMIN> "
7499 "capability."
7500 msgstr ""
7501
7502 #. type: Plain text
7503 #: build/C/man2/gethostname.2:130
7504 msgid ""
7505 "SVr4, 4.4BSD (these interfaces first appeared in 4.2BSD).  POSIX.1-2001 "
7506 "specifies B<gethostname>()  but not B<sethostname>()."
7507 msgstr ""
7508
7509 #. type: Plain text
7510 #: build/C/man2/gethostname.2:140
7511 msgid ""
7512 "SUSv2 guarantees that \"Host names are limited to 255 bytes\".  POSIX.1-2001 "
7513 "guarantees that \"Host names (not including the terminating null byte) are "
7514 "limited to B<HOST_NAME_MAX> bytes\".  On Linux, B<HOST_NAME_MAX> is defined "
7515 "with the value 64, which has been the limit since Linux 1.0 (earlier kernels "
7516 "imposed a limit of 8 bytes)."
7517 msgstr ""
7518
7519 #. type: Plain text
7520 #: build/C/man2/gethostname.2:163
7521 msgid ""
7522 "The GNU C library does not employ the B<gethostname>()  system call; "
7523 "instead, it implements B<gethostname>()  as a library function that calls "
7524 "B<uname>(2)  and copies up to I<len> bytes from the returned I<nodename> "
7525 "field into I<name>.  Having performed the copy, the function then checks if "
7526 "the length of the I<nodename> was greater than or equal to I<len>, and if it "
7527 "is, then the function returns -1 with I<errno> set to B<ENAMETOOLONG>; in "
7528 "this case, a terminating null byte is not included in the returned I<name>."
7529 msgstr ""
7530
7531 #.  At least glibc 2.0 and 2.1, older versions not checked
7532 #. type: Plain text
7533 #: build/C/man2/gethostname.2:176
7534 msgid ""
7535 "Versions of glibc before 2.2 handle the case where the length of the "
7536 "I<nodename> was greater than or equal to I<len> differently: nothing is "
7537 "copied into I<name> and the function returns -1 with I<errno> set to "
7538 "B<ENAMETOOLONG>."
7539 msgstr ""
7540
7541 #. type: Plain text
7542 #: build/C/man2/gethostname.2:180
7543 msgid "B<getdomainname>(2), B<setdomainname>(2), B<uname>(2)"
7544 msgstr ""
7545
7546 #. type: TH
7547 #: build/C/man3/getlogin.3:28
7548 #, no-wrap
7549 msgid "GETLOGIN"
7550 msgstr ""
7551
7552 #. type: TH
7553 #: build/C/man3/getlogin.3:28
7554 #, no-wrap
7555 msgid "2008-06-29"
7556 msgstr ""
7557
7558 #. type: Plain text
7559 #: build/C/man3/getlogin.3:31
7560 msgid "getlogin, getlogin_r, cuserid - get username"
7561 msgstr ""
7562
7563 #. type: Plain text
7564 #: build/C/man3/getlogin.3:35
7565 msgid "B<char *getlogin(void);>"
7566 msgstr ""
7567
7568 #. type: Plain text
7569 #: build/C/man3/getlogin.3:37
7570 msgid "B<int getlogin_r(char *>I<buf>B<, size_t >I<bufsize>B<);>"
7571 msgstr ""
7572
7573 #. type: Plain text
7574 #: build/C/man3/getlogin.3:39
7575 msgid "B<#include E<lt>stdio.hE<gt>>"
7576 msgstr ""
7577
7578 #. type: Plain text
7579 #: build/C/man3/getlogin.3:41
7580 msgid "B<char *cuserid(char *>I<string>B<);>"
7581 msgstr ""
7582
7583 #. type: Plain text
7584 #: build/C/man3/getlogin.3:49
7585 msgid "B<getlogin_r>(): _REENTRANT || _POSIX_C_SOURCE\\ E<gt>=\\ 199506L"
7586 msgstr ""
7587
7588 #. type: Plain text
7589 #: build/C/man3/getlogin.3:52
7590 msgid "B<cuserid>(): _XOPEN_SOURCE"
7591 msgstr ""
7592
7593 #. type: Plain text
7594 #: build/C/man3/getlogin.3:61
7595 msgid ""
7596 "B<getlogin>()  returns a pointer to a string containing the name of the user "
7597 "logged in on the controlling terminal of the process, or a NULL pointer if "
7598 "this information cannot be determined.  The string is statically allocated "
7599 "and might be overwritten on subsequent calls to this function or to "
7600 "B<cuserid>()."
7601 msgstr ""
7602
7603 #. type: Plain text
7604 #: build/C/man3/getlogin.3:67
7605 msgid ""
7606 "B<getlogin_r>()  returns this same username in the array I<buf> of size "
7607 "I<bufsize>."
7608 msgstr ""
7609
7610 #. type: Plain text
7611 #: build/C/man3/getlogin.3:79
7612 msgid ""
7613 "B<cuserid>()  returns a pointer to a string containing a username associated "
7614 "with the effective user ID of the process.  If I<string> is not a NULL "
7615 "pointer, it should be an array that can hold at least B<L_cuserid> "
7616 "characters; the string is returned in this array.  Otherwise, a pointer to a "
7617 "string in a static area is returned.  This string is statically allocated "
7618 "and might be overwritten on subsequent calls to this function or to "
7619 "B<getlogin>()."
7620 msgstr ""
7621
7622 #. type: Plain text
7623 #: build/C/man3/getlogin.3:83
7624 msgid ""
7625 "The macro B<L_cuserid> is an integer constant that indicates how long an "
7626 "array you might need to store a username.  B<L_cuserid> is declared in "
7627 "I<E<lt>stdio.hE<gt>>."
7628 msgstr ""
7629
7630 #. type: Plain text
7631 #: build/C/man3/getlogin.3:90
7632 msgid ""
7633 "These functions let your program identify positively the user who is running "
7634 "(B<cuserid>())  or the user who logged in this session (B<getlogin>()).  "
7635 "(These can differ when set-user-ID programs are involved.)"
7636 msgstr ""
7637
7638 #. type: Plain text
7639 #: build/C/man3/getlogin.3:95
7640 msgid ""
7641 "For most purposes, it is more useful to use the environment variable "
7642 "B<LOGNAME> to find out who the user is.  This is more flexible precisely "
7643 "because the user can set B<LOGNAME> arbitrarily."
7644 msgstr ""
7645
7646 #. type: Plain text
7647 #: build/C/man3/getlogin.3:101
7648 msgid ""
7649 "B<getlogin>()  returns a pointer to the username when successful, and NULL "
7650 "on failure.  B<getlogin_r>()  returns 0 when successful, and nonzero on "
7651 "failure."
7652 msgstr ""
7653
7654 #. type: Plain text
7655 #: build/C/man3/getlogin.3:103
7656 msgid "POSIX specifies"
7657 msgstr ""
7658
7659 #. type: Plain text
7660 #: build/C/man3/getlogin.3:106
7661 msgid "The calling process already has the maximum allowed number of open files."
7662 msgstr ""
7663
7664 #. type: Plain text
7665 #: build/C/man3/getlogin.3:109
7666 msgid "The system already has the maximum allowed number of open files."
7667 msgstr ""
7668
7669 #. type: TP
7670 #: build/C/man3/getlogin.3:109
7671 #, no-wrap
7672 msgid "B<ENXIO>"
7673 msgstr ""
7674
7675 #. type: Plain text
7676 #: build/C/man3/getlogin.3:112
7677 msgid "The calling process has no controlling tty."
7678 msgstr ""
7679
7680 #. type: Plain text
7681 #: build/C/man3/getlogin.3:118
7682 msgid ""
7683 "(getlogin_r)  The length of the username, including the terminating null "
7684 "byte, is larger than I<bufsize>."
7685 msgstr ""
7686
7687 #. type: Plain text
7688 #: build/C/man3/getlogin.3:120
7689 msgid "Linux/glibc also has"
7690 msgstr ""
7691
7692 #. type: Plain text
7693 #: build/C/man3/getlogin.3:123
7694 msgid "There was no corresponding entry in the utmp-file."
7695 msgstr ""
7696
7697 #. type: Plain text
7698 #: build/C/man3/getlogin.3:126
7699 msgid "Insufficient memory to allocate passwd structure."
7700 msgstr ""
7701
7702 #. type: TP
7703 #: build/C/man3/getlogin.3:126 build/C/man2/ioctl.2:105 build/C/man2/ioctl.2:109 build/C/man3/tcgetpgrp.3:90
7704 #, no-wrap
7705 msgid "B<ENOTTY>"
7706 msgstr ""
7707
7708 #. type: Plain text
7709 #: build/C/man3/getlogin.3:130
7710 msgid "Standard input didn't refer to a terminal.  (See BUGS.)"
7711 msgstr ""
7712
7713 #. type: TP
7714 #: build/C/man3/getlogin.3:131
7715 #, no-wrap
7716 msgid "I</etc/passwd>"
7717 msgstr ""
7718
7719 #. type: Plain text
7720 #: build/C/man3/getlogin.3:134
7721 msgid "password database file"
7722 msgstr ""
7723
7724 #. type: TP
7725 #: build/C/man3/getlogin.3:134
7726 #, no-wrap
7727 msgid "I</var/run/utmp>"
7728 msgstr ""
7729
7730 #. type: Plain text
7731 #: build/C/man3/getlogin.3:138
7732 msgid "(traditionally I</etc/utmp>; some libc versions used I</var/adm/utmp>)"
7733 msgstr ""
7734
7735 #. type: Plain text
7736 #: build/C/man3/getlogin.3:143
7737 msgid "B<getlogin>()  and B<getlogin_r>()  specified in POSIX.1-2001."
7738 msgstr ""
7739
7740 #. type: Plain text
7741 #: build/C/man3/getlogin.3:154
7742 msgid ""
7743 "System V has a B<cuserid>()  function which uses the real user ID rather "
7744 "than the effective user ID.  The B<cuserid>()  function was included in the "
7745 "1988 version of POSIX, but removed from the 1990 version.  It was present in "
7746 "SUSv2, but removed in POSIX.1-2001."
7747 msgstr ""
7748
7749 #. type: Plain text
7750 #: build/C/man3/getlogin.3:161
7751 msgid ""
7752 "OpenBSD has B<getlogin>()  and B<setlogin>(), and a username associated with "
7753 "a session, even if it has no controlling tty."
7754 msgstr ""
7755
7756 #. type: Plain text
7757 #: build/C/man3/getlogin.3:173
7758 msgid ""
7759 "Unfortunately, it is often rather easy to fool B<getlogin>().  Sometimes it "
7760 "does not work at all, because some program messed up the utmp file.  Often, "
7761 "it gives only the first 8 characters of the login name.  The user currently "
7762 "logged in on the controlling tty of our program need not be the user who "
7763 "started it.  Avoid B<getlogin>()  for security-related purposes."
7764 msgstr ""
7765
7766 #. type: Plain text
7767 #: build/C/man3/getlogin.3:183
7768 msgid ""
7769 "Note that glibc does not follow the POSIX specification and uses I<stdin> "
7770 "instead of I</dev/tty>.  A bug.  (Other recent systems, like SunOS 5.8 and "
7771 "HP-UX 11.11 and FreeBSD 4.8 all return the login name also when I<stdin> is "
7772 "redirected.)"
7773 msgstr ""
7774
7775 #. type: Plain text
7776 #: build/C/man3/getlogin.3:193
7777 msgid ""
7778 "Nobody knows precisely what B<cuserid>()  does; avoid it in portable "
7779 "programs.  Or avoid it altogether: use I<getpwuid(geteuid())> instead, if "
7780 "that is what you meant.  B<Do not use> B<cuserid>()."
7781 msgstr ""
7782
7783 #. type: Plain text
7784 #: build/C/man3/getlogin.3:197
7785 msgid "B<geteuid>(2), B<getuid>(2), B<utmp>(5)"
7786 msgstr ""
7787
7788 #. type: TH
7789 #: build/C/man3/getopt.3:39
7790 #, no-wrap
7791 msgid "GETOPT"
7792 msgstr ""
7793
7794 #. type: Plain text
7795 #: build/C/man3/getopt.3:43
7796 msgid ""
7797 "getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt - "
7798 "Parse command-line options"
7799 msgstr ""
7800
7801 #. type: Plain text
7802 #: build/C/man3/getopt.3:49
7803 #, no-wrap
7804 msgid ""
7805 "B<int getopt(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7806 "B<           const char *>I<optstring>B<);>\n"
7807 msgstr ""
7808
7809 #. type: Plain text
7810 #: build/C/man3/getopt.3:52
7811 #, no-wrap
7812 msgid ""
7813 "B<extern char *>I<optarg>B<;>\n"
7814 "B<extern int >I<optind>B<, >I<opterr>B<, >I<optopt>B<;>\n"
7815 msgstr ""
7816
7817 #. type: Plain text
7818 #: build/C/man3/getopt.3:54
7819 #, no-wrap
7820 msgid "B<#include E<lt>getopt.hE<gt>>\n"
7821 msgstr ""
7822
7823 #. type: Plain text
7824 #: build/C/man3/getopt.3:58
7825 #, no-wrap
7826 msgid ""
7827 "B<int getopt_long(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7828 "B<           const char *>I<optstring>B<,>\n"
7829 "B<           const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n"
7830 msgstr ""
7831
7832 #. type: Plain text
7833 #: build/C/man3/getopt.3:62
7834 #, no-wrap
7835 msgid ""
7836 "B<int getopt_long_only(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7837 "B<           const char *>I<optstring>B<,>\n"
7838 "B<           const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n"
7839 msgstr ""
7840
7841 #. type: Plain text
7842 #: build/C/man3/getopt.3:72
7843 msgid "B<getopt>(): _POSIX_C_SOURCE\\ E<gt>=\\ 2 || _XOPEN_SOURCE"
7844 msgstr ""
7845
7846 #. type: Plain text
7847 #: build/C/man3/getopt.3:76
7848 msgid "B<getopt_long>(), B<getopt_long_only>(): _GNU_SOURCE"
7849 msgstr ""
7850
7851 #. type: Plain text
7852 #: build/C/man3/getopt.3:97
7853 msgid ""
7854 "The B<getopt>()  function parses the command-line arguments.  Its arguments "
7855 "I<argc> and I<argv> are the argument count and array as passed to the "
7856 "I<main>()  function on program invocation.  An element of I<argv> that "
7857 "starts with \\(aq-\\(aq (and is not exactly \"-\" or \"--\")  is an option "
7858 "element.  The characters of this element (aside from the initial "
7859 "\\(aq-\\(aq) are option characters.  If B<getopt>()  is called repeatedly, "
7860 "it returns successively each of the option characters from each of the "
7861 "option elements."
7862 msgstr ""
7863
7864 #. type: Plain text
7865 #: build/C/man3/getopt.3:106
7866 msgid ""
7867 "The variable I<optind> is the index of the next element to be processed in "
7868 "I<argv>.  The system initializes this value to 1.  The caller can reset it "
7869 "to 1 to restart scanning of the same I<argv>, or when scanning a new "
7870 "argument vector."
7871 msgstr ""
7872
7873 #. type: Plain text
7874 #: build/C/man3/getopt.3:116
7875 msgid ""
7876 "If B<getopt>()  finds another option character, it returns that character, "
7877 "updating the external variable I<optind> and a static variable I<nextchar> "
7878 "so that the next call to B<getopt>()  can resume the scan with the following "
7879 "option character or I<argv>-element."
7880 msgstr ""
7881
7882 #. type: Plain text
7883 #: build/C/man3/getopt.3:122
7884 msgid ""
7885 "If there are no more option characters, B<getopt>()  returns -1.  Then "
7886 "I<optind> is the index in I<argv> of the first I<argv>-element that is not "
7887 "an option."
7888 msgstr ""
7889
7890 #. type: Plain text
7891 #: build/C/man3/getopt.3:149
7892 msgid ""
7893 "I<optstring> is a string containing the legitimate option characters.  If "
7894 "such a character is followed by a colon, the option requires an argument, so "
7895 "B<getopt>()  places a pointer to the following text in the same "
7896 "I<argv>-element, or the text of the following I<argv>-element, in "
7897 "I<optarg>.  Two colons mean an option takes an optional arg; if there is "
7898 "text in the current I<argv>-element (i.e., in the same word as the option "
7899 "name itself, for example, \"-oarg\"), then it is returned in I<optarg>, "
7900 "otherwise I<optarg> is set to zero.  This is a GNU extension.  If "
7901 "I<optstring> contains B<W> followed by a semicolon, then B<-W foo> is "
7902 "treated as the long option B<--foo>.  (The B<-W> option is reserved by "
7903 "POSIX.2 for implementation extensions.)  This behavior is a GNU extension, "
7904 "not available with libraries before glibc 2."
7905 msgstr ""
7906
7907 #. type: Plain text
7908 #: build/C/man3/getopt.3:167
7909 msgid ""
7910 "By default, B<getopt>()  permutes the contents of I<argv> as it scans, so "
7911 "that eventually all the nonoptions are at the end.  Two other modes are also "
7912 "implemented.  If the first character of I<optstring> is \\(aq+\\(aq or the "
7913 "environment variable B<POSIXLY_CORRECT> is set, then option processing stops "
7914 "as soon as a nonoption argument is encountered.  If the first character of "
7915 "I<optstring> is \\(aq-\\(aq, then each nonoption I<argv>-element is handled "
7916 "as if it were the argument of an option with character code 1.  (This is "
7917 "used by programs that were written to expect options and other "
7918 "I<argv>-elements in any order and that care about the ordering of the two.)  "
7919 "The special argument \"--\" forces an end of option-scanning regardless of "
7920 "the scanning mode."
7921 msgstr ""
7922
7923 #. type: Plain text
7924 #: build/C/man3/getopt.3:175
7925 msgid ""
7926 "If B<getopt>()  does not recognize an option character, it prints an error "
7927 "message to I<stderr>, stores the character in I<optopt>, and returns "
7928 "\\(aq?\\(aq.  The calling program may prevent the error message by setting "
7929 "I<opterr> to 0."
7930 msgstr ""
7931
7932 #. type: Plain text
7933 #: build/C/man3/getopt.3:194
7934 msgid ""
7935 "If B<getopt>()  finds an option character in I<argv> that was not included "
7936 "in I<optstring>, or if it detects a missing option argument, it returns "
7937 "\\(aq?\\(aq and sets the external variable I<optopt> to the actual option "
7938 "character.  If the first character (following any optional \\(aq+\\(aq or "
7939 "\\(aq-\\(aq described above)  of I<optstring> is a colon (\\(aq:\\(aq), then "
7940 "B<getopt>()  returns \\(aq:\\(aq instead of \\(aq?\\(aq to indicate a "
7941 "missing option argument.  If an error was detected, and the first character "
7942 "of I<optstring> is not a colon, and the external variable I<opterr> is "
7943 "nonzero (which is the default), B<getopt>()  prints an error message."
7944 msgstr ""
7945
7946 #. type: SS
7947 #: build/C/man3/getopt.3:194
7948 #, no-wrap
7949 msgid "getopt_long() and getopt_long_only()"
7950 msgstr ""
7951
7952 #. type: Plain text
7953 #: build/C/man3/getopt.3:210
7954 msgid ""
7955 "The B<getopt_long>()  function works like B<getopt>()  except that it also "
7956 "accepts long options, started with two dashes.  (If the program accepts only "
7957 "long options, then I<optstring> should be specified as an empty string "
7958 "(\"\"), not NULL.)  Long option names may be abbreviated if the abbreviation "
7959 "is unique or is an exact match for some defined option.  A long option may "
7960 "take a parameter, of the form B<--arg=param> or B<--arg param>."
7961 msgstr ""
7962
7963 #. type: Plain text
7964 #: build/C/man3/getopt.3:217
7965 msgid ""
7966 "I<longopts> is a pointer to the first element of an array of I<struct "
7967 "option> declared in I<E<lt>getopt.hE<gt>> as"
7968 msgstr ""
7969
7970 #. type: Plain text
7971 #: build/C/man3/getopt.3:226
7972 #, no-wrap
7973 msgid ""
7974 "struct option {\n"
7975 "    const char *name;\n"
7976 "    int         has_arg;\n"
7977 "    int        *flag;\n"
7978 "    int         val;\n"
7979 "};\n"
7980 msgstr ""
7981
7982 #. type: Plain text
7983 #: build/C/man3/getopt.3:230
7984 msgid "The meanings of the different fields are:"
7985 msgstr ""
7986
7987 #. type: TP
7988 #: build/C/man3/getopt.3:230
7989 #, no-wrap
7990 msgid "I<name>"
7991 msgstr ""
7992
7993 #. type: Plain text
7994 #: build/C/man3/getopt.3:233
7995 msgid "is the name of the long option."
7996 msgstr ""
7997
7998 #. type: TP
7999 #: build/C/man3/getopt.3:233
8000 #, no-wrap
8001 msgid "I<has_arg>"
8002 msgstr ""
8003
8004 #. type: Plain text
8005 #: build/C/man3/getopt.3:239
8006 msgid ""
8007 "is: B<no_argument> (or 0) if the option does not take an argument; "
8008 "B<required_argument> (or 1) if the option requires an argument; or "
8009 "B<optional_argument> (or 2) if the option takes an optional argument."
8010 msgstr ""
8011
8012 #. type: TP
8013 #: build/C/man3/getopt.3:239
8014 #, no-wrap
8015 msgid "I<flag>"
8016 msgstr ""
8017
8018 #. type: Plain text
8019 #: build/C/man3/getopt.3:253
8020 msgid ""
8021 "specifies how results are returned for a long option.  If I<flag> is NULL, "
8022 "then B<getopt_long>()  returns I<val>.  (For example, the calling program "
8023 "may set I<val> to the equivalent short option character.)  Otherwise, "
8024 "B<getopt_long>()  returns 0, and I<flag> points to a variable which is set "
8025 "to I<val> if the option is found, but left unchanged if the option is not "
8026 "found."
8027 msgstr ""
8028
8029 #. type: TP
8030 #: build/C/man3/getopt.3:253
8031 #, no-wrap
8032 msgid "I<val>"
8033 msgstr ""
8034
8035 #. type: Plain text
8036 #: build/C/man3/getopt.3:257
8037 msgid "is the value to return, or to load into the variable pointed to by I<flag>."
8038 msgstr ""
8039
8040 #. type: Plain text
8041 #: build/C/man3/getopt.3:259
8042 msgid "The last element of the array has to be filled with zeros."
8043 msgstr ""
8044
8045 #. type: Plain text
8046 #: build/C/man3/getopt.3:263
8047 msgid ""
8048 "If I<longindex> is not NULL, it points to a variable which is set to the "
8049 "index of the long option relative to I<longopts>."
8050 msgstr ""
8051
8052 #. type: Plain text
8053 #: build/C/man3/getopt.3:272
8054 msgid ""
8055 "B<getopt_long_only>()  is like B<getopt_long>(), but \\(aq-\\(aq as well as "
8056 "\"--\" can indicate a long option.  If an option that starts with "
8057 "\\(aq-\\(aq (not \"--\") doesn't match a long option, but does match a short "
8058 "option, it is parsed as a short option instead."
8059 msgstr ""
8060
8061 #. type: Plain text
8062 #: build/C/man3/getopt.3:290
8063 msgid ""
8064 "If an option was successfully found, then B<getopt>()  returns the option "
8065 "character.  If all command-line options have been parsed, then B<getopt>()  "
8066 "returns -1.  If B<getopt>()  encounters an option character that was not in "
8067 "I<optstring>, then \\(aq?\\(aq is returned.  If B<getopt>()  encounters an "
8068 "option with a missing argument, then the return value depends on the first "
8069 "character in I<optstring>: if it is \\(aq:\\(aq, then \\(aq:\\(aq is "
8070 "returned; otherwise \\(aq?\\(aq is returned."
8071 msgstr ""
8072
8073 #. type: Plain text
8074 #: build/C/man3/getopt.3:302
8075 msgid ""
8076 "B<getopt_long>()  and B<getopt_long_only>()  also return the option "
8077 "character when a short option is recognized.  For a long option, they return "
8078 "I<val> if I<flag> is NULL, and 0 otherwise.  Error and -1 returns are the "
8079 "same as for B<getopt>(), plus \\(aq?\\(aq for an ambiguous match or an "
8080 "extraneous parameter."
8081 msgstr ""
8082
8083 #. type: SH
8084 #: build/C/man3/getopt.3:302
8085 #, no-wrap
8086 msgid "ENVIRONMENT"
8087 msgstr ""
8088
8089 #. type: TP
8090 #: build/C/man3/getopt.3:303
8091 #, no-wrap
8092 msgid "B<POSIXLY_CORRECT>"
8093 msgstr ""
8094
8095 #. type: Plain text
8096 #: build/C/man3/getopt.3:307
8097 msgid ""
8098 "If this is set, then option processing stops as soon as a nonoption argument "
8099 "is encountered."
8100 msgstr ""
8101
8102 #. type: TP
8103 #: build/C/man3/getopt.3:307
8104 #, no-wrap
8105 msgid "B<_E<lt>PIDE<gt>_GNU_nonoption_argv_flags_>"
8106 msgstr ""
8107
8108 #. type: Plain text
8109 #: build/C/man3/getopt.3:316
8110 msgid ""
8111 "This variable was used by B<bash>(1)  2.0 to communicate to glibc which "
8112 "arguments are the results of wildcard expansion and so should not be "
8113 "considered as options.  This behavior was removed in B<bash>(1)  version "
8114 "2.01, but the support remains in glibc."
8115 msgstr ""
8116
8117 #. type: TP
8118 #: build/C/man3/getopt.3:317
8119 #, no-wrap
8120 msgid "B<getopt>():"
8121 msgstr ""
8122
8123 #. type: Plain text
8124 #: build/C/man3/getopt.3:327
8125 msgid ""
8126 "POSIX.2 and POSIX.1-2001, provided the environment variable "
8127 "B<POSIXLY_CORRECT> is set.  Otherwise, the elements of I<argv> aren't really "
8128 "const, because we permute them.  We pretend they're const in the prototype "
8129 "to be compatible with other systems."
8130 msgstr ""
8131
8132 #. type: Plain text
8133 #: build/C/man3/getopt.3:331
8134 msgid "The use of \\(aq+\\(aq and \\(aq-\\(aq in I<optstring> is a GNU extension."
8135 msgstr ""
8136
8137 #. type: Plain text
8138 #: build/C/man3/getopt.3:345
8139 msgid ""
8140 "On some older implementations, B<getopt>()  was declared in "
8141 "I<E<lt>stdio.hE<gt>>.  SUSv1 permitted the declaration to appear in either "
8142 "I<E<lt>unistd.hE<gt>> or I<E<lt>stdio.hE<gt>>.  POSIX.1-2001 marked the use "
8143 "of I<E<lt>stdio.hE<gt>> for this purpose as LEGACY.  POSIX.1-2001 does not "
8144 "allow the declaration to appear in I<E<lt>stdio.hE<gt>>."
8145 msgstr ""
8146
8147 #. type: TP
8148 #: build/C/man3/getopt.3:345
8149 #, no-wrap
8150 msgid "B<getopt_long>() and B<getopt_long_only>():"
8151 msgstr ""
8152
8153 #. type: Plain text
8154 #: build/C/man3/getopt.3:348
8155 msgid "These functions are GNU extensions."
8156 msgstr ""
8157
8158 #. type: Plain text
8159 #: build/C/man3/getopt.3:367
8160 msgid ""
8161 "A program that scans multiple argument vectors, or rescans the same vector "
8162 "more than once, and wants to make use of GNU extensions such as \\(aq+\\(aq "
8163 "and \\(aq-\\(aq at the start of I<optstring>, or changes the value of "
8164 "B<POSIXLY_CORRECT> between scans, must reinitialize B<getopt>()  by "
8165 "resetting I<optind> to 0, rather than the traditional value of 1.  "
8166 "(Resetting to 0 forces the invocation of an internal initialization routine "
8167 "that rechecks B<POSIXLY_CORRECT> and checks for GNU extensions in "
8168 "I<optstring>.)"
8169 msgstr ""
8170
8171 #. type: Plain text
8172 #: build/C/man3/getopt.3:374
8173 msgid ""
8174 "The POSIX.2 specification of B<getopt>()  has a technical error described in "
8175 "POSIX.2 Interpretation 150.  The GNU implementation (and probably all other "
8176 "implementations) implements the correct behavior rather than that specified."
8177 msgstr ""
8178
8179 #. type: Plain text
8180 #: build/C/man3/getopt.3:382
8181 msgid ""
8182 "The following trivial example program uses B<getopt>()  to handle two "
8183 "program options: I<-n>, with no associated value; and I<-t val>, which "
8184 "expects an associated value."
8185 msgstr ""
8186
8187 #. type: Plain text
8188 #: build/C/man3/getopt.3:387
8189 #, no-wrap
8190 msgid ""
8191 "#include E<lt>unistd.hE<gt>\n"
8192 "#include E<lt>stdlib.hE<gt>\n"
8193 "#include E<lt>stdio.hE<gt>\n"
8194 msgstr ""
8195
8196 #. type: Plain text
8197 #: build/C/man3/getopt.3:393
8198 #, no-wrap
8199 msgid ""
8200 "int\n"
8201 "main(int argc, char *argv[])\n"
8202 "{\n"
8203 "    int flags, opt;\n"
8204 "    int nsecs, tfnd;\n"
8205 msgstr ""
8206
8207 #. type: Plain text
8208 #: build/C/man3/getopt.3:412
8209 #, no-wrap
8210 msgid ""
8211 "    nsecs = 0;\n"
8212 "    tfnd = 0;\n"
8213 "    flags = 0;\n"
8214 "    while ((opt = getopt(argc, argv, \"nt:\")) != -1) {\n"
8215 "        switch (opt) {\n"
8216 "        case \\(aqn\\(aq:\n"
8217 "            flags = 1;\n"
8218 "            break;\n"
8219 "        case \\(aqt\\(aq:\n"
8220 "            nsecs = atoi(optarg);\n"
8221 "            tfnd = 1;\n"
8222 "            break;\n"
8223 "        default: /* \\(aq?\\(aq */\n"
8224 "            fprintf(stderr, \"Usage: %s [-t nsecs] [-n] name\\en\",\n"
8225 "                    argv[0]);\n"
8226 "            exit(EXIT_FAILURE);\n"
8227 "        }\n"
8228 "    }\n"
8229 msgstr ""
8230
8231 #. type: Plain text
8232 #: build/C/man3/getopt.3:414
8233 #, no-wrap
8234 msgid "    printf(\"flags=%d; tfnd=%d; optind=%d\\en\", flags, tfnd, optind);\n"
8235 msgstr ""
8236
8237 #. type: Plain text
8238 #: build/C/man3/getopt.3:419
8239 #, no-wrap
8240 msgid ""
8241 "    if (optind E<gt>= argc) {\n"
8242 "        fprintf(stderr, \"Expected argument after options\\en\");\n"
8243 "        exit(EXIT_FAILURE);\n"
8244 "    }\n"
8245 msgstr ""
8246
8247 #. type: Plain text
8248 #: build/C/man3/getopt.3:421
8249 #, no-wrap
8250 msgid "    printf(\"name argument = %s\\en\", argv[optind]);\n"
8251 msgstr ""
8252
8253 #. type: Plain text
8254 #: build/C/man3/getopt.3:423
8255 #, no-wrap
8256 msgid "    /* Other code omitted */\n"
8257 msgstr ""
8258
8259 #. type: Plain text
8260 #: build/C/man3/getopt.3:431
8261 msgid ""
8262 "The following example program illustrates the use of B<getopt_long>()  with "
8263 "most of its features."
8264 msgstr ""
8265
8266 #. type: Plain text
8267 #: build/C/man3/getopt.3:436
8268 #, no-wrap
8269 msgid ""
8270 "#include E<lt>stdio.hE<gt>     /* for printf */\n"
8271 "#include E<lt>stdlib.hE<gt>    /* for exit */\n"
8272 "#include E<lt>getopt.hE<gt>\n"
8273 msgstr ""
8274
8275 #. type: Plain text
8276 #: build/C/man3/getopt.3:442
8277 #, no-wrap
8278 msgid ""
8279 "int\n"
8280 "main(int argc, char **argv)\n"
8281 "{\n"
8282 "    int c;\n"
8283 "    int digit_optind = 0;\n"
8284 msgstr ""
8285
8286 #. type: Plain text
8287 #: build/C/man3/getopt.3:455
8288 #, no-wrap
8289 msgid ""
8290 "    while (1) {\n"
8291 "        int this_option_optind = optind ? optind : 1;\n"
8292 "        int option_index = 0;\n"
8293 "        static struct option long_options[] = {\n"
8294 "            {\"add\",     required_argument, 0,  0 },\n"
8295 "            {\"append\",  no_argument,       0,  0 },\n"
8296 "            {\"delete\",  required_argument, 0,  0 },\n"
8297 "            {\"verbose\", no_argument,       0,  0 },\n"
8298 "            {\"create\",  required_argument, 0, \\(aqc\\(aq},\n"
8299 "            {\"file\",    required_argument, 0,  0 },\n"
8300 "            {0,         0,                 0,  0 }\n"
8301 "        };\n"
8302 msgstr ""
8303
8304 #. type: Plain text
8305 #: build/C/man3/getopt.3:460
8306 #, no-wrap
8307 msgid ""
8308 "        c = getopt_long(argc, argv, \"abc:d:012\",\n"
8309 "                 long_options, &option_index);\n"
8310 "        if (c == -1)\n"
8311 "            break;\n"
8312 msgstr ""
8313
8314 #. type: Plain text
8315 #: build/C/man3/getopt.3:468
8316 #, no-wrap
8317 msgid ""
8318 "        switch (c) {\n"
8319 "        case 0:\n"
8320 "            printf(\"option %s\", long_options[option_index].name);\n"
8321 "            if (optarg)\n"
8322 "                printf(\" with arg %s\", optarg);\n"
8323 "            printf(\"\\en\");\n"
8324 "            break;\n"
8325 msgstr ""
8326
8327 #. type: Plain text
8328 #: build/C/man3/getopt.3:477
8329 #, no-wrap
8330 msgid ""
8331 "        case \\(aq0\\(aq:\n"
8332 "        case \\(aq1\\(aq:\n"
8333 "        case \\(aq2\\(aq:\n"
8334 "            if (digit_optind != 0 && digit_optind != this_option_optind)\n"
8335 "              printf(\"digits occur in two different "
8336 "argv-elements.\\en\");\n"
8337 "            digit_optind = this_option_optind;\n"
8338 "            printf(\"option %c\\en\", c);\n"
8339 "            break;\n"
8340 msgstr ""
8341
8342 #. type: Plain text
8343 #: build/C/man3/getopt.3:481
8344 #, no-wrap
8345 msgid ""
8346 "        case \\(aqa\\(aq:\n"
8347 "            printf(\"option a\\en\");\n"
8348 "            break;\n"
8349 msgstr ""
8350
8351 #. type: Plain text
8352 #: build/C/man3/getopt.3:485
8353 #, no-wrap
8354 msgid ""
8355 "        case \\(aqb\\(aq:\n"
8356 "            printf(\"option b\\en\");\n"
8357 "            break;\n"
8358 msgstr ""
8359
8360 #. type: Plain text
8361 #: build/C/man3/getopt.3:489
8362 #, no-wrap
8363 msgid ""
8364 "        case \\(aqc\\(aq:\n"
8365 "            printf(\"option c with value \\(aq%s\\(aq\\en\", optarg);\n"
8366 "            break;\n"
8367 msgstr ""
8368
8369 #. type: Plain text
8370 #: build/C/man3/getopt.3:493
8371 #, no-wrap
8372 msgid ""
8373 "        case \\(aqd\\(aq:\n"
8374 "            printf(\"option d with value \\(aq%s\\(aq\\en\", optarg);\n"
8375 "            break;\n"
8376 msgstr ""
8377
8378 #. type: Plain text
8379 #: build/C/man3/getopt.3:496
8380 #, no-wrap
8381 msgid ""
8382 "        case \\(aq?\\(aq:\n"
8383 "            break;\n"
8384 msgstr ""
8385
8386 #. type: Plain text
8387 #: build/C/man3/getopt.3:501
8388 #, no-wrap
8389 msgid ""
8390 "        default:\n"
8391 "            printf(\"?? getopt returned character code 0%o ??\\en\", c);\n"
8392 "        }\n"
8393 "    }\n"
8394 msgstr ""
8395
8396 #. type: Plain text
8397 #: build/C/man3/getopt.3:508
8398 #, no-wrap
8399 msgid ""
8400 "    if (optind E<lt> argc) {\n"
8401 "        printf(\"non-option ARGV-elements: \");\n"
8402 "        while (optind E<lt> argc)\n"
8403 "            printf(\"%s \", argv[optind++]);\n"
8404 "        printf(\"\\en\");\n"
8405 "    }\n"
8406 msgstr ""
8407
8408 #. type: Plain text
8409 #: build/C/man3/getopt.3:514
8410 msgid "B<getsubopt>(3)"
8411 msgstr ""
8412
8413 #. type: TH
8414 #: build/C/man2/getpagesize.2:23
8415 #, no-wrap
8416 msgid "GETPAGESIZE"
8417 msgstr ""
8418
8419 #. type: TH
8420 #: build/C/man2/getpagesize.2:23
8421 #, no-wrap
8422 msgid "2010-11-16"
8423 msgstr ""
8424
8425 #. type: Plain text
8426 #: build/C/man2/getpagesize.2:26
8427 msgid "getpagesize - get memory page size"
8428 msgstr ""
8429
8430 #. type: Plain text
8431 #: build/C/man2/getpagesize.2:30
8432 msgid "B<int getpagesize(void);>"
8433 msgstr ""
8434
8435 #. type: Plain text
8436 #: build/C/man2/getpagesize.2:37
8437 msgid "B<getpagesize>():"
8438 msgstr ""
8439
8440 #.  .SH HISTORY
8441 #.  This call first appeared in 4.2BSD.
8442 #. type: Plain text
8443 #: build/C/man2/getpagesize.2:62
8444 msgid ""
8445 "The function B<getpagesize>()  returns the number of bytes in a memory page, "
8446 "where \"page\" is a fixed-length block, the unit for memory allocation and "
8447 "file mapping performed by B<mmap>(2)."
8448 msgstr ""
8449
8450 #. type: Plain text
8451 #: build/C/man2/getpagesize.2:69
8452 msgid ""
8453 "SVr4, 4.4BSD, SUSv2.  In SUSv2 the B<getpagesize>()  call is labeled LEGACY, "
8454 "and in POSIX.1-2001 it has been dropped; HP-UX does not have this call."
8455 msgstr ""
8456
8457 #. type: Plain text
8458 #: build/C/man2/getpagesize.2:74
8459 msgid ""
8460 "Portable applications should employ I<sysconf(_SC_PAGESIZE)> instead of "
8461 "B<getpagesize>():"
8462 msgstr ""
8463
8464 #. type: Plain text
8465 #: build/C/man2/getpagesize.2:79
8466 #, no-wrap
8467 msgid ""
8468 "#include E<lt>unistd.hE<gt>\n"
8469 "long sz = sysconf(_SC_PAGESIZE);\n"
8470 msgstr ""
8471
8472 #. type: Plain text
8473 #: build/C/man2/getpagesize.2:86
8474 msgid "(Most systems allow the synonym B<_SC_PAGE_SIZE> for B<_SC_PAGESIZE>.)"
8475 msgstr ""
8476
8477 #. type: Plain text
8478 #: build/C/man2/getpagesize.2:106
8479 msgid ""
8480 "Whether B<getpagesize>()  is present as a Linux system call depends on the "
8481 "architecture.  If it is, it returns the kernel symbol B<PAGE_SIZE>, whose "
8482 "value depends on the architecture and machine model.  Generally, one uses "
8483 "binaries that are dependent on the architecture but not on the machine "
8484 "model, in order to have a single binary distribution per architecture.  This "
8485 "means that a user program should not find B<PAGE_SIZE> at compile time from "
8486 "a header file, but use an actual system call, at least for those "
8487 "architectures (like sun4) where this dependency exists.  Here libc4, libc5, "
8488 "glibc 2.0 fail because their B<getpagesize>()  returns a statically derived "
8489 "value, and does not use a system call.  Things are OK in glibc 2.1."
8490 msgstr ""
8491
8492 #. type: Plain text
8493 #: build/C/man2/getpagesize.2:109
8494 msgid "B<mmap>(2), B<sysconf>(3)"
8495 msgstr ""
8496
8497 #. type: TH
8498 #: build/C/man2/gettid.2:26
8499 #, no-wrap
8500 msgid "GETTID"
8501 msgstr ""
8502
8503 #. type: TH
8504 #: build/C/man2/gettid.2:26
8505 #, no-wrap
8506 msgid "2008-04-14"
8507 msgstr ""
8508
8509 #. type: Plain text
8510 #: build/C/man2/gettid.2:29
8511 msgid "gettid - get thread identification"
8512 msgstr ""
8513
8514 #. type: Plain text
8515 #: build/C/man2/gettid.2:32
8516 #, no-wrap
8517 msgid "B<#include E<lt>sys/types.hE<gt>>\n"
8518 msgstr ""
8519
8520 #. type: Plain text
8521 #: build/C/man2/gettid.2:34
8522 #, no-wrap
8523 msgid "B<pid_t gettid(void);>\n"
8524 msgstr ""
8525
8526 #. type: Plain text
8527 #: build/C/man2/gettid.2:47
8528 msgid ""
8529 "B<gettid>()  returns the caller's thread ID (TID).  In a single-threaded "
8530 "process, the thread ID is equal to the process ID (PID, as returned by "
8531 "B<getpid>(2)).  In a multithreaded process, all threads have the same PID, "
8532 "but each one has a unique TID.  For further details, see the discussion of "
8533 "B<CLONE_THREAD> in B<clone>(2)."
8534 msgstr ""
8535
8536 #. type: Plain text
8537 #: build/C/man2/gettid.2:49
8538 msgid "On success, returns the thread ID of the calling process."
8539 msgstr ""
8540
8541 #. type: Plain text
8542 #: build/C/man2/gettid.2:51
8543 msgid "This call is always successful."
8544 msgstr ""
8545
8546 #. type: Plain text
8547 #: build/C/man2/gettid.2:55
8548 msgid "The B<gettid>()  system call first appeared on Linux in kernel 2.4.11."
8549 msgstr ""
8550
8551 #. type: Plain text
8552 #: build/C/man2/gettid.2:59
8553 msgid ""
8554 "B<gettid>()  is Linux-specific and should not be used in programs that are "
8555 "intended to be portable."
8556 msgstr ""
8557
8558 #. type: Plain text
8559 #: build/C/man2/gettid.2:68
8560 msgid ""
8561 "The thread ID returned by this call is not the same thing as a POSIX thread "
8562 "ID (i.e., the opaque value returned by B<pthread_self>(3))."
8563 msgstr ""
8564
8565 #. type: Plain text
8566 #: build/C/man2/gettid.2:72
8567 msgid "B<clone>(2), B<fork>(2), B<getpid>(2)"
8568 msgstr ""
8569
8570 #. type: TH
8571 #: build/C/man3/getumask.3:26
8572 #, no-wrap
8573 msgid "GETUMASK"
8574 msgstr ""
8575
8576 #. type: Plain text
8577 #: build/C/man3/getumask.3:29
8578 msgid "getumask - get file creation mask"
8579 msgstr ""
8580
8581 #. type: Plain text
8582 #: build/C/man3/getumask.3:33 build/C/man2/truncate.2:48 build/C/man2/umask.2:39 build/C/man2/vfork.2:31
8583 msgid "B<#include E<lt>sys/types.hE<gt>>"
8584 msgstr ""
8585
8586 #. type: Plain text
8587 #: build/C/man3/getumask.3:37
8588 msgid "B<mode_t getumask(void);>"
8589 msgstr ""
8590
8591 #. type: Plain text
8592 #: build/C/man3/getumask.3:40
8593 msgid "This function returns the current file creation mask.  It is equivalent to"
8594 msgstr ""
8595
8596 #. type: Plain text
8597 #: build/C/man3/getumask.3:49
8598 #, no-wrap
8599 msgid ""
8600 "mode_t getumask(void)\n"
8601 "{\n"
8602 "    mode_t mask = umask( 0 );\n"
8603 "    umask(mask);\n"
8604 "    return mask;\n"
8605 "}\n"
8606 msgstr ""
8607
8608 #. type: Plain text
8609 #: build/C/man3/getumask.3:56
8610 msgid ""
8611 "except that it is documented to be thread-safe (that is, shares a lock with "
8612 "the B<umask>(2)  library call)."
8613 msgstr ""
8614
8615 #. type: Plain text
8616 #: build/C/man3/getumask.3:58
8617 msgid "This is a vaporware GNU extension."
8618 msgstr ""
8619
8620 #. type: Plain text
8621 #: build/C/man3/getumask.3:61
8622 msgid ""
8623 "This function is documented but not implemented yet in glibc, as at version "
8624 "2.9."
8625 msgstr ""
8626
8627 #. type: Plain text
8628 #: build/C/man3/getumask.3:63
8629 msgid "B<umask>(2)"
8630 msgstr ""
8631
8632 #. type: TH
8633 #: build/C/man3/getusershell.3:28
8634 #, no-wrap
8635 msgid "GETUSERSHELL"
8636 msgstr ""
8637
8638 #. type: TH
8639 #: build/C/man3/getusershell.3:28 build/C/man2/nice.2:31 build/C/man2/syscall.2:38 build/C/man2/vhangup.2:27
8640 #, no-wrap
8641 msgid "2007-07-26"
8642 msgstr ""
8643
8644 #. type: Plain text
8645 #: build/C/man3/getusershell.3:31
8646 msgid "getusershell, setusershell, endusershell - get permitted user shells"
8647 msgstr ""
8648
8649 #. type: Plain text
8650 #: build/C/man3/getusershell.3:36
8651 #, no-wrap
8652 msgid "B<char *getusershell(void);>\n"
8653 msgstr ""
8654
8655 #. type: Plain text
8656 #: build/C/man3/getusershell.3:38
8657 #, no-wrap
8658 msgid "B<void setusershell(void);>\n"
8659 msgstr ""
8660
8661 #. type: Plain text
8662 #: build/C/man3/getusershell.3:40
8663 #, no-wrap
8664 msgid "B<void endusershell(void);>\n"
8665 msgstr ""
8666
8667 #. type: Plain text
8668 #: build/C/man3/getusershell.3:51
8669 msgid "B<getusershell>(), B<setusershell>(), B<endusershell>():"
8670 msgstr ""
8671
8672 #. type: Plain text
8673 #: build/C/man3/getusershell.3:67
8674 msgid ""
8675 "The B<getusershell>()  function returns the next line from the file "
8676 "I</etc/shells>, opening the file if necessary.  The line should contain the "
8677 "pathname of a valid user shell.  If I</etc/shells> does not exist or is "
8678 "unreadable, B<getusershell>()  behaves as if I</bin/sh> and I</bin/csh> were "
8679 "listed in the file."
8680 msgstr ""
8681
8682 #. type: Plain text
8683 #: build/C/man3/getusershell.3:71
8684 msgid "The B<setusershell>()  function rewinds I</etc/shells>."
8685 msgstr ""
8686
8687 #. type: Plain text
8688 #: build/C/man3/getusershell.3:75
8689 msgid "The B<endusershell>()  function closes I</etc/shells>."
8690 msgstr ""
8691
8692 #. type: Plain text
8693 #: build/C/man3/getusershell.3:79
8694 msgid "The B<getusershell>()  function returns a NULL pointer on end-of-file."
8695 msgstr ""
8696
8697 #. type: Plain text
8698 #: build/C/man3/getusershell.3:82
8699 #, no-wrap
8700 msgid "/etc/shells\n"
8701 msgstr ""
8702
8703 #. type: Plain text
8704 #: build/C/man3/getusershell.3:85
8705 msgid "4.3BSD."
8706 msgstr ""
8707
8708 #. type: Plain text
8709 #: build/C/man3/getusershell.3:87
8710 msgid "B<shells>(5)"
8711 msgstr ""
8712
8713 #. type: TH
8714 #: build/C/man2/idle.2:32
8715 #, no-wrap
8716 msgid "IDLE"
8717 msgstr ""
8718
8719 #. type: TH
8720 #: build/C/man2/idle.2:32
8721 #, no-wrap
8722 msgid "1994-08-21"
8723 msgstr ""
8724
8725 #. type: Plain text
8726 #: build/C/man2/idle.2:35
8727 msgid "idle - make process 0 idle"
8728 msgstr ""
8729
8730 #. type: Plain text
8731 #: build/C/man2/idle.2:39
8732 msgid "B<int idle(void);>"
8733 msgstr ""
8734
8735 #. type: Plain text
8736 #: build/C/man2/idle.2:46
8737 msgid ""
8738 "B<idle>()  is an internal system call used during bootstrap.  It marks the "
8739 "process's pages as swappable, lowers its priority, and enters the main "
8740 "scheduling loop.  B<idle>()  never returns."
8741 msgstr ""
8742
8743 #. type: Plain text
8744 #: build/C/man2/idle.2:52
8745 msgid ""
8746 "Only process 0 may call B<idle>().  Any user process, even a process with "
8747 "superuser permission, will receive B<EPERM>."
8748 msgstr ""
8749
8750 #. type: Plain text
8751 #: build/C/man2/idle.2:55
8752 msgid ""
8753 "B<idle>()  never returns for process 0, and always returns -1 for a user "
8754 "process."
8755 msgstr ""
8756
8757 #. type: Plain text
8758 #: build/C/man2/idle.2:59 build/C/man2/setup.2:60
8759 msgid "Always, for a user process."
8760 msgstr ""
8761
8762 #. type: Plain text
8763 #: build/C/man2/idle.2:61
8764 msgid "Since 2.3.13 this system call does not exist anymore."
8765 msgstr ""
8766
8767 #. type: Plain text
8768 #: build/C/man2/idle.2:64 build/C/man2/sysinfo.2:86
8769 msgid ""
8770 "This function is Linux-specific, and should not be used in programs intended "
8771 "to be portable."
8772 msgstr ""
8773
8774 #. type: TH
8775 #: build/C/man2/ioctl.2:39
8776 #, no-wrap
8777 msgid "IOCTL"
8778 msgstr ""
8779
8780 #. type: TH
8781 #: build/C/man2/ioctl.2:39
8782 #, no-wrap
8783 msgid "2000-09-21"
8784 msgstr ""
8785
8786 #. type: Plain text
8787 #: build/C/man2/ioctl.2:42
8788 msgid "ioctl - control device"
8789 msgstr ""
8790
8791 #. type: Plain text
8792 #: build/C/man2/ioctl.2:44
8793 msgid "B<#include E<lt>sys/ioctl.hE<gt>>"
8794 msgstr ""
8795
8796 #. type: Plain text
8797 #: build/C/man2/ioctl.2:46
8798 msgid "B<int ioctl(int >I<d>B<, int >I<request>B<, ...);>"
8799 msgstr ""
8800
8801 #. type: Plain text
8802 #: build/C/man2/ioctl.2:57
8803 msgid ""
8804 "The B<ioctl>()  function manipulates the underlying device parameters of "
8805 "special files.  In particular, many operating characteristics of character "
8806 "special files (e.g., terminals) may be controlled with B<ioctl>()  "
8807 "requests.  The argument I<d> must be an open file descriptor."
8808 msgstr ""
8809
8810 #. type: Plain text
8811 #: build/C/man2/ioctl.2:65
8812 msgid ""
8813 "The second argument is a device-dependent request code.  The third argument "
8814 "is an untyped pointer to memory.  It's traditionally B<char *>I<argp> (from "
8815 "the days before B<void *> was valid C), and will be so named for this "
8816 "discussion."
8817 msgstr ""
8818
8819 #. type: Plain text
8820 #: build/C/man2/ioctl.2:81
8821 msgid ""
8822 "An B<ioctl>()  I<request> has encoded in it whether the argument is an I<in> "
8823 "parameter or I<out> parameter, and the size of the argument I<argp> in "
8824 "bytes.  Macros and defines used in specifying an B<ioctl>()  I<request> are "
8825 "located in the file I<E<lt>sys/ioctl.hE<gt>>."
8826 msgstr ""
8827
8828 #. type: Plain text
8829 #: build/C/man2/ioctl.2:90
8830 msgid ""
8831 "Usually, on success zero is returned.  A few B<ioctl>()  requests use the "
8832 "return value as an output parameter and return a nonnegative value on "
8833 "success.  On error, -1 is returned, and I<errno> is set appropriately."
8834 msgstr ""
8835
8836 #. type: Plain text
8837 #: build/C/man2/ioctl.2:95
8838 msgid "I<d> is not a valid descriptor."
8839 msgstr ""
8840
8841 #. type: Plain text
8842 #: build/C/man2/ioctl.2:99
8843 msgid "I<argp> references an inaccessible memory area."
8844 msgstr ""
8845
8846 #. type: Plain text
8847 #: build/C/man2/ioctl.2:105
8848 msgid "I<Request> or I<argp> is not valid."
8849 msgstr ""
8850
8851 #. type: Plain text
8852 #: build/C/man2/ioctl.2:109
8853 msgid "I<d> is not associated with a character special device."
8854 msgstr ""
8855
8856 #. type: Plain text
8857 #: build/C/man2/ioctl.2:115
8858 msgid ""
8859 "The specified request does not apply to the kind of object that the "
8860 "descriptor I<d> references."
8861 msgstr ""
8862
8863 #. type: Plain text
8864 #: build/C/man2/ioctl.2:130
8865 msgid ""
8866 "No single standard.  Arguments, returns, and semantics of B<ioctl>()  vary "
8867 "according to the device driver in question (the call is used as a catch-all "
8868 "for operations that don't cleanly fit the UNIX stream I/O model).  See "
8869 "B<ioctl_list>(2)  for a list of many of the known B<ioctl>()  calls.  The "
8870 "B<ioctl>()  function call appeared in Version 7 AT&T UNIX."
8871 msgstr ""
8872
8873 #. type: Plain text
8874 #: build/C/man2/ioctl.2:138
8875 msgid ""
8876 "In order to use this call, one needs an open file descriptor.  Often the "
8877 "B<open>(2)  call has unwanted side effects, that can be avoided under Linux "
8878 "by giving it the B<O_NONBLOCK> flag."
8879 msgstr ""
8880
8881 #.  .BR mt (4),
8882 #. type: Plain text
8883 #: build/C/man2/ioctl.2:146
8884 msgid "B<execve>(2), B<fcntl>(2), B<ioctl_list>(2), B<open>(2), B<sd>(4), B<tty>(4)"
8885 msgstr ""
8886
8887 #. type: TH
8888 #: build/C/man2/ioctl_list.2:27
8889 #, no-wrap
8890 msgid "IOCTL_LIST"
8891 msgstr ""
8892
8893 #. type: TH
8894 #: build/C/man2/ioctl_list.2:27
8895 #, no-wrap
8896 msgid "2007-12-29"
8897 msgstr ""
8898
8899 #. type: Plain text
8900 #: build/C/man2/ioctl_list.2:30
8901 msgid "ioctl_list - list of ioctl calls in Linux/i386 kernel"
8902 msgstr ""
8903
8904 #. type: Plain text
8905 #: build/C/man2/ioctl_list.2:37
8906 msgid ""
8907 "This is Ioctl List 1.3.27, a list of ioctl calls in Linux/i386 kernel "
8908 "1.3.27.  It contains 421 ioctls from "
8909 "I<E<lt>/usr/include/{asm,linux}/*.hE<gt>>.  For each ioctl, its numerical "
8910 "value, its name, and its argument type are given."
8911 msgstr ""
8912
8913 #. type: Plain text
8914 #: build/C/man2/ioctl_list.2:45
8915 msgid ""
8916 "An argument type of I<const struct foo *> means the argument is input to the "
8917 "kernel.  I<struct foo *> means the kernel outputs the argument.  If the "
8918 "kernel uses the argument for both input and output, this is marked with "
8919 "I<//\\ I-O>."
8920 msgstr ""
8921
8922 #. type: Plain text
8923 #: build/C/man2/ioctl_list.2:50
8924 msgid ""
8925 "Some ioctls take more arguments or return more values than a single "
8926 "structure.  These are marked I<//\\ MORE> and documented further in a "
8927 "separate section."
8928 msgstr ""
8929
8930 #. type: Plain text
8931 #: build/C/man2/ioctl_list.2:52
8932 msgid "This list is very incomplete."
8933 msgstr ""
8934
8935 #. type: SS
8936 #: build/C/man2/ioctl_list.2:52
8937 #, no-wrap
8938 msgid "ioctl structure"
8939 msgstr ""
8940
8941 #.  added two sections - aeb
8942 #. type: Plain text
8943 #: build/C/man2/ioctl_list.2:57
8944 msgid ""
8945 "Ioctl command values are 32-bit constants.  In principle these constants are "
8946 "completely arbitrary, but people have tried to build some structure into "
8947 "them."
8948 msgstr ""
8949
8950 #. type: Plain text
8951 #: build/C/man2/ioctl_list.2:76
8952 msgid ""
8953 "The old Linux situation was that of mostly 16-bit constants, where the last "
8954 "byte is a serial number, and the preceding byte(s) give a type indicating "
8955 "the driver.  Sometimes the major number was used: 0x03 for the B<HDIO_*> "
8956 "ioctls, 0x06 for the B<LP*> ioctls.  And sometimes one or more ASCII letters "
8957 "were used.  For example, B<TCGETS> has value 0x00005401, with 0x54 = "
8958 "\\(aqT\\(aq indicating the terminal driver, and B<CYGETTIMEOUT> has value "
8959 "0x00435906, with 0x43 0x59 = \\(aqC\\(aq \\(aqY\\(aq indicating the cyclades "
8960 "driver."
8961 msgstr ""
8962
8963 #. type: Plain text
8964 #: build/C/man2/ioctl_list.2:84
8965 msgid ""
8966 "Later (0.98p5) some more information was built into the number.  One has 2 "
8967 "direction bits (00: none, 01: write, 10: read, 11: read/write)  followed by "
8968 "14 size bits (giving the size of the argument), followed by an 8-bit type "
8969 "(collecting the ioctls in groups for a common purpose or a common driver), "
8970 "and an 8-bit serial number."
8971 msgstr ""
8972
8973 #. type: Plain text
8974 #: build/C/man2/ioctl_list.2:94
8975 msgid ""
8976 "The macros describing this structure live in I<E<lt>asm/ioctl.hE<gt>> and "
8977 "are B<_IO(type,nr)> and B<{_IOR,_IOW,_IOWR}(type,nr,size)>.  They use "
8978 "I<sizeof(size)> so that size is a misnomer here: this third argument is a "
8979 "data type."
8980 msgstr ""
8981
8982 #. type: Plain text
8983 #: build/C/man2/ioctl_list.2:99
8984 msgid ""
8985 "Note that the size bits are very unreliable: in lots of cases they are "
8986 "wrong, either because of buggy macros using I<sizeof(sizeof(struct))>, or "
8987 "because of legacy values."
8988 msgstr ""
8989
8990 #. type: Plain text
8991 #: build/C/man2/ioctl_list.2:103
8992 msgid ""
8993 "Thus, it seems that the new structure only gave disadvantages: it does not "
8994 "help in checking, but it causes varying values for the various "
8995 "architectures."
8996 msgstr ""
8997
8998 #. type: Plain text
8999 #: build/C/man2/ioctl_list.2:109
9000 msgid ""
9001 "Decent ioctls return 0 on success and -1 on error, while any output value is "
9002 "stored via the argument.  However, quite a few ioctls in fact return an "
9003 "output value.  This is not yet indicated below."
9004 msgstr ""
9005
9006 #. type: Plain text
9007 #: build/C/man2/ioctl_list.2:111
9008 msgid "// Main table."
9009 msgstr ""
9010
9011 #. type: Plain text
9012 #: build/C/man2/ioctl_list.2:113
9013 msgid "// E<lt>include/asm-i386/socket.hE<gt>"
9014 msgstr ""
9015
9016 #. type: tbl table
9017 #: build/C/man2/ioctl_list.2:115
9018 #, no-wrap
9019 msgid "0x00008901\tFIOSETOWN\tconst int *\n"
9020 msgstr ""
9021
9022 #. type: tbl table
9023 #: build/C/man2/ioctl_list.2:116
9024 #, no-wrap
9025 msgid "0x00008902\tSIOCSPGRP\tconst int *\n"
9026 msgstr ""
9027
9028 #. type: tbl table
9029 #: build/C/man2/ioctl_list.2:117
9030 #, no-wrap
9031 msgid "0x00008903\tFIOGETOWN\tint *\n"
9032 msgstr ""
9033
9034 #. type: tbl table
9035 #: build/C/man2/ioctl_list.2:118
9036 #, no-wrap
9037 msgid "0x00008904\tSIOCGPGRP\tint *\n"
9038 msgstr ""
9039
9040 #. type: tbl table
9041 #: build/C/man2/ioctl_list.2:119
9042 #, no-wrap
9043 msgid "0x00008905\tSIOCATMAR\tint *\n"
9044 msgstr ""
9045
9046 #. type: tbl table
9047 #: build/C/man2/ioctl_list.2:120
9048 #, no-wrap
9049 msgid "0x00008906\tSIOCGSTAMP\ttimeval *\n"
9050 msgstr ""
9051
9052 #. type: Plain text
9053 #: build/C/man2/ioctl_list.2:124
9054 msgid "// E<lt>include/asm-i386/termios.hE<gt>"
9055 msgstr ""
9056
9057 #. type: tbl table
9058 #: build/C/man2/ioctl_list.2:126
9059 #, no-wrap
9060 msgid "0x00005401\tTCGETS\tstruct termios *\n"
9061 msgstr ""
9062
9063 #. type: tbl table
9064 #: build/C/man2/ioctl_list.2:127
9065 #, no-wrap
9066 msgid "0x00005402\tTCSETS\tconst struct termios *\n"
9067 msgstr ""
9068
9069 #. type: tbl table
9070 #: build/C/man2/ioctl_list.2:128
9071 #, no-wrap
9072 msgid "0x00005403\tTCSETSW\tconst struct termios *\n"
9073 msgstr ""
9074
9075 #. type: tbl table
9076 #: build/C/man2/ioctl_list.2:129
9077 #, no-wrap
9078 msgid "0x00005404\tTCSETSF\tconst struct termios *\n"
9079 msgstr ""
9080
9081 #. type: tbl table
9082 #: build/C/man2/ioctl_list.2:130
9083 #, no-wrap
9084 msgid "0x00005405\tTCGETA\tstruct termio *\n"
9085 msgstr ""
9086
9087 #. type: tbl table
9088 #: build/C/man2/ioctl_list.2:131
9089 #, no-wrap
9090 msgid "0x00005406\tTCSETA\tconst struct termio *\n"
9091 msgstr ""
9092
9093 #. type: tbl table
9094 #: build/C/man2/ioctl_list.2:132
9095 #, no-wrap
9096 msgid "0x00005407\tTCSETAW\tconst struct termio *\n"
9097 msgstr ""
9098
9099 #. type: tbl table
9100 #: build/C/man2/ioctl_list.2:133
9101 #, no-wrap
9102 msgid "0x00005408\tTCSETAF\tconst struct termio *\n"
9103 msgstr ""
9104
9105 #. type: tbl table
9106 #: build/C/man2/ioctl_list.2:134
9107 #, no-wrap
9108 msgid "0x00005409\tTCSBRK\tint\n"
9109 msgstr ""
9110
9111 #. type: tbl table
9112 #: build/C/man2/ioctl_list.2:135
9113 #, no-wrap
9114 msgid "0x0000540A\tTCXONC\tint\n"
9115 msgstr ""
9116
9117 #. type: tbl table
9118 #: build/C/man2/ioctl_list.2:136
9119 #, no-wrap
9120 msgid "0x0000540B\tTCFLSH\tint\n"
9121 msgstr ""
9122
9123 #. type: tbl table
9124 #: build/C/man2/ioctl_list.2:137
9125 #, no-wrap
9126 msgid "0x0000540C\tTIOCEXCL\tvoid\n"
9127 msgstr ""
9128
9129 #. type: tbl table
9130 #: build/C/man2/ioctl_list.2:138
9131 #, no-wrap
9132 msgid "0x0000540D\tTIOCNXCL\tvoid\n"
9133 msgstr ""
9134
9135 #. type: tbl table
9136 #: build/C/man2/ioctl_list.2:139
9137 #, no-wrap
9138 msgid "0x0000540E\tTIOCSCTTY\tint\n"
9139 msgstr ""
9140
9141 #. type: tbl table
9142 #: build/C/man2/ioctl_list.2:140
9143 #, no-wrap
9144 msgid "0x0000540F\tTIOCGPGRP\tpid_t *\n"
9145 msgstr ""
9146
9147 #. type: tbl table
9148 #: build/C/man2/ioctl_list.2:141
9149 #, no-wrap
9150 msgid "0x00005410\tTIOCSPGRP\tconst pid_t *\n"
9151 msgstr ""
9152
9153 #. type: tbl table
9154 #: build/C/man2/ioctl_list.2:142
9155 #, no-wrap
9156 msgid "0x00005411\tTIOCOUTQ\tint *\n"
9157 msgstr ""
9158
9159 #. type: tbl table
9160 #: build/C/man2/ioctl_list.2:143
9161 #, no-wrap
9162 msgid "0x00005412\tTIOCSTI\tconst char *\n"
9163 msgstr ""
9164
9165 #. type: tbl table
9166 #: build/C/man2/ioctl_list.2:144
9167 #, no-wrap
9168 msgid "0x00005413\tTIOCGWINSZ\tstruct winsize *\n"
9169 msgstr ""
9170
9171 #. type: tbl table
9172 #: build/C/man2/ioctl_list.2:145
9173 #, no-wrap
9174 msgid "0x00005414\tTIOCSWINSZ\tconst struct winsize *\n"
9175 msgstr ""
9176
9177 #. type: tbl table
9178 #: build/C/man2/ioctl_list.2:146
9179 #, no-wrap
9180 msgid "0x00005415\tTIOCMGET\tint *\n"
9181 msgstr ""
9182
9183 #. type: tbl table
9184 #: build/C/man2/ioctl_list.2:147
9185 #, no-wrap
9186 msgid "0x00005416\tTIOCMBIS\tconst int *\n"
9187 msgstr ""
9188
9189 #. type: tbl table
9190 #: build/C/man2/ioctl_list.2:148
9191 #, no-wrap
9192 msgid "0x00005417\tTIOCMBIC\tconst int *\n"
9193 msgstr ""
9194
9195 #. type: tbl table
9196 #: build/C/man2/ioctl_list.2:149
9197 #, no-wrap
9198 msgid "0x00005418\tTIOCMSET\tconst int *\n"
9199 msgstr ""
9200
9201 #. type: tbl table
9202 #: build/C/man2/ioctl_list.2:150
9203 #, no-wrap
9204 msgid "0x00005419\tTIOCGSOFTCAR\tint *\n"
9205 msgstr ""
9206
9207 #. type: tbl table
9208 #: build/C/man2/ioctl_list.2:151
9209 #, no-wrap
9210 msgid "0x0000541A\tTIOCSSOFTCAR\tconst int *\n"
9211 msgstr ""
9212
9213 #. type: tbl table
9214 #: build/C/man2/ioctl_list.2:152
9215 #, no-wrap
9216 msgid "0x0000541B\tFIONREAD\tint *\n"
9217 msgstr ""
9218
9219 #. type: tbl table
9220 #: build/C/man2/ioctl_list.2:153
9221 #, no-wrap
9222 msgid "0x0000541B\tTIOCINQ\tint *\n"
9223 msgstr ""
9224
9225 #. type: tbl table
9226 #: build/C/man2/ioctl_list.2:154
9227 #, no-wrap
9228 msgid "0x0000541C\tTIOCLINUX\tconst char *\t// MORE\n"
9229 msgstr ""
9230
9231 #. type: tbl table
9232 #: build/C/man2/ioctl_list.2:155
9233 #, no-wrap
9234 msgid "0x0000541D\tTIOCCONS\tvoid\n"
9235 msgstr ""
9236
9237 #. type: tbl table
9238 #: build/C/man2/ioctl_list.2:156
9239 #, no-wrap
9240 msgid "0x0000541E\tTIOCGSERIAL\tstruct serial_struct *\n"
9241 msgstr ""
9242
9243 #. type: tbl table
9244 #: build/C/man2/ioctl_list.2:157
9245 #, no-wrap
9246 msgid "0x0000541F\tTIOCSSERIAL\tconst struct serial_struct *\n"
9247 msgstr ""
9248
9249 #. type: tbl table
9250 #: build/C/man2/ioctl_list.2:158
9251 #, no-wrap
9252 msgid "0x00005420\tTIOCPKT\tconst int *\n"
9253 msgstr ""
9254
9255 #. type: tbl table
9256 #: build/C/man2/ioctl_list.2:159
9257 #, no-wrap
9258 msgid "0x00005421\tFIONBIO\tconst int *\n"
9259 msgstr ""
9260
9261 #. type: tbl table
9262 #: build/C/man2/ioctl_list.2:160
9263 #, no-wrap
9264 msgid "0x00005422\tTIOCNOTTY\tvoid\n"
9265 msgstr ""
9266
9267 #. type: tbl table
9268 #: build/C/man2/ioctl_list.2:161
9269 #, no-wrap
9270 msgid "0x00005423\tTIOCSETD\tconst int *\n"
9271 msgstr ""
9272
9273 #. type: tbl table
9274 #: build/C/man2/ioctl_list.2:162
9275 #, no-wrap
9276 msgid "0x00005424\tTIOCGETD\tint *\n"
9277 msgstr ""
9278
9279 #. type: tbl table
9280 #: build/C/man2/ioctl_list.2:163
9281 #, no-wrap
9282 msgid "0x00005425\tTCSBRKP\tint\n"
9283 msgstr ""
9284
9285 #. type: tbl table
9286 #: build/C/man2/ioctl_list.2:164
9287 #, no-wrap
9288 msgid "0x00005426\tTIOCTTYGSTRUCT\tstruct tty_struct *\n"
9289 msgstr ""
9290
9291 #. type: tbl table
9292 #: build/C/man2/ioctl_list.2:165
9293 #, no-wrap
9294 msgid "0x00005450\tFIONCLEX\tvoid\n"
9295 msgstr ""
9296
9297 #. type: tbl table
9298 #: build/C/man2/ioctl_list.2:166
9299 #, no-wrap
9300 msgid "0x00005451\tFIOCLEX\tvoid\n"
9301 msgstr ""
9302
9303 #. type: tbl table
9304 #: build/C/man2/ioctl_list.2:167
9305 #, no-wrap
9306 msgid "0x00005452\tFIOASYNC\tconst int *\n"
9307 msgstr ""
9308
9309 #. type: tbl table
9310 #: build/C/man2/ioctl_list.2:168
9311 #, no-wrap
9312 msgid "0x00005453\tTIOCSERCONFIG\tvoid\n"
9313 msgstr ""
9314
9315 #. type: tbl table
9316 #: build/C/man2/ioctl_list.2:169
9317 #, no-wrap
9318 msgid "0x00005454\tTIOCSERGWILD\tint *\n"
9319 msgstr ""
9320
9321 #. type: tbl table
9322 #: build/C/man2/ioctl_list.2:170
9323 #, no-wrap
9324 msgid "0x00005455\tTIOCSERSWILD\tconst int *\n"
9325 msgstr ""
9326
9327 #. type: tbl table
9328 #: build/C/man2/ioctl_list.2:171
9329 #, no-wrap
9330 msgid "0x00005456\tTIOCGLCKTRMIOS\tstruct termios *\n"
9331 msgstr ""
9332
9333 #. type: tbl table
9334 #: build/C/man2/ioctl_list.2:172
9335 #, no-wrap
9336 msgid "0x00005457\tTIOCSLCKTRMIOS\tconst struct termios *\n"
9337 msgstr ""
9338
9339 #. type: tbl table
9340 #: build/C/man2/ioctl_list.2:173
9341 #, no-wrap
9342 msgid "0x00005458\tTIOCSERGSTRUCT\tstruct async_struct *\n"
9343 msgstr ""
9344
9345 #. type: tbl table
9346 #: build/C/man2/ioctl_list.2:174
9347 #, no-wrap
9348 msgid "0x00005459\tTIOCSERGETLSR\tint *\n"
9349 msgstr ""
9350
9351 #. type: tbl table
9352 #: build/C/man2/ioctl_list.2:175
9353 #, no-wrap
9354 msgid "0x0000545A\tTIOCSERGETMULTI\tstruct serial_multiport_struct *\n"
9355 msgstr ""
9356
9357 #. type: tbl table
9358 #: build/C/man2/ioctl_list.2:176
9359 #, no-wrap
9360 msgid "0x0000545B\tTIOCSERSETMULTI\tconst struct serial_multiport_struct *\n"
9361 msgstr ""
9362
9363 #. type: Plain text
9364 #: build/C/man2/ioctl_list.2:180
9365 msgid "// E<lt>include/linux/ax25.hE<gt>"
9366 msgstr ""
9367
9368 #. type: tbl table
9369 #: build/C/man2/ioctl_list.2:182
9370 #, no-wrap
9371 msgid "0x000089E0\tSIOCAX25GETUID\tconst struct sockaddr_ax25 *\n"
9372 msgstr ""
9373
9374 #. type: tbl table
9375 #: build/C/man2/ioctl_list.2:183
9376 #, no-wrap
9377 msgid "0x000089E1\tSIOCAX25ADDUID\tconst struct sockaddr_ax25 *\n"
9378 msgstr ""
9379
9380 #. type: tbl table
9381 #: build/C/man2/ioctl_list.2:184
9382 #, no-wrap
9383 msgid "0x000089E2\tSIOCAX25DELUID\tconst struct sockaddr_ax25 *\n"
9384 msgstr ""
9385
9386 #. type: tbl table
9387 #: build/C/man2/ioctl_list.2:185
9388 #, no-wrap
9389 msgid "0x000089E3\tSIOCAX25NOUID\tconst int *\n"
9390 msgstr ""
9391
9392 #. type: tbl table
9393 #: build/C/man2/ioctl_list.2:186
9394 #, no-wrap
9395 msgid "0x000089E4\tSIOCAX25DIGCTL\tconst int *\n"
9396 msgstr ""
9397
9398 #. type: tbl table
9399 #: build/C/man2/ioctl_list.2:187
9400 #, no-wrap
9401 msgid "0x000089E5\tSIOCAX25GETPARMS\tstruct ax25_parms_struct *\t// I-O\n"
9402 msgstr ""
9403
9404 #. type: tbl table
9405 #: build/C/man2/ioctl_list.2:188
9406 #, no-wrap
9407 msgid "0x000089E6\tSIOCAX25SETPARMS\tconst struct ax25_parms_struct *\n"
9408 msgstr ""
9409
9410 #. type: Plain text
9411 #: build/C/man2/ioctl_list.2:192
9412 msgid "// E<lt>include/linux/cdk.hE<gt>"
9413 msgstr ""
9414
9415 #. type: tbl table
9416 #: build/C/man2/ioctl_list.2:194
9417 #, no-wrap
9418 msgid "0x00007314\tSTL_BINTR\tvoid\n"
9419 msgstr ""
9420
9421 #. type: tbl table
9422 #: build/C/man2/ioctl_list.2:195
9423 #, no-wrap
9424 msgid "0x00007315\tSTL_BSTART\tvoid\n"
9425 msgstr ""
9426
9427 #. type: tbl table
9428 #: build/C/man2/ioctl_list.2:196
9429 #, no-wrap
9430 msgid "0x00007316\tSTL_BSTOP\tvoid\n"
9431 msgstr ""
9432
9433 #. type: tbl table
9434 #: build/C/man2/ioctl_list.2:197
9435 #, no-wrap
9436 msgid "0x00007317\tSTL_BRESET\tvoid\n"
9437 msgstr ""
9438
9439 #. type: Plain text
9440 #: build/C/man2/ioctl_list.2:201
9441 msgid "// E<lt>include/linux/cdrom.hE<gt>"
9442 msgstr ""
9443
9444 #. type: tbl table
9445 #: build/C/man2/ioctl_list.2:203
9446 #, no-wrap
9447 msgid "0x00005301\tCDROMPAUSE\tvoid\n"
9448 msgstr ""
9449
9450 #. type: tbl table
9451 #: build/C/man2/ioctl_list.2:204
9452 #, no-wrap
9453 msgid "0x00005302\tCDROMRESUME\tvoid\n"
9454 msgstr ""
9455
9456 #. type: tbl table
9457 #: build/C/man2/ioctl_list.2:205
9458 #, no-wrap
9459 msgid "0x00005303\tCDROMPLAYMSF\tconst struct cdrom_msf *\n"
9460 msgstr ""
9461
9462 #. type: tbl table
9463 #: build/C/man2/ioctl_list.2:206
9464 #, no-wrap
9465 msgid "0x00005304\tCDROMPLAYTRKIND\tconst struct cdrom_ti *\n"
9466 msgstr ""
9467
9468 #. type: tbl table
9469 #: build/C/man2/ioctl_list.2:207
9470 #, no-wrap
9471 msgid "0x00005305\tCDROMREADTOCHDR\tstruct cdrom_tochdr *\n"
9472 msgstr ""
9473
9474 #. type: tbl table
9475 #: build/C/man2/ioctl_list.2:208
9476 #, no-wrap
9477 msgid "0x00005306\tCDROMREADTOCENTRY\tstruct cdrom_tocentry *\t// I-O\n"
9478 msgstr ""
9479
9480 #. type: tbl table
9481 #: build/C/man2/ioctl_list.2:209
9482 #, no-wrap
9483 msgid "0x00005307\tCDROMSTOP\tvoid\n"
9484 msgstr ""
9485
9486 #. type: tbl table
9487 #: build/C/man2/ioctl_list.2:210
9488 #, no-wrap
9489 msgid "0x00005308\tCDROMSTART\tvoid\n"
9490 msgstr ""
9491
9492 #. type: tbl table
9493 #: build/C/man2/ioctl_list.2:211
9494 #, no-wrap
9495 msgid "0x00005309\tCDROMEJECT\tvoid\n"
9496 msgstr ""
9497
9498 #. type: tbl table
9499 #: build/C/man2/ioctl_list.2:212
9500 #, no-wrap
9501 msgid "0x0000530A\tCDROMVOLCTRL\tconst struct cdrom_volctrl *\n"
9502 msgstr ""
9503
9504 #. type: tbl table
9505 #: build/C/man2/ioctl_list.2:213
9506 #, no-wrap
9507 msgid "0x0000530B\tCDROMSUBCHNL\tstruct cdrom_subchnl *\t// I-O\n"
9508 msgstr ""
9509
9510 #. type: tbl table
9511 #: build/C/man2/ioctl_list.2:214
9512 #, no-wrap
9513 msgid "0x0000530C\tCDROMREADMODE2\tconst struct cdrom_msf *\t// MORE\n"
9514 msgstr ""
9515
9516 #. type: tbl table
9517 #: build/C/man2/ioctl_list.2:215
9518 #, no-wrap
9519 msgid "0x0000530D\tCDROMREADMODE1\tconst struct cdrom_msf *\t// MORE\n"
9520 msgstr ""
9521
9522 #. type: tbl table
9523 #: build/C/man2/ioctl_list.2:216
9524 #, no-wrap
9525 msgid "0x0000530E\tCDROMREADAUDIO\tconst struct cdrom_read_audio *\t// MORE\n"
9526 msgstr ""
9527
9528 #. type: tbl table
9529 #: build/C/man2/ioctl_list.2:217
9530 #, no-wrap
9531 msgid "0x0000530F\tCDROMEJECT_SW\tint\n"
9532 msgstr ""
9533
9534 #. type: tbl table
9535 #: build/C/man2/ioctl_list.2:218
9536 #, no-wrap
9537 msgid "0x00005310\tCDROMMULTISESSION\tstruct cdrom_multisession *\t// I-O\n"
9538 msgstr ""
9539
9540 #. type: tbl table
9541 #: build/C/man2/ioctl_list.2:219
9542 #, no-wrap
9543 msgid "0x00005311\tCDROM_GET_UPC\tstruct { char [8]; } *\n"
9544 msgstr ""
9545
9546 #. type: tbl table
9547 #: build/C/man2/ioctl_list.2:220
9548 #, no-wrap
9549 msgid "0x00005312\tCDROMRESET\tvoid\n"
9550 msgstr ""
9551
9552 #. type: tbl table
9553 #: build/C/man2/ioctl_list.2:221
9554 #, no-wrap
9555 msgid "0x00005313\tCDROMVOLREAD\tstruct cdrom_volctrl *\n"
9556 msgstr ""
9557
9558 #. type: tbl table
9559 #: build/C/man2/ioctl_list.2:222
9560 #, no-wrap
9561 msgid "0x00005314\tCDROMREADRAW\tconst struct cdrom_msf *\t// MORE\n"
9562 msgstr ""
9563
9564 #. type: tbl table
9565 #: build/C/man2/ioctl_list.2:223
9566 #, no-wrap
9567 msgid "0x00005315\tCDROMREADCOOKED\tconst struct cdrom_msf *\t// MORE\n"
9568 msgstr ""
9569
9570 #. type: tbl table
9571 #: build/C/man2/ioctl_list.2:224
9572 #, no-wrap
9573 msgid "0x00005316\tCDROMSEEK\tconst struct cdrom_msf *\n"
9574 msgstr ""
9575
9576 #. type: Plain text
9577 #: build/C/man2/ioctl_list.2:228
9578 msgid "// E<lt>include/linux/cm206.hE<gt>"
9579 msgstr ""
9580
9581 #. type: tbl table
9582 #: build/C/man2/ioctl_list.2:230
9583 #, no-wrap
9584 msgid "0x00002000\tCM206CTL_GET_STAT\tint\n"
9585 msgstr ""
9586
9587 #. type: tbl table
9588 #: build/C/man2/ioctl_list.2:231
9589 #, no-wrap
9590 msgid "0x00002001\tCM206CTL_GET_LAST_STAT\tint\n"
9591 msgstr ""
9592
9593 #. type: Plain text
9594 #: build/C/man2/ioctl_list.2:235
9595 msgid "// E<lt>include/linux/cyclades.hE<gt>"
9596 msgstr ""
9597
9598 #. type: tbl table
9599 #: build/C/man2/ioctl_list.2:237
9600 #, no-wrap
9601 msgid "0x00435901\tCYGETMON\tstruct cyclades_monitor *\n"
9602 msgstr ""
9603
9604 #. type: tbl table
9605 #: build/C/man2/ioctl_list.2:238
9606 #, no-wrap
9607 msgid "0x00435902\tCYGETTHRESH\tint *\n"
9608 msgstr ""
9609
9610 #. type: tbl table
9611 #: build/C/man2/ioctl_list.2:239
9612 #, no-wrap
9613 msgid "0x00435903\tCYSETTHRESH\tint\n"
9614 msgstr ""
9615
9616 #. type: tbl table
9617 #: build/C/man2/ioctl_list.2:240
9618 #, no-wrap
9619 msgid "0x00435904\tCYGETDEFTHRESH\tint *\n"
9620 msgstr ""
9621
9622 #. type: tbl table
9623 #: build/C/man2/ioctl_list.2:241
9624 #, no-wrap
9625 msgid "0x00435905\tCYSETDEFTHRESH\tint\n"
9626 msgstr ""
9627
9628 #. type: tbl table
9629 #: build/C/man2/ioctl_list.2:242
9630 #, no-wrap
9631 msgid "0x00435906\tCYGETTIMEOUT\tint *\n"
9632 msgstr ""
9633
9634 #. type: tbl table
9635 #: build/C/man2/ioctl_list.2:243
9636 #, no-wrap
9637 msgid "0x00435907\tCYSETTIMEOUT\tint\n"
9638 msgstr ""
9639
9640 #. type: tbl table
9641 #: build/C/man2/ioctl_list.2:244
9642 #, no-wrap
9643 msgid "0x00435908\tCYGETDEFTIMEOUT\tint *\n"
9644 msgstr ""
9645
9646 #. type: tbl table
9647 #: build/C/man2/ioctl_list.2:245
9648 #, no-wrap
9649 msgid "0x00435909\tCYSETDEFTIMEOUT\tint\n"
9650 msgstr ""
9651
9652 #. type: Plain text
9653 #: build/C/man2/ioctl_list.2:249
9654 msgid "// E<lt>include/linux/ext2_fs.hE<gt>"
9655 msgstr ""
9656
9657 #. type: tbl table
9658 #: build/C/man2/ioctl_list.2:251
9659 #, no-wrap
9660 msgid "0x80046601\tEXT2_IOC_GETFLAGS\tint *\n"
9661 msgstr ""
9662
9663 #. type: tbl table
9664 #: build/C/man2/ioctl_list.2:252
9665 #, no-wrap
9666 msgid "0x40046602\tEXT2_IOC_SETFLAGS\tconst int *\n"
9667 msgstr ""
9668
9669 #. type: tbl table
9670 #: build/C/man2/ioctl_list.2:253
9671 #, no-wrap
9672 msgid "0x80047601\tEXT2_IOC_GETVERSION\tint *\n"
9673 msgstr ""
9674
9675 #. type: tbl table
9676 #: build/C/man2/ioctl_list.2:254
9677 #, no-wrap
9678 msgid "0x40047602\tEXT2_IOC_SETVERSION\tconst int *\n"
9679 msgstr ""
9680
9681 #. type: Plain text
9682 #: build/C/man2/ioctl_list.2:258
9683 msgid "// E<lt>include/linux/fd.hE<gt>"
9684 msgstr ""
9685
9686 #. type: tbl table
9687 #: build/C/man2/ioctl_list.2:260
9688 #, no-wrap
9689 msgid "0x00000000\tFDCLRPRM\tvoid\n"
9690 msgstr ""
9691
9692 #. type: tbl table
9693 #: build/C/man2/ioctl_list.2:261
9694 #, no-wrap
9695 msgid "0x00000001\tFDSETPRM\tconst struct floppy_struct *\n"
9696 msgstr ""
9697
9698 #. type: tbl table
9699 #: build/C/man2/ioctl_list.2:262
9700 #, no-wrap
9701 msgid "0x00000002\tFDDEFPRM\tconst struct floppy_struct *\n"
9702 msgstr ""
9703
9704 #. type: tbl table
9705 #: build/C/man2/ioctl_list.2:263
9706 #, no-wrap
9707 msgid "0x00000003\tFDGETPRM\tstruct floppy_struct *\n"
9708 msgstr ""
9709
9710 #. type: tbl table
9711 #: build/C/man2/ioctl_list.2:264
9712 #, no-wrap
9713 msgid "0x00000004\tFDMSGON\tvoid\n"
9714 msgstr ""
9715
9716 #. type: tbl table
9717 #: build/C/man2/ioctl_list.2:265
9718 #, no-wrap
9719 msgid "0x00000005\tFDMSGOFF\tvoid\n"
9720 msgstr ""
9721
9722 #. type: tbl table
9723 #: build/C/man2/ioctl_list.2:266
9724 #, no-wrap
9725 msgid "0x00000006\tFDFMTBEG\tvoid\n"
9726 msgstr ""
9727
9728 #. type: tbl table
9729 #: build/C/man2/ioctl_list.2:267
9730 #, no-wrap
9731 msgid "0x00000007\tFDFMTTRK\tconst struct format_descr *\n"
9732 msgstr ""
9733
9734 #. type: tbl table
9735 #: build/C/man2/ioctl_list.2:268
9736 #, no-wrap
9737 msgid "0x00000008\tFDFMTEND\tvoid\n"
9738 msgstr ""
9739
9740 #. type: tbl table
9741 #: build/C/man2/ioctl_list.2:269
9742 #, no-wrap
9743 msgid "0x0000000A\tFDSETEMSGTRESH\tint\n"
9744 msgstr ""
9745
9746 #. type: tbl table
9747 #: build/C/man2/ioctl_list.2:270
9748 #, no-wrap
9749 msgid "0x0000000B\tFDFLUSH\tvoid\n"
9750 msgstr ""
9751
9752 #. type: tbl table
9753 #: build/C/man2/ioctl_list.2:271
9754 #, no-wrap
9755 msgid "0x0000000C\tFDSETMAXERRS\tconst struct floppy_max_errors *\n"
9756 msgstr ""
9757
9758 #. type: tbl table
9759 #: build/C/man2/ioctl_list.2:272
9760 #, no-wrap
9761 msgid "0x0000000E\tFDGETMAXERRS\tstruct floppy_max_errors *\n"
9762 msgstr ""
9763
9764 #. type: tbl table
9765 #: build/C/man2/ioctl_list.2:273
9766 #, no-wrap
9767 msgid "0x00000010\tFDGETDRVTYP\tstruct { char [16]; } *\n"
9768 msgstr ""
9769
9770 #. type: tbl table
9771 #: build/C/man2/ioctl_list.2:274
9772 #, no-wrap
9773 msgid "0x00000014\tFDSETDRVPRM\tconst struct floppy_drive_params *\n"
9774 msgstr ""
9775
9776 #. type: tbl table
9777 #: build/C/man2/ioctl_list.2:275
9778 #, no-wrap
9779 msgid "0x00000015\tFDGETDRVPRM\tstruct floppy_drive_params *\n"
9780 msgstr ""
9781
9782 #. type: tbl table
9783 #: build/C/man2/ioctl_list.2:276
9784 #, no-wrap
9785 msgid "0x00000016\tFDGETDRVSTAT\tstruct floppy_drive_struct *\n"
9786 msgstr ""
9787
9788 #. type: tbl table
9789 #: build/C/man2/ioctl_list.2:277
9790 #, no-wrap
9791 msgid "0x00000017\tFDPOLLDRVSTAT\tstruct floppy_drive_struct *\n"
9792 msgstr ""
9793
9794 #. type: tbl table
9795 #: build/C/man2/ioctl_list.2:278
9796 #, no-wrap
9797 msgid "0x00000018\tFDRESET\tint\n"
9798 msgstr ""
9799
9800 #. type: tbl table
9801 #: build/C/man2/ioctl_list.2:279
9802 #, no-wrap
9803 msgid "0x00000019\tFDGETFDCSTAT\tstruct floppy_fdc_state *\n"
9804 msgstr ""
9805
9806 #. type: tbl table
9807 #: build/C/man2/ioctl_list.2:280
9808 #, no-wrap
9809 msgid "0x0000001B\tFDWERRORCLR\tvoid\n"
9810 msgstr ""
9811
9812 #. type: tbl table
9813 #: build/C/man2/ioctl_list.2:281
9814 #, no-wrap
9815 msgid "0x0000001C\tFDWERRORGET\tstruct floppy_write_errors *\n"
9816 msgstr ""
9817
9818 #. type: tbl table
9819 #: build/C/man2/ioctl_list.2:282
9820 #, no-wrap
9821 msgid "0x0000001E\tFDRAWCMD\tstruct floppy_raw_cmd *\t// MORE // I-O\n"
9822 msgstr ""
9823
9824 #. type: tbl table
9825 #: build/C/man2/ioctl_list.2:283
9826 #, no-wrap
9827 msgid "0x00000028\tFDTWADDLE\tvoid\n"
9828 msgstr ""
9829
9830 #. type: Plain text
9831 #: build/C/man2/ioctl_list.2:287
9832 msgid "// E<lt>include/linux/fs.hE<gt>"
9833 msgstr ""
9834
9835 #. type: tbl table
9836 #: build/C/man2/ioctl_list.2:289
9837 #, no-wrap
9838 msgid "0x0000125D\tBLKROSET\tconst int *\n"
9839 msgstr ""
9840
9841 #. type: tbl table
9842 #: build/C/man2/ioctl_list.2:290
9843 #, no-wrap
9844 msgid "0x0000125E\tBLKROGET\tint *\n"
9845 msgstr ""
9846
9847 #. type: tbl table
9848 #: build/C/man2/ioctl_list.2:291
9849 #, no-wrap
9850 msgid "0x0000125F\tBLKRRPART\tvoid\n"
9851 msgstr ""
9852
9853 #. type: tbl table
9854 #: build/C/man2/ioctl_list.2:292
9855 #, no-wrap
9856 msgid "0x00001260\tBLKGETSIZE\tunsigned long *\n"
9857 msgstr ""
9858
9859 #. type: tbl table
9860 #: build/C/man2/ioctl_list.2:293
9861 #, no-wrap
9862 msgid "0x00001261\tBLKFLSBUF\tvoid\n"
9863 msgstr ""
9864
9865 #. type: tbl table
9866 #: build/C/man2/ioctl_list.2:294
9867 #, no-wrap
9868 msgid "0x00001262\tBLKRASET\tint\n"
9869 msgstr ""
9870
9871 #. type: tbl table
9872 #: build/C/man2/ioctl_list.2:295
9873 #, no-wrap
9874 msgid "0x00001263\tBLKRAGET\tint *\n"
9875 msgstr ""
9876
9877 #. type: tbl table
9878 #: build/C/man2/ioctl_list.2:296
9879 #, no-wrap
9880 msgid "0x00000001\tFIBMAP\tint *\t// I-O\n"
9881 msgstr ""
9882
9883 #. type: tbl table
9884 #: build/C/man2/ioctl_list.2:297
9885 #, no-wrap
9886 msgid "0x00000002\tFIGETBSZ\tint *\n"
9887 msgstr ""
9888
9889 #. type: Plain text
9890 #: build/C/man2/ioctl_list.2:301
9891 msgid "// E<lt>include/linux/hdreg.hE<gt>"
9892 msgstr ""
9893
9894 #. type: tbl table
9895 #: build/C/man2/ioctl_list.2:303
9896 #, no-wrap
9897 msgid "0x00000301\tHDIO_GETGEO\tstruct hd_geometry *\n"
9898 msgstr ""
9899
9900 #. type: tbl table
9901 #: build/C/man2/ioctl_list.2:304
9902 #, no-wrap
9903 msgid "0x00000302\tHDIO_GET_UNMASKINTR\tint *\n"
9904 msgstr ""
9905
9906 #. type: tbl table
9907 #: build/C/man2/ioctl_list.2:305
9908 #, no-wrap
9909 msgid "0x00000304\tHDIO_GET_MULTCOUNT\tint *\n"
9910 msgstr ""
9911
9912 #. type: tbl table
9913 #: build/C/man2/ioctl_list.2:306
9914 #, no-wrap
9915 msgid "0x00000307\tHDIO_GET_IDENTITY\tstruct hd_driveid *\n"
9916 msgstr ""
9917
9918 #. type: tbl table
9919 #: build/C/man2/ioctl_list.2:307
9920 #, no-wrap
9921 msgid "0x00000308\tHDIO_GET_KEEPSETTINGS\tint *\n"
9922 msgstr ""
9923
9924 #. type: tbl table
9925 #: build/C/man2/ioctl_list.2:308
9926 #, no-wrap
9927 msgid "0x00000309\tHDIO_GET_CHIPSET\tint *\n"
9928 msgstr ""
9929
9930 #. type: tbl table
9931 #: build/C/man2/ioctl_list.2:309
9932 #, no-wrap
9933 msgid "0x0000030A\tHDIO_GET_NOWERR\tint *\n"
9934 msgstr ""
9935
9936 #. type: tbl table
9937 #: build/C/man2/ioctl_list.2:310
9938 #, no-wrap
9939 msgid "0x0000030B\tHDIO_GET_DMA\tint *\n"
9940 msgstr ""
9941
9942 #. type: tbl table
9943 #: build/C/man2/ioctl_list.2:311
9944 #, no-wrap
9945 msgid "0x0000031F\tHDIO_DRIVE_CMD\tint *\t// I-O\n"
9946 msgstr ""
9947
9948 #. type: tbl table
9949 #: build/C/man2/ioctl_list.2:312
9950 #, no-wrap
9951 msgid "0x00000321\tHDIO_SET_MULTCOUNT\tint\n"
9952 msgstr ""
9953
9954 #. type: tbl table
9955 #: build/C/man2/ioctl_list.2:313
9956 #, no-wrap
9957 msgid "0x00000322\tHDIO_SET_UNMASKINTR\tint\n"
9958 msgstr ""
9959
9960 #. type: tbl table
9961 #: build/C/man2/ioctl_list.2:314
9962 #, no-wrap
9963 msgid "0x00000323\tHDIO_SET_KEEPSETTINGS\tint\n"
9964 msgstr ""
9965
9966 #. type: tbl table
9967 #: build/C/man2/ioctl_list.2:315
9968 #, no-wrap
9969 msgid "0x00000324\tHDIO_SET_CHIPSET\tint\n"
9970 msgstr ""
9971
9972 #. type: tbl table
9973 #: build/C/man2/ioctl_list.2:316
9974 #, no-wrap
9975 msgid "0x00000325\tHDIO_SET_NOWERR\tint\n"
9976 msgstr ""
9977
9978 #. type: tbl table
9979 #: build/C/man2/ioctl_list.2:317
9980 #, no-wrap
9981 msgid "0x00000326\tHDIO_SET_DMA\tint\n"
9982 msgstr ""
9983
9984 #. type: Plain text
9985 #: build/C/man2/ioctl_list.2:321
9986 msgid "// E<lt>include/linux/if_eql.hE<gt>"
9987 msgstr ""
9988
9989 #. type: tbl table
9990 #: build/C/man2/ioctl_list.2:323
9991 #, no-wrap
9992 msgid "0x000089F0\tEQL_ENSLAVE\tstruct ifreq *\t// MORE // I-O\n"
9993 msgstr ""
9994
9995 #. type: tbl table
9996 #: build/C/man2/ioctl_list.2:324
9997 #, no-wrap
9998 msgid "0x000089F1\tEQL_EMANCIPATE\tstruct ifreq *\t// MORE // I-O\n"
9999 msgstr ""
10000
10001 #. type: tbl table
10002 #: build/C/man2/ioctl_list.2:325
10003 #, no-wrap
10004 msgid "0x000089F2\tEQL_GETSLAVECFG\tstruct ifreq *\t// MORE // I-O\n"
10005 msgstr ""
10006
10007 #. type: tbl table
10008 #: build/C/man2/ioctl_list.2:326
10009 #, no-wrap
10010 msgid "0x000089F3\tEQL_SETSLAVECFG\tstruct ifreq *\t// MORE // I-O\n"
10011 msgstr ""
10012
10013 #. type: tbl table
10014 #: build/C/man2/ioctl_list.2:327
10015 #, no-wrap
10016 msgid "0x000089F4\tEQL_GETMASTRCFG\tstruct ifreq *\t// MORE // I-O\n"
10017 msgstr ""
10018
10019 #. type: tbl table
10020 #: build/C/man2/ioctl_list.2:328
10021 #, no-wrap
10022 msgid "0x000089F5\tEQL_SETMASTRCFG\tstruct ifreq *\t// MORE // I-O\n"
10023 msgstr ""
10024
10025 #. type: Plain text
10026 #: build/C/man2/ioctl_list.2:332
10027 msgid "// E<lt>include/linux/if_plip.hE<gt>"
10028 msgstr ""
10029
10030 #. type: tbl table
10031 #: build/C/man2/ioctl_list.2:334
10032 #, no-wrap
10033 msgid "0x000089F0\tSIOCDEVPLIP\tstruct ifreq *\t// I-O\n"
10034 msgstr ""
10035
10036 #. type: Plain text
10037 #: build/C/man2/ioctl_list.2:338
10038 msgid "// E<lt>include/linux/if_ppp.hE<gt>"
10039 msgstr ""
10040
10041 #. type: tbl table
10042 #: build/C/man2/ioctl_list.2:340
10043 #, no-wrap
10044 msgid "0x00005490\tPPPIOCGFLAGS\tint *\n"
10045 msgstr ""
10046
10047 #. type: tbl table
10048 #: build/C/man2/ioctl_list.2:341
10049 #, no-wrap
10050 msgid "0x00005491\tPPPIOCSFLAGS\tconst int *\n"
10051 msgstr ""
10052
10053 #. type: tbl table
10054 #: build/C/man2/ioctl_list.2:342
10055 #, no-wrap
10056 msgid "0x00005492\tPPPIOCGASYNCMAP\tint *\n"
10057 msgstr ""
10058
10059 #. type: tbl table
10060 #: build/C/man2/ioctl_list.2:343
10061 #, no-wrap
10062 msgid "0x00005493\tPPPIOCSASYNCMAP\tconst int *\n"
10063 msgstr ""
10064
10065 #. type: tbl table
10066 #: build/C/man2/ioctl_list.2:344
10067 #, no-wrap
10068 msgid "0x00005494\tPPPIOCGUNIT\tint *\n"
10069 msgstr ""
10070
10071 #. type: tbl table
10072 #: build/C/man2/ioctl_list.2:345
10073 #, no-wrap
10074 msgid "0x00005495\tPPPIOCSINPSIG\tconst int *\n"
10075 msgstr ""
10076
10077 #. type: tbl table
10078 #: build/C/man2/ioctl_list.2:346
10079 #, no-wrap
10080 msgid "0x00005497\tPPPIOCSDEBUG\tconst int *\n"
10081 msgstr ""
10082
10083 #. type: tbl table
10084 #: build/C/man2/ioctl_list.2:347
10085 #, no-wrap
10086 msgid "0x00005498\tPPPIOCGDEBUG\tint *\n"
10087 msgstr ""
10088
10089 #. type: tbl table
10090 #: build/C/man2/ioctl_list.2:348
10091 #, no-wrap
10092 msgid "0x00005499\tPPPIOCGSTAT\tstruct ppp_stats *\n"
10093 msgstr ""
10094
10095 #. type: tbl table
10096 #: build/C/man2/ioctl_list.2:349
10097 #, no-wrap
10098 msgid "0x0000549A\tPPPIOCGTIME\tstruct ppp_ddinfo *\n"
10099 msgstr ""
10100
10101 #. type: tbl table
10102 #: build/C/man2/ioctl_list.2:350
10103 #, no-wrap
10104 msgid "0x0000549B\tPPPIOCGXASYNCMAP\tstruct { int [8]; } *\n"
10105 msgstr ""
10106
10107 #. type: tbl table
10108 #: build/C/man2/ioctl_list.2:351
10109 #, no-wrap
10110 msgid "0x0000549C\tPPPIOCSXASYNCMAP\tconst struct { int [8]; } *\n"
10111 msgstr ""
10112
10113 #. type: tbl table
10114 #: build/C/man2/ioctl_list.2:352
10115 #, no-wrap
10116 msgid "0x0000549D\tPPPIOCSMRU\tconst int *\n"
10117 msgstr ""
10118
10119 #. type: tbl table
10120 #: build/C/man2/ioctl_list.2:353
10121 #, no-wrap
10122 msgid "0x0000549E\tPPPIOCRASYNCMAP\tconst int *\n"
10123 msgstr ""
10124
10125 #. type: tbl table
10126 #: build/C/man2/ioctl_list.2:354
10127 #, no-wrap
10128 msgid "0x0000549F\tPPPIOCSMAXCID\tconst int *\n"
10129 msgstr ""
10130
10131 #. type: Plain text
10132 #: build/C/man2/ioctl_list.2:358
10133 msgid "// E<lt>include/linux/ipx.hE<gt>"
10134 msgstr ""
10135
10136 #. type: tbl table
10137 #: build/C/man2/ioctl_list.2:360
10138 #, no-wrap
10139 msgid "0x000089E0\tSIOCAIPXITFCRT\tconst char *\n"
10140 msgstr ""
10141
10142 #. type: tbl table
10143 #: build/C/man2/ioctl_list.2:361
10144 #, no-wrap
10145 msgid "0x000089E1\tSIOCAIPXPRISLT\tconst char *\n"
10146 msgstr ""
10147
10148 #. type: tbl table
10149 #: build/C/man2/ioctl_list.2:362
10150 #, no-wrap
10151 msgid "0x000089E2\tSIOCIPXCFGDATA\tstruct ipx_config_data *\n"
10152 msgstr ""
10153
10154 #. type: Plain text
10155 #: build/C/man2/ioctl_list.2:366
10156 msgid "// E<lt>include/linux/kd.hE<gt>"
10157 msgstr ""
10158
10159 #. type: tbl table
10160 #: build/C/man2/ioctl_list.2:368
10161 #, no-wrap
10162 msgid "0x00004B60\tGIO_FONT\tstruct { char [8192]; } *\n"
10163 msgstr ""
10164
10165 #. type: tbl table
10166 #: build/C/man2/ioctl_list.2:369
10167 #, no-wrap
10168 msgid "0x00004B61\tPIO_FONT\tconst struct { char [8192]; } *\n"
10169 msgstr ""
10170
10171 #. type: tbl table
10172 #: build/C/man2/ioctl_list.2:370
10173 #, no-wrap
10174 msgid "0x00004B6B\tGIO_FONTX\tstruct console_font_desc *\t// MORE // I-O\n"
10175 msgstr ""
10176
10177 #. type: tbl table
10178 #: build/C/man2/ioctl_list.2:371
10179 #, no-wrap
10180 msgid "0x00004B6C\tPIO_FONTX\tconst struct console_font_desc *\t//MORE\n"
10181 msgstr ""
10182
10183 #. type: tbl table
10184 #: build/C/man2/ioctl_list.2:372
10185 #, no-wrap
10186 msgid "0x00004B70\tGIO_CMAP\tstruct { char [48]; } *\n"
10187 msgstr ""
10188
10189 #. type: tbl table
10190 #: build/C/man2/ioctl_list.2:373
10191 #, no-wrap
10192 msgid "0x00004B71\tPIO_CMAP\tconst struct { char [48]; }\n"
10193 msgstr ""
10194
10195 #. type: tbl table
10196 #: build/C/man2/ioctl_list.2:374
10197 #, no-wrap
10198 msgid "0x00004B2F\tKIOCSOUND\tint\n"
10199 msgstr ""
10200
10201 #. type: tbl table
10202 #: build/C/man2/ioctl_list.2:375
10203 #, no-wrap
10204 msgid "0x00004B30\tKDMKTONE\tint\n"
10205 msgstr ""
10206
10207 #. type: tbl table
10208 #: build/C/man2/ioctl_list.2:376
10209 #, no-wrap
10210 msgid "0x00004B31\tKDGETLED\tchar *\n"
10211 msgstr ""
10212
10213 #. type: tbl table
10214 #: build/C/man2/ioctl_list.2:377
10215 #, no-wrap
10216 msgid "0x00004B32\tKDSETLED\tint\n"
10217 msgstr ""
10218
10219 #. type: tbl table
10220 #: build/C/man2/ioctl_list.2:378
10221 #, no-wrap
10222 msgid "0x00004B33\tKDGKBTYPE\tchar *\n"
10223 msgstr ""
10224
10225 #. type: tbl table
10226 #: build/C/man2/ioctl_list.2:379
10227 #, no-wrap
10228 msgid "0x00004B34\tKDADDIO\tint\t// MORE\n"
10229 msgstr ""
10230
10231 #. type: tbl table
10232 #: build/C/man2/ioctl_list.2:380
10233 #, no-wrap
10234 msgid "0x00004B35\tKDDELIO\tint\t// MORE\n"
10235 msgstr ""
10236
10237 #. type: tbl table
10238 #: build/C/man2/ioctl_list.2:381
10239 #, no-wrap
10240 msgid "0x00004B36\tKDENABIO\tvoid\t// MORE\n"
10241 msgstr ""
10242
10243 #. type: tbl table
10244 #: build/C/man2/ioctl_list.2:382
10245 #, no-wrap
10246 msgid "0x00004B37\tKDDISABIO\tvoid\t// MORE\n"
10247 msgstr ""
10248
10249 #. type: tbl table
10250 #: build/C/man2/ioctl_list.2:383
10251 #, no-wrap
10252 msgid "0x00004B3A\tKDSETMODE\tint\n"
10253 msgstr ""
10254
10255 #. type: tbl table
10256 #: build/C/man2/ioctl_list.2:384
10257 #, no-wrap
10258 msgid "0x00004B3B\tKDGETMODE\tint *\n"
10259 msgstr ""
10260
10261 #. type: tbl table
10262 #: build/C/man2/ioctl_list.2:385
10263 #, no-wrap
10264 msgid "0x00004B3C\tKDMAPDISP\tvoid\t// MORE\n"
10265 msgstr ""
10266
10267 #. type: tbl table
10268 #: build/C/man2/ioctl_list.2:386
10269 #, no-wrap
10270 msgid "0x00004B3D\tKDUNMAPDISP\tvoid\t// MORE\n"
10271 msgstr ""
10272
10273 #. type: tbl table
10274 #: build/C/man2/ioctl_list.2:387
10275 #, no-wrap
10276 msgid "0x00004B40\tGIO_SCRNMAP\tstruct { char [E_TABSZ]; } *\n"
10277 msgstr ""
10278
10279 #. type: tbl table
10280 #: build/C/man2/ioctl_list.2:388
10281 #, no-wrap
10282 msgid "0x00004B41\tPIO_SCRNMAP\tconst struct { char [E_TABSZ]; } *\n"
10283 msgstr ""
10284
10285 #. type: tbl table
10286 #: build/C/man2/ioctl_list.2:389
10287 #, no-wrap
10288 msgid "0x00004B69\tGIO_UNISCRNMAP\tstruct { short [E_TABSZ]; } *\n"
10289 msgstr ""
10290
10291 #. type: tbl table
10292 #: build/C/man2/ioctl_list.2:390
10293 #, no-wrap
10294 msgid "0x00004B6A\tPIO_UNISCRNMAP\tconst struct { short [E_TABSZ]; } *\n"
10295 msgstr ""
10296
10297 #. type: tbl table
10298 #: build/C/man2/ioctl_list.2:391
10299 #, no-wrap
10300 msgid "0x00004B66\tGIO_UNIMAP\tstruct unimapdesc *\t// MORE // I-O\n"
10301 msgstr ""
10302
10303 #. type: tbl table
10304 #: build/C/man2/ioctl_list.2:392
10305 #, no-wrap
10306 msgid "0x00004B67\tPIO_UNIMAP\tconst struct unimapdesc *\t// MORE\n"
10307 msgstr ""
10308
10309 #. type: tbl table
10310 #: build/C/man2/ioctl_list.2:393
10311 #, no-wrap
10312 msgid "0x00004B68\tPIO_UNIMAPCLR\tconst struct unimapinit *\n"
10313 msgstr ""
10314
10315 #. type: tbl table
10316 #: build/C/man2/ioctl_list.2:394
10317 #, no-wrap
10318 msgid "0x00004B44\tKDGKBMODE\tint *\n"
10319 msgstr ""
10320
10321 #. type: tbl table
10322 #: build/C/man2/ioctl_list.2:395
10323 #, no-wrap
10324 msgid "0x00004B45\tKDSKBMODE\tint\n"
10325 msgstr ""
10326
10327 #. type: tbl table
10328 #: build/C/man2/ioctl_list.2:396
10329 #, no-wrap
10330 msgid "0x00004B62\tKDGKBMETA\tint *\n"
10331 msgstr ""
10332
10333 #. type: tbl table
10334 #: build/C/man2/ioctl_list.2:397
10335 #, no-wrap
10336 msgid "0x00004B63\tKDSKBMETA\tint\n"
10337 msgstr ""
10338
10339 #. type: tbl table
10340 #: build/C/man2/ioctl_list.2:398
10341 #, no-wrap
10342 msgid "0x00004B64\tKDGKBLED\tint *\n"
10343 msgstr ""
10344
10345 #. type: tbl table
10346 #: build/C/man2/ioctl_list.2:399
10347 #, no-wrap
10348 msgid "0x00004B65\tKDSKBLED\tint\n"
10349 msgstr ""
10350
10351 #. type: tbl table
10352 #: build/C/man2/ioctl_list.2:400
10353 #, no-wrap
10354 msgid "0x00004B46\tKDGKBENT\tstruct kbentry *\t// I-O\n"
10355 msgstr ""
10356
10357 #. type: tbl table
10358 #: build/C/man2/ioctl_list.2:401
10359 #, no-wrap
10360 msgid "0x00004B47\tKDSKBENT\tconst struct kbentry *\n"
10361 msgstr ""
10362
10363 #. type: tbl table
10364 #: build/C/man2/ioctl_list.2:402
10365 #, no-wrap
10366 msgid "0x00004B48\tKDGKBSENT\tstruct kbsentry *\t// I-O\n"
10367 msgstr ""
10368
10369 #. type: tbl table
10370 #: build/C/man2/ioctl_list.2:403
10371 #, no-wrap
10372 msgid "0x00004B49\tKDSKBSENT\tconst struct kbsentry *\n"
10373 msgstr ""
10374
10375 #. type: tbl table
10376 #: build/C/man2/ioctl_list.2:404
10377 #, no-wrap
10378 msgid "0x00004B4A\tKDGKBDIACR\tstruct kbdiacrs *\n"
10379 msgstr ""
10380
10381 #. type: tbl table
10382 #: build/C/man2/ioctl_list.2:405
10383 #, no-wrap
10384 msgid "0x00004B4B\tKDSKBDIACR\tconst struct kbdiacrs *\n"
10385 msgstr ""
10386
10387 #. type: tbl table
10388 #: build/C/man2/ioctl_list.2:406
10389 #, no-wrap
10390 msgid "0x00004B4C\tKDGETKEYCODE\tstruct kbkeycode *\t// I-O\n"
10391 msgstr ""
10392
10393 #. type: tbl table
10394 #: build/C/man2/ioctl_list.2:407
10395 #, no-wrap
10396 msgid "0x00004B4D\tKDSETKEYCODE\tconst struct kbkeycode *\n"
10397 msgstr ""
10398
10399 #. type: tbl table
10400 #: build/C/man2/ioctl_list.2:408
10401 #, no-wrap
10402 msgid "0x00004B4E\tKDSIGACCEPT\tint\n"
10403 msgstr ""
10404
10405 #. type: Plain text
10406 #: build/C/man2/ioctl_list.2:412
10407 msgid "// E<lt>include/linux/lp.hE<gt>"
10408 msgstr ""
10409
10410 #. type: tbl table
10411 #: build/C/man2/ioctl_list.2:414
10412 #, no-wrap
10413 msgid "0x00000601\tLPCHAR\tint\n"
10414 msgstr ""
10415
10416 #. type: tbl table
10417 #: build/C/man2/ioctl_list.2:415
10418 #, no-wrap
10419 msgid "0x00000602\tLPTIME\tint\n"
10420 msgstr ""
10421
10422 #. type: tbl table
10423 #: build/C/man2/ioctl_list.2:416
10424 #, no-wrap
10425 msgid "0x00000604\tLPABORT\tint\n"
10426 msgstr ""
10427
10428 #. type: tbl table
10429 #: build/C/man2/ioctl_list.2:417
10430 #, no-wrap
10431 msgid "0x00000605\tLPSETIRQ\tint\n"
10432 msgstr ""
10433
10434 #. type: tbl table
10435 #: build/C/man2/ioctl_list.2:418
10436 #, no-wrap
10437 msgid "0x00000606\tLPGETIRQ\tint *\n"
10438 msgstr ""
10439
10440 #. type: tbl table
10441 #: build/C/man2/ioctl_list.2:419
10442 #, no-wrap
10443 msgid "0x00000608\tLPWAIT\tint\n"
10444 msgstr ""
10445
10446 #. type: tbl table
10447 #: build/C/man2/ioctl_list.2:420
10448 #, no-wrap
10449 msgid "0x00000609\tLPCAREFUL\tint\n"
10450 msgstr ""
10451
10452 #. type: tbl table
10453 #: build/C/man2/ioctl_list.2:421
10454 #, no-wrap
10455 msgid "0x0000060A\tLPABORTOPEN\tint\n"
10456 msgstr ""
10457
10458 #. type: tbl table
10459 #: build/C/man2/ioctl_list.2:422
10460 #, no-wrap
10461 msgid "0x0000060B\tLPGETSTATUS\tint *\n"
10462 msgstr ""
10463
10464 #. type: tbl table
10465 #: build/C/man2/ioctl_list.2:423
10466 #, no-wrap
10467 msgid "0x0000060C\tLPRESET\tvoid\n"
10468 msgstr ""
10469
10470 #. type: tbl table
10471 #: build/C/man2/ioctl_list.2:424
10472 #, no-wrap
10473 msgid "0x0000060D\tLPGETSTATS\tstruct lp_stats *\n"
10474 msgstr ""
10475
10476 #. type: Plain text
10477 #: build/C/man2/ioctl_list.2:428
10478 msgid "// E<lt>include/linux/mroute.hE<gt>"
10479 msgstr ""
10480
10481 #. type: tbl table
10482 #: build/C/man2/ioctl_list.2:430
10483 #, no-wrap
10484 msgid "0x000089E0\tSIOCGETVIFCNT\tstruct sioc_vif_req *\t// I-O\n"
10485 msgstr ""
10486
10487 #. type: tbl table
10488 #: build/C/man2/ioctl_list.2:431
10489 #, no-wrap
10490 msgid "0x000089E1\tSIOCGETSGCNT\tstruct sioc_sg_req *\t// I-O\n"
10491 msgstr ""
10492
10493 #. type: Plain text
10494 #: build/C/man2/ioctl_list.2:435
10495 msgid "// E<lt>include/linux/mtio.hE<gt>"
10496 msgstr ""
10497
10498 #. type: tbl table
10499 #: build/C/man2/ioctl_list.2:437
10500 #, no-wrap
10501 msgid "0x40086D01\tMTIOCTOP\tconst struct mtop *\n"
10502 msgstr ""
10503
10504 #. type: tbl table
10505 #: build/C/man2/ioctl_list.2:438
10506 #, no-wrap
10507 msgid "0x801C6D02\tMTIOCGET\tstruct mtget *\n"
10508 msgstr ""
10509
10510 #. type: tbl table
10511 #: build/C/man2/ioctl_list.2:439
10512 #, no-wrap
10513 msgid "0x80046D03\tMTIOCPOS\tstruct mtpos *\n"
10514 msgstr ""
10515
10516 #. type: tbl table
10517 #: build/C/man2/ioctl_list.2:440
10518 #, no-wrap
10519 msgid "0x80206D04\tMTIOCGETCONFIG\tstruct mtconfiginfo *\n"
10520 msgstr ""
10521
10522 #. type: tbl table
10523 #: build/C/man2/ioctl_list.2:441
10524 #, no-wrap
10525 msgid "0x40206D05\tMTIOCSETCONFIG\tconst struct mtconfiginfo *\n"
10526 msgstr ""
10527
10528 #. type: Plain text
10529 #: build/C/man2/ioctl_list.2:445
10530 msgid "// E<lt>include/linux/netrom.hE<gt>"
10531 msgstr ""
10532
10533 #. type: tbl table
10534 #: build/C/man2/ioctl_list.2:447
10535 #, no-wrap
10536 msgid "0x000089E0\tSIOCNRGETPARMS\tstruct nr_parms_struct *\t// I-O\n"
10537 msgstr ""
10538
10539 #. type: tbl table
10540 #: build/C/man2/ioctl_list.2:448
10541 #, no-wrap
10542 msgid "0x000089E1\tSIOCNRSETPARMS\tconst struct nr_parms_struct *\n"
10543 msgstr ""
10544
10545 #. type: tbl table
10546 #: build/C/man2/ioctl_list.2:449
10547 #, no-wrap
10548 msgid "0x000089E2\tSIOCNRDECOBS\tvoid\n"
10549 msgstr ""
10550
10551 #. type: tbl table
10552 #: build/C/man2/ioctl_list.2:450
10553 #, no-wrap
10554 msgid "0x000089E3\tSIOCNRRTCTL\tconst int *\n"
10555 msgstr ""
10556
10557 #. type: Plain text
10558 #: build/C/man2/ioctl_list.2:454
10559 msgid "// E<lt>include/linux/sbpcd.hE<gt>"
10560 msgstr ""
10561
10562 #. type: tbl table
10563 #: build/C/man2/ioctl_list.2:456
10564 #, no-wrap
10565 msgid "0x00009000\tDDIOCSDBG\tconst int *\n"
10566 msgstr ""
10567
10568 #. type: tbl table
10569 #: build/C/man2/ioctl_list.2:457
10570 #, no-wrap
10571 msgid "0x00005382\tCDROMAUDIOBUFSIZ\tint\n"
10572 msgstr ""
10573
10574 #. type: Plain text
10575 #: build/C/man2/ioctl_list.2:461
10576 msgid "// E<lt>include/linux/scc.hE<gt>"
10577 msgstr ""
10578
10579 #. type: tbl table
10580 #: build/C/man2/ioctl_list.2:463
10581 #, no-wrap
10582 msgid "0x00005470\tTIOCSCCINI\tvoid\n"
10583 msgstr ""
10584
10585 #. type: tbl table
10586 #: build/C/man2/ioctl_list.2:464
10587 #, no-wrap
10588 msgid "0x00005471\tTIOCCHANINI\tconst struct scc_modem *\n"
10589 msgstr ""
10590
10591 #. type: tbl table
10592 #: build/C/man2/ioctl_list.2:465
10593 #, no-wrap
10594 msgid "0x00005472\tTIOCGKISS\tstruct ioctl_command *\t// I-O\n"
10595 msgstr ""
10596
10597 #. type: tbl table
10598 #: build/C/man2/ioctl_list.2:466
10599 #, no-wrap
10600 msgid "0x00005473\tTIOCSKISS\tconst struct ioctl_command *\n"
10601 msgstr ""
10602
10603 #. type: tbl table
10604 #: build/C/man2/ioctl_list.2:467
10605 #, no-wrap
10606 msgid "0x00005474\tTIOCSCCSTAT\tstruct scc_stat *\n"
10607 msgstr ""
10608
10609 #. type: Plain text
10610 #: build/C/man2/ioctl_list.2:471
10611 msgid "// E<lt>include/linux/scsi.hE<gt>"
10612 msgstr ""
10613
10614 #. type: tbl table
10615 #: build/C/man2/ioctl_list.2:473
10616 #, no-wrap
10617 msgid "0x00005382\tSCSI_IOCTL_GET_IDLUN\tstruct { int [2]; } *\n"
10618 msgstr ""
10619
10620 #. type: tbl table
10621 #: build/C/man2/ioctl_list.2:474
10622 #, no-wrap
10623 msgid "0x00005383\tSCSI_IOCTL_TAGGED_ENABLE\tvoid\n"
10624 msgstr ""
10625
10626 #. type: tbl table
10627 #: build/C/man2/ioctl_list.2:475
10628 #, no-wrap
10629 msgid "0x00005384\tSCSI_IOCTL_TAGGED_DISABLE\tvoid\n"
10630 msgstr ""
10631
10632 #. type: tbl table
10633 #: build/C/man2/ioctl_list.2:476
10634 #, no-wrap
10635 msgid "0x00005385\tSCSI_IOCTL_PROBE_HOST\tconst int *\t// MORE\n"
10636 msgstr ""
10637
10638 #. type: Plain text
10639 #: build/C/man2/ioctl_list.2:480
10640 msgid "// E<lt>include/linux/smb_fs.hE<gt>"
10641 msgstr ""
10642
10643 #. type: tbl table
10644 #: build/C/man2/ioctl_list.2:482
10645 #, no-wrap
10646 msgid "0x80027501\tSMB_IOC_GETMOUNTUID\tuid_t *\n"
10647 msgstr ""
10648
10649 #. type: Plain text
10650 #: build/C/man2/ioctl_list.2:486
10651 msgid "// E<lt>include/linux/sockios.hE<gt>"
10652 msgstr ""
10653
10654 #. type: tbl table
10655 #: build/C/man2/ioctl_list.2:488
10656 #, no-wrap
10657 msgid "0x0000890B\tSIOCADDRT\tconst struct rtentry *\t// MORE\n"
10658 msgstr ""
10659
10660 #. type: tbl table
10661 #: build/C/man2/ioctl_list.2:489
10662 #, no-wrap
10663 msgid "0x0000890C\tSIOCDELRT\tconst struct rtentry *\t// MORE\n"
10664 msgstr ""
10665
10666 #. type: tbl table
10667 #: build/C/man2/ioctl_list.2:490
10668 #, no-wrap
10669 msgid "0x00008910\tSIOCGIFNAME\tchar []\n"
10670 msgstr ""
10671
10672 #. type: tbl table
10673 #: build/C/man2/ioctl_list.2:491
10674 #, no-wrap
10675 msgid "0x00008911\tSIOCSIFLINK\tvoid\n"
10676 msgstr ""
10677
10678 #. type: tbl table
10679 #: build/C/man2/ioctl_list.2:492
10680 #, no-wrap
10681 msgid "0x00008912\tSIOCGIFCONF\tstruct ifconf *\t// MORE // I-O\n"
10682 msgstr ""
10683
10684 #. type: tbl table
10685 #: build/C/man2/ioctl_list.2:493
10686 #, no-wrap
10687 msgid "0x00008913\tSIOCGIFFLAGS\tstruct ifreq *\t// I-O\n"
10688 msgstr ""
10689
10690 #. type: tbl table
10691 #: build/C/man2/ioctl_list.2:494
10692 #, no-wrap
10693 msgid "0x00008914\tSIOCSIFFLAGS\tconst struct ifreq *\n"
10694 msgstr ""
10695
10696 #. type: tbl table
10697 #: build/C/man2/ioctl_list.2:495
10698 #, no-wrap
10699 msgid "0x00008915\tSIOCGIFADDR\tstruct ifreq *\t// I-O\n"
10700 msgstr ""
10701
10702 #. type: tbl table
10703 #: build/C/man2/ioctl_list.2:496
10704 #, no-wrap
10705 msgid "0x00008916\tSIOCSIFADDR\tconst struct ifreq *\n"
10706 msgstr ""
10707
10708 #. type: tbl table
10709 #: build/C/man2/ioctl_list.2:497
10710 #, no-wrap
10711 msgid "0x00008917\tSIOCGIFDSTADDR\tstruct ifreq *\t// I-O\n"
10712 msgstr ""
10713
10714 #. type: tbl table
10715 #: build/C/man2/ioctl_list.2:498
10716 #, no-wrap
10717 msgid "0x00008918\tSIOCSIFDSTADDR\tconst struct ifreq *\n"
10718 msgstr ""
10719
10720 #. type: tbl table
10721 #: build/C/man2/ioctl_list.2:499
10722 #, no-wrap
10723 msgid "0x00008919\tSIOCGIFBRDADDR\tstruct ifreq *\t// I-O\n"
10724 msgstr ""
10725
10726 #. type: tbl table
10727 #: build/C/man2/ioctl_list.2:500
10728 #, no-wrap
10729 msgid "0x0000891A\tSIOCSIFBRDADDR\tconst struct ifreq *\n"
10730 msgstr ""
10731
10732 #. type: tbl table
10733 #: build/C/man2/ioctl_list.2:501
10734 #, no-wrap
10735 msgid "0x0000891B\tSIOCGIFNETMASK\tstruct ifreq *\t// I-O\n"
10736 msgstr ""
10737
10738 #. type: tbl table
10739 #: build/C/man2/ioctl_list.2:502
10740 #, no-wrap
10741 msgid "0x0000891C\tSIOCSIFNETMASK\tconst struct ifreq *\n"
10742 msgstr ""
10743
10744 #. type: tbl table
10745 #: build/C/man2/ioctl_list.2:503
10746 #, no-wrap
10747 msgid "0x0000891D\tSIOCGIFMETRIC\tstruct ifreq *\t// I-O\n"
10748 msgstr ""
10749
10750 #. type: tbl table
10751 #: build/C/man2/ioctl_list.2:504
10752 #, no-wrap
10753 msgid "0x0000891E\tSIOCSIFMETRIC\tconst struct ifreq *\n"
10754 msgstr ""
10755
10756 #. type: tbl table
10757 #: build/C/man2/ioctl_list.2:505
10758 #, no-wrap
10759 msgid "0x0000891F\tSIOCGIFMEM\tstruct ifreq *\t// I-O\n"
10760 msgstr ""
10761
10762 #. type: tbl table
10763 #: build/C/man2/ioctl_list.2:506
10764 #, no-wrap
10765 msgid "0x00008920\tSIOCSIFMEM\tconst struct ifreq *\n"
10766 msgstr ""
10767
10768 #. type: tbl table
10769 #: build/C/man2/ioctl_list.2:507
10770 #, no-wrap
10771 msgid "0x00008921\tSIOCGIFMTU\tstruct ifreq *\t// I-O\n"
10772 msgstr ""
10773
10774 #. type: tbl table
10775 #: build/C/man2/ioctl_list.2:508
10776 #, no-wrap
10777 msgid "0x00008922\tSIOCSIFMTU\tconst struct ifreq *\n"
10778 msgstr ""
10779
10780 #. type: tbl table
10781 #: build/C/man2/ioctl_list.2:509
10782 #, no-wrap
10783 msgid "0x00008923\tOLD_SIOCGIFHWADDR\tstruct ifreq *\t// I-O\n"
10784 msgstr ""
10785
10786 #. type: tbl table
10787 #: build/C/man2/ioctl_list.2:510
10788 #, no-wrap
10789 msgid "0x00008924\tSIOCSIFHWADDR\tconst struct ifreq *\t// MORE\n"
10790 msgstr ""
10791
10792 #. type: tbl table
10793 #: build/C/man2/ioctl_list.2:511
10794 #, no-wrap
10795 msgid "0x00008925\tSIOCGIFENCAP\tint *\n"
10796 msgstr ""
10797
10798 #. type: tbl table
10799 #: build/C/man2/ioctl_list.2:512
10800 #, no-wrap
10801 msgid "0x00008926\tSIOCSIFENCAP\tconst int *\n"
10802 msgstr ""
10803
10804 #. type: tbl table
10805 #: build/C/man2/ioctl_list.2:513
10806 #, no-wrap
10807 msgid "0x00008927\tSIOCGIFHWADDR\tstruct ifreq *\t// I-O\n"
10808 msgstr ""
10809
10810 #. type: tbl table
10811 #: build/C/man2/ioctl_list.2:514
10812 #, no-wrap
10813 msgid "0x00008929\tSIOCGIFSLAVE\tvoid\n"
10814 msgstr ""
10815
10816 #. type: tbl table
10817 #: build/C/man2/ioctl_list.2:515
10818 #, no-wrap
10819 msgid "0x00008930\tSIOCSIFSLAVE\tvoid\n"
10820 msgstr ""
10821
10822 #. type: tbl table
10823 #: build/C/man2/ioctl_list.2:516
10824 #, no-wrap
10825 msgid "0x00008931\tSIOCADDMULTI\tconst struct ifreq *\n"
10826 msgstr ""
10827
10828 #. type: tbl table
10829 #: build/C/man2/ioctl_list.2:517
10830 #, no-wrap
10831 msgid "0x00008932\tSIOCDELMULTI\tconst struct ifreq *\n"
10832 msgstr ""
10833
10834 #. type: tbl table
10835 #: build/C/man2/ioctl_list.2:518
10836 #, no-wrap
10837 msgid "0x00008940\tSIOCADDRTOLD\tvoid\n"
10838 msgstr ""
10839
10840 #. type: tbl table
10841 #: build/C/man2/ioctl_list.2:519
10842 #, no-wrap
10843 msgid "0x00008941\tSIOCDELRTOLD\tvoid\n"
10844 msgstr ""
10845
10846 #. type: tbl table
10847 #: build/C/man2/ioctl_list.2:520
10848 #, no-wrap
10849 msgid "0x00008950\tSIOCDARP\tconst struct arpreq *\n"
10850 msgstr ""
10851
10852 #. type: tbl table
10853 #: build/C/man2/ioctl_list.2:521
10854 #, no-wrap
10855 msgid "0x00008951\tSIOCGARP\tstruct arpreq *\t// I-O\n"
10856 msgstr ""
10857
10858 #. type: tbl table
10859 #: build/C/man2/ioctl_list.2:522
10860 #, no-wrap
10861 msgid "0x00008952\tSIOCSARP\tconst struct arpreq *\n"
10862 msgstr ""
10863
10864 #. type: tbl table
10865 #: build/C/man2/ioctl_list.2:523
10866 #, no-wrap
10867 msgid "0x00008960\tSIOCDRARP\tconst struct arpreq *\n"
10868 msgstr ""
10869
10870 #. type: tbl table
10871 #: build/C/man2/ioctl_list.2:524
10872 #, no-wrap
10873 msgid "0x00008961\tSIOCGRARP\tstruct arpreq *\t// I-O\n"
10874 msgstr ""
10875
10876 #. type: tbl table
10877 #: build/C/man2/ioctl_list.2:525
10878 #, no-wrap
10879 msgid "0x00008962\tSIOCSRARP\tconst struct arpreq *\n"
10880 msgstr ""
10881
10882 #. type: tbl table
10883 #: build/C/man2/ioctl_list.2:526
10884 #, no-wrap
10885 msgid "0x00008970\tSIOCGIFMAP\tstruct ifreq *\t// I-O\n"
10886 msgstr ""
10887
10888 #. type: tbl table
10889 #: build/C/man2/ioctl_list.2:527
10890 #, no-wrap
10891 msgid "0x00008971\tSIOCSIFMAP\tconst struct ifreq *\n"
10892 msgstr ""
10893
10894 #. type: Plain text
10895 #: build/C/man2/ioctl_list.2:531
10896 msgid "// E<lt>include/linux/soundcard.hE<gt>"
10897 msgstr ""
10898
10899 #. type: tbl table
10900 #: build/C/man2/ioctl_list.2:533
10901 #, no-wrap
10902 msgid "0x00005100\tSNDCTL_SEQ_RESET\tvoid\n"
10903 msgstr ""
10904
10905 #. type: tbl table
10906 #: build/C/man2/ioctl_list.2:534
10907 #, no-wrap
10908 msgid "0x00005101\tSNDCTL_SEQ_SYNC\tvoid\n"
10909 msgstr ""
10910
10911 #. type: tbl table
10912 #: build/C/man2/ioctl_list.2:535
10913 #, no-wrap
10914 msgid "0xC08C5102\tSNDCTL_SYNTH_INFO\tstruct synth_info *\t// I-O\n"
10915 msgstr ""
10916
10917 #. type: tbl table
10918 #: build/C/man2/ioctl_list.2:536
10919 #, no-wrap
10920 msgid "0xC0045103\tSNDCTL_SEQ_CTRLRATE\tint *\t// I-O\n"
10921 msgstr ""
10922
10923 #. type: tbl table
10924 #: build/C/man2/ioctl_list.2:537
10925 #, no-wrap
10926 msgid "0x80045104\tSNDCTL_SEQ_GETOUTCOUNT\tint *\n"
10927 msgstr ""
10928
10929 #. type: tbl table
10930 #: build/C/man2/ioctl_list.2:538
10931 #, no-wrap
10932 msgid "0x80045105\tSNDCTL_SEQ_GETINCOUNT\tint *\n"
10933 msgstr ""
10934
10935 #. type: tbl table
10936 #: build/C/man2/ioctl_list.2:539
10937 #, no-wrap
10938 msgid "0x40045106\tSNDCTL_SEQ_PERCMODE\tvoid\n"
10939 msgstr ""
10940
10941 #. type: tbl table
10942 #: build/C/man2/ioctl_list.2:540
10943 #, no-wrap
10944 msgid "0x40285107\tSNDCTL_FM_LOAD_INSTR\tconst struct sbi_instrument *\n"
10945 msgstr ""
10946
10947 #. type: tbl table
10948 #: build/C/man2/ioctl_list.2:541
10949 #, no-wrap
10950 msgid "0x40045108\tSNDCTL_SEQ_TESTMIDI\tconst int *\n"
10951 msgstr ""
10952
10953 #. type: tbl table
10954 #: build/C/man2/ioctl_list.2:542
10955 #, no-wrap
10956 msgid "0x40045109\tSNDCTL_SEQ_RESETSAMPLES\tconst int *\n"
10957 msgstr ""
10958
10959 #. type: tbl table
10960 #: build/C/man2/ioctl_list.2:543
10961 #, no-wrap
10962 msgid "0x8004510A\tSNDCTL_SEQ_NRSYNTHS\tint *\n"
10963 msgstr ""
10964
10965 #. type: tbl table
10966 #: build/C/man2/ioctl_list.2:544
10967 #, no-wrap
10968 msgid "0x8004510B\tSNDCTL_SEQ_NRMIDIS\tint *\n"
10969 msgstr ""
10970
10971 #. type: tbl table
10972 #: build/C/man2/ioctl_list.2:545
10973 #, no-wrap
10974 msgid "0xC074510C\tSNDCTL_MIDI_INFO\tstruct midi_info *\t// I-O\n"
10975 msgstr ""
10976
10977 #. type: tbl table
10978 #: build/C/man2/ioctl_list.2:546
10979 #, no-wrap
10980 msgid "0x4004510D\tSNDCTL_SEQ_THRESHOLD\tconst int *\n"
10981 msgstr ""
10982
10983 #. type: tbl table
10984 #: build/C/man2/ioctl_list.2:547
10985 #, no-wrap
10986 msgid "0xC004510E\tSNDCTL_SYNTH_MEMAVL\tint *\t// I-O\n"
10987 msgstr ""
10988
10989 #. type: tbl table
10990 #: build/C/man2/ioctl_list.2:548
10991 #, no-wrap
10992 msgid "0x4004510F\tSNDCTL_FM_4OP_ENABLE\tconst int *\n"
10993 msgstr ""
10994
10995 #. type: tbl table
10996 #: build/C/man2/ioctl_list.2:549
10997 #, no-wrap
10998 msgid "0xCFB85110\tSNDCTL_PMGR_ACCESS\tstruct patmgr_info *\t// I-O\n"
10999 msgstr ""
11000
11001 #. type: tbl table
11002 #: build/C/man2/ioctl_list.2:550
11003 #, no-wrap
11004 msgid "0x00005111\tSNDCTL_SEQ_PANIC\tvoid\n"
11005 msgstr ""
11006
11007 #. type: tbl table
11008 #: build/C/man2/ioctl_list.2:551
11009 #, no-wrap
11010 msgid "0x40085112\tSNDCTL_SEQ_OUTOFBAND\tconst struct seq_event_rec *\n"
11011 msgstr ""
11012
11013 #. type: tbl table
11014 #: build/C/man2/ioctl_list.2:552
11015 #, no-wrap
11016 msgid "0xC0045401\tSNDCTL_TMR_TIMEBASE\tint *\t// I-O\n"
11017 msgstr ""
11018
11019 #. type: tbl table
11020 #: build/C/man2/ioctl_list.2:553
11021 #, no-wrap
11022 msgid "0x00005402\tSNDCTL_TMR_START\tvoid\n"
11023 msgstr ""
11024
11025 #. type: tbl table
11026 #: build/C/man2/ioctl_list.2:554
11027 #, no-wrap
11028 msgid "0x00005403\tSNDCTL_TMR_STOP\tvoid\n"
11029 msgstr ""
11030
11031 #. type: tbl table
11032 #: build/C/man2/ioctl_list.2:555
11033 #, no-wrap
11034 msgid "0x00005404\tSNDCTL_TMR_CONTINUE\tvoid\n"
11035 msgstr ""
11036
11037 #. type: tbl table
11038 #: build/C/man2/ioctl_list.2:556
11039 #, no-wrap
11040 msgid "0xC0045405\tSNDCTL_TMR_TEMPO\tint *\t// I-O\n"
11041 msgstr ""
11042
11043 #. type: tbl table
11044 #: build/C/man2/ioctl_list.2:557
11045 #, no-wrap
11046 msgid "0xC0045406\tSNDCTL_TMR_SOURCE\tint *\t// I-O\n"
11047 msgstr ""
11048
11049 #. type: tbl table
11050 #: build/C/man2/ioctl_list.2:558
11051 #, no-wrap
11052 msgid "0x40045407\tSNDCTL_TMR_METRONOME\tconst int *\n"
11053 msgstr ""
11054
11055 #. type: tbl table
11056 #: build/C/man2/ioctl_list.2:559
11057 #, no-wrap
11058 msgid "0x40045408\tSNDCTL_TMR_SELECT\tint *\t// I-O\n"
11059 msgstr ""
11060
11061 #. type: tbl table
11062 #: build/C/man2/ioctl_list.2:560
11063 #, no-wrap
11064 msgid "0xCFB85001\tSNDCTL_PMGR_IFACE\tstruct patmgr_info *\t// I-O\n"
11065 msgstr ""
11066
11067 #. type: tbl table
11068 #: build/C/man2/ioctl_list.2:561
11069 #, no-wrap
11070 msgid "0xC0046D00\tSNDCTL_MIDI_PRETIME\tint *\t// I-O\n"
11071 msgstr ""
11072
11073 #. type: tbl table
11074 #: build/C/man2/ioctl_list.2:562
11075 #, no-wrap
11076 msgid "0xC0046D01\tSNDCTL_MIDI_MPUMODE\tconst int *\n"
11077 msgstr ""
11078
11079 #. type: tbl table
11080 #: build/C/man2/ioctl_list.2:563
11081 #, no-wrap
11082 msgid "0xC0216D02\tSNDCTL_MIDI_MPUCMD\tstruct mpu_command_rec *\t// I-O\n"
11083 msgstr ""
11084
11085 #. type: tbl table
11086 #: build/C/man2/ioctl_list.2:564
11087 #, no-wrap
11088 msgid "0x00005000\tSNDCTL_DSP_RESET\tvoid\n"
11089 msgstr ""
11090
11091 #. type: tbl table
11092 #: build/C/man2/ioctl_list.2:565
11093 #, no-wrap
11094 msgid "0x00005001\tSNDCTL_DSP_SYNC\tvoid\n"
11095 msgstr ""
11096
11097 #. type: tbl table
11098 #: build/C/man2/ioctl_list.2:566
11099 #, no-wrap
11100 msgid "0xC0045002\tSNDCTL_DSP_SPEED\tint *\t// I-O\n"
11101 msgstr ""
11102
11103 #. type: tbl table
11104 #: build/C/man2/ioctl_list.2:567
11105 #, no-wrap
11106 msgid "0xC0045003\tSNDCTL_DSP_STEREO\tint *\t// I-O\n"
11107 msgstr ""
11108
11109 #. type: tbl table
11110 #: build/C/man2/ioctl_list.2:568
11111 #, no-wrap
11112 msgid "0xC0045004\tSNDCTL_DSP_GETBLKSIZE\tint *\t// I-O\n"
11113 msgstr ""
11114
11115 #. type: tbl table
11116 #: build/C/man2/ioctl_list.2:569
11117 #, no-wrap
11118 msgid "0xC0045006\tSOUND_PCM_WRITE_CHANNELS\tint *\t// I-O\n"
11119 msgstr ""
11120
11121 #. type: tbl table
11122 #: build/C/man2/ioctl_list.2:570
11123 #, no-wrap
11124 msgid "0xC0045007\tSOUND_PCM_WRITE_FILTER\tint *\t// I-O\n"
11125 msgstr ""
11126
11127 #. type: tbl table
11128 #: build/C/man2/ioctl_list.2:571
11129 #, no-wrap
11130 msgid "0x00005008\tSNDCTL_DSP_POST\tvoid\n"
11131 msgstr ""
11132
11133 #. type: tbl table
11134 #: build/C/man2/ioctl_list.2:572
11135 #, no-wrap
11136 msgid "0xC0045009\tSNDCTL_DSP_SUBDIVIDE\tint *\t// I-O\n"
11137 msgstr ""
11138
11139 #. type: tbl table
11140 #: build/C/man2/ioctl_list.2:573
11141 #, no-wrap
11142 msgid "0xC004500A\tSNDCTL_DSP_SETFRAGMENT\tint *\t// I-O\n"
11143 msgstr ""
11144
11145 #. type: tbl table
11146 #: build/C/man2/ioctl_list.2:574
11147 #, no-wrap
11148 msgid "0x8004500B\tSNDCTL_DSP_GETFMTS\tint *\n"
11149 msgstr ""
11150
11151 #. type: tbl table
11152 #: build/C/man2/ioctl_list.2:575
11153 #, no-wrap
11154 msgid "0xC0045005\tSNDCTL_DSP_SETFMT\tint *\t// I-O\n"
11155 msgstr ""
11156
11157 #. type: tbl table
11158 #: build/C/man2/ioctl_list.2:576
11159 #, no-wrap
11160 msgid "0x800C500C\tSNDCTL_DSP_GETOSPACE\tstruct audio_buf_info *\n"
11161 msgstr ""
11162
11163 #. type: tbl table
11164 #: build/C/man2/ioctl_list.2:577
11165 #, no-wrap
11166 msgid "0x800C500D\tSNDCTL_DSP_GETISPACE\tstruct audio_buf_info *\n"
11167 msgstr ""
11168
11169 #. type: tbl table
11170 #: build/C/man2/ioctl_list.2:578
11171 #, no-wrap
11172 msgid "0x0000500E\tSNDCTL_DSP_NONBLOCK\tvoid\n"
11173 msgstr ""
11174
11175 #. type: tbl table
11176 #: build/C/man2/ioctl_list.2:579
11177 #, no-wrap
11178 msgid "0x80045002\tSOUND_PCM_READ_RATE\tint *\n"
11179 msgstr ""
11180
11181 #. type: tbl table
11182 #: build/C/man2/ioctl_list.2:580
11183 #, no-wrap
11184 msgid "0x80045006\tSOUND_PCM_READ_CHANNELS\tint *\n"
11185 msgstr ""
11186
11187 #. type: tbl table
11188 #: build/C/man2/ioctl_list.2:581
11189 #, no-wrap
11190 msgid "0x80045005\tSOUND_PCM_READ_BITS\tint *\n"
11191 msgstr ""
11192
11193 #. type: tbl table
11194 #: build/C/man2/ioctl_list.2:582
11195 #, no-wrap
11196 msgid "0x80045007\tSOUND_PCM_READ_FILTER\tint *\n"
11197 msgstr ""
11198
11199 #. type: tbl table
11200 #: build/C/man2/ioctl_list.2:583
11201 #, no-wrap
11202 msgid "0x00004300\tSNDCTL_COPR_RESET\tvoid\n"
11203 msgstr ""
11204
11205 #. type: tbl table
11206 #: build/C/man2/ioctl_list.2:584
11207 #, no-wrap
11208 msgid "0xCFB04301\tSNDCTL_COPR_LOAD\tconst struct copr_buffer *\n"
11209 msgstr ""
11210
11211 #. type: tbl table
11212 #: build/C/man2/ioctl_list.2:585
11213 #, no-wrap
11214 msgid "0xC0144302\tSNDCTL_COPR_RDATA\tstruct copr_debug_buf *\t// I-O\n"
11215 msgstr ""
11216
11217 #. type: tbl table
11218 #: build/C/man2/ioctl_list.2:586
11219 #, no-wrap
11220 msgid "0xC0144303\tSNDCTL_COPR_RCODE\tstruct copr_debug_buf *\t// I-O\n"
11221 msgstr ""
11222
11223 #. type: tbl table
11224 #: build/C/man2/ioctl_list.2:587
11225 #, no-wrap
11226 msgid "0x40144304\tSNDCTL_COPR_WDATA\tconst struct copr_debug_buf *\n"
11227 msgstr ""
11228
11229 #. type: tbl table
11230 #: build/C/man2/ioctl_list.2:588
11231 #, no-wrap
11232 msgid "0x40144305\tSNDCTL_COPR_WCODE\tconst struct copr_debug_buf *\n"
11233 msgstr ""
11234
11235 #. type: tbl table
11236 #: build/C/man2/ioctl_list.2:589
11237 #, no-wrap
11238 msgid "0xC0144306\tSNDCTL_COPR_RUN\tstruct copr_debug_buf *\t// I-O\n"
11239 msgstr ""
11240
11241 #. type: tbl table
11242 #: build/C/man2/ioctl_list.2:590
11243 #, no-wrap
11244 msgid "0xC0144307\tSNDCTL_COPR_HALT\tstruct copr_debug_buf *\t// I-O\n"
11245 msgstr ""
11246
11247 #. type: tbl table
11248 #: build/C/man2/ioctl_list.2:591
11249 #, no-wrap
11250 msgid "0x4FA44308\tSNDCTL_COPR_SENDMSG\tconst struct copr_msg *\n"
11251 msgstr ""
11252
11253 #. type: tbl table
11254 #: build/C/man2/ioctl_list.2:592
11255 #, no-wrap
11256 msgid "0x8FA44309\tSNDCTL_COPR_RCVMSG\tstruct copr_msg *\n"
11257 msgstr ""
11258
11259 #. type: tbl table
11260 #: build/C/man2/ioctl_list.2:593
11261 #, no-wrap
11262 msgid "0x80044D00\tSOUND_MIXER_READ_VOLUME\tint *\n"
11263 msgstr ""
11264
11265 #. type: tbl table
11266 #: build/C/man2/ioctl_list.2:594
11267 #, no-wrap
11268 msgid "0x80044D01\tSOUND_MIXER_READ_BASS\tint *\n"
11269 msgstr ""
11270
11271 #. type: tbl table
11272 #: build/C/man2/ioctl_list.2:595
11273 #, no-wrap
11274 msgid "0x80044D02\tSOUND_MIXER_READ_TREBLE\tint *\n"
11275 msgstr ""
11276
11277 #. type: tbl table
11278 #: build/C/man2/ioctl_list.2:596
11279 #, no-wrap
11280 msgid "0x80044D03\tSOUND_MIXER_READ_SYNTH\tint *\n"
11281 msgstr ""
11282
11283 #. type: tbl table
11284 #: build/C/man2/ioctl_list.2:597
11285 #, no-wrap
11286 msgid "0x80044D04\tSOUND_MIXER_READ_PCM\tint *\n"
11287 msgstr ""
11288
11289 #. type: tbl table
11290 #: build/C/man2/ioctl_list.2:598
11291 #, no-wrap
11292 msgid "0x80044D05\tSOUND_MIXER_READ_SPEAKER\tint *\n"
11293 msgstr ""
11294
11295 #. type: tbl table
11296 #: build/C/man2/ioctl_list.2:599
11297 #, no-wrap
11298 msgid "0x80044D06\tSOUND_MIXER_READ_LINE\tint *\n"
11299 msgstr ""
11300
11301 #. type: tbl table
11302 #: build/C/man2/ioctl_list.2:600
11303 #, no-wrap
11304 msgid "0x80044D07\tSOUND_MIXER_READ_MIC\tint *\n"
11305 msgstr ""
11306
11307 #. type: tbl table
11308 #: build/C/man2/ioctl_list.2:601
11309 #, no-wrap
11310 msgid "0x80044D08\tSOUND_MIXER_READ_CD\tint *\n"
11311 msgstr ""
11312
11313 #. type: tbl table
11314 #: build/C/man2/ioctl_list.2:602
11315 #, no-wrap
11316 msgid "0x80044D09\tSOUND_MIXER_READ_IMIX\tint *\n"
11317 msgstr ""
11318
11319 #. type: tbl table
11320 #: build/C/man2/ioctl_list.2:603
11321 #, no-wrap
11322 msgid "0x80044D0A\tSOUND_MIXER_READ_ALTPCM\tint *\n"
11323 msgstr ""
11324
11325 #. type: tbl table
11326 #: build/C/man2/ioctl_list.2:604
11327 #, no-wrap
11328 msgid "0x80044D0B\tSOUND_MIXER_READ_RECLEV\tint *\n"
11329 msgstr ""
11330
11331 #. type: tbl table
11332 #: build/C/man2/ioctl_list.2:605
11333 #, no-wrap
11334 msgid "0x80044D0C\tSOUND_MIXER_READ_IGAIN\tint *\n"
11335 msgstr ""
11336
11337 #. type: tbl table
11338 #: build/C/man2/ioctl_list.2:606
11339 #, no-wrap
11340 msgid "0x80044D0D\tSOUND_MIXER_READ_OGAIN\tint *\n"
11341 msgstr ""
11342
11343 #. type: tbl table
11344 #: build/C/man2/ioctl_list.2:607
11345 #, no-wrap
11346 msgid "0x80044D0E\tSOUND_MIXER_READ_LINE1\tint *\n"
11347 msgstr ""
11348
11349 #. type: tbl table
11350 #: build/C/man2/ioctl_list.2:608
11351 #, no-wrap
11352 msgid "0x80044D0F\tSOUND_MIXER_READ_LINE2\tint *\n"
11353 msgstr ""
11354
11355 #. type: tbl table
11356 #: build/C/man2/ioctl_list.2:609
11357 #, no-wrap
11358 msgid "0x80044D10\tSOUND_MIXER_READ_LINE3\tint *\n"
11359 msgstr ""
11360
11361 #. type: tbl table
11362 #: build/C/man2/ioctl_list.2:610
11363 #, no-wrap
11364 msgid "0x80044D1C\tSOUND_MIXER_READ_MUTE\tint *\n"
11365 msgstr ""
11366
11367 #. type: tbl table
11368 #: build/C/man2/ioctl_list.2:611
11369 #, no-wrap
11370 msgid "0x80044D1D\tSOUND_MIXER_READ_ENHANCE\tint *\n"
11371 msgstr ""
11372
11373 #. type: tbl table
11374 #: build/C/man2/ioctl_list.2:612
11375 #, no-wrap
11376 msgid "0x80044D1E\tSOUND_MIXER_READ_LOUD\tint *\n"
11377 msgstr ""
11378
11379 #. type: tbl table
11380 #: build/C/man2/ioctl_list.2:613
11381 #, no-wrap
11382 msgid "0x80044DFF\tSOUND_MIXER_READ_RECSRC\tint *\n"
11383 msgstr ""
11384
11385 #. type: tbl table
11386 #: build/C/man2/ioctl_list.2:614
11387 #, no-wrap
11388 msgid "0x80044DFE\tSOUND_MIXER_READ_DEVMASK\tint *\n"
11389 msgstr ""
11390
11391 #. type: tbl table
11392 #: build/C/man2/ioctl_list.2:615
11393 #, no-wrap
11394 msgid "0x80044DFD\tSOUND_MIXER_READ_RECMASK\tint *\n"
11395 msgstr ""
11396
11397 #. type: tbl table
11398 #: build/C/man2/ioctl_list.2:616
11399 #, no-wrap
11400 msgid "0x80044DFB\tSOUND_MIXER_READ_STEREODEVS\tint *\n"
11401 msgstr ""
11402
11403 #. type: tbl table
11404 #: build/C/man2/ioctl_list.2:617
11405 #, no-wrap
11406 msgid "0x80044DFC\tSOUND_MIXER_READ_CAPS\tint *\n"
11407 msgstr ""
11408
11409 #. type: tbl table
11410 #: build/C/man2/ioctl_list.2:618
11411 #, no-wrap
11412 msgid "0xC0044D00\tSOUND_MIXER_WRITE_VOLUME\tint *\t// I-O\n"
11413 msgstr ""
11414
11415 #. type: tbl table
11416 #: build/C/man2/ioctl_list.2:619
11417 #, no-wrap
11418 msgid "0xC0044D01\tSOUND_MIXER_WRITE_BASS\tint *\t// I-O\n"
11419 msgstr ""
11420
11421 #. type: tbl table
11422 #: build/C/man2/ioctl_list.2:620
11423 #, no-wrap
11424 msgid "0xC0044D02\tSOUND_MIXER_WRITE_TREBLE\tint *\t// I-O\n"
11425 msgstr ""
11426
11427 #. type: tbl table
11428 #: build/C/man2/ioctl_list.2:621
11429 #, no-wrap
11430 msgid "0xC0044D03\tSOUND_MIXER_WRITE_SYNTH\tint *\t// I-O\n"
11431 msgstr ""
11432
11433 #. type: tbl table
11434 #: build/C/man2/ioctl_list.2:622
11435 #, no-wrap
11436 msgid "0xC0044D04\tSOUND_MIXER_WRITE_PCM\tint *\t// I-O\n"
11437 msgstr ""
11438
11439 #. type: tbl table
11440 #: build/C/man2/ioctl_list.2:623
11441 #, no-wrap
11442 msgid "0xC0044D05\tSOUND_MIXER_WRITE_SPEAKER\tint *\t// I-O\n"
11443 msgstr ""
11444
11445 #. type: tbl table
11446 #: build/C/man2/ioctl_list.2:624
11447 #, no-wrap
11448 msgid "0xC0044D06\tSOUND_MIXER_WRITE_LINE\tint *\t// I-O\n"
11449 msgstr ""
11450
11451 #. type: tbl table
11452 #: build/C/man2/ioctl_list.2:625
11453 #, no-wrap
11454 msgid "0xC0044D07\tSOUND_MIXER_WRITE_MIC\tint *\t// I-O\n"
11455 msgstr ""
11456
11457 #. type: tbl table
11458 #: build/C/man2/ioctl_list.2:626
11459 #, no-wrap
11460 msgid "0xC0044D08\tSOUND_MIXER_WRITE_CD\tint *\t// I-O\n"
11461 msgstr ""
11462
11463 #. type: tbl table
11464 #: build/C/man2/ioctl_list.2:627
11465 #, no-wrap
11466 msgid "0xC0044D09\tSOUND_MIXER_WRITE_IMIX\tint *\t// I-O\n"
11467 msgstr ""
11468
11469 #. type: tbl table
11470 #: build/C/man2/ioctl_list.2:628
11471 #, no-wrap
11472 msgid "0xC0044D0A\tSOUND_MIXER_WRITE_ALTPCM\tint *\t// I-O\n"
11473 msgstr ""
11474
11475 #. type: tbl table
11476 #: build/C/man2/ioctl_list.2:629
11477 #, no-wrap
11478 msgid "0xC0044D0B\tSOUND_MIXER_WRITE_RECLEV\tint *\t// I-O\n"
11479 msgstr ""
11480
11481 #. type: tbl table
11482 #: build/C/man2/ioctl_list.2:630
11483 #, no-wrap
11484 msgid "0xC0044D0C\tSOUND_MIXER_WRITE_IGAIN\tint *\t// I-O\n"
11485 msgstr ""
11486
11487 #. type: tbl table
11488 #: build/C/man2/ioctl_list.2:631
11489 #, no-wrap
11490 msgid "0xC0044D0D\tSOUND_MIXER_WRITE_OGAIN\tint *\t// I-O\n"
11491 msgstr ""
11492
11493 #. type: tbl table
11494 #: build/C/man2/ioctl_list.2:632
11495 #, no-wrap
11496 msgid "0xC0044D0E\tSOUND_MIXER_WRITE_LINE1\tint *\t// I-O\n"
11497 msgstr ""
11498
11499 #. type: tbl table
11500 #: build/C/man2/ioctl_list.2:633
11501 #, no-wrap
11502 msgid "0xC0044D0F\tSOUND_MIXER_WRITE_LINE2\tint *\t// I-O\n"
11503 msgstr ""
11504
11505 #. type: tbl table
11506 #: build/C/man2/ioctl_list.2:634
11507 #, no-wrap
11508 msgid "0xC0044D10\tSOUND_MIXER_WRITE_LINE3\tint *\t// I-O\n"
11509 msgstr ""
11510
11511 #. type: tbl table
11512 #: build/C/man2/ioctl_list.2:635
11513 #, no-wrap
11514 msgid "0xC0044D1C\tSOUND_MIXER_WRITE_MUTE\tint *\t// I-O\n"
11515 msgstr ""
11516
11517 #. type: tbl table
11518 #: build/C/man2/ioctl_list.2:636
11519 #, no-wrap
11520 msgid "0xC0044D1D\tSOUND_MIXER_WRITE_ENHANCE\tint *\t// I-O\n"
11521 msgstr ""
11522
11523 #. type: tbl table
11524 #: build/C/man2/ioctl_list.2:637
11525 #, no-wrap
11526 msgid "0xC0044D1E\tSOUND_MIXER_WRITE_LOUD\tint *\t// I-O\n"
11527 msgstr ""
11528
11529 #. type: tbl table
11530 #: build/C/man2/ioctl_list.2:638
11531 #, no-wrap
11532 msgid "0xC0044DFF\tSOUND_MIXER_WRITE_RECSRC\tint *\t// I-O\n"
11533 msgstr ""
11534
11535 #. type: Plain text
11536 #: build/C/man2/ioctl_list.2:642
11537 msgid "// E<lt>include/linux/umsdos_fs.hE<gt>"
11538 msgstr ""
11539
11540 #. type: tbl table
11541 #: build/C/man2/ioctl_list.2:644
11542 #, no-wrap
11543 msgid "0x000004D2\tUMSDOS_READDIR_DOS\tstruct umsdos_ioctl *\t// I-O\n"
11544 msgstr ""
11545
11546 #. type: tbl table
11547 #: build/C/man2/ioctl_list.2:645
11548 #, no-wrap
11549 msgid "0x000004D3\tUMSDOS_UNLINK_DOS\tconst struct umsdos_ioctl *\n"
11550 msgstr ""
11551
11552 #. type: tbl table
11553 #: build/C/man2/ioctl_list.2:646
11554 #, no-wrap
11555 msgid "0x000004D4\tUMSDOS_RMDIR_DOS\tconst struct umsdos_ioctl *\n"
11556 msgstr ""
11557
11558 #. type: tbl table
11559 #: build/C/man2/ioctl_list.2:647
11560 #, no-wrap
11561 msgid "0x000004D5\tUMSDOS_STAT_DOS\tstruct umsdos_ioctl *\t// I-O\n"
11562 msgstr ""
11563
11564 #. type: tbl table
11565 #: build/C/man2/ioctl_list.2:648
11566 #, no-wrap
11567 msgid "0x000004D6\tUMSDOS_CREAT_EMD\tconst struct umsdos_ioctl *\n"
11568 msgstr ""
11569
11570 #. type: tbl table
11571 #: build/C/man2/ioctl_list.2:649
11572 #, no-wrap
11573 msgid "0x000004D7\tUMSDOS_UNLINK_EMD\tconst struct umsdos_ioctl *\n"
11574 msgstr ""
11575
11576 #. type: tbl table
11577 #: build/C/man2/ioctl_list.2:650
11578 #, no-wrap
11579 msgid "0x000004D8\tUMSDOS_READDIR_EMD\tstruct umsdos_ioctl *\t// I-O\n"
11580 msgstr ""
11581
11582 #. type: tbl table
11583 #: build/C/man2/ioctl_list.2:651
11584 #, no-wrap
11585 msgid "0x000004D9\tUMSDOS_GETVERSION\tstruct umsdos_ioctl *\n"
11586 msgstr ""
11587
11588 #. type: tbl table
11589 #: build/C/man2/ioctl_list.2:652
11590 #, no-wrap
11591 msgid "0x000004DA\tUMSDOS_INIT_EMD\tvoid\n"
11592 msgstr ""
11593
11594 #. type: tbl table
11595 #: build/C/man2/ioctl_list.2:653
11596 #, no-wrap
11597 msgid "0x000004DB\tUMSDOS_DOS_SETUP\tconst struct umsdos_ioctl *\n"
11598 msgstr ""
11599
11600 #. type: tbl table
11601 #: build/C/man2/ioctl_list.2:654
11602 #, no-wrap
11603 msgid "0x000004DC\tUMSDOS_RENAME_DOS\tconst struct umsdos_ioctl *\n"
11604 msgstr ""
11605
11606 #. type: Plain text
11607 #: build/C/man2/ioctl_list.2:658
11608 msgid "// E<lt>include/linux/vt.hE<gt>"
11609 msgstr ""
11610
11611 #. type: tbl table
11612 #: build/C/man2/ioctl_list.2:660
11613 #, no-wrap
11614 msgid "0x00005600\tVT_OPENQRY\tint *\n"
11615 msgstr ""
11616
11617 #. type: tbl table
11618 #: build/C/man2/ioctl_list.2:661
11619 #, no-wrap
11620 msgid "0x00005601\tVT_GETMODE\tstruct vt_mode *\n"
11621 msgstr ""
11622
11623 #. type: tbl table
11624 #: build/C/man2/ioctl_list.2:662
11625 #, no-wrap
11626 msgid "0x00005602\tVT_SETMODE\tconst struct vt_mode *\n"
11627 msgstr ""
11628
11629 #. type: tbl table
11630 #: build/C/man2/ioctl_list.2:663
11631 #, no-wrap
11632 msgid "0x00005603\tVT_GETSTATE\tstruct vt_stat *\n"
11633 msgstr ""
11634
11635 #. type: tbl table
11636 #: build/C/man2/ioctl_list.2:664
11637 #, no-wrap
11638 msgid "0x00005604\tVT_SENDSIG\tvoid\n"
11639 msgstr ""
11640
11641 #. type: tbl table
11642 #: build/C/man2/ioctl_list.2:665
11643 #, no-wrap
11644 msgid "0x00005605\tVT_RELDISP\tint\n"
11645 msgstr ""
11646
11647 #. type: tbl table
11648 #: build/C/man2/ioctl_list.2:666
11649 #, no-wrap
11650 msgid "0x00005606\tVT_ACTIVATE\tint\n"
11651 msgstr ""
11652
11653 #. type: tbl table
11654 #: build/C/man2/ioctl_list.2:667
11655 #, no-wrap
11656 msgid "0x00005607\tVT_WAITACTIVE\tint\n"
11657 msgstr ""
11658
11659 #. type: tbl table
11660 #: build/C/man2/ioctl_list.2:668
11661 #, no-wrap
11662 msgid "0x00005608\tVT_DISALLOCATE\tint\n"
11663 msgstr ""
11664
11665 #. type: tbl table
11666 #: build/C/man2/ioctl_list.2:669
11667 #, no-wrap
11668 msgid "0x00005609\tVT_RESIZE\tconst struct vt_sizes *\n"
11669 msgstr ""
11670
11671 #. type: tbl table
11672 #: build/C/man2/ioctl_list.2:670
11673 #, no-wrap
11674 msgid "0x0000560A\tVT_RESIZEX\tconst struct vt_consize *\n"
11675 msgstr ""
11676
11677 #. type: Plain text
11678 #: build/C/man2/ioctl_list.2:677
11679 msgid ""
11680 "// More arguments.  Some ioctl's take a pointer to a structure which "
11681 "contains additional pointers.  These are documented here in alphabetical "
11682 "order."
11683 msgstr ""
11684
11685 #. type: Plain text
11686 #: build/C/man2/ioctl_list.2:685
11687 msgid ""
11688 "B<CDROMREADAUDIO> takes an input pointer I<const struct cdrom_read_audio "
11689 "*>.  The I<buf> field points to an output buffer of length I<nframes * "
11690 "CD_FRAMESIZE_RAW>."
11691 msgstr ""
11692
11693 #. type: Plain text
11694 #: build/C/man2/ioctl_list.2:701
11695 msgid ""
11696 "B<CDROMREADCOOKED>, B<CDROMREADMODE1>, B<CDROMREADMODE2>, and "
11697 "B<CDROMREADRAW> take an input pointer I<const struct cdrom_msf *>.  They use "
11698 "the same pointer as an output pointer to I<char []>.  The length varies by "
11699 "request.  For B<CDROMREADMODE1>, most drivers use CD_FRAMESIZE, but the "
11700 "Optics Storage driver uses OPT_BLOCKSIZE instead (both have the numerical "
11701 "value 2048)."
11702 msgstr ""
11703
11704 #. type: Plain text
11705 #: build/C/man2/ioctl_list.2:707
11706 #, no-wrap
11707 msgid ""
11708 "    CDROMREADCOOKED    char [CD_FRAMESIZE]\n"
11709 "    CDROMREADMODE1     char [CD_FRAMESIZE or OPT_BLOCKSIZE]\n"
11710 "    CDROMREADMODE2     char [CD_FRAMESIZE_RAW0]\n"
11711 "    CDROMREADRAW       char [CD_FRAMESIZE_RAW]\n"
11712 msgstr ""
11713
11714 #. type: Plain text
11715 #: build/C/man2/ioctl_list.2:721
11716 msgid ""
11717 "B<EQL_ENSLAVE>, B<EQL_EMANCIPATE>, B<EQL_GETSLAVECFG>, B<EQL_SETSLAVECFG>, "
11718 "B<EQL_GETMASTERCFG>, and B<EQL_SETMASTERCFG> take a I<struct ifreq *>.  The "
11719 "I<ifr_data> field is a pointer to another structure as follows:"
11720 msgstr ""
11721
11722 #. type: Plain text
11723 #: build/C/man2/ioctl_list.2:729
11724 #, no-wrap
11725 msgid ""
11726 "    EQL_ENSLAVE         const struct slaving_request *\n"
11727 "    EQL_EMANCIPATE      const struct slaving_request *\n"
11728 "    EQL_GETSLAVECFG     struct slave_config *           // I-O\n"
11729 "    EQL_SETSLAVECFG     const struct slave_config *\n"
11730 "    EQL_GETMASTERCFG    struct master_config *\n"
11731 "    EQL_SETMASTERCFG    const struct master_config *\n"
11732 msgstr ""
11733
11734 #. type: Plain text
11735 #: build/C/man2/ioctl_list.2:746
11736 msgid ""
11737 "B<FDRAWCMD> takes a I<struct floppy raw_cmd *>.  If I<flags & FD_RAW_WRITE> "
11738 "is nonzero, then I<data> points to an input buffer of length I<length>.  If "
11739 "I<flags & FD_RAW_READ> is nonzero, then I<data> points to an output buffer "
11740 "of length I<length>."
11741 msgstr ""
11742
11743 #. type: Plain text
11744 #: build/C/man2/ioctl_list.2:762
11745 msgid ""
11746 "B<GIO_FONTX> and B<PIO_FONTX> take a I<struct console_font_desc *> or a "
11747 "I<const struct console_font_desc *>, respectively.  I<chardata> points to a "
11748 "buffer of I<char [charcount]>.  This is an output buffer for B<GIO_FONTX> "
11749 "and an input buffer for B<PIO_FONTX>."
11750 msgstr ""
11751
11752 #. type: Plain text
11753 #: build/C/man2/ioctl_list.2:778
11754 msgid ""
11755 "B<GIO_UNIMAP> and B<PIO_UNIMAP> take a I<struct unimapdesc *> or a I<const "
11756 "struct unimapdesc *>, respectively.  I<entries> points to a buffer of "
11757 "I<struct unipair [entry_ct]>.  This is an output buffer for B<GIO_UNIMAP> "
11758 "and an input buffer for B<PIO_UNIMAP>."
11759 msgstr ""
11760
11761 #. type: Plain text
11762 #: build/C/man2/ioctl_list.2:782
11763 msgid ""
11764 "KDADDIO, KDDELIO, KDDISABIO, and KDENABIO enable or disable access to I/O "
11765 "ports.  They are essentially alternate interfaces to 'ioperm'."
11766 msgstr ""
11767
11768 #. type: Plain text
11769 #: build/C/man2/ioctl_list.2:788
11770 msgid ""
11771 "B<KDMAPDISP> and B<KDUNMAPDISP> enable or disable memory mappings or I/O "
11772 "port access.  They are not implemented in the kernel."
11773 msgstr ""
11774
11775 #. type: Plain text
11776 #: build/C/man2/ioctl_list.2:796
11777 msgid ""
11778 "B<SCSI_IOCTL_PROBE_HOST> takes an input pointer I<const int *>, which is a "
11779 "length.  It uses the same pointer as an output pointer to a I<char []> "
11780 "buffer of this length."
11781 msgstr ""
11782
11783 #. type: Plain text
11784 #: build/C/man2/ioctl_list.2:802
11785 msgid ""
11786 "B<SIOCADDRT> and B<SIOCDELRT> take an input pointer whose type depends on "
11787 "the protocol:"
11788 msgstr ""
11789
11790 #. type: Plain text
11791 #: build/C/man2/ioctl_list.2:807
11792 #, no-wrap
11793 msgid ""
11794 "    Most protocols      const struct rtentry *\n"
11795 "    AX.25               const struct ax25_route *\n"
11796 "    NET/ROM             const struct nr_route_struct *\n"
11797 msgstr ""
11798
11799 #. type: Plain text
11800 #: build/C/man2/ioctl_list.2:818
11801 msgid ""
11802 "B<SIOCGIFCONF> takes a I<struct ifconf *>.  The I<ifc_buf> field points to a "
11803 "buffer of length I<ifc_len> bytes, into which the kernel writes a list of "
11804 "type I<struct ifreq []>."
11805 msgstr ""
11806
11807 #. type: Plain text
11808 #: build/C/man2/ioctl_list.2:821
11809 msgid "B<SIOCSIFHWADDR> takes an input pointer whose type depends on the protocol:"
11810 msgstr ""
11811
11812 #. type: Plain text
11813 #: build/C/man2/ioctl_list.2:825
11814 #, no-wrap
11815 msgid ""
11816 "    Most protocols      const struct ifreq *\n"
11817 "    AX.25               const char [AX25_ADDR_LEN]\n"
11818 msgstr ""
11819
11820 #. type: Plain text
11821 #: build/C/man2/ioctl_list.2:840
11822 msgid ""
11823 "B<TIOCLINUX> takes a I<const char *>.  It uses this to distinguish several "
11824 "independent subcases.  In the table below, I<N + foo> means I<foo> after an "
11825 "N-byte pad.  I<struct selection> is implicitly defined in "
11826 "I<drivers/char/selection.c>"
11827 msgstr ""
11828
11829 #. type: Plain text
11830 #: build/C/man2/ioctl_list.2:849
11831 #, no-wrap
11832 msgid ""
11833 "    TIOCLINUX-2         1 + const struct selection *\n"
11834 "    TIOCLINUX-3         void\n"
11835 "    TIOCLINUX-4         void\n"
11836 "    TIOCLINUX-5         4 + const struct { long [8]; } *\n"
11837 "    TIOCLINUX-6         char *\n"
11838 "    TIOCLINUX-7         char *\n"
11839 "    TIOCLINUX-10        1 + const char *\n"
11840 msgstr ""
11841
11842 #. type: Plain text
11843 #: build/C/man2/ioctl_list.2:852
11844 msgid "// Duplicate ioctls"
11845 msgstr ""
11846
11847 #. type: Plain text
11848 #: build/C/man2/ioctl_list.2:857
11849 msgid ""
11850 "This list does not include ioctls in the range B<SIOCDEVPRIVATE> and "
11851 "B<SIOCPROTOPRIVATE>."
11852 msgstr ""
11853
11854 #. type: tbl table
11855 #: build/C/man2/ioctl_list.2:859
11856 #, no-wrap
11857 msgid "0x00000001\tFDSETPRM\tFIBMAP\n"
11858 msgstr ""
11859
11860 #. type: tbl table
11861 #: build/C/man2/ioctl_list.2:860
11862 #, no-wrap
11863 msgid "0x00000002\tFDDEFPRM\tFIGETBSZ\n"
11864 msgstr ""
11865
11866 #. type: tbl table
11867 #: build/C/man2/ioctl_list.2:861
11868 #, no-wrap
11869 msgid "0x00005382\tCDROMAUDIOBUFSIZ\tSCSI_IOCTL_GET_IDLUN\n"
11870 msgstr ""
11871
11872 #. type: tbl table
11873 #: build/C/man2/ioctl_list.2:862
11874 #, no-wrap
11875 msgid "0x00005402\tSNDCTL_TMR_START\tTCSETS\n"
11876 msgstr ""
11877
11878 #. type: tbl table
11879 #: build/C/man2/ioctl_list.2:863
11880 #, no-wrap
11881 msgid "0x00005403\tSNDCTL_TMR_STOP\tTCSETSW\n"
11882 msgstr ""
11883
11884 #. type: tbl table
11885 #: build/C/man2/ioctl_list.2:864
11886 #, no-wrap
11887 msgid "0x00005404\tSNDCTL_TMR_CONTINUE\tTCSETSF\n"
11888 msgstr ""
11889
11890 #. type: Plain text
11891 #: build/C/man2/ioctl_list.2:868
11892 msgid "B<ioctl>(2)"
11893 msgstr ""
11894
11895 #. type: TH
11896 #: build/C/man2/ioperm.2:35
11897 #, no-wrap
11898 msgid "IOPERM"
11899 msgstr ""
11900
11901 #. type: TH
11902 #: build/C/man2/ioperm.2:35
11903 #, no-wrap
11904 msgid "2007-06-15"
11905 msgstr ""
11906
11907 #. type: Plain text
11908 #: build/C/man2/ioperm.2:38
11909 msgid "ioperm - set port input/output permissions"
11910 msgstr ""
11911
11912 #. type: Plain text
11913 #: build/C/man2/ioperm.2:41
11914 msgid "B<#include E<lt>unistd.hE<gt>> /* for libc5 */"
11915 msgstr ""
11916
11917 #. type: Plain text
11918 #: build/C/man2/ioperm.2:44
11919 msgid "B<#include E<lt>sys/io.hE<gt>> /* for glibc */"
11920 msgstr ""
11921
11922 #. type: Plain text
11923 #: build/C/man2/ioperm.2:46
11924 msgid ""
11925 "B<int ioperm(unsigned long >I<from>B<, unsigned long >I<num>B<, int "
11926 ">I<turn_on>B<);>"
11927 msgstr ""
11928
11929 #. type: Plain text
11930 #: build/C/man2/ioperm.2:53
11931 msgid ""
11932 "B<ioperm>()  sets the port access permission bits for the calling process "
11933 "for I<num> bytes starting from port address I<from> to the value "
11934 "I<turn_on>.  If I<turn_on> is nonzero, the calling process must be "
11935 "privileged (B<CAP_SYS_RAWIO>)."
11936 msgstr ""
11937
11938 #.  FIXME is the following ("Only the first 0x3ff I/O ports can be
11939 #.  specified in this manner") still true?  Looking at changes in
11940 #.  include/asm-i386/processor.h between 2.4 and 2.6 suggests
11941 #.  that the limit is different in 2.6.
11942 #. type: Plain text
11943 #: build/C/man2/ioperm.2:62
11944 msgid ""
11945 "Only the first 0x3ff I/O ports can be specified in this manner.  For more "
11946 "ports, the B<iopl>(2)  system call must be used."
11947 msgstr ""
11948
11949 #. type: Plain text
11950 #: build/C/man2/ioperm.2:69
11951 msgid ""
11952 "Permissions are not inherited by the child created by B<fork>(2).  "
11953 "Permissions are preserved across B<execve>(2); this is useful for giving "
11954 "port access permissions to unprivileged programs."
11955 msgstr ""
11956
11957 #. type: Plain text
11958 #: build/C/man2/ioperm.2:73
11959 msgid ""
11960 "This call is mostly for the i386 architecture.  On many other architectures "
11961 "it does not exist or will always return an error."
11962 msgstr ""
11963
11964 #. type: Plain text
11965 #: build/C/man2/ioperm.2:85
11966 msgid "Invalid values for I<from> or I<num>."
11967 msgstr ""
11968
11969 #. type: Plain text
11970 #: build/C/man2/ioperm.2:88
11971 msgid "(on PowerPC) This call is not supported."
11972 msgstr ""
11973
11974 #.  Could not allocate I/O bitmap.
11975 #. type: Plain text
11976 #: build/C/man2/ioperm.2:92
11977 msgid "Out of memory."
11978 msgstr ""
11979
11980 #. type: Plain text
11981 #: build/C/man2/ioperm.2:95
11982 msgid "The calling process has insufficient privilege."
11983 msgstr ""
11984
11985 #. type: Plain text
11986 #: build/C/man2/ioperm.2:99
11987 msgid ""
11988 "B<ioperm>()  is Linux-specific and should not be used in programs intended "
11989 "to be portable."
11990 msgstr ""
11991
11992 #. type: Plain text
11993 #: build/C/man2/ioperm.2:108
11994 msgid ""
11995 "Libc5 treats it as a system call and has a prototype in "
11996 "I<E<lt>unistd.hE<gt>>.  Glibc1 does not have a prototype.  Glibc2 has a "
11997 "prototype both in I<E<lt>sys/io.hE<gt>> and in I<E<lt>sys/perm.hE<gt>>.  "
11998 "Avoid the latter, it is available on i386 only."
11999 msgstr ""
12000
12001 #. type: Plain text
12002 #: build/C/man2/ioperm.2:111
12003 msgid "B<iopl>(2), B<capabilities>(7)"
12004 msgstr ""
12005
12006 #. type: TH
12007 #: build/C/man3/lockf.3:22
12008 #, no-wrap
12009 msgid "LOCKF"
12010 msgstr ""
12011
12012 #. type: TH
12013 #: build/C/man3/lockf.3:22
12014 #, no-wrap
12015 msgid "2011-09-11"
12016 msgstr ""
12017
12018 #. type: Plain text
12019 #: build/C/man3/lockf.3:25
12020 msgid "lockf - apply, test or remove a POSIX lock on an open file"
12021 msgstr ""
12022
12023 #. type: Plain text
12024 #: build/C/man3/lockf.3:29
12025 msgid "B<int lockf(int >I<fd>B<, int >I<cmd>B<, off_t >I<len>B<);>"
12026 msgstr ""
12027
12028 #. type: Plain text
12029 #: build/C/man3/lockf.3:36
12030 msgid "B<lockf>():"
12031 msgstr ""
12032
12033 #. type: Plain text
12034 #: build/C/man3/lockf.3:40
12035 msgid ""
12036 "_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
12037 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
12038 msgstr ""
12039
12040 #. type: Plain text
12041 #: build/C/man3/lockf.3:63
12042 msgid ""
12043 "Apply, test or remove a POSIX lock on a section of an open file.  The file "
12044 "is specified by I<fd>, a file descriptor open for writing, the action by "
12045 "I<cmd>, and the section consists of byte positions I<pos>..I<pos>+I<len>-1 "
12046 "if I<len> is positive, and I<pos>-I<len>..I<pos>-1 if I<len> is negative, "
12047 "where I<pos> is the current file position, and if I<len> is zero, the "
12048 "section extends from the current file position to infinity, encompassing the "
12049 "present and future end-of-file positions.  In all cases, the section may "
12050 "extend past current end-of-file."
12051 msgstr ""
12052
12053 #. type: Plain text
12054 #: build/C/man3/lockf.3:78
12055 msgid ""
12056 "On Linux, B<lockf>()  is just an interface on top of B<fcntl>(2)  locking.  "
12057 "Many other systems implement B<lockf>()  in this way, but note that "
12058 "POSIX.1-2001 leaves the relationship between B<lockf>()  and B<fcntl>(2)  "
12059 "locks unspecified.  A portable application should probably avoid mixing "
12060 "calls to these interfaces."
12061 msgstr ""
12062
12063 #. type: Plain text
12064 #: build/C/man3/lockf.3:80
12065 msgid "Valid operations are given below:"
12066 msgstr ""
12067
12068 #. type: TP
12069 #: build/C/man3/lockf.3:80
12070 #, no-wrap
12071 msgid "B<F_LOCK>"
12072 msgstr ""
12073
12074 #. type: Plain text
12075 #: build/C/man3/lockf.3:90
12076 msgid ""
12077 "Set an exclusive lock on the specified section of the file.  If (part of) "
12078 "this section is already locked, the call blocks until the previous lock is "
12079 "released.  If this section overlaps an earlier locked section, both are "
12080 "merged.  File locks are released as soon as the process holding the locks "
12081 "closes some file descriptor for the file.  A child process does not inherit "
12082 "these locks."
12083 msgstr ""
12084
12085 #. type: TP
12086 #: build/C/man3/lockf.3:90
12087 #, no-wrap
12088 msgid "B<F_TLOCK>"
12089 msgstr ""
12090
12091 #. type: Plain text
12092 #: build/C/man3/lockf.3:96
12093 msgid ""
12094 "Same as B<F_LOCK> but the call never blocks and returns an error instead if "
12095 "the file is already locked."
12096 msgstr ""
12097
12098 #. type: TP
12099 #: build/C/man3/lockf.3:96
12100 #, no-wrap
12101 msgid "B<F_ULOCK>"
12102 msgstr ""
12103
12104 #. type: Plain text
12105 #: build/C/man3/lockf.3:100
12106 msgid ""
12107 "Unlock the indicated section of the file.  This may cause a locked section "
12108 "to be split into two locked sections."
12109 msgstr ""
12110
12111 #. type: TP
12112 #: build/C/man3/lockf.3:100
12113 #, no-wrap
12114 msgid "B<F_TEST>"
12115 msgstr ""
12116
12117 #. type: Plain text
12118 #: build/C/man3/lockf.3:110
12119 msgid ""
12120 "Test the lock: return 0 if the specified section is unlocked or locked by "
12121 "this process; return -1, set I<errno> to B<EAGAIN> (B<EACCES> on some other "
12122 "systems), if another process holds a lock."
12123 msgstr ""
12124
12125 #. type: Plain text
12126 #: build/C/man3/lockf.3:124
12127 msgid ""
12128 "The file is locked and B<F_TLOCK> or B<F_TEST> was specified, or the "
12129 "operation is prohibited because the file has been memory-mapped by another "
12130 "process."
12131 msgstr ""
12132
12133 #. type: Plain text
12134 #: build/C/man3/lockf.3:136
12135 msgid ""
12136 "I<fd> is not an open file descriptor; or I<cmd> is B<F_LOCK> or B<F_TLOCK> "
12137 "and I<fd> is not a writable file descriptor."
12138 msgstr ""
12139
12140 #. type: Plain text
12141 #: build/C/man3/lockf.3:141
12142 msgid "The command was B<T_LOCK> and this lock operation would cause a deadlock."
12143 msgstr ""
12144
12145 #. type: Plain text
12146 #: build/C/man3/lockf.3:145
12147 msgid "An invalid operation was specified in I<fd>."
12148 msgstr ""
12149
12150 #. type: Plain text
12151 #: build/C/man3/lockf.3:148
12152 msgid "Too many segment locks open, lock table is full."
12153 msgstr ""
12154
12155 #. type: Plain text
12156 #: build/C/man3/lockf.3:150
12157 msgid "SVr4, POSIX.1-2001."
12158 msgstr ""
12159
12160 #. type: Plain text
12161 #: build/C/man3/lockf.3:153
12162 msgid "B<fcntl>(2), B<flock>(2)"
12163 msgstr ""
12164
12165 #. type: Plain text
12166 #: build/C/man3/lockf.3:166
12167 msgid ""
12168 "There are also I<locks.txt> and I<mandatory-locking.txt> in the kernel "
12169 "source directory I<Documentation/filesystems>.  (On older kernels, these "
12170 "files are directly under the I<Documentation/> directory, and "
12171 "I<mandatory-locking.txt> is called I<mandatory.txt>.)"
12172 msgstr ""
12173
12174 #. type: TH
12175 #: build/C/man2/mincore.2:34
12176 #, no-wrap
12177 msgid "MINCORE"
12178 msgstr ""
12179
12180 #. type: TH
12181 #: build/C/man2/mincore.2:34
12182 #, no-wrap
12183 msgid "2008-04-22"
12184 msgstr ""
12185
12186 #. type: Plain text
12187 #: build/C/man2/mincore.2:37
12188 msgid "mincore - determine whether pages are resident in memory"
12189 msgstr ""
12190
12191 #. type: Plain text
12192 #: build/C/man2/mincore.2:41
12193 msgid "B<#include E<lt>sys/mman.hE<gt>>"
12194 msgstr ""
12195
12196 #. type: Plain text
12197 #: build/C/man2/mincore.2:43
12198 msgid ""
12199 "B<int mincore(void *>I<addr>B<, size_t >I<length>B<, unsigned char "
12200 "*>I<vec>B<);>"
12201 msgstr ""
12202
12203 #. type: Plain text
12204 #: build/C/man2/mincore.2:51
12205 msgid "B<mincore>(): _BSD_SOURCE || _SVID_SOURCE"
12206 msgstr ""
12207
12208 #. type: Plain text
12209 #: build/C/man2/mincore.2:62
12210 msgid ""
12211 "B<mincore>()  returns a vector that indicates whether pages of the calling "
12212 "process's virtual memory are resident in core (RAM), and so will not cause a "
12213 "disk access (page fault) if referenced.  The kernel returns residency "
12214 "information about the pages starting at the address I<addr>, and continuing "
12215 "for I<length> bytes."
12216 msgstr ""
12217
12218 #. type: Plain text
12219 #: build/C/man2/mincore.2:76
12220 msgid ""
12221 "The I<addr> argument must be a multiple of the system page size.  The "
12222 "I<length> argument need not be a multiple of the page size, but since "
12223 "residency information is returned for whole pages, I<length> is effectively "
12224 "rounded up to the next multiple of the page size.  One may obtain the page "
12225 "size (B<PAGE_SIZE>)  using I<sysconf(_SC_PAGESIZE)>."
12226 msgstr ""
12227
12228 #. type: Plain text
12229 #: build/C/man2/mincore.2:94
12230 msgid ""
12231 "The I<vec> argument must point to an array containing at least "
12232 "I<(length+PAGE_SIZE-1) / PAGE_SIZE> bytes.  On return, the least significant "
12233 "bit of each byte will be set if the corresponding page is currently resident "
12234 "in memory, and be clear otherwise.  (The settings of the other bits in each "
12235 "byte are undefined; these bits are reserved for possible later use.)  Of "
12236 "course the information returned in I<vec> is only a snapshot: pages that are "
12237 "not locked in memory can come and go at any moment, and the contents of "
12238 "I<vec> may already be stale by the time this call returns."
12239 msgstr ""
12240
12241 #. type: Plain text
12242 #: build/C/man2/mincore.2:101
12243 msgid ""
12244 "On success, B<mincore>()  returns zero.  On error, -1 is returned, and "
12245 "I<errno> is set appropriately."
12246 msgstr ""
12247
12248 #. type: Plain text
12249 #: build/C/man2/mincore.2:104
12250 msgid "B<EAGAIN> kernel is temporarily out of resources."
12251 msgstr ""
12252
12253 #. type: Plain text
12254 #: build/C/man2/mincore.2:108
12255 msgid "I<vec> points to an invalid address."
12256 msgstr ""
12257
12258 #. type: Plain text
12259 #: build/C/man2/mincore.2:112
12260 msgid "I<addr> is not a multiple of the page size."
12261 msgstr ""
12262
12263 #. type: Plain text
12264 #: build/C/man2/mincore.2:124
12265 msgid ""
12266 "I<length> is greater than (I<TASK_SIZE> - I<addr>).  (This could occur if a "
12267 "negative value is specified for I<length>, since that value will be "
12268 "interpreted as a large unsigned integer.)  In Linux 2.6.11 and earlier, the "
12269 "error B<EINVAL> was returned for this condition."
12270 msgstr ""
12271
12272 #. type: Plain text
12273 #: build/C/man2/mincore.2:132
12274 msgid "I<addr> to I<addr> + I<length> contained unmapped memory."
12275 msgstr ""
12276
12277 #. type: Plain text
12278 #: build/C/man2/mincore.2:134
12279 msgid "Available since Linux 2.3.99pre1 and glibc 2.2."
12280 msgstr ""
12281
12282 #.  It is on at least NetBSD, FreeBSD, OpenBSD, Solaris 8,
12283 #.  AIX 5.1, SunOS 4.1
12284 #.  .SH HISTORY
12285 #.  The
12286 #.  .BR mincore ()
12287 #.  function first appeared in 4.4BSD.
12288 #. type: Plain text
12289 #: build/C/man2/mincore.2:144
12290 msgid ""
12291 "B<mincore>()  is not specified in POSIX.1-2001, and it is not available on "
12292 "all UNIX implementations."
12293 msgstr ""
12294
12295 #.  Linux (up to now, 2.6.5),
12296 #.  .B mincore
12297 #.  does not return correct information for MAP_PRIVATE mappings:
12298 #.  for a MAP_PRIVATE file mapping,
12299 #.  .B mincore
12300 #.  returns the residency of the file pages, rather than any
12301 #.  modified process-private pages that have been copied on write;
12302 #.  for a MAP_PRIVATE mapping of
12303 #.  .IR /dev/zero ,
12304 #.  .B mincore
12305 #.  always reports pages as nonresident;
12306 #.  and for a MAP_PRIVATE, MAP_ANONYMOUS mapping,
12307 #.  .B mincore
12308 #.  always fails with the error
12309 #.  .BR ENOMEM .
12310 #. type: Plain text
12311 #: build/C/man2/mincore.2:166
12312 msgid ""
12313 "Before kernel 2.6.21, B<mincore>()  did not return correct information for "
12314 "B<MAP_PRIVATE> mappings, or for nonlinear mappings (established using "
12315 "B<remap_file_pages>(2))."
12316 msgstr ""
12317
12318 #. type: Plain text
12319 #: build/C/man2/mincore.2:169
12320 msgid "B<mlock>(2), B<mmap>(2)"
12321 msgstr ""
12322
12323 #. type: TH
12324 #: build/C/man2/mkdir.2:9
12325 #, no-wrap
12326 msgid "MKDIR"
12327 msgstr ""
12328
12329 #. type: TH
12330 #: build/C/man2/mkdir.2:9
12331 #, no-wrap
12332 msgid "2010-06-26"
12333 msgstr ""
12334
12335 #. type: Plain text
12336 #: build/C/man2/mkdir.2:12
12337 msgid "mkdir - create a directory"
12338 msgstr ""
12339
12340 #.  .B #include <unistd.h>
12341 #. type: Plain text
12342 #: build/C/man2/mkdir.2:17
12343 #, no-wrap
12344 msgid ""
12345 "B<#include E<lt>sys/stat.hE<gt>>\n"
12346 "B<#include E<lt>sys/types.hE<gt>>\n"
12347 msgstr ""
12348
12349 #. type: Plain text
12350 #: build/C/man2/mkdir.2:19
12351 #, no-wrap
12352 msgid "B<int mkdir(const char *>I<pathname>B<, mode_t >I<mode>B<);>\n"
12353 msgstr ""
12354
12355 #. type: Plain text
12356 #: build/C/man2/mkdir.2:24
12357 msgid "B<mkdir>()  attempts to create a directory named I<pathname>."
12358 msgstr ""
12359
12360 #. type: Plain text
12361 #: build/C/man2/mkdir.2:34
12362 msgid ""
12363 "The argument I<mode> specifies the permissions to use.  It is modified by "
12364 "the process's I<umask> in the usual way: the permissions of the created "
12365 "directory are (I<mode> & ~I<umask> & 0777).  Other mode bits of the created "
12366 "directory depend on the operating system.  For Linux, see below."
12367 msgstr ""
12368
12369 #. type: Plain text
12370 #: build/C/man2/mkdir.2:44
12371 msgid ""
12372 "The newly created directory will be owned by the effective user ID of the "
12373 "process.  If the directory containing the file has the set-group-ID bit set, "
12374 "or if the file system is mounted with BSD group semantics (I<mount -o "
12375 "bsdgroups> or, synonymously I<mount -o grpid>), the new directory will "
12376 "inherit the group ownership from its parent; otherwise it will be owned by "
12377 "the effective group ID of the process."
12378 msgstr ""
12379
12380 #. type: Plain text
12381 #: build/C/man2/mkdir.2:47
12382 msgid ""
12383 "If the parent directory has the set-group-ID bit set then so will the newly "
12384 "created directory."
12385 msgstr ""
12386
12387 #. type: Plain text
12388 #: build/C/man2/mkdir.2:52
12389 msgid ""
12390 "B<mkdir>()  returns zero on success, or -1 if an error occurred (in which "
12391 "case, I<errno> is set appropriately)."
12392 msgstr ""
12393
12394 #. type: Plain text
12395 #: build/C/man2/mkdir.2:61
12396 msgid ""
12397 "The parent directory does not allow write permission to the process, or one "
12398 "of the directories in I<pathname> did not allow search permission.  (See "
12399 "also B<path_resolution>(7).)"
12400 msgstr ""
12401
12402 #. type: TP
12403 #: build/C/man2/mkdir.2:61
12404 #, no-wrap
12405 msgid "B<EEXIST>"
12406 msgstr ""
12407
12408 #. type: Plain text
12409 #: build/C/man2/mkdir.2:68
12410 msgid ""
12411 "I<pathname> already exists (not necessarily as a directory).  This includes "
12412 "the case where I<pathname> is a symbolic link, dangling or not."
12413 msgstr ""
12414
12415 #. type: TP
12416 #: build/C/man2/mkdir.2:75
12417 #, no-wrap
12418 msgid "B<EMLINK>"
12419 msgstr ""
12420
12421 #. type: Plain text
12422 #: build/C/man2/mkdir.2:79
12423 msgid "The number of links to the parent directory would exceed B<LINK_MAX>."
12424 msgstr ""
12425
12426 #. type: Plain text
12427 #: build/C/man2/mkdir.2:82
12428 msgid "I<pathname> was too long."
12429 msgstr ""
12430
12431 #. type: Plain text
12432 #: build/C/man2/mkdir.2:87
12433 msgid ""
12434 "A directory component in I<pathname> does not exist or is a dangling "
12435 "symbolic link."
12436 msgstr ""
12437
12438 #. type: TP
12439 #: build/C/man2/mkdir.2:90 build/C/man2/mkdir.2:95
12440 #, no-wrap
12441 msgid "B<ENOSPC>"
12442 msgstr ""
12443
12444 #. type: Plain text
12445 #: build/C/man2/mkdir.2:95
12446 msgid "The device containing I<pathname> has no room for the new directory."
12447 msgstr ""
12448
12449 #. type: Plain text
12450 #: build/C/man2/mkdir.2:99
12451 msgid ""
12452 "The new directory cannot be created because the user's disk quota is "
12453 "exhausted."
12454 msgstr ""
12455
12456 #. type: Plain text
12457 #: build/C/man2/mkdir.2:109
12458 msgid ""
12459 "The file system containing I<pathname> does not support the creation of "
12460 "directories."
12461 msgstr ""
12462
12463 #. type: Plain text
12464 #: build/C/man2/mkdir.2:113
12465 msgid "I<pathname> refers to a file on a read-only file system."
12466 msgstr ""
12467
12468 #.  SVr4 documents additional EIO, EMULTIHOP
12469 #. type: Plain text
12470 #: build/C/man2/mkdir.2:116
12471 msgid "SVr4, BSD, POSIX.1-2001."
12472 msgstr ""
12473
12474 #. type: Plain text
12475 #: build/C/man2/mkdir.2:124
12476 msgid ""
12477 "Under Linux apart from the permission bits, only the B<S_ISVTX> mode bit is "
12478 "honored.  That is, under Linux the created directory actually gets mode "
12479 "(I<mode> & ~I<umask> & 01777).  See also B<stat>(2)."
12480 msgstr ""
12481
12482 #. type: Plain text
12483 #: build/C/man2/mkdir.2:128
12484 msgid ""
12485 "There are many infelicities in the protocol underlying NFS.  Some of these "
12486 "affect B<mkdir>()."
12487 msgstr ""
12488
12489 #. type: Plain text
12490 #: build/C/man2/mkdir.2:140
12491 msgid ""
12492 "B<mkdir>(1), B<chmod>(2), B<chown>(2), B<mkdirat>(2), B<mknod>(2), "
12493 "B<mount>(2), B<rmdir>(2), B<stat>(2), B<umask>(2), B<unlink>(2), "
12494 "B<path_resolution>(7)"
12495 msgstr ""
12496
12497 #. type: TH
12498 #: build/C/man2/nice.2:31
12499 #, no-wrap
12500 msgid "NICE"
12501 msgstr ""
12502
12503 #. type: Plain text
12504 #: build/C/man2/nice.2:34
12505 msgid "nice - change process priority"
12506 msgstr ""
12507
12508 #. type: Plain text
12509 #: build/C/man2/nice.2:38
12510 msgid "B<int nice(int >I<inc>B<);>"
12511 msgstr ""
12512
12513 #. type: Plain text
12514 #: build/C/man2/nice.2:46
12515 msgid "B<nice>(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE"
12516 msgstr ""
12517
12518 #. type: Plain text
12519 #: build/C/man2/nice.2:56
12520 msgid ""
12521 "B<nice>()  adds I<inc> to the nice value for the calling process.  (A higher "
12522 "nice value means a low priority.)  Only the super\\%user may specify a "
12523 "negative increment, or priority increase.  The range for nice values is "
12524 "described in B<getpriority>(2)."
12525 msgstr ""
12526
12527 #. type: Plain text
12528 #: build/C/man2/nice.2:61
12529 msgid ""
12530 "On success, the new nice value is returned (but see NOTES below).  On error, "
12531 "-1 is returned, and I<errno> is set appropriately."
12532 msgstr ""
12533
12534 #. type: Plain text
12535 #: build/C/man2/nice.2:75
12536 msgid ""
12537 "The calling process attempted to increase its priority by supplying a "
12538 "negative I<inc> but has insufficient privileges.  Under Linux the "
12539 "B<CAP_SYS_NICE> capability is required.  (But see the discussion of the "
12540 "B<RLIMIT_NICE> resource limit in B<setrlimit>(2).)"
12541 msgstr ""
12542
12543 #. type: Plain text
12544 #: build/C/man2/nice.2:82
12545 msgid ""
12546 "SVr4, 4.3BSD, POSIX.1-2001.  However, the Linux and (g)libc (earlier than "
12547 "glibc 2.2.4) return value is nonstandard, see below.  SVr4 documents an "
12548 "additional B<EINVAL> error code."
12549 msgstr ""
12550
12551 #. type: Plain text
12552 #: build/C/man2/nice.2:92
12553 msgid ""
12554 "SUSv2 and POSIX.1-2001 specify that B<nice>()  should return the new nice "
12555 "value.  However, the Linux syscall and the B<nice>()  library function "
12556 "provided in older versions of (g)libc (earlier than glibc 2.2.4) return 0 on "
12557 "success.  The new nice value can be found using B<getpriority>(2)."
12558 msgstr ""
12559
12560 #. type: Plain text
12561 #: build/C/man2/nice.2:105
12562 msgid ""
12563 "Since glibc 2.2.4, B<nice>()  is implemented as a library function that "
12564 "calls B<getpriority>(2)  to obtain the new nice value to be returned to the "
12565 "caller.  With this implementation, a successful call can legitimately return "
12566 "-1.  To reliably detect an error, set I<errno> to 0 before the call, and "
12567 "check its value when B<nice>()  returns -1."
12568 msgstr ""
12569
12570 #. type: Plain text
12571 #: build/C/man2/nice.2:112
12572 msgid ""
12573 "B<nice>(1), B<renice>(1), B<fork>(2), B<getpriority>(2), B<setpriority>(2), "
12574 "B<capabilities>(7)"
12575 msgstr ""
12576
12577 #. type: TH
12578 #: build/C/man2/pread.2:23
12579 #, no-wrap
12580 msgid "PREAD"
12581 msgstr ""
12582
12583 #. type: TH
12584 #: build/C/man2/pread.2:23
12585 #, no-wrap
12586 msgid "2010-11-21"
12587 msgstr ""
12588
12589 #. type: Plain text
12590 #: build/C/man2/pread.2:26
12591 msgid "pread, pwrite - read from or write to a file descriptor at a given offset"
12592 msgstr ""
12593
12594 #. type: Plain text
12595 #: build/C/man2/pread.2:31
12596 msgid ""
12597 "B<ssize_t pread(int >I<fd>B<, void *>I<buf>B<, size_t >I<count>B<, off_t "
12598 ">I<offset>B<);>"
12599 msgstr ""
12600
12601 #. type: Plain text
12602 #: build/C/man2/pread.2:34
12603 msgid ""
12604 "B<ssize_t pwrite(int >I<fd>B<, const void *>I<buf>B<, size_t >I<count>B<, "
12605 "off_t >I<offset>B<);>"
12606 msgstr ""
12607
12608 #. type: Plain text
12609 #: build/C/man2/pread.2:44
12610 msgid "B<pread>(), B<pwrite>():"
12611 msgstr ""
12612
12613 #. type: Plain text
12614 #: build/C/man2/pread.2:46
12615 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 500"
12616 msgstr ""
12617
12618 #. type: Plain text
12619 #: build/C/man2/pread.2:62
12620 msgid ""
12621 "B<pread>()  reads up to I<count> bytes from file descriptor I<fd> at offset "
12622 "I<offset> (from the start of the file) into the buffer starting at I<buf>.  "
12623 "The file offset is not changed."
12624 msgstr ""
12625
12626 #. type: Plain text
12627 #: build/C/man2/pread.2:73
12628 msgid ""
12629 "B<pwrite>()  writes up to I<count> bytes from the buffer starting at I<buf> "
12630 "to the file descriptor I<fd> at offset I<offset>.  The file offset is not "
12631 "changed."
12632 msgstr ""
12633
12634 #. type: Plain text
12635 #: build/C/man2/pread.2:77
12636 msgid "The file referenced by I<fd> must be capable of seeking."
12637 msgstr ""
12638
12639 #. type: Plain text
12640 #: build/C/man2/pread.2:87
12641 msgid ""
12642 "On success, the number of bytes read or written is returned (zero indicates "
12643 "that nothing was written, in the case of B<pwrite>(), or end of file, in the "
12644 "case of B<pread>()), or -1 on error, in which case I<errno> is set to "
12645 "indicate the error."
12646 msgstr ""
12647
12648 #. type: Plain text
12649 #: build/C/man2/pread.2:102
12650 msgid ""
12651 "B<pread>()  can fail and set I<errno> to any error specified for B<read>(2)  "
12652 "or B<lseek>(2).  B<pwrite>()  can fail and set I<errno> to any error "
12653 "specified for B<write>(2)  or B<lseek>(2)."
12654 msgstr ""
12655
12656 #. type: Plain text
12657 #: build/C/man2/pread.2:113
12658 msgid ""
12659 "The B<pread>()  and B<pwrite>()  system calls were added to Linux in version "
12660 "2.1.60; the entries in the i386 system call table were added in 2.1.69.  C "
12661 "library support (including emulation using B<lseek>(2)  on older kernels "
12662 "without the system calls) was added in glibc 2.1."
12663 msgstr ""
12664
12665 #. type: Plain text
12666 #: build/C/man2/pread.2:131
12667 msgid ""
12668 "On Linux, the underlying system calls were renamed in kernel 2.6: B<pread>()  "
12669 "became B<pread64>(), and B<pwrite>()  became B<pwrite64>().  The system call "
12670 "numbers remained the same.  The glibc B<pread>()  and B<pwrite>()  wrapper "
12671 "functions transparently deal with the change."
12672 msgstr ""
12673
12674 #. type: Plain text
12675 #: build/C/man2/pread.2:136
12676 msgid "B<lseek>(2), B<read>(2), B<readv>(2), B<write>(2)"
12677 msgstr ""
12678
12679 #. type: TH
12680 #: build/C/man2/set_thread_area.2:7
12681 #, no-wrap
12682 msgid "SET_THREAD_AREA"
12683 msgstr ""
12684
12685 #. type: Plain text
12686 #: build/C/man2/set_thread_area.2:10
12687 msgid "set_thread_area - Set a Thread Local Storage (TLS) area"
12688 msgstr ""
12689
12690 #. type: Plain text
12691 #: build/C/man2/set_thread_area.2:16
12692 msgid "B<int set_thread_area(struct user_desc *>I<u_info>B<);>"
12693 msgstr ""
12694
12695 #. type: Plain text
12696 #: build/C/man2/set_thread_area.2:29
12697 msgid ""
12698 "B<set_thread_area>()  sets an entry in the current thread's Thread Local "
12699 "Storage (TLS) array.  The TLS array entry set by B<set_thread_area>()  "
12700 "corresponds to the value of I<u_info-E<gt>entry_number> passed in by the "
12701 "user.  If this value is in bounds, B<set_thread_area>()  copies the TLS "
12702 "descriptor pointed to by I<u_info> into the thread's TLS array."
12703 msgstr ""
12704
12705 #. type: Plain text
12706 #: build/C/man2/set_thread_area.2:40
12707 msgid ""
12708 "When B<set_thread_area>()  is passed an I<entry_number> of -1, it uses a "
12709 "free TLS entry.  If B<set_thread_area>()  finds a free TLS entry, the value "
12710 "of I<u_info-E<gt>entry_number> is set upon return to show which entry was "
12711 "changed."
12712 msgstr ""
12713
12714 #. type: Plain text
12715 #: build/C/man2/set_thread_area.2:45
12716 msgid ""
12717 "B<set_thread_area>()  returns 0 on success, and -1 on failure, with I<errno> "
12718 "set appropriately."
12719 msgstr ""
12720
12721 #. type: TP
12722 #: build/C/man2/set_thread_area.2:52
12723 #, no-wrap
12724 msgid "B<ESRCH>"
12725 msgstr ""
12726
12727 #. type: Plain text
12728 #: build/C/man2/set_thread_area.2:55
12729 msgid "A free TLS entry could not be located."
12730 msgstr ""
12731
12732 #. type: Plain text
12733 #: build/C/man2/set_thread_area.2:59
12734 msgid "A version of B<set_thread_area>()  first appeared in Linux 2.5.29."
12735 msgstr ""
12736
12737 #. type: Plain text
12738 #: build/C/man2/set_thread_area.2:63
12739 msgid ""
12740 "B<set_thread_area>()  is Linux-specific and should not be used in programs "
12741 "that are intended to be portable."
12742 msgstr ""
12743
12744 #. type: Plain text
12745 #: build/C/man2/set_thread_area.2:69
12746 msgid "B<get_thread_area>(2)"
12747 msgstr ""
12748
12749 #. type: TH
12750 #: build/C/man2/setup.2:34
12751 #, no-wrap
12752 msgid "SETUP"
12753 msgstr ""
12754
12755 #. type: TH
12756 #: build/C/man2/setup.2:34 build/C/man2/uname.2:25
12757 #, no-wrap
12758 msgid "2008-12-03"
12759 msgstr ""
12760
12761 #. type: Plain text
12762 #: build/C/man2/setup.2:37
12763 msgid "setup - setup devices and file systems, mount root file system"
12764 msgstr ""
12765
12766 #. type: Plain text
12767 #: build/C/man2/setup.2:41
12768 msgid "B<int setup(void);>"
12769 msgstr ""
12770
12771 #. type: Plain text
12772 #: build/C/man2/setup.2:47
12773 msgid ""
12774 "B<setup>()  is called once from within I<linux/init/main.c>.  It calls "
12775 "initialization functions for devices and file systems configured into the "
12776 "kernel and then mounts the root file system."
12777 msgstr ""
12778
12779 #. type: Plain text
12780 #: build/C/man2/setup.2:53
12781 msgid ""
12782 "No user process may call B<setup>().  Any user process, even a process with "
12783 "superuser permission, will receive B<EPERM>."
12784 msgstr ""
12785
12786 #. type: Plain text
12787 #: build/C/man2/setup.2:56
12788 msgid "B<setup>()  always returns -1 for a user process."
12789 msgstr ""
12790
12791 #. type: Plain text
12792 #: build/C/man2/setup.2:62
12793 msgid "Since Linux 2.1.121, no such function exists anymore."
12794 msgstr ""
12795
12796 #. type: Plain text
12797 #: build/C/man2/setup.2:65
12798 msgid ""
12799 "This function is Linux-specific, and should not be used in programs intended "
12800 "to be portable, or indeed in any programs at all."
12801 msgstr ""
12802
12803 #. type: Plain text
12804 #: build/C/man2/setup.2:72
12805 msgid ""
12806 "The calling sequence varied: at some times I<setup ()> has had a single "
12807 "argument I<void *BIOS> and at other times a single argument I<int magic>."
12808 msgstr ""
12809
12810 #. type: TH
12811 #: build/C/man5/shells.5:27
12812 #, no-wrap
12813 msgid "SHELLS"
12814 msgstr ""
12815
12816 #. type: TH
12817 #: build/C/man5/shells.5:27
12818 #, no-wrap
12819 msgid "1993-11-21"
12820 msgstr ""
12821
12822 #. type: Plain text
12823 #: build/C/man5/shells.5:30
12824 msgid "shells - pathnames of valid login shells"
12825 msgstr ""
12826
12827 #. type: Plain text
12828 #: build/C/man5/shells.5:36
12829 msgid ""
12830 "I</etc/shells> is a text file which contains the full pathnames of valid "
12831 "login shells.  This file is consulted by B<chsh>(1)  and available to be "
12832 "queried by other programs."
12833 msgstr ""
12834
12835 #. type: Plain text
12836 #: build/C/man5/shells.5:41
12837 msgid ""
12838 "Be aware that there are programs which consult this file to find out if a "
12839 "user is a normal user.  E.g.: ftp daemons traditionally disallow access to "
12840 "users with shells not included in this file."
12841 msgstr ""
12842
12843 #. type: Plain text
12844 #: build/C/man5/shells.5:43
12845 msgid "I</etc/shells>"
12846 msgstr ""
12847
12848 #. type: Plain text
12849 #: build/C/man5/shells.5:46
12850 msgid "I</etc/shells> may contain the following paths:"
12851 msgstr ""
12852
12853 #. type: Plain text
12854 #: build/C/man5/shells.5:49
12855 msgid "I</bin/sh>"
12856 msgstr ""
12857
12858 #. type: Plain text
12859 #: build/C/man5/shells.5:51
12860 msgid "I</bin/csh>"
12861 msgstr ""
12862
12863 #. type: Plain text
12864 #: build/C/man5/shells.5:55
12865 msgid "B<chsh>(1), B<getusershell>(3)"
12866 msgstr ""
12867
12868 #. type: TH
12869 #: build/C/man3/sleep.3:24
12870 #, no-wrap
12871 msgid "SLEEP"
12872 msgstr ""
12873
12874 #. type: Plain text
12875 #: build/C/man3/sleep.3:27
12876 msgid "sleep - Sleep for the specified number of seconds"
12877 msgstr ""
12878
12879 #. type: Plain text
12880 #: build/C/man3/sleep.3:32
12881 #, no-wrap
12882 msgid "B<unsigned int sleep(unsigned int >I<seconds>B<);>\n"
12883 msgstr ""
12884
12885 #. type: Plain text
12886 #: build/C/man3/sleep.3:38
12887 msgid ""
12888 "B<sleep>()  makes the calling thread sleep until I<seconds> seconds have "
12889 "elapsed or a signal arrives which is not ignored."
12890 msgstr ""
12891
12892 #. type: Plain text
12893 #: build/C/man3/sleep.3:42
12894 msgid ""
12895 "Zero if the requested time has elapsed, or the number of seconds left to "
12896 "sleep, if the call was interrupted by a signal handler."
12897 msgstr ""
12898
12899 #. type: Plain text
12900 #: build/C/man3/sleep.3:53
12901 msgid ""
12902 "B<sleep>()  may be implemented using B<SIGALRM>; mixing calls to B<alarm>(2)  "
12903 "and B<sleep>()  is a bad idea."
12904 msgstr ""
12905
12906 #. type: Plain text
12907 #: build/C/man3/sleep.3:59
12908 msgid ""
12909 "Using B<longjmp>(3)  from a signal handler or modifying the handling of "
12910 "B<SIGALRM> while sleeping will cause undefined results."
12911 msgstr ""
12912
12913 #. type: Plain text
12914 #: build/C/man3/sleep.3:64
12915 msgid "B<alarm>(2), B<nanosleep>(2), B<signal>(2), B<signal>(7)"
12916 msgstr ""
12917
12918 #. type: TH
12919 #: build/C/man3/swab.3:29
12920 #, no-wrap
12921 msgid "SWAB"
12922 msgstr ""
12923
12924 #. type: TH
12925 #: build/C/man3/swab.3:29
12926 #, no-wrap
12927 msgid "2001-12-15"
12928 msgstr ""
12929
12930 #. type: Plain text
12931 #: build/C/man3/swab.3:32
12932 msgid "swab - swap adjacent bytes"
12933 msgstr ""
12934
12935 #. type: Plain text
12936 #: build/C/man3/swab.3:36
12937 #, no-wrap
12938 msgid ""
12939 "B<#define _XOPEN_SOURCE>       /* See feature_test_macros(7) */\n"
12940 "B<#include E<lt>unistd.hE<gt>>\n"
12941 msgstr ""
12942
12943 #. type: Plain text
12944 #: build/C/man3/swab.3:38
12945 #, no-wrap
12946 msgid "B<void swab(const void *>I<from>B<, void *>I<to>B<, ssize_t >I<n>B<);>\n"
12947 msgstr ""
12948
12949 #. type: Plain text
12950 #: build/C/man3/swab.3:47
12951 msgid ""
12952 "The B<swab>()  function copies I<n> bytes from the array pointed to by "
12953 "I<from> to the array pointed to by I<to>, exchanging adjacent even and odd "
12954 "bytes.  This function is used to exchange data between machines that have "
12955 "different low/high byte ordering."
12956 msgstr ""
12957
12958 #. type: Plain text
12959 #: build/C/man3/swab.3:52
12960 msgid ""
12961 "This function does nothing when I<n> is negative.  When I<n> is positive and "
12962 "odd, it handles I<n-1> bytes as above, and does something unspecified with "
12963 "the last byte.  (In other words, I<n> should be even.)"
12964 msgstr ""
12965
12966 #. type: Plain text
12967 #: build/C/man3/swab.3:56
12968 msgid "The B<swab>()  function returns no value."
12969 msgstr ""
12970
12971 #. type: Plain text
12972 #: build/C/man3/swab.3:60
12973 msgid "B<bstring>(3)"
12974 msgstr ""
12975
12976 #. type: TH
12977 #: build/C/man2/swapon.2:37
12978 #, no-wrap
12979 msgid "SWAPON"
12980 msgstr ""
12981
12982 #. type: TH
12983 #: build/C/man2/swapon.2:37
12984 #, no-wrap
12985 msgid "2010-11-15"
12986 msgstr ""
12987
12988 #. type: Plain text
12989 #: build/C/man2/swapon.2:40
12990 msgid "swapon, swapoff - start/stop swapping to file/device"
12991 msgstr ""
12992
12993 #. type: Plain text
12994 #: build/C/man2/swapon.2:44
12995 msgid "B<#include E<lt>asm/page.hE<gt> /* to find PAGE_SIZE */>"
12996 msgstr ""
12997
12998 #. type: Plain text
12999 #: build/C/man2/swapon.2:46
13000 msgid "B<#include E<lt>sys/swap.hE<gt>>"
13001 msgstr ""
13002
13003 #. type: Plain text
13004 #: build/C/man2/swapon.2:48
13005 msgid "B<int swapon(const char *>I<path>B<, int >I<swapflags>B<);>"
13006 msgstr ""
13007
13008 #. type: Plain text
13009 #: build/C/man2/swapon.2:50
13010 msgid "B<int swapoff(const char *>I<path>B<);>"
13011 msgstr ""
13012
13013 #. type: Plain text
13014 #: build/C/man2/swapon.2:57
13015 msgid ""
13016 "B<swapon>()  sets the swap area to the file or block device specified by "
13017 "I<path>.  B<swapoff>()  stops swapping to the file or block device specified "
13018 "by I<path>."
13019 msgstr ""
13020
13021 #. type: Plain text
13022 #: build/C/man2/swapon.2:67
13023 msgid ""
13024 "If the B<SWAP_FLAG_PREFER> flag is specified in the B<swapon>()  "
13025 "I<swapflags> argument, the new swap area will have a higher priority than "
13026 "default.  The priority is encoded within I<swapflags> as:"
13027 msgstr ""
13028
13029 #. type: Plain text
13030 #: build/C/man2/swapon.2:70
13031 msgid "I<(prio E<lt>E<lt> SWAP_FLAG_PRIO_SHIFT) & SWAP_FLAG_PRIO_MASK>"
13032 msgstr ""
13033
13034 #. type: Plain text
13035 #: build/C/man2/swapon.2:82
13036 msgid ""
13037 "If the B<SWAP_FLAG_DISCARD> flag is specified in the B<swapon>()  "
13038 "I<swapflags> argument, freed swap pages will be discarded before they are "
13039 "reused, if the swap device supports the discard or trim operation.  (This "
13040 "may improve performance on some Solid State Devices, but often it does not.)  "
13041 "See also NOTES."
13042 msgstr ""
13043
13044 #. type: Plain text
13045 #: build/C/man2/swapon.2:86
13046 msgid ""
13047 "These functions may only be used by a privileged process (one having the "
13048 "B<CAP_SYS_ADMIN> capability)."
13049 msgstr ""
13050
13051 #. type: SS
13052 #: build/C/man2/swapon.2:86
13053 #, no-wrap
13054 msgid "Priority"
13055 msgstr ""
13056
13057 #. type: Plain text
13058 #: build/C/man2/swapon.2:91
13059 msgid ""
13060 "Each swap area has a priority, either high or low.  The default priority is "
13061 "low.  Within the low-priority areas, newer areas are even lower priority "
13062 "than older areas."
13063 msgstr ""
13064
13065 #. type: Plain text
13066 #: build/C/man2/swapon.2:97
13067 msgid ""
13068 "All priorities set with I<swapflags> are high-priority, higher than "
13069 "default.  They may have any nonnegative value chosen by the caller.  Higher "
13070 "numbers mean higher priority."
13071 msgstr ""
13072
13073 #. type: Plain text
13074 #: build/C/man2/swapon.2:105
13075 msgid ""
13076 "Swap pages are allocated from areas in priority order, highest priority "
13077 "first.  For areas with different priorities, a higher-priority area is "
13078 "exhausted before using a lower-priority area.  If two or more areas have the "
13079 "same priority, and it is the highest priority available, pages are allocated "
13080 "on a round-robin basis between them."
13081 msgstr ""
13082
13083 #. type: Plain text
13084 #: build/C/man2/swapon.2:108
13085 msgid ""
13086 "As of Linux 1.3.6, the kernel usually follows these rules, but there are "
13087 "exceptions."
13088 msgstr ""
13089
13090 #. type: Plain text
13091 #: build/C/man2/swapon.2:121
13092 msgid ""
13093 "(for B<swapon>())  The specified I<path> is already being used as a swap "
13094 "area."
13095 msgstr ""
13096
13097 #. type: Plain text
13098 #: build/C/man2/swapon.2:133
13099 msgid ""
13100 "The file I<path> exists, but refers neither to a regular file nor to a block "
13101 "device; or, for B<swapon>(), the indicated path does not contain a valid "
13102 "swap signature or resides on an in-memory file system like tmpfs; or, for "
13103 "B<swapoff>(), I<path> is not currently a swap area."
13104 msgstr ""
13105
13106 #. type: Plain text
13107 #: build/C/man2/swapon.2:141
13108 msgid "The file I<path> does not exist."
13109 msgstr ""
13110
13111 #. type: Plain text
13112 #: build/C/man2/swapon.2:144
13113 msgid "The system has insufficient memory to start swapping."
13114 msgstr ""
13115
13116 #. type: Plain text
13117 #: build/C/man2/swapon.2:151
13118 msgid ""
13119 "The caller does not have the B<CAP_SYS_ADMIN> capability.  Alternatively, "
13120 "the maximum number of swap files are already in use; see NOTES below."
13121 msgstr ""
13122
13123 #. type: Plain text
13124 #: build/C/man2/swapon.2:157
13125 msgid ""
13126 "These functions are Linux-specific and should not be used in programs "
13127 "intended to be portable.  The second I<swapflags> argument was introduced in "
13128 "Linux 1.3.2."
13129 msgstr ""
13130
13131 #. type: Plain text
13132 #: build/C/man2/swapon.2:160
13133 msgid "The partition or path must be prepared with B<mkswap>(8)."
13134 msgstr ""
13135
13136 #. type: Plain text
13137 #: build/C/man2/swapon.2:180
13138 msgid ""
13139 "There is an upper limit on the number of swap files that may be used, "
13140 "defined by the kernel constant B<MAX_SWAPFILES>.  Before kernel 2.4.10, "
13141 "B<MAX_SWAPFILES> has the value 8; since kernel 2.4.10, it has the value 32.  "
13142 "Since kernel 2.6.18, the limit is decreased by 2 (thus: 30)  if the kernel "
13143 "is built with the B<CONFIG_MIGRATION> option (which reserves two swap table "
13144 "entries for the page migration features of B<mbind>(2)  and "
13145 "B<migrate_pages>(2)).  Since kernel 2.6.32, the limit is further decreased "
13146 "by 1 if the kernel is built with the B<CONFIG_MEMORY_FAILURE> option."
13147 msgstr ""
13148
13149 #.  To be precise: 2.6.35.5
13150 #. type: Plain text
13151 #: build/C/man2/swapon.2:191
13152 msgid ""
13153 "Discard of swap pages was introduced in kernel 2.6.29, then made conditional "
13154 "on the B<SWAP_FLAG_DISCARD> flag in kernel 2.6.36, which still discards the "
13155 "entire swap area when B<swapon>()  is called, even if that flag bit is not "
13156 "set."
13157 msgstr ""
13158
13159 #. type: Plain text
13160 #: build/C/man2/swapon.2:195
13161 msgid "B<mkswap>(8), B<swapoff>(8), B<swapon>(8)"
13162 msgstr ""
13163
13164 #. type: TH
13165 #: build/C/man2/syscall.2:38
13166 #, no-wrap
13167 msgid "SYSCALL"
13168 msgstr ""
13169
13170 #. type: Plain text
13171 #: build/C/man2/syscall.2:41
13172 msgid "syscall - indirect system call"
13173 msgstr ""
13174
13175 #. type: Plain text
13176 #: build/C/man2/syscall.2:46
13177 #, no-wrap
13178 msgid ""
13179 "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
13180 "B<#include E<lt>unistd.hE<gt>>\n"
13181 "B<#include E<lt>sys/syscall.hE<gt>   >/* For SYS_xxx definitions */\n"
13182 msgstr ""
13183
13184 #. type: Plain text
13185 #: build/C/man2/syscall.2:48
13186 #, no-wrap
13187 msgid "B<int syscall(int >I<number>B<, ...);>\n"
13188 msgstr ""
13189
13190 #. type: Plain text
13191 #: build/C/man2/syscall.2:57
13192 msgid ""
13193 "B<syscall>()  performs the system call whose assembly language interface has "
13194 "the specified I<number> with the specified arguments.  Symbolic constants "
13195 "for system calls can be found in the header file I<E<lt>sys/syscall.hE<gt>>."
13196 msgstr ""
13197
13198 #. type: Plain text
13199 #: build/C/man2/syscall.2:63
13200 msgid ""
13201 "The return value is defined by the system call being invoked.  In general, a "
13202 "0 return value indicates success.  A -1 return value indicates an error, and "
13203 "an error code is stored in I<errno>."
13204 msgstr ""
13205
13206 #. type: Plain text
13207 #: build/C/man2/syscall.2:67
13208 msgid "B<syscall>()  first appeared in 4BSD."
13209 msgstr ""
13210
13211 #. type: Plain text
13212 #: build/C/man2/syscall.2:73
13213 #, no-wrap
13214 msgid ""
13215 "#define _GNU_SOURCE\n"
13216 "#include E<lt>unistd.hE<gt>\n"
13217 "#include E<lt>sys/syscall.hE<gt>\n"
13218 "#include E<lt>sys/types.hE<gt>\n"
13219 msgstr ""
13220
13221 #. type: Plain text
13222 #: build/C/man2/syscall.2:78
13223 #, no-wrap
13224 msgid ""
13225 "int\n"
13226 "main(int argc, char *argv[])\n"
13227 "{\n"
13228 "    pid_t tid;\n"
13229 msgstr ""
13230
13231 #. type: Plain text
13232 #: build/C/man2/syscall.2:81
13233 #, no-wrap
13234 msgid ""
13235 "    tid = syscall(SYS_gettid);\n"
13236 "}\n"
13237 msgstr ""
13238
13239 #. type: Plain text
13240 #: build/C/man2/syscall.2:86
13241 msgid "B<_syscall>(2), B<intro>(2), B<syscalls>(2)"
13242 msgstr ""
13243
13244 #. type: TH
13245 #: build/C/man2/syscalls.2:29
13246 #, no-wrap
13247 msgid "SYSCALLS"
13248 msgstr ""
13249
13250 #. type: TH
13251 #: build/C/man2/syscalls.2:29
13252 #, no-wrap
13253 msgid "2011-09-07"
13254 msgstr ""
13255
13256 #. type: Plain text
13257 #: build/C/man2/syscalls.2:32
13258 msgid "syscalls - Linux system calls"
13259 msgstr ""
13260
13261 #. type: Plain text
13262 #: build/C/man2/syscalls.2:34
13263 msgid "Linux system calls."
13264 msgstr ""
13265
13266 #. type: Plain text
13267 #: build/C/man2/syscalls.2:37
13268 msgid ""
13269 "The system call is the fundamental interface between an application and the "
13270 "Linux kernel."
13271 msgstr ""
13272
13273 #. type: SS
13274 #: build/C/man2/syscalls.2:37
13275 #, no-wrap
13276 msgid "System calls and library wrapper functions"
13277 msgstr ""
13278
13279 #. type: Plain text
13280 #: build/C/man2/syscalls.2:47
13281 msgid ""
13282 "System calls are generally not invoked directly, but rather via wrapper "
13283 "functions in glibc (or perhaps some other library).  For details of direct "
13284 "invocation of a system call, see B<intro>(2).  Often, but not always, the "
13285 "name of the wrapper function is the same as the name of the system call that "
13286 "it invokes.  For example, glibc contains a function B<truncate>()  which "
13287 "invokes the underlying \"truncate\" system call."
13288 msgstr ""
13289
13290 #. type: Plain text
13291 #: build/C/man2/syscalls.2:65
13292 msgid ""
13293 "Often the glibc wrapper function is quite thin, doing little work other than "
13294 "copying arguments to the right registers before invoking the system call, "
13295 "and then setting I<errno> appropriately after the system call has returned.  "
13296 "(These are the same steps that are performed by B<syscall>(2), which can be "
13297 "used to invoke system calls for which no wrapper function is provided.)  "
13298 "Note: system calls indicate a failure by returning a negative error number "
13299 "to the caller; when this happens, the wrapper function negates the returned "
13300 "error number (to make it positive), copies it to I<errno>, and returns -1 to "
13301 "the caller of the wrapper."
13302 msgstr ""
13303
13304 #. type: Plain text
13305 #: build/C/man2/syscalls.2:77
13306 msgid ""
13307 "Sometimes, however, the wrapper function does some extra work before "
13308 "invoking the system call.  For example, nowadays there are (for reasons "
13309 "described below) two related system calls, B<truncate>(2)  and "
13310 "B<truncate64>(2), and the glibc B<truncate>()  wrapper function checks which "
13311 "of those system calls are provided by the kernel and determines which should "
13312 "be employed."
13313 msgstr ""
13314
13315 #. type: SS
13316 #: build/C/man2/syscalls.2:77
13317 #, no-wrap
13318 msgid "System call list"
13319 msgstr ""
13320
13321 #. type: Plain text
13322 #: build/C/man2/syscalls.2:85
13323 msgid ""
13324 "Below is a list of those system calls that are common to most platforms.  In "
13325 "the list, the I<Kernel> column indicates the kernel version for those system "
13326 "calls that were new in Linux 2.2, or have appeared since that kernel "
13327 "version.  Note the following points:"
13328 msgstr ""
13329
13330 #. type: Plain text
13331 #: build/C/man2/syscalls.2:88
13332 msgid ""
13333 "Where no kernel version is indicated, the system call appeared in kernel 1.0 "
13334 "or earlier."
13335 msgstr ""
13336
13337 #. type: Plain text
13338 #: build/C/man2/syscalls.2:94
13339 msgid ""
13340 "Where a system call is marked \"1.2\" this means the system call probably "
13341 "appeared in a 1.1.x kernel version, and first appeared in a stable kernel "
13342 "with 1.2.  (Development of the 1.2 kernel was initiated from a branch of "
13343 "kernel 1.0.6 via the 1.1.x unstable kernel series.)"
13344 msgstr ""
13345
13346 #.  Was kernel 2.0 started from a branch of 1.2.10?
13347 #.  At least from the timestamps of the tarballs of
13348 #.  of 1.2.10 and 1.3.0, that's how it looks, but in
13349 #.  fact the diff doesn't seem very clear, the
13350 #.  1.3.0 .tar.bz is much bigger (2.0 MB) than the
13351 #.  1.2.10 .tar.bz2 (1.8 MB), and AEB points out the
13352 #.  timestamps of some files in 1.3.0 seem to be older
13353 #.  than those in 1.2.10.  All of this suggests
13354 #.  that there might not have been a clean branch point.
13355 #. type: Plain text
13356 #: build/C/man2/syscalls.2:110
13357 msgid ""
13358 "Where a system call is marked \"2.0\" this means the system call probably "
13359 "appeared in a 1.3.x kernel version, and first appeared in a stable kernel "
13360 "with 2.0.  (Development of the 2.0 kernel was initiated from a branch of "
13361 "kernel 1.2.x, somewhere around 1.2.10, via the 1.3.x unstable kernel "
13362 "series.)"
13363 msgstr ""
13364
13365 #. type: Plain text
13366 #: build/C/man2/syscalls.2:116
13367 msgid ""
13368 "Where a system call is marked \"2.2\" this means the system call probably "
13369 "appeared in a 2.1.x kernel version, and first appeared in a stable kernel "
13370 "with 2.2.0.  (Development of the 2.2 kernel was initiated from a branch of "
13371 "kernel 2.0.21 via the 2.1.x unstable kernel series.)"
13372 msgstr ""
13373
13374 #. type: Plain text
13375 #: build/C/man2/syscalls.2:122
13376 msgid ""
13377 "Where a system call is marked \"2.4\" this means the system call probably "
13378 "appeared in a 2.3.x kernel version, and first appeared in a stable kernel "
13379 "with 2.4.0.  (Development of the 2.4 kernel was initiated from a branch of "
13380 "kernel 2.2.8 via the 2.3.x unstable kernel series.)"
13381 msgstr ""
13382
13383 #. type: Plain text
13384 #: build/C/man2/syscalls.2:128
13385 msgid ""
13386 "Where a system call is marked \"2.6\" this means the system call probably "
13387 "appeared in a 2.5.x kernel version, and first appeared in a stable kernel "
13388 "with 2.6.0.  (Development of kernel 2.6 was initiated from a branch of "
13389 "kernel 2.4.15 via the 2.5.x unstable kernel series.)"
13390 msgstr ""
13391
13392 #. type: Plain text
13393 #: build/C/man2/syscalls.2:135
13394 msgid ""
13395 "Starting with kernel 2.6.0, the development model changed, and new system "
13396 "calls may appear in each 2.6.x release.  In this case, the exact version "
13397 "number where the system call appeared is shown.  This convention continues "
13398 "with the 3.x kernel series, which followed on from kernel 2.6.39."
13399 msgstr ""
13400
13401 #. type: Plain text
13402 #: build/C/man2/syscalls.2:143
13403 msgid ""
13404 "In some cases, a system call was added to a stable kernel series after it "
13405 "branched from the previous stable kernel series, and then backported into "
13406 "the earlier stable kernel series.  For example some system calls that "
13407 "appeared in 2.6.x were also backported into a 2.4.x release after 2.4.15.  "
13408 "When this is so, the version where the system call appeared in both of the "
13409 "major kernel series is listed."
13410 msgstr ""
13411
13412 #
13413 #.  Looking at scripts/checksyscalls.sh in the kernel source is
13414 #.  instructive about i386 specifics.
13415 #. type: Plain text
13416 #: build/C/man2/syscalls.2:150
13417 msgid ""
13418 "The list of system calls that are available as at kernel 3.1 (or in a few "
13419 "cases only on older kernels) is as follows:"
13420 msgstr ""
13421
13422 #. type: tbl table
13423 #: build/C/man2/syscalls.2:154
13424 #, no-wrap
13425 msgid "B<System call>\tB<Kernel>\tB<Notes>\n"
13426 msgstr ""
13427
13428 #. type: tbl table
13429 #: build/C/man2/syscalls.2:156
13430 #, no-wrap
13431 msgid "B<_llseek>(2)\t1.2\n"
13432 msgstr ""
13433
13434 #. type: tbl table
13435 #: build/C/man2/syscalls.2:157
13436 #, no-wrap
13437 msgid "B<_newselect>(2)\n"
13438 msgstr ""
13439
13440 #. type: tbl table
13441 #: build/C/man2/syscalls.2:158
13442 #, no-wrap
13443 msgid "B<_sysctl>(2)\n"
13444 msgstr ""
13445
13446 #. type: tbl table
13447 #: build/C/man2/syscalls.2:159
13448 #, no-wrap
13449 msgid "B<accept>(2)\n"
13450 msgstr ""
13451
13452 #. type: tbl table
13453 #: build/C/man2/syscalls.2:160
13454 #, no-wrap
13455 msgid "B<accept4>(2)\t2.6.28\n"
13456 msgstr ""
13457
13458 #. type: tbl table
13459 #: build/C/man2/syscalls.2:161
13460 #, no-wrap
13461 msgid "B<access>(2)\n"
13462 msgstr ""
13463
13464 #. type: tbl table
13465 #: build/C/man2/syscalls.2:162
13466 #, no-wrap
13467 msgid "B<acct>(2)\n"
13468 msgstr ""
13469
13470 #. type: tbl table
13471 #: build/C/man2/syscalls.2:163
13472 #, no-wrap
13473 msgid "B<add_key>(2)\t2.6.11\n"
13474 msgstr ""
13475
13476 #. type: tbl table
13477 #: build/C/man2/syscalls.2:164
13478 #, no-wrap
13479 msgid "B<adjtimex>(2)\n"
13480 msgstr ""
13481
13482 #. type: tbl table
13483 #: build/C/man2/syscalls.2:165
13484 #, no-wrap
13485 msgid "B<afs_syscall>(2)\t\tNot implemented\n"
13486 msgstr ""
13487
13488 #. type: tbl table
13489 #: build/C/man2/syscalls.2:166
13490 #, no-wrap
13491 msgid "B<alarm>(2)\n"
13492 msgstr ""
13493
13494 #. type: tbl table
13495 #: build/C/man2/syscalls.2:167
13496 #, no-wrap
13497 msgid "B<alloc_hugepages>(2)\t2.5.36\tRemoved in 2.5.44\n"
13498 msgstr ""
13499
13500 #. type: tbl table
13501 #: build/C/man2/syscalls.2:168
13502 #, no-wrap
13503 msgid "B<bdflush>(2)\n"
13504 msgstr ""
13505
13506 #. type: tbl table
13507 #: build/C/man2/syscalls.2:169
13508 #, no-wrap
13509 msgid "B<bind>(2)\n"
13510 msgstr ""
13511
13512 #. type: tbl table
13513 #: build/C/man2/syscalls.2:170
13514 #, no-wrap
13515 msgid "B<break>(2)\t\tNot implemented\n"
13516 msgstr ""
13517
13518 #. type: tbl table
13519 #: build/C/man2/syscalls.2:171
13520 #, no-wrap
13521 msgid "B<brk>(2)\n"
13522 msgstr ""
13523
13524 #. type: tbl table
13525 #: build/C/man2/syscalls.2:172
13526 #, no-wrap
13527 msgid "B<cacheflush>(2)\t1.2\tNot on i386\n"
13528 msgstr ""
13529
13530 #. type: tbl table
13531 #: build/C/man2/syscalls.2:173
13532 #, no-wrap
13533 msgid "B<capget>(2)\t2.2\n"
13534 msgstr ""
13535
13536 #. type: tbl table
13537 #: build/C/man2/syscalls.2:174
13538 #, no-wrap
13539 msgid "B<capset>(2)\t2.2\n"
13540 msgstr ""
13541
13542 #. type: tbl table
13543 #: build/C/man2/syscalls.2:175
13544 #, no-wrap
13545 msgid "B<chdir>(2)\n"
13546 msgstr ""
13547
13548 #. type: tbl table
13549 #: build/C/man2/syscalls.2:176
13550 #, no-wrap
13551 msgid "B<chmod>(2)\n"
13552 msgstr ""
13553
13554 #. type: tbl table
13555 #: build/C/man2/syscalls.2:177
13556 #, no-wrap
13557 msgid "B<chown>(2)\n"
13558 msgstr ""
13559
13560 #. type: tbl table
13561 #: build/C/man2/syscalls.2:178
13562 #, no-wrap
13563 msgid "B<chown32>(2)\t2.4\n"
13564 msgstr ""
13565
13566 #. type: tbl table
13567 #: build/C/man2/syscalls.2:179
13568 #, no-wrap
13569 msgid "B<chroot>(2)\n"
13570 msgstr ""
13571
13572 #. type: tbl table
13573 #: build/C/man2/syscalls.2:180
13574 #, no-wrap
13575 msgid "B<clock_adjtime>(2)\t2.6.39\n"
13576 msgstr ""
13577
13578 #. type: tbl table
13579 #: build/C/man2/syscalls.2:181
13580 #, no-wrap
13581 msgid "B<clock_getres>(2)\t2.6\n"
13582 msgstr ""
13583
13584 #. type: tbl table
13585 #: build/C/man2/syscalls.2:182
13586 #, no-wrap
13587 msgid "B<clock_gettime>(2)\t2.6\n"
13588 msgstr ""
13589
13590 #. type: tbl table
13591 #: build/C/man2/syscalls.2:183
13592 #, no-wrap
13593 msgid "B<clock_nanosleep>(2)\t2.6\n"
13594 msgstr ""
13595
13596 #. type: tbl table
13597 #: build/C/man2/syscalls.2:184
13598 #, no-wrap
13599 msgid "B<clock_settime>(2)\t2.6\n"
13600 msgstr ""
13601
13602 #. type: tbl table
13603 #: build/C/man2/syscalls.2:185
13604 #, no-wrap
13605 msgid "B<clone>(2)\n"
13606 msgstr ""
13607
13608 #. type: tbl table
13609 #: build/C/man2/syscalls.2:186
13610 #, no-wrap
13611 msgid "B<close>(2)\n"
13612 msgstr ""
13613
13614 #. type: tbl table
13615 #: build/C/man2/syscalls.2:187
13616 #, no-wrap
13617 msgid "B<connect>(2)\n"
13618 msgstr ""
13619
13620 #. type: tbl table
13621 #: build/C/man2/syscalls.2:188
13622 #, no-wrap
13623 msgid "B<creat>(2)\n"
13624 msgstr ""
13625
13626 #. type: tbl table
13627 #: build/C/man2/syscalls.2:189
13628 #, no-wrap
13629 msgid "B<create_module>(2)\n"
13630 msgstr ""
13631
13632 #. type: tbl table
13633 #: build/C/man2/syscalls.2:190
13634 #, no-wrap
13635 msgid "B<delete_module>(2)\n"
13636 msgstr ""
13637
13638 #. type: tbl table
13639 #: build/C/man2/syscalls.2:191
13640 #, no-wrap
13641 msgid "B<dup>(2)\n"
13642 msgstr ""
13643
13644 #. type: tbl table
13645 #: build/C/man2/syscalls.2:192
13646 #, no-wrap
13647 msgid "B<dup2>(2)\n"
13648 msgstr ""
13649
13650 #. type: tbl table
13651 #: build/C/man2/syscalls.2:193
13652 #, no-wrap
13653 msgid "B<dup3>(2)\t2.6.27\n"
13654 msgstr ""
13655
13656 #. type: tbl table
13657 #: build/C/man2/syscalls.2:194
13658 #, no-wrap
13659 msgid "B<epoll_create>(2)\t2.6\n"
13660 msgstr ""
13661
13662 #. type: tbl table
13663 #: build/C/man2/syscalls.2:195
13664 #, no-wrap
13665 msgid "B<epoll_create1>(2)\t2.6.27\n"
13666 msgstr ""
13667
13668 #. type: tbl table
13669 #: build/C/man2/syscalls.2:196
13670 #, no-wrap
13671 msgid "B<epoll_ctl>(2)\t2.6\n"
13672 msgstr ""
13673
13674 #. type: tbl table
13675 #: build/C/man2/syscalls.2:197
13676 #, no-wrap
13677 msgid "B<epoll_pwait>(2)\t2.6.19\n"
13678 msgstr ""
13679
13680 #. type: tbl table
13681 #: build/C/man2/syscalls.2:198
13682 #, no-wrap
13683 msgid "B<epoll_wait>(2)\t2.6\n"
13684 msgstr ""
13685
13686 #. type: tbl table
13687 #: build/C/man2/syscalls.2:199
13688 #, no-wrap
13689 msgid "B<eventfd>(2)\t2.6.22\n"
13690 msgstr ""
13691
13692 #. type: tbl table
13693 #: build/C/man2/syscalls.2:200
13694 #, no-wrap
13695 msgid "B<eventfd2>(2)\t2.6.27\n"
13696 msgstr ""
13697
13698 #. type: tbl table
13699 #: build/C/man2/syscalls.2:201
13700 #, no-wrap
13701 msgid "B<execve>(2)\n"
13702 msgstr ""
13703
13704 #. type: tbl table
13705 #: build/C/man2/syscalls.2:202
13706 #, no-wrap
13707 msgid "B<exit>(2)\n"
13708 msgstr ""
13709
13710 #. type: tbl table
13711 #: build/C/man2/syscalls.2:203
13712 #, no-wrap
13713 msgid "B<exit_group>(2)\t2.6\n"
13714 msgstr ""
13715
13716 #. type: tbl table
13717 #: build/C/man2/syscalls.2:204
13718 #, no-wrap
13719 msgid "B<faccessat>(2)\t2.6.16\n"
13720 msgstr ""
13721
13722 #. type: tbl table
13723 #: build/C/man2/syscalls.2:205
13724 #, no-wrap
13725 msgid "B<fadvise64>(2)\t2.6\n"
13726 msgstr ""
13727
13728 #.  Implements \fBposix_fadvise\fP(2)
13729 #. type: tbl table
13730 #: build/C/man2/syscalls.2:207
13731 #, no-wrap
13732 msgid "B<fadvise64_64>(2)\t2.6\n"
13733 msgstr ""
13734
13735 #. type: tbl table
13736 #: build/C/man2/syscalls.2:208
13737 #, no-wrap
13738 msgid "B<fallocate>(2)\t2.6.23\n"
13739 msgstr ""
13740
13741 #. type: tbl table
13742 #: build/C/man2/syscalls.2:209
13743 #, no-wrap
13744 msgid "B<fanotify_init>(2)\t2.6.37\n"
13745 msgstr ""
13746
13747 #. type: tbl table
13748 #: build/C/man2/syscalls.2:210
13749 #, no-wrap
13750 msgid "B<fanotify_mark>(2)\t2.6.37\n"
13751 msgstr ""
13752
13753 #.  The fanotify calls were added in Linux 2.6.36,
13754 #.  but disabled while the API was finalized.
13755 #. type: tbl table
13756 #: build/C/man2/syscalls.2:213
13757 #, no-wrap
13758 msgid "B<fchdir>(2)\n"
13759 msgstr ""
13760
13761 #. type: tbl table
13762 #: build/C/man2/syscalls.2:214
13763 #, no-wrap
13764 msgid "B<fchmod>(2)\n"
13765 msgstr ""
13766
13767 #. type: tbl table
13768 #: build/C/man2/syscalls.2:215
13769 #, no-wrap
13770 msgid "B<fchmodat>(2)\t2.6.16\n"
13771 msgstr ""
13772
13773 #. type: tbl table
13774 #: build/C/man2/syscalls.2:216
13775 #, no-wrap
13776 msgid "B<fchown>(2)\n"
13777 msgstr ""
13778
13779 #. type: tbl table
13780 #: build/C/man2/syscalls.2:217
13781 #, no-wrap
13782 msgid "B<fchown32>(2)\t2.4\n"
13783 msgstr ""
13784
13785 #. type: tbl table
13786 #: build/C/man2/syscalls.2:218
13787 #, no-wrap
13788 msgid "B<fchownat>(2)\t2.6.16\n"
13789 msgstr ""
13790
13791 #. type: tbl table
13792 #: build/C/man2/syscalls.2:219
13793 #, no-wrap
13794 msgid "B<fcntl>(2)\n"
13795 msgstr ""
13796
13797 #. type: tbl table
13798 #: build/C/man2/syscalls.2:220
13799 #, no-wrap
13800 msgid "B<fcntl64>(2)\t2.4\n"
13801 msgstr ""
13802
13803 #. type: tbl table
13804 #: build/C/man2/syscalls.2:221
13805 #, no-wrap
13806 msgid "B<fdatasync>(2)\n"
13807 msgstr ""
13808
13809 #. type: tbl table
13810 #: build/C/man2/syscalls.2:222
13811 #, no-wrap
13812 msgid "B<fgetxattr>(2)\t2.6; 2.4.18\n"
13813 msgstr ""
13814
13815 #. type: tbl table
13816 #: build/C/man2/syscalls.2:223
13817 #, no-wrap
13818 msgid "B<flistxattr>(2)\t2.6; 2.4.18\n"
13819 msgstr ""
13820
13821 #. type: tbl table
13822 #: build/C/man2/syscalls.2:224
13823 #, no-wrap
13824 msgid "B<flock>(2)\t2.0\n"
13825 msgstr ""
13826
13827 #. type: tbl table
13828 #: build/C/man2/syscalls.2:225
13829 #, no-wrap
13830 msgid "B<fork>(2)\n"
13831 msgstr ""
13832
13833 #. type: tbl table
13834 #: build/C/man2/syscalls.2:226
13835 #, no-wrap
13836 msgid "B<free_hugepages>(2)\t2.5.36\tRemoved in 2.5.44\n"
13837 msgstr ""
13838
13839 #. type: tbl table
13840 #: build/C/man2/syscalls.2:227
13841 #, no-wrap
13842 msgid "B<fremovexattr>(2)\t2.6; 2.4.18\n"
13843 msgstr ""
13844
13845 #. type: tbl table
13846 #: build/C/man2/syscalls.2:228
13847 #, no-wrap
13848 msgid "B<fsetxattr>(2)\t2.6; 2.4.18\n"
13849 msgstr ""
13850
13851 #. type: tbl table
13852 #: build/C/man2/syscalls.2:229
13853 #, no-wrap
13854 msgid "B<fstat>(2)\n"
13855 msgstr ""
13856
13857 #. type: tbl table
13858 #: build/C/man2/syscalls.2:230
13859 #, no-wrap
13860 msgid "B<fstat64>(2)\t2.4\n"
13861 msgstr ""
13862
13863 #. type: tbl table
13864 #: build/C/man2/syscalls.2:231
13865 #, no-wrap
13866 msgid "B<fstatat64>(2)\t2.6.16\n"
13867 msgstr ""
13868
13869 #. type: tbl table
13870 #: build/C/man2/syscalls.2:232
13871 #, no-wrap
13872 msgid "B<fstatfs>(2)\n"
13873 msgstr ""
13874
13875 #. type: tbl table
13876 #: build/C/man2/syscalls.2:233
13877 #, no-wrap
13878 msgid "B<fstatfs64>(2)\t2.6\n"
13879 msgstr ""
13880
13881 #. type: tbl table
13882 #: build/C/man2/syscalls.2:234
13883 #, no-wrap
13884 msgid "B<fsync>(2)\n"
13885 msgstr ""
13886
13887 #. type: tbl table
13888 #: build/C/man2/syscalls.2:235
13889 #, no-wrap
13890 msgid "B<ftime>(2)\t\tNot implemented\n"
13891 msgstr ""
13892
13893 #.  Implemented in glibc; see \fBftime\fP(3)
13894 #. type: tbl table
13895 #: build/C/man2/syscalls.2:237
13896 #, no-wrap
13897 msgid "B<ftruncate>(2)\n"
13898 msgstr ""
13899
13900 #. type: tbl table
13901 #: build/C/man2/syscalls.2:238
13902 #, no-wrap
13903 msgid "B<ftruncate64>(2)\t2.4\n"
13904 msgstr ""
13905
13906 #. type: tbl table
13907 #: build/C/man2/syscalls.2:239
13908 #, no-wrap
13909 msgid "B<futex>(2)\t2.6\n"
13910 msgstr ""
13911
13912 #. type: tbl table
13913 #: build/C/man2/syscalls.2:240
13914 #, no-wrap
13915 msgid "B<futimesat>(2)\t2.6.16\n"
13916 msgstr ""
13917
13918 #. type: tbl table
13919 #: build/C/man2/syscalls.2:241
13920 #, no-wrap
13921 msgid "B<get_kernel_syms>(2)\n"
13922 msgstr ""
13923
13924 #. type: tbl table
13925 #: build/C/man2/syscalls.2:242
13926 #, no-wrap
13927 msgid "B<get_mempolicy>(2)\t2.6.6\n"
13928 msgstr ""
13929
13930 #. type: tbl table
13931 #: build/C/man2/syscalls.2:243
13932 #, no-wrap
13933 msgid "B<get_robust_list>(2)\t2.6.17\n"
13934 msgstr ""
13935
13936 #. type: tbl table
13937 #: build/C/man2/syscalls.2:244
13938 #, no-wrap
13939 msgid "B<get_thread_area>(2)\t2.6\n"
13940 msgstr ""
13941
13942 #. type: tbl table
13943 #: build/C/man2/syscalls.2:245
13944 #, no-wrap
13945 msgid "B<getcpu>(2)\t2.6.19\n"
13946 msgstr ""
13947
13948 #. type: tbl table
13949 #: build/C/man2/syscalls.2:246
13950 #, no-wrap
13951 msgid "B<getcwd>(2)\t2.2\n"
13952 msgstr ""
13953
13954 #. type: tbl table
13955 #: build/C/man2/syscalls.2:247
13956 #, no-wrap
13957 msgid "B<getdents>(2)\t2.0\n"
13958 msgstr ""
13959
13960 #. type: tbl table
13961 #: build/C/man2/syscalls.2:248
13962 #, no-wrap
13963 msgid "B<getdents64>(2)\t2.4\n"
13964 msgstr ""
13965
13966 #. type: tbl table
13967 #: build/C/man2/syscalls.2:249
13968 #, no-wrap
13969 msgid "B<getegid>(2)\n"
13970 msgstr ""
13971
13972 #. type: tbl table
13973 #: build/C/man2/syscalls.2:250
13974 #, no-wrap
13975 msgid "B<getegid32>(2)\t2.4\n"
13976 msgstr ""
13977
13978 #. type: tbl table
13979 #: build/C/man2/syscalls.2:251
13980 #, no-wrap
13981 msgid "B<geteuid>(2)\n"
13982 msgstr ""
13983
13984 #. type: tbl table
13985 #: build/C/man2/syscalls.2:252
13986 #, no-wrap
13987 msgid "B<geteuid32>(2)\t2.4\n"
13988 msgstr ""
13989
13990 #. type: tbl table
13991 #: build/C/man2/syscalls.2:253
13992 #, no-wrap
13993 msgid "B<getgid>(2)\n"
13994 msgstr ""
13995
13996 #. type: tbl table
13997 #: build/C/man2/syscalls.2:254
13998 #, no-wrap
13999 msgid "B<getgid32>(2)\t2.4\n"
14000 msgstr ""
14001
14002 #. type: tbl table
14003 #: build/C/man2/syscalls.2:255
14004 #, no-wrap
14005 msgid "B<getgroups>(2)\n"
14006 msgstr ""
14007
14008 #. type: tbl table
14009 #: build/C/man2/syscalls.2:256
14010 #, no-wrap
14011 msgid "B<getgroups32>(2)\t2.4\n"
14012 msgstr ""
14013
14014 #. type: tbl table
14015 #: build/C/man2/syscalls.2:257
14016 #, no-wrap
14017 msgid "B<getitimer>(2)\n"
14018 msgstr ""
14019
14020 #. type: tbl table
14021 #: build/C/man2/syscalls.2:258
14022 #, no-wrap
14023 msgid "B<getpeername>(2)\n"
14024 msgstr ""
14025
14026 #. type: tbl table
14027 #: build/C/man2/syscalls.2:259
14028 #, no-wrap
14029 msgid "B<getpagesize>(2)\t2.0\tNot on i386\n"
14030 msgstr ""
14031
14032 #. type: tbl table
14033 #: build/C/man2/syscalls.2:260
14034 #, no-wrap
14035 msgid "B<getpgid>(2)\n"
14036 msgstr ""
14037
14038 #. type: tbl table
14039 #: build/C/man2/syscalls.2:261
14040 #, no-wrap
14041 msgid "B<getpgrp>(2)\n"
14042 msgstr ""
14043
14044 #. type: tbl table
14045 #: build/C/man2/syscalls.2:262
14046 #, no-wrap
14047 msgid "B<getpid>(2)\n"
14048 msgstr ""
14049
14050 #. type: tbl table
14051 #: build/C/man2/syscalls.2:263
14052 #, no-wrap
14053 msgid "B<getpmsg>(2)\t\tNot implemented\n"
14054 msgstr ""
14055
14056 #.  Reserved for STREAMS support
14057 #. type: tbl table
14058 #: build/C/man2/syscalls.2:265
14059 #, no-wrap
14060 msgid "B<getppid>(2)\n"
14061 msgstr ""
14062
14063 #. type: tbl table
14064 #: build/C/man2/syscalls.2:266
14065 #, no-wrap
14066 msgid "B<getpriority>(2)\n"
14067 msgstr ""
14068
14069 #. type: tbl table
14070 #: build/C/man2/syscalls.2:267
14071 #, no-wrap
14072 msgid "B<getresgid>(2)\t2.2\n"
14073 msgstr ""
14074
14075 #. type: tbl table
14076 #: build/C/man2/syscalls.2:268
14077 #, no-wrap
14078 msgid "B<getresgid32>(2)\t2.4\n"
14079 msgstr ""
14080
14081 #. type: tbl table
14082 #: build/C/man2/syscalls.2:269
14083 #, no-wrap
14084 msgid "B<getresuid>(2)\t2.2\n"
14085 msgstr ""
14086
14087 #. type: tbl table
14088 #: build/C/man2/syscalls.2:270
14089 #, no-wrap
14090 msgid "B<getresuid32>(2)\t2.4\n"
14091 msgstr ""
14092
14093 #. type: tbl table
14094 #: build/C/man2/syscalls.2:271
14095 #, no-wrap
14096 msgid "B<getrlimit>(2)\n"
14097 msgstr ""
14098
14099 #. type: tbl table
14100 #: build/C/man2/syscalls.2:272
14101 #, no-wrap
14102 msgid "B<getrusage>(2)\n"
14103 msgstr ""
14104
14105 #. type: tbl table
14106 #: build/C/man2/syscalls.2:273
14107 #, no-wrap
14108 msgid "B<getsid>(2)\t2.0\n"
14109 msgstr ""
14110
14111 #. type: tbl table
14112 #: build/C/man2/syscalls.2:274
14113 #, no-wrap
14114 msgid "B<getsockname>(2)\n"
14115 msgstr ""
14116
14117 #. type: tbl table
14118 #: build/C/man2/syscalls.2:275
14119 #, no-wrap
14120 msgid "B<getsockopt>(2)\n"
14121 msgstr ""
14122
14123 #. type: tbl table
14124 #: build/C/man2/syscalls.2:276
14125 #, no-wrap
14126 msgid "B<gettid>(2)\t2.4.11\n"
14127 msgstr ""
14128
14129 #. type: tbl table
14130 #: build/C/man2/syscalls.2:277
14131 #, no-wrap
14132 msgid "B<gettimeofday>(2)\n"
14133 msgstr ""
14134
14135 #. type: tbl table
14136 #: build/C/man2/syscalls.2:278
14137 #, no-wrap
14138 msgid "B<getuid>(2)\n"
14139 msgstr ""
14140
14141 #. type: tbl table
14142 #: build/C/man2/syscalls.2:279
14143 #, no-wrap
14144 msgid "B<getuid32>(2)\t2.4\n"
14145 msgstr ""
14146
14147 #.  \fBgetunwind\fP(2)  2.4.8   ia64; DEPRECATED
14148 #. type: tbl table
14149 #: build/C/man2/syscalls.2:281
14150 #, no-wrap
14151 msgid "B<getxattr>(2)\t2.6; 2.4.18\n"
14152 msgstr ""
14153
14154 #. type: tbl table
14155 #: build/C/man2/syscalls.2:282
14156 #, no-wrap
14157 msgid "B<gtty>(2)\t\tNot implemented\n"
14158 msgstr ""
14159
14160 #. type: tbl table
14161 #: build/C/man2/syscalls.2:283
14162 #, no-wrap
14163 msgid "B<idle>(2)\t\tNot implemented\n"
14164 msgstr ""
14165
14166 #. type: tbl table
14167 #: build/C/man2/syscalls.2:284
14168 #, no-wrap
14169 msgid "B<init_module>(2)\n"
14170 msgstr ""
14171
14172 #. type: tbl table
14173 #: build/C/man2/syscalls.2:285
14174 #, no-wrap
14175 msgid "B<inotify_add_watch>(2)\t2.6.13\n"
14176 msgstr ""
14177
14178 #. type: tbl table
14179 #: build/C/man2/syscalls.2:286
14180 #, no-wrap
14181 msgid "B<inotify_init>(2)\t2.6.13\n"
14182 msgstr ""
14183
14184 #. type: tbl table
14185 #: build/C/man2/syscalls.2:287
14186 #, no-wrap
14187 msgid "B<inotify_init1>(2)\t2.6.27\n"
14188 msgstr ""
14189
14190 #. type: tbl table
14191 #: build/C/man2/syscalls.2:288
14192 #, no-wrap
14193 msgid "B<inotify_rm_watch>(2)\t2.6.13\n"
14194 msgstr ""
14195
14196 #. type: tbl table
14197 #: build/C/man2/syscalls.2:289
14198 #, no-wrap
14199 msgid "B<io_cancel>(2)\t2.6\n"
14200 msgstr ""
14201
14202 #. type: tbl table
14203 #: build/C/man2/syscalls.2:290
14204 #, no-wrap
14205 msgid "B<io_destroy>(2)\t2.6\n"
14206 msgstr ""
14207
14208 #. type: tbl table
14209 #: build/C/man2/syscalls.2:291
14210 #, no-wrap
14211 msgid "B<io_getevents>(2)\t2.6\n"
14212 msgstr ""
14213
14214 #. type: tbl table
14215 #: build/C/man2/syscalls.2:292
14216 #, no-wrap
14217 msgid "B<io_setup>(2)\t2.6\n"
14218 msgstr ""
14219
14220 #. type: tbl table
14221 #: build/C/man2/syscalls.2:293
14222 #, no-wrap
14223 msgid "B<io_submit>(2)\t2.6\n"
14224 msgstr ""
14225
14226 #. type: tbl table
14227 #: build/C/man2/syscalls.2:294
14228 #, no-wrap
14229 msgid "B<ioctl>(2)\n"
14230 msgstr ""
14231
14232 #. type: tbl table
14233 #: build/C/man2/syscalls.2:295
14234 #, no-wrap
14235 msgid "B<ioperm>(2)\n"
14236 msgstr ""
14237
14238 #. type: tbl table
14239 #: build/C/man2/syscalls.2:296
14240 #, no-wrap
14241 msgid "B<iopl>(2)\n"
14242 msgstr ""
14243
14244 #. type: tbl table
14245 #: build/C/man2/syscalls.2:297
14246 #, no-wrap
14247 msgid "B<ioprio_get>(2)\t2.6.13\n"
14248 msgstr ""
14249
14250 #. type: tbl table
14251 #: build/C/man2/syscalls.2:298
14252 #, no-wrap
14253 msgid "B<ioprio_set>(2)\t2.6.13\n"
14254 msgstr ""
14255
14256 #. type: tbl table
14257 #: build/C/man2/syscalls.2:299
14258 #, no-wrap
14259 msgid "B<ipc>(2)\n"
14260 msgstr ""
14261
14262 #.  Implements System V IPC calls
14263 #. type: tbl table
14264 #: build/C/man2/syscalls.2:301
14265 #, no-wrap
14266 msgid "B<kexec_load>(2)\t2.6.13\n"
14267 msgstr ""
14268
14269 #.  The entry in the syscall table was reserved starting in 2.6.7
14270 #.  Was named sys_kexec_load() from 2.6.7 to 2.6.16
14271 #. type: tbl table
14272 #: build/C/man2/syscalls.2:304
14273 #, no-wrap
14274 msgid "B<keyctl>(2)\t2.6.11\n"
14275 msgstr ""
14276
14277 #. type: tbl table
14278 #: build/C/man2/syscalls.2:305
14279 #, no-wrap
14280 msgid "B<kill>(2)\n"
14281 msgstr ""
14282
14283 #. type: tbl table
14284 #: build/C/man2/syscalls.2:306
14285 #, no-wrap
14286 msgid "B<lchown>(2)\t2.2\n"
14287 msgstr ""
14288
14289 #. type: tbl table
14290 #: build/C/man2/syscalls.2:307
14291 #, no-wrap
14292 msgid "B<lchown32>(2)\t2.4\n"
14293 msgstr ""
14294
14295 #. type: tbl table
14296 #: build/C/man2/syscalls.2:308
14297 #, no-wrap
14298 msgid "B<lgetxattr>(2)\t2.6; 2.4.18\n"
14299 msgstr ""
14300
14301 #. type: tbl table
14302 #: build/C/man2/syscalls.2:309
14303 #, no-wrap
14304 msgid "B<link>(2)\n"
14305 msgstr ""
14306
14307 #. type: tbl table
14308 #: build/C/man2/syscalls.2:310
14309 #, no-wrap
14310 msgid "B<linkat>(2)\t2.6.16\n"
14311 msgstr ""
14312
14313 #. type: tbl table
14314 #: build/C/man2/syscalls.2:311
14315 #, no-wrap
14316 msgid "B<listen>(2)\n"
14317 msgstr ""
14318
14319 #. type: tbl table
14320 #: build/C/man2/syscalls.2:312
14321 #, no-wrap
14322 msgid "B<listxattr>(2)\t2.6; 2.4.18\n"
14323 msgstr ""
14324
14325 #. type: tbl table
14326 #: build/C/man2/syscalls.2:313
14327 #, no-wrap
14328 msgid "B<llistxattr>(2)\t2.6; 2.4.18\n"
14329 msgstr ""
14330
14331 #. type: tbl table
14332 #: build/C/man2/syscalls.2:314
14333 #, no-wrap
14334 msgid "B<lock>(2)\t\tNot implemented\n"
14335 msgstr ""
14336
14337 #. type: tbl table
14338 #: build/C/man2/syscalls.2:315
14339 #, no-wrap
14340 msgid "B<lookup_dcookie>(2)\t2.6\n"
14341 msgstr ""
14342
14343 #. type: tbl table
14344 #: build/C/man2/syscalls.2:316
14345 #, no-wrap
14346 msgid "B<lremovexattr>(2)\t2.6; 2.4.18\n"
14347 msgstr ""
14348
14349 #. type: tbl table
14350 #: build/C/man2/syscalls.2:317
14351 #, no-wrap
14352 msgid "B<lseek>(2)\n"
14353 msgstr ""
14354
14355 #. type: tbl table
14356 #: build/C/man2/syscalls.2:318
14357 #, no-wrap
14358 msgid "B<lsetxattr>(2)\t2.6; 2.4.18\n"
14359 msgstr ""
14360
14361 #. type: tbl table
14362 #: build/C/man2/syscalls.2:319
14363 #, no-wrap
14364 msgid "B<lstat>(2)\n"
14365 msgstr ""
14366
14367 #. type: tbl table
14368 #: build/C/man2/syscalls.2:320
14369 #, no-wrap
14370 msgid "B<lstat64>(2)\t2.4\n"
14371 msgstr ""
14372
14373 #. type: tbl table
14374 #: build/C/man2/syscalls.2:321
14375 #, no-wrap
14376 msgid "B<madvise>(2)\t2.4\n"
14377 msgstr ""
14378
14379 #. type: tbl table
14380 #: build/C/man2/syscalls.2:322
14381 #, no-wrap
14382 msgid "B<madvise1>(2)\t2.4\n"
14383 msgstr ""
14384
14385 #. type: tbl table
14386 #: build/C/man2/syscalls.2:323
14387 #, no-wrap
14388 msgid "B<mbind>(2)\t2.6.6\n"
14389 msgstr ""
14390
14391 #.  \fBmemory_ordering\fP(2)    ???     Sparc64
14392 #. type: tbl table
14393 #: build/C/man2/syscalls.2:325
14394 #, no-wrap
14395 msgid "B<migrate_pages>(2)\t2.6.16\n"
14396 msgstr ""
14397
14398 #. type: tbl table
14399 #: build/C/man2/syscalls.2:326
14400 #, no-wrap
14401 msgid "B<mincore>(2)\t2.4\n"
14402 msgstr ""
14403
14404 #. type: tbl table
14405 #: build/C/man2/syscalls.2:327
14406 #, no-wrap
14407 msgid "B<mkdir>(2)\n"
14408 msgstr ""
14409
14410 #. type: tbl table
14411 #: build/C/man2/syscalls.2:328
14412 #, no-wrap
14413 msgid "B<mkdirat>(2)\t2.6.16\n"
14414 msgstr ""
14415
14416 #. type: tbl table
14417 #: build/C/man2/syscalls.2:329
14418 #, no-wrap
14419 msgid "B<mknod>(2)\n"
14420 msgstr ""
14421
14422 #. type: tbl table
14423 #: build/C/man2/syscalls.2:330
14424 #, no-wrap
14425 msgid "B<mknodat>(2)\t2.6.16\n"
14426 msgstr ""
14427
14428 #. type: tbl table
14429 #: build/C/man2/syscalls.2:331
14430 #, no-wrap
14431 msgid "B<mlock>(2)\n"
14432 msgstr ""
14433
14434 #. type: tbl table
14435 #: build/C/man2/syscalls.2:332
14436 #, no-wrap
14437 msgid "B<mlockall>(2)\n"
14438 msgstr ""
14439
14440 #. type: tbl table
14441 #: build/C/man2/syscalls.2:333
14442 #, no-wrap
14443 msgid "B<mmap>(2)\n"
14444 msgstr ""
14445
14446 #. type: tbl table
14447 #: build/C/man2/syscalls.2:334
14448 #, no-wrap
14449 msgid "B<mmap2>(2)\t2.4\n"
14450 msgstr ""
14451
14452 #. type: tbl table
14453 #: build/C/man2/syscalls.2:335
14454 #, no-wrap
14455 msgid "B<modify_ldt>(2)\n"
14456 msgstr ""
14457
14458 #. type: tbl table
14459 #: build/C/man2/syscalls.2:336
14460 #, no-wrap
14461 msgid "B<mount>(2)\n"
14462 msgstr ""
14463
14464 #. type: tbl table
14465 #: build/C/man2/syscalls.2:337
14466 #, no-wrap
14467 msgid "B<move_pages>(2)\t2.6.18\n"
14468 msgstr ""
14469
14470 #. type: tbl table
14471 #: build/C/man2/syscalls.2:338
14472 #, no-wrap
14473 msgid "B<mprotect>(2)\n"
14474 msgstr ""
14475
14476 #. type: tbl table
14477 #: build/C/man2/syscalls.2:339
14478 #, no-wrap
14479 msgid "B<mpx>(2)\t\tNot implemented\n"
14480 msgstr ""
14481
14482 #. type: tbl table
14483 #: build/C/man2/syscalls.2:340
14484 #, no-wrap
14485 msgid "B<mq_getsetattr>(2)\t2.6.6\n"
14486 msgstr ""
14487
14488 #.  Implements \fBmq_getattr\fP(3) and \fBmq_setattr\fP(3)
14489 #. type: tbl table
14490 #: build/C/man2/syscalls.2:342
14491 #, no-wrap
14492 msgid "B<mq_notify>(2)\t2.6.6\n"
14493 msgstr ""
14494
14495 #. type: tbl table
14496 #: build/C/man2/syscalls.2:343
14497 #, no-wrap
14498 msgid "B<mq_open>(2)\t2.6.6\n"
14499 msgstr ""
14500
14501 #. type: tbl table
14502 #: build/C/man2/syscalls.2:344
14503 #, no-wrap
14504 msgid "B<mq_timedreceive>(2)\t2.6.6\n"
14505 msgstr ""
14506
14507 #. type: tbl table
14508 #: build/C/man2/syscalls.2:345
14509 #, no-wrap
14510 msgid "B<mq_timedsend>(2)\t2.6.6\n"
14511 msgstr ""
14512
14513 #. type: tbl table
14514 #: build/C/man2/syscalls.2:346
14515 #, no-wrap
14516 msgid "B<mq_unlink>(2)\n"
14517 msgstr ""
14518
14519 #. type: tbl table
14520 #: build/C/man2/syscalls.2:347
14521 #, no-wrap
14522 msgid "B<mremap>(2)\t2.0\n"
14523 msgstr ""
14524
14525 #. type: tbl table
14526 #: build/C/man2/syscalls.2:348
14527 #, no-wrap
14528 msgid "B<msgctl>(2)\n"
14529 msgstr ""
14530
14531 #. type: tbl table
14532 #: build/C/man2/syscalls.2:349
14533 #, no-wrap
14534 msgid "B<msgget>(2)\n"
14535 msgstr ""
14536
14537 #. type: tbl table
14538 #: build/C/man2/syscalls.2:350
14539 #, no-wrap
14540 msgid "B<msgrcv>(2)\n"
14541 msgstr ""
14542
14543 #. type: tbl table
14544 #: build/C/man2/syscalls.2:351
14545 #, no-wrap
14546 msgid "B<msgsnd>(2)\n"
14547 msgstr ""
14548
14549 #. type: tbl table
14550 #: build/C/man2/syscalls.2:352
14551 #, no-wrap
14552 msgid "B<msync>(2)\t2.0\n"
14553 msgstr ""
14554
14555 #.  \fBmultiplexer\fP(2)        ??      __NR_multiplexer reserved on
14556 #.              PowerPC, but unimplemented?
14557 #. type: tbl table
14558 #: build/C/man2/syscalls.2:355
14559 #, no-wrap
14560 msgid "B<munlock>(2)\n"
14561 msgstr ""
14562
14563 #. type: tbl table
14564 #: build/C/man2/syscalls.2:356
14565 #, no-wrap
14566 msgid "B<munlockall>(2)\n"
14567 msgstr ""
14568
14569 #. type: tbl table
14570 #: build/C/man2/syscalls.2:357
14571 #, no-wrap
14572 msgid "B<munmap>(2)\n"
14573 msgstr ""
14574
14575 #. type: tbl table
14576 #: build/C/man2/syscalls.2:358
14577 #, no-wrap
14578 msgid "B<name_to_handle_at>(2)\t2.6.39\n"
14579 msgstr ""
14580
14581 #. type: tbl table
14582 #: build/C/man2/syscalls.2:359
14583 #, no-wrap
14584 msgid "B<nanosleep>(2)\t2.0\n"
14585 msgstr ""
14586
14587 #. type: tbl table
14588 #: build/C/man2/syscalls.2:360
14589 #, no-wrap
14590 msgid "B<nfsservctl>(2)\t2.2\n"
14591 msgstr ""
14592
14593 #. type: tbl table
14594 #: build/C/man2/syscalls.2:361
14595 #, no-wrap
14596 msgid "B<nice>(2)\n"
14597 msgstr ""
14598
14599 #. type: tbl table
14600 #: build/C/man2/syscalls.2:362
14601 #, no-wrap
14602 msgid "B<oldfstat>(2)\n"
14603 msgstr ""
14604
14605 #. type: tbl table
14606 #: build/C/man2/syscalls.2:363
14607 #, no-wrap
14608 msgid "B<oldlstat>(2)\n"
14609 msgstr ""
14610
14611 #. type: tbl table
14612 #: build/C/man2/syscalls.2:364
14613 #, no-wrap
14614 msgid "B<oldolduname>(2)\n"
14615 msgstr ""
14616
14617 #. type: tbl table
14618 #: build/C/man2/syscalls.2:365
14619 #, no-wrap
14620 msgid "B<oldstat>(2)\n"
14621 msgstr ""
14622
14623 #. type: tbl table
14624 #: build/C/man2/syscalls.2:366
14625 #, no-wrap
14626 msgid "B<olduname>(2)\n"
14627 msgstr ""
14628
14629 #. type: tbl table
14630 #: build/C/man2/syscalls.2:367
14631 #, no-wrap
14632 msgid "B<open>(2)\n"
14633 msgstr ""
14634
14635 #. type: tbl table
14636 #: build/C/man2/syscalls.2:368
14637 #, no-wrap
14638 msgid "B<open_by_handle_at>(2)\t2.6.39\n"
14639 msgstr ""
14640
14641 #. type: tbl table
14642 #: build/C/man2/syscalls.2:369
14643 #, no-wrap
14644 msgid "B<openat>(2)\t2.6.16\n"
14645 msgstr ""
14646
14647 #. type: tbl table
14648 #: build/C/man2/syscalls.2:370
14649 #, no-wrap
14650 msgid "B<pause>(2)\n"
14651 msgstr ""
14652
14653 #. type: tbl table
14654 #: build/C/man2/syscalls.2:371
14655 #, no-wrap
14656 msgid "B<pciconfig_iobase>(2)\t2.2.15; 2.4\tNot on i386\n"
14657 msgstr ""
14658
14659 #.  Alpha, PowerPC, ARM; not i386
14660 #. type: tbl table
14661 #: build/C/man2/syscalls.2:373
14662 #, no-wrap
14663 msgid "B<pciconfig_read>(2)\t2.0.26; 2.2\tNot on i386\n"
14664 msgstr ""
14665
14666 #.  , PowerPC, ARM; not i386
14667 #. type: tbl table
14668 #: build/C/man2/syscalls.2:375
14669 #, no-wrap
14670 msgid "B<pciconfig_write>(2)\t2.0.26; 2.2\tNot on i386\n"
14671 msgstr ""
14672
14673 #.  , PowerPC, ARM; not i386
14674 #. type: tbl table
14675 #: build/C/man2/syscalls.2:377
14676 #, no-wrap
14677 msgid "B<perf_event_open>(2)\t2.6.31\tWas called perf_counter_open()\n"
14678 msgstr ""
14679
14680 #. type: tbl table
14681 #: build/C/man2/syscalls.2:378
14682 #, no-wrap
14683 msgid "\t\tin 2.6.31; renamed in 2.6.32\n"
14684 msgstr ""
14685
14686 #. type: tbl table
14687 #: build/C/man2/syscalls.2:379
14688 #, no-wrap
14689 msgid "B<personality>(2)\t1.2\n"
14690 msgstr ""
14691
14692 #.  \fBperfctr\fP(2)    ???     Sparc32, Sparc64
14693 #.  \fBperfmonctl\fP(2) ???     ia64
14694 #. type: tbl table
14695 #: build/C/man2/syscalls.2:382
14696 #, no-wrap
14697 msgid "B<phys>(2)\t\tNot implemented\n"
14698 msgstr ""
14699
14700 #.  Unimplemented (no slot since 2.1.116)
14701 #. type: tbl table
14702 #: build/C/man2/syscalls.2:384
14703 #, no-wrap
14704 msgid "B<pipe>(2)\n"
14705 msgstr ""
14706
14707 #. type: tbl table
14708 #: build/C/man2/syscalls.2:385
14709 #, no-wrap
14710 msgid "B<pipe2>(2)\t2.6.27\n"
14711 msgstr ""
14712
14713 #. type: tbl table
14714 #: build/C/man2/syscalls.2:386
14715 #, no-wrap
14716 msgid "B<pivot_root>(2)\t2.4\n"
14717 msgstr ""
14718
14719 #. type: tbl table
14720 #: build/C/man2/syscalls.2:387
14721 #, no-wrap
14722 msgid "B<poll>(2)\t2.2\n"
14723 msgstr ""
14724
14725 #. type: tbl table
14726 #: build/C/man2/syscalls.2:388
14727 #, no-wrap
14728 msgid "B<ppoll>(2)\t2.6.16\n"
14729 msgstr ""
14730
14731 #. type: tbl table
14732 #: build/C/man2/syscalls.2:389
14733 #, no-wrap
14734 msgid "B<prctl>(2)\t2.2\n"
14735 msgstr ""
14736
14737 #. type: tbl table
14738 #: build/C/man2/syscalls.2:390
14739 #, no-wrap
14740 msgid "B<pread64>(2)\t\tAdded as \"pread\" in 2.2;\n"
14741 msgstr ""
14742
14743 #. type: tbl table
14744 #: build/C/man2/syscalls.2:391
14745 #, no-wrap
14746 msgid "\t\trenamed \"pread64\" in 2.6\n"
14747 msgstr ""
14748
14749 #. type: tbl table
14750 #: build/C/man2/syscalls.2:392
14751 #, no-wrap
14752 msgid "B<preadv>(2)\t2.6.30\n"
14753 msgstr ""
14754
14755 #. type: tbl table
14756 #: build/C/man2/syscalls.2:393
14757 #, no-wrap
14758 msgid "B<prlimit>(2)\t2.6.36\n"
14759 msgstr ""
14760
14761 #. type: tbl table
14762 #: build/C/man2/syscalls.2:394
14763 #, no-wrap
14764 msgid "B<prof>(2)\t\tNot implemented\n"
14765 msgstr ""
14766
14767 #. type: tbl table
14768 #: build/C/man2/syscalls.2:395
14769 #, no-wrap
14770 msgid "B<profil>(2)\t\tNot implemented\n"
14771 msgstr ""
14772
14773 #.  Implemented in glibc; see \fBprofil\fP(3)
14774 #. type: tbl table
14775 #: build/C/man2/syscalls.2:397
14776 #, no-wrap
14777 msgid "B<pselect6>(2)\t2.6.16\n"
14778 msgstr ""
14779
14780 #.  Implements \fBpselect\fP(2)
14781 #. type: tbl table
14782 #: build/C/man2/syscalls.2:399
14783 #, no-wrap
14784 msgid "B<ptrace>(2)\n"
14785 msgstr ""
14786
14787 #. type: tbl table
14788 #: build/C/man2/syscalls.2:400
14789 #, no-wrap
14790 msgid "B<putpmsg>(2)\t\tNot implemented\n"
14791 msgstr ""
14792
14793 #.  Reserved for STREAMS support
14794 #. type: tbl table
14795 #: build/C/man2/syscalls.2:402
14796 #, no-wrap
14797 msgid "B<pwrite64>(2)\t\tAdded as \"pwrite\" in 2.2;\n"
14798 msgstr ""
14799
14800 #. type: tbl table
14801 #: build/C/man2/syscalls.2:403
14802 #, no-wrap
14803 msgid "\t\trenamed \"pwrite64\" in 2.6\n"
14804 msgstr ""
14805
14806 #. type: tbl table
14807 #: build/C/man2/syscalls.2:404
14808 #, no-wrap
14809 msgid "B<pwritev>(2)\t2.6.30\n"
14810 msgstr ""
14811
14812 #. type: tbl table
14813 #: build/C/man2/syscalls.2:405
14814 #, no-wrap
14815 msgid "B<query_module>(2)\t2.2\n"
14816 msgstr ""
14817
14818 #. type: tbl table
14819 #: build/C/man2/syscalls.2:406
14820 #, no-wrap
14821 msgid "B<quotactl>(2)\n"
14822 msgstr ""
14823
14824 #. type: tbl table
14825 #: build/C/man2/syscalls.2:407
14826 #, no-wrap
14827 msgid "B<read>(2)\n"
14828 msgstr ""
14829
14830 #. type: tbl table
14831 #: build/C/man2/syscalls.2:408
14832 #, no-wrap
14833 msgid "B<readahead>(2)\t2.4.13\n"
14834 msgstr ""
14835
14836 #. type: tbl table
14837 #: build/C/man2/syscalls.2:409
14838 #, no-wrap
14839 msgid "B<readdir>(2)\n"
14840 msgstr ""
14841
14842 #.  Supersedes \fBgetdents\fP(2)
14843 #. type: tbl table
14844 #: build/C/man2/syscalls.2:411
14845 #, no-wrap
14846 msgid "B<readlink>(2)\n"
14847 msgstr ""
14848
14849 #. type: tbl table
14850 #: build/C/man2/syscalls.2:412
14851 #, no-wrap
14852 msgid "B<readlinkat>(2)\t2.6.16\n"
14853 msgstr ""
14854
14855 #. type: tbl table
14856 #: build/C/man2/syscalls.2:413
14857 #, no-wrap
14858 msgid "B<readv>(2)\t2.0\n"
14859 msgstr ""
14860
14861 #. type: tbl table
14862 #: build/C/man2/syscalls.2:414
14863 #, no-wrap
14864 msgid "B<reboot>(2)\n"
14865 msgstr ""
14866
14867 #. type: tbl table
14868 #: build/C/man2/syscalls.2:415
14869 #, no-wrap
14870 msgid "B<recv>(2)\n"
14871 msgstr ""
14872
14873 #. type: tbl table
14874 #: build/C/man2/syscalls.2:416
14875 #, no-wrap
14876 msgid "B<recvfrom>(2)\n"
14877 msgstr ""
14878
14879 #. type: tbl table
14880 #: build/C/man2/syscalls.2:417
14881 #, no-wrap
14882 msgid "B<recvmsg>(2)\n"
14883 msgstr ""
14884
14885 #. type: tbl table
14886 #: build/C/man2/syscalls.2:418
14887 #, no-wrap
14888 msgid "B<recvmmsg>(2)\t2.6.33\n"
14889 msgstr ""
14890
14891 #. type: tbl table
14892 #: build/C/man2/syscalls.2:419
14893 #, no-wrap
14894 msgid "B<remap_file_pages>(2)\t2.6\n"
14895 msgstr ""
14896
14897 #. type: tbl table
14898 #: build/C/man2/syscalls.2:420
14899 #, no-wrap
14900 msgid "B<removexattr>(2)\t2.6; 2.4.18\n"
14901 msgstr ""
14902
14903 #. type: tbl table
14904 #: build/C/man2/syscalls.2:421
14905 #, no-wrap
14906 msgid "B<rename>(2)\n"
14907 msgstr ""
14908
14909 #. type: tbl table
14910 #: build/C/man2/syscalls.2:422
14911 #, no-wrap
14912 msgid "B<renameat>(2)\t2.6.16\n"
14913 msgstr ""
14914
14915 #. type: tbl table
14916 #: build/C/man2/syscalls.2:423
14917 #, no-wrap
14918 msgid "B<request_key>(2)\t2.6.11\n"
14919 msgstr ""
14920
14921 #. type: tbl table
14922 #: build/C/man2/syscalls.2:424
14923 #, no-wrap
14924 msgid "B<restart_syscall>(2)\t2.6\n"
14925 msgstr ""
14926
14927 #. type: tbl table
14928 #: build/C/man2/syscalls.2:425
14929 #, no-wrap
14930 msgid "B<rmdir>(2)\n"
14931 msgstr ""
14932
14933 #. type: tbl table
14934 #: build/C/man2/syscalls.2:426
14935 #, no-wrap
14936 msgid "B<rt_sigaction>(2)\t2.2\n"
14937 msgstr ""
14938
14939 #. type: tbl table
14940 #: build/C/man2/syscalls.2:427
14941 #, no-wrap
14942 msgid "B<rt_sigpending>(2)\t2.2\n"
14943 msgstr ""
14944
14945 #. type: tbl table
14946 #: build/C/man2/syscalls.2:428
14947 #, no-wrap
14948 msgid "B<rt_sigprocmask>(2)\t2.2\n"
14949 msgstr ""
14950
14951 #. type: tbl table
14952 #: build/C/man2/syscalls.2:429
14953 #, no-wrap
14954 msgid "B<rt_sigqueueinfo>(2)\t2.2\n"
14955 msgstr ""
14956
14957 #. type: tbl table
14958 #: build/C/man2/syscalls.2:430
14959 #, no-wrap
14960 msgid "B<rt_sigreturn>(2)\t2.2\n"
14961 msgstr ""
14962
14963 #. type: tbl table
14964 #: build/C/man2/syscalls.2:431
14965 #, no-wrap
14966 msgid "B<rt_sigsuspend>(2)\t2.2\n"
14967 msgstr ""
14968
14969 #. type: tbl table
14970 #: build/C/man2/syscalls.2:432
14971 #, no-wrap
14972 msgid "B<rt_sigtimedwait>(2)\t2.2\n"
14973 msgstr ""
14974
14975 #. type: tbl table
14976 #: build/C/man2/syscalls.2:433
14977 #, no-wrap
14978 msgid "B<rt_tgsigqueueinfo>(2)\t2.6.31\n"
14979 msgstr ""
14980
14981 #. type: tbl table
14982 #: build/C/man2/syscalls.2:434
14983 #, no-wrap
14984 msgid "B<sched_get_priority_max>(2)\t2.0\n"
14985 msgstr ""
14986
14987 #. type: tbl table
14988 #: build/C/man2/syscalls.2:435
14989 #, no-wrap
14990 msgid "B<sched_get_priority_min>(2)\t2.0\n"
14991 msgstr ""
14992
14993 #. type: tbl table
14994 #: build/C/man2/syscalls.2:436
14995 #, no-wrap
14996 msgid "B<sched_getaffinity>(2)\t2.6\n"
14997 msgstr ""
14998
14999 #. type: tbl table
15000 #: build/C/man2/syscalls.2:437
15001 #, no-wrap
15002 msgid "B<sched_getparam>(2)\t2.0\n"
15003 msgstr ""
15004
15005 #. type: tbl table
15006 #: build/C/man2/syscalls.2:438
15007 #, no-wrap
15008 msgid "B<sched_getscheduler>(2)\t2.0\n"
15009 msgstr ""
15010
15011 #. type: tbl table
15012 #: build/C/man2/syscalls.2:439
15013 #, no-wrap
15014 msgid "B<sched_rr_get_interval>(2)\t2.0\n"
15015 msgstr ""
15016
15017 #. type: tbl table
15018 #: build/C/man2/syscalls.2:440
15019 #, no-wrap
15020 msgid "B<sched_setaffinity>(2)\t2.6\n"
15021 msgstr ""
15022
15023 #. type: tbl table
15024 #: build/C/man2/syscalls.2:441
15025 #, no-wrap
15026 msgid "B<sched_setparam>(2)\t2.0\n"
15027 msgstr ""
15028
15029 #. type: tbl table
15030 #: build/C/man2/syscalls.2:442
15031 #, no-wrap
15032 msgid "B<sched_setscheduler>(2)\t2.0\n"
15033 msgstr ""
15034
15035 #. type: tbl table
15036 #: build/C/man2/syscalls.2:443
15037 #, no-wrap
15038 msgid "B<sched_yield>(2)\t2.0\n"
15039 msgstr ""
15040
15041 #. type: tbl table
15042 #: build/C/man2/syscalls.2:444
15043 #, no-wrap
15044 msgid "B<security>(2)\t\tNot implemented\n"
15045 msgstr ""
15046
15047 #. type: tbl table
15048 #: build/C/man2/syscalls.2:445
15049 #, no-wrap
15050 msgid "B<select>(2)\n"
15051 msgstr ""
15052
15053 #. type: tbl table
15054 #: build/C/man2/syscalls.2:446
15055 #, no-wrap
15056 msgid "B<semctl>(2)\n"
15057 msgstr ""
15058
15059 #. type: tbl table
15060 #: build/C/man2/syscalls.2:447
15061 #, no-wrap
15062 msgid "B<semget>(2)\n"
15063 msgstr ""
15064
15065 #. type: tbl table
15066 #: build/C/man2/syscalls.2:448
15067 #, no-wrap
15068 msgid "B<semop>(2)\n"
15069 msgstr ""
15070
15071 #. type: tbl table
15072 #: build/C/man2/syscalls.2:449
15073 #, no-wrap
15074 msgid "B<semtimedop>(2)\t2.6; 2.4.22\n"
15075 msgstr ""
15076
15077 #. type: tbl table
15078 #: build/C/man2/syscalls.2:450
15079 #, no-wrap
15080 msgid "B<send>(2)\n"
15081 msgstr ""
15082
15083 #. type: tbl table
15084 #: build/C/man2/syscalls.2:451
15085 #, no-wrap
15086 msgid "B<sendfile>(2)\t2.2\n"
15087 msgstr ""
15088
15089 #. type: tbl table
15090 #: build/C/man2/syscalls.2:452
15091 #, no-wrap
15092 msgid "B<sendfile64>(2)\t2.6; 2.4.19\n"
15093 msgstr ""
15094
15095 #. type: tbl table
15096 #: build/C/man2/syscalls.2:453
15097 #, no-wrap
15098 msgid "B<sendmmsg>(2)\t3.0\n"
15099 msgstr ""
15100
15101 #. type: tbl table
15102 #: build/C/man2/syscalls.2:454
15103 #, no-wrap
15104 msgid "B<sendmsg>(2)\n"
15105 msgstr ""
15106
15107 #. type: tbl table
15108 #: build/C/man2/syscalls.2:455
15109 #, no-wrap
15110 msgid "B<sendto>(2)\n"
15111 msgstr ""
15112
15113 #. type: tbl table
15114 #: build/C/man2/syscalls.2:456
15115 #, no-wrap
15116 msgid "B<set_mempolicy>(2)\t2.6.6\n"
15117 msgstr ""
15118
15119 #. type: tbl table
15120 #: build/C/man2/syscalls.2:457
15121 #, no-wrap
15122 msgid "B<set_robust_list>(2)\t2.6.17\n"
15123 msgstr ""
15124
15125 #. type: tbl table
15126 #: build/C/man2/syscalls.2:458
15127 #, no-wrap
15128 msgid "B<set_thread_area>(2)\t2.6\n"
15129 msgstr ""
15130
15131 #. type: tbl table
15132 #: build/C/man2/syscalls.2:459
15133 #, no-wrap
15134 msgid "B<set_tid_address>(2)\t2.6\n"
15135 msgstr ""
15136
15137 #. type: tbl table
15138 #: build/C/man2/syscalls.2:460
15139 #, no-wrap
15140 msgid "B<set_zone_reclaim>(2)\t2.6.13\tRemoved in 2.6.16 (was never\n"
15141 msgstr ""
15142
15143 #. type: tbl table
15144 #: build/C/man2/syscalls.2:461
15145 #, no-wrap
15146 msgid "\t\tavailable to userspace)\n"
15147 msgstr ""
15148
15149 #.  See http://lkml.org/lkml/2005/8/1/83
15150 #.  "[PATCH] remove sys_set_zone_reclaim()"
15151 #. type: tbl table
15152 #: build/C/man2/syscalls.2:464
15153 #, no-wrap
15154 msgid "B<setdomainname>(2)\n"
15155 msgstr ""
15156
15157 #. type: tbl table
15158 #: build/C/man2/syscalls.2:465
15159 #, no-wrap
15160 msgid "B<setfsgid>(2)\t1.2\n"
15161 msgstr ""
15162
15163 #. type: tbl table
15164 #: build/C/man2/syscalls.2:466
15165 #, no-wrap
15166 msgid "B<setfsgid32>(2)\t2.4\n"
15167 msgstr ""
15168
15169 #. type: tbl table
15170 #: build/C/man2/syscalls.2:467
15171 #, no-wrap
15172 msgid "B<setfsuid>(2)\t1.2\n"
15173 msgstr ""
15174
15175 #. type: tbl table
15176 #: build/C/man2/syscalls.2:468
15177 #, no-wrap
15178 msgid "B<setfsuid32>(2)\t2.4\n"
15179 msgstr ""
15180
15181 #. type: tbl table
15182 #: build/C/man2/syscalls.2:469
15183 #, no-wrap
15184 msgid "B<setgid>(2)\n"
15185 msgstr ""
15186
15187 #. type: tbl table
15188 #: build/C/man2/syscalls.2:470
15189 #, no-wrap
15190 msgid "B<setgid32>(2)\t2.4\n"
15191 msgstr ""
15192
15193 #. type: tbl table
15194 #: build/C/man2/syscalls.2:471
15195 #, no-wrap
15196 msgid "B<setgroups>(2)\n"
15197 msgstr ""
15198
15199 #. type: tbl table
15200 #: build/C/man2/syscalls.2:472
15201 #, no-wrap
15202 msgid "B<setgroups32>(2)\t2.4\n"
15203 msgstr ""
15204
15205 #. type: tbl table
15206 #: build/C/man2/syscalls.2:473
15207 #, no-wrap
15208 msgid "B<sethostname>(2)\n"
15209 msgstr ""
15210
15211 #. type: tbl table
15212 #: build/C/man2/syscalls.2:474
15213 #, no-wrap
15214 msgid "B<setitimer>(2)\n"
15215 msgstr ""
15216
15217 #. type: tbl table
15218 #: build/C/man2/syscalls.2:475
15219 #, no-wrap
15220 msgid "B<setns>(2)\t3.0\n"
15221 msgstr ""
15222
15223 #. type: tbl table
15224 #: build/C/man2/syscalls.2:476
15225 #, no-wrap
15226 msgid "B<setpgid>(2)\n"
15227 msgstr ""
15228
15229 #. type: tbl table
15230 #: build/C/man2/syscalls.2:477
15231 #, no-wrap
15232 msgid "B<setpriority>(2)\n"
15233 msgstr ""
15234
15235 #. type: tbl table
15236 #: build/C/man2/syscalls.2:478
15237 #, no-wrap
15238 msgid "B<setregid>(2)\n"
15239 msgstr ""
15240
15241 #. type: tbl table
15242 #: build/C/man2/syscalls.2:479
15243 #, no-wrap
15244 msgid "B<setregid32>(2)\t2.4\n"
15245 msgstr ""
15246
15247 #. type: tbl table
15248 #: build/C/man2/syscalls.2:480
15249 #, no-wrap
15250 msgid "B<setresgid>(2)\t2.2\n"
15251 msgstr ""
15252
15253 #. type: tbl table
15254 #: build/C/man2/syscalls.2:481
15255 #, no-wrap
15256 msgid "B<setresgid32>(2)\t2.4\n"
15257 msgstr ""
15258
15259 #. type: tbl table
15260 #: build/C/man2/syscalls.2:482
15261 #, no-wrap
15262 msgid "B<setresuid>(2)\t2.2\n"
15263 msgstr ""
15264
15265 #. type: tbl table
15266 #: build/C/man2/syscalls.2:483
15267 #, no-wrap
15268 msgid "B<setresuid32>(2)\t2.4\n"
15269 msgstr ""
15270
15271 #. type: tbl table
15272 #: build/C/man2/syscalls.2:484
15273 #, no-wrap
15274 msgid "B<setreuid>(2)\n"
15275 msgstr ""
15276
15277 #. type: tbl table
15278 #: build/C/man2/syscalls.2:485
15279 #, no-wrap
15280 msgid "B<setreuid32>(2)\t2.4\n"
15281 msgstr ""
15282
15283 #. type: tbl table
15284 #: build/C/man2/syscalls.2:486
15285 #, no-wrap
15286 msgid "B<setrlimit>(2)\n"
15287 msgstr ""
15288
15289 #. type: tbl table
15290 #: build/C/man2/syscalls.2:487
15291 #, no-wrap
15292 msgid "B<setsid>(2)\n"
15293 msgstr ""
15294
15295 #. type: tbl table
15296 #: build/C/man2/syscalls.2:488
15297 #, no-wrap
15298 msgid "B<setsockopt>(2)\n"
15299 msgstr ""
15300
15301 #. type: tbl table
15302 #: build/C/man2/syscalls.2:489
15303 #, no-wrap
15304 msgid "B<settimeofday>(2)\n"
15305 msgstr ""
15306
15307 #. type: tbl table
15308 #: build/C/man2/syscalls.2:490
15309 #, no-wrap
15310 msgid "B<setuid>(2)\n"
15311 msgstr ""
15312
15313 #. type: tbl table
15314 #: build/C/man2/syscalls.2:491
15315 #, no-wrap
15316 msgid "B<setuid32>(2)\t2.4\n"
15317 msgstr ""
15318
15319 #. type: tbl table
15320 #: build/C/man2/syscalls.2:492
15321 #, no-wrap
15322 msgid "B<setup>(2)\t\tRemoved in 2.2\n"
15323 msgstr ""
15324
15325 #. type: tbl table
15326 #: build/C/man2/syscalls.2:493
15327 #, no-wrap
15328 msgid "B<setxattr>(2)\t2.6; 2.4.18\n"
15329 msgstr ""
15330
15331 #. type: tbl table
15332 #: build/C/man2/syscalls.2:494
15333 #, no-wrap
15334 msgid "B<sgetmask>(2)\n"
15335 msgstr ""
15336
15337 #. type: tbl table
15338 #: build/C/man2/syscalls.2:495
15339 #, no-wrap
15340 msgid "B<shmat>(2)\n"
15341 msgstr ""
15342
15343 #. type: tbl table
15344 #: build/C/man2/syscalls.2:496
15345 #, no-wrap
15346 msgid "B<shmctl>(2)\n"
15347 msgstr ""
15348
15349 #. type: tbl table
15350 #: build/C/man2/syscalls.2:497
15351 #, no-wrap
15352 msgid "B<shmdt>(2)\n"
15353 msgstr ""
15354
15355 #. type: tbl table
15356 #: build/C/man2/syscalls.2:498
15357 #, no-wrap
15358 msgid "B<shmget>(2)\n"
15359 msgstr ""
15360
15361 #. type: tbl table
15362 #: build/C/man2/syscalls.2:499
15363 #, no-wrap
15364 msgid "B<shutdown>(2)\n"
15365 msgstr ""
15366
15367 #. type: tbl table
15368 #: build/C/man2/syscalls.2:500
15369 #, no-wrap
15370 msgid "B<sigaction>(2)\n"
15371 msgstr ""
15372
15373 #. type: tbl table
15374 #: build/C/man2/syscalls.2:501
15375 #, no-wrap
15376 msgid "B<sigaltstack>(2)\t2.2\n"
15377 msgstr ""
15378
15379 #. type: tbl table
15380 #: build/C/man2/syscalls.2:502
15381 #, no-wrap
15382 msgid "B<signal>(2)\n"
15383 msgstr ""
15384
15385 #. type: tbl table
15386 #: build/C/man2/syscalls.2:503
15387 #, no-wrap
15388 msgid "B<signalfd>(2)\t2.6.22\n"
15389 msgstr ""
15390
15391 #. type: tbl table
15392 #: build/C/man2/syscalls.2:504
15393 #, no-wrap
15394 msgid "B<signalfd4>(2)\t2.6.27\n"
15395 msgstr ""
15396
15397 #. type: tbl table
15398 #: build/C/man2/syscalls.2:505
15399 #, no-wrap
15400 msgid "B<sigpending>(2)\n"
15401 msgstr ""
15402
15403 #. type: tbl table
15404 #: build/C/man2/syscalls.2:506
15405 #, no-wrap
15406 msgid "B<sigprocmask>(2)\n"
15407 msgstr ""
15408
15409 #. type: tbl table
15410 #: build/C/man2/syscalls.2:507
15411 #, no-wrap
15412 msgid "B<sigreturn>(2)\n"
15413 msgstr ""
15414
15415 #. type: tbl table
15416 #: build/C/man2/syscalls.2:508
15417 #, no-wrap
15418 msgid "B<sigsuspend>(2)\n"
15419 msgstr ""
15420
15421 #. type: tbl table
15422 #: build/C/man2/syscalls.2:509
15423 #, no-wrap
15424 msgid "B<socket>(2)\n"
15425 msgstr ""
15426
15427 #. type: tbl table
15428 #: build/C/man2/syscalls.2:510
15429 #, no-wrap
15430 msgid "B<socketcall>(2)\n"
15431 msgstr ""
15432
15433 #.  Implements BSD socket calls
15434 #. type: tbl table
15435 #: build/C/man2/syscalls.2:512
15436 #, no-wrap
15437 msgid "B<socketpair>(2)\n"
15438 msgstr ""
15439
15440 #. type: tbl table
15441 #: build/C/man2/syscalls.2:513
15442 #, no-wrap
15443 msgid "B<splice>(2)\t2.6.17\n"
15444 msgstr ""
15445
15446 #. type: tbl table
15447 #: build/C/man2/syscalls.2:514
15448 #, no-wrap
15449 msgid "B<spu_create>(2)\t2.6.16\tPowerPC only\n"
15450 msgstr ""
15451
15452 #. type: tbl table
15453 #: build/C/man2/syscalls.2:515
15454 #, no-wrap
15455 msgid "B<spu_run>(2)\t2.6.16\tPowerPC only\n"
15456 msgstr ""
15457
15458 #. type: tbl table
15459 #: build/C/man2/syscalls.2:516
15460 #, no-wrap
15461 msgid "B<ssetmask>(2)\n"
15462 msgstr ""
15463
15464 #. type: tbl table
15465 #: build/C/man2/syscalls.2:517
15466 #, no-wrap
15467 msgid "B<stat>(2)\n"
15468 msgstr ""
15469
15470 #. type: tbl table
15471 #: build/C/man2/syscalls.2:518
15472 #, no-wrap
15473 msgid "B<stat64>(2)\t2.4\n"
15474 msgstr ""
15475
15476 #. type: tbl table
15477 #: build/C/man2/syscalls.2:519
15478 #, no-wrap
15479 msgid "B<statfs>(2)\n"
15480 msgstr ""
15481
15482 #. type: tbl table
15483 #: build/C/man2/syscalls.2:520
15484 #, no-wrap
15485 msgid "B<statfs64>(2)\t2.6\n"
15486 msgstr ""
15487
15488 #. type: tbl table
15489 #: build/C/man2/syscalls.2:521
15490 #, no-wrap
15491 msgid "B<stime>(2)\n"
15492 msgstr ""
15493
15494 #. type: tbl table
15495 #: build/C/man2/syscalls.2:522
15496 #, no-wrap
15497 msgid "B<stty>(2)\t\tNot implemented\n"
15498 msgstr ""
15499
15500 #. type: tbl table
15501 #: build/C/man2/syscalls.2:523
15502 #, no-wrap
15503 msgid "B<subpage_prot>(2)\t2.6.25\tPowerPC if CONFIG_PPC_64K_PAGES\n"
15504 msgstr ""
15505
15506 #. type: tbl table
15507 #: build/C/man2/syscalls.2:524
15508 #, no-wrap
15509 msgid "B<swapoff>(2)\n"
15510 msgstr ""
15511
15512 #. type: tbl table
15513 #: build/C/man2/syscalls.2:525
15514 #, no-wrap
15515 msgid "B<swapon>(2)\n"
15516 msgstr ""
15517
15518 #. type: tbl table
15519 #: build/C/man2/syscalls.2:526
15520 #, no-wrap
15521 msgid "B<symlink>(2)\n"
15522 msgstr ""
15523
15524 #. type: tbl table
15525 #: build/C/man2/syscalls.2:527
15526 #, no-wrap
15527 msgid "B<symlinkat>(2)\t2.6.16\n"
15528 msgstr ""
15529
15530 #. type: tbl table
15531 #: build/C/man2/syscalls.2:528
15532 #, no-wrap
15533 msgid "B<sync>(2)\n"
15534 msgstr ""
15535
15536 #. type: tbl table
15537 #: build/C/man2/syscalls.2:529
15538 #, no-wrap
15539 msgid "B<sync_file_range>(2)\t2.6.17\n"
15540 msgstr ""
15541
15542 #. type: tbl table
15543 #: build/C/man2/syscalls.2:530
15544 #, no-wrap
15545 msgid "B<sync_file_range2>(2)\t2.6.22\tArchitecture-specific variant\n"
15546 msgstr ""
15547
15548 #. type: tbl table
15549 #: build/C/man2/syscalls.2:531
15550 #, no-wrap
15551 msgid "B<syncfs>(2)\t2.6.39\n"
15552 msgstr ""
15553
15554 #.  PowerPC, ARM, tile
15555 #.  First appeared on ARM, as arm_sync_file_range(), but later renamed
15556 #. type: tbl table
15557 #: build/C/man2/syscalls.2:534
15558 #, no-wrap
15559 msgid "\t\tof B<sync_file_range>(2)\n"
15560 msgstr ""
15561
15562 #.  \fBsys_debug_setcontext\fP(2)       ???     PowerPC if CONFIG_PPC32
15563 #. type: tbl table
15564 #: build/C/man2/syscalls.2:536
15565 #, no-wrap
15566 msgid "B<sysfs>(2)\t1.2\n"
15567 msgstr ""
15568
15569 #. type: tbl table
15570 #: build/C/man2/syscalls.2:537
15571 #, no-wrap
15572 msgid "B<sysinfo>(2)\n"
15573 msgstr ""
15574
15575 #. type: tbl table
15576 #: build/C/man2/syscalls.2:538
15577 #, no-wrap
15578 msgid "B<syslog>(2)\n"
15579 msgstr ""
15580
15581 #.  glibc interface is \fBklogctl\fP(3)
15582 #. type: tbl table
15583 #: build/C/man2/syscalls.2:540
15584 #, no-wrap
15585 msgid "B<tee>(2)\t2.6.17\n"
15586 msgstr ""
15587
15588 #. type: tbl table
15589 #: build/C/man2/syscalls.2:541
15590 #, no-wrap
15591 msgid "B<tgkill>(2)\t2.6\n"
15592 msgstr ""
15593
15594 #. type: tbl table
15595 #: build/C/man2/syscalls.2:542
15596 #, no-wrap
15597 msgid "B<time>(2)\n"
15598 msgstr ""
15599
15600 #. type: tbl table
15601 #: build/C/man2/syscalls.2:543
15602 #, no-wrap
15603 msgid "B<timer_create>(2)\t2.6\n"
15604 msgstr ""
15605
15606 #. type: tbl table
15607 #: build/C/man2/syscalls.2:544
15608 #, no-wrap
15609 msgid "B<timer_delete>(2)\t2.6\n"
15610 msgstr ""
15611
15612 #. type: tbl table
15613 #: build/C/man2/syscalls.2:545
15614 #, no-wrap
15615 msgid "B<timer_getoverrun>(2)\t2.6\n"
15616 msgstr ""
15617
15618 #. type: tbl table
15619 #: build/C/man2/syscalls.2:546
15620 #, no-wrap
15621 msgid "B<timer_gettime>(2)\t2.6\n"
15622 msgstr ""
15623
15624 #. type: tbl table
15625 #: build/C/man2/syscalls.2:547
15626 #, no-wrap
15627 msgid "B<timer_settime>(2)\t2.6\n"
15628 msgstr ""
15629
15630 #. type: tbl table
15631 #: build/C/man2/syscalls.2:548
15632 #, no-wrap
15633 msgid "B<timerfd_create>(2)\t2.6.25\n"
15634 msgstr ""
15635
15636 #. type: tbl table
15637 #: build/C/man2/syscalls.2:549
15638 #, no-wrap
15639 msgid "B<timerfd_gettime>(2)\t2.6.25\n"
15640 msgstr ""
15641
15642 #. type: tbl table
15643 #: build/C/man2/syscalls.2:550
15644 #, no-wrap
15645 msgid "B<timerfd_settime>(2)\t2.6.25\n"
15646 msgstr ""
15647
15648 #. type: tbl table
15649 #: build/C/man2/syscalls.2:551
15650 #, no-wrap
15651 msgid "B<times>(2)\n"
15652 msgstr ""
15653
15654 #. type: tbl table
15655 #: build/C/man2/syscalls.2:552
15656 #, no-wrap
15657 msgid "B<tkill>(2)\t2.6; 2.4.22\n"
15658 msgstr ""
15659
15660 #. type: tbl table
15661 #: build/C/man2/syscalls.2:553
15662 #, no-wrap
15663 msgid "B<truncate>(2)\n"
15664 msgstr ""
15665
15666 #. type: tbl table
15667 #: build/C/man2/syscalls.2:554
15668 #, no-wrap
15669 msgid "B<truncate64>(2)\t2.4\n"
15670 msgstr ""
15671
15672 #. type: tbl table
15673 #: build/C/man2/syscalls.2:555
15674 #, no-wrap
15675 msgid "B<tuxcall>(2)\t\tNot implemented\n"
15676 msgstr ""
15677
15678 #.  Unimplemented; no slot on i386
15679 #.  As at 2.6.22, tuxcall has a slot on PowerPC, x86_64, and alpha
15680 #. type: tbl table
15681 #: build/C/man2/syscalls.2:558
15682 #, no-wrap
15683 msgid "B<ugetrlimit>(2)\t2.4\n"
15684 msgstr ""
15685
15686 #. type: tbl table
15687 #: build/C/man2/syscalls.2:559
15688 #, no-wrap
15689 msgid "B<ulimit>(2)\t\tNot implemented\n"
15690 msgstr ""
15691
15692 #.  Implemented in glibc; see \fBulimit\fP(3)
15693 #. type: tbl table
15694 #: build/C/man2/syscalls.2:561
15695 #, no-wrap
15696 msgid "B<umask>(2)\n"
15697 msgstr ""
15698
15699 #. type: tbl table
15700 #: build/C/man2/syscalls.2:562
15701 #, no-wrap
15702 msgid "B<umount>(2)\n"
15703 msgstr ""
15704
15705 #.  sys_oldumount() -- __NR_umount
15706 #. type: tbl table
15707 #: build/C/man2/syscalls.2:564
15708 #, no-wrap
15709 msgid "B<umount2>(2)\t2.2\n"
15710 msgstr ""
15711
15712 #.  sys_umount() -- __NR_umount2
15713 #. type: tbl table
15714 #: build/C/man2/syscalls.2:566
15715 #, no-wrap
15716 msgid "B<uname>(2)\n"
15717 msgstr ""
15718
15719 #. type: tbl table
15720 #: build/C/man2/syscalls.2:567
15721 #, no-wrap
15722 msgid "B<unlink>(2)\n"
15723 msgstr ""
15724
15725 #. type: tbl table
15726 #: build/C/man2/syscalls.2:568
15727 #, no-wrap
15728 msgid "B<unlinkat>(2)\t2.6.16\n"
15729 msgstr ""
15730
15731 #. type: tbl table
15732 #: build/C/man2/syscalls.2:569
15733 #, no-wrap
15734 msgid "B<unshare>(2)\t2.6.16\n"
15735 msgstr ""
15736
15737 #. type: tbl table
15738 #: build/C/man2/syscalls.2:570
15739 #, no-wrap
15740 msgid "B<uselib>(2)\n"
15741 msgstr ""
15742
15743 #. type: tbl table
15744 #: build/C/man2/syscalls.2:571
15745 #, no-wrap
15746 msgid "B<ustat>(2)\n"
15747 msgstr ""
15748
15749 #. type: tbl table
15750 #: build/C/man2/syscalls.2:572
15751 #, no-wrap
15752 msgid "B<utime>(2)\n"
15753 msgstr ""
15754
15755 #. type: tbl table
15756 #: build/C/man2/syscalls.2:573
15757 #, no-wrap
15758 msgid "B<utimensat>(2)\t2.6.22\n"
15759 msgstr ""
15760
15761 #. type: tbl table
15762 #: build/C/man2/syscalls.2:574
15763 #, no-wrap
15764 msgid "B<utimes>(2)\t2.2\n"
15765 msgstr ""
15766
15767 #. type: tbl table
15768 #: build/C/man2/syscalls.2:575
15769 #, no-wrap
15770 msgid "B<vfork>(2)\n"
15771 msgstr ""
15772
15773 #. type: tbl table
15774 #: build/C/man2/syscalls.2:576
15775 #, no-wrap
15776 msgid "B<vhangup>(2)\n"
15777 msgstr ""
15778
15779 #. type: tbl table
15780 #: build/C/man2/syscalls.2:577
15781 #, no-wrap
15782 msgid "B<vm86old>(2)\n"
15783 msgstr ""
15784
15785 #.  Superseded by \fBvm86\fP(2)
15786 #. type: tbl table
15787 #: build/C/man2/syscalls.2:579
15788 #, no-wrap
15789 msgid "B<vmsplice>(2)\t2.6.17\n"
15790 msgstr ""
15791
15792 #. type: tbl table
15793 #: build/C/man2/syscalls.2:580
15794 #, no-wrap
15795 msgid "B<vserver>(2)\t\tNot implemented\n"
15796 msgstr ""
15797
15798 #. type: tbl table
15799 #: build/C/man2/syscalls.2:581
15800 #, no-wrap
15801 msgid "B<wait4>(2)\n"
15802 msgstr ""
15803
15804 #. type: tbl table
15805 #: build/C/man2/syscalls.2:582
15806 #, no-wrap
15807 msgid "B<waitid>(2)\t2.6.10\n"
15808 msgstr ""
15809
15810 #. type: tbl table
15811 #: build/C/man2/syscalls.2:583
15812 #, no-wrap
15813 msgid "B<waitpid>(2)\n"
15814 msgstr ""
15815
15816 #. type: tbl table
15817 #: build/C/man2/syscalls.2:584
15818 #, no-wrap
15819 msgid "B<write>(2)\n"
15820 msgstr ""
15821
15822 #. type: tbl table
15823 #: build/C/man2/syscalls.2:585
15824 #, no-wrap
15825 msgid "B<writev>(2)\t2.0\n"
15826 msgstr ""
15827
15828 #. type: Plain text
15829 #: build/C/man2/syscalls.2:593
15830 msgid ""
15831 "On many platforms, including i386, socket calls are all multiplexed (via "
15832 "glibc wrapper functions) through B<socketcall>(2)  and similarly System V "
15833 "IPC calls are multiplexed through B<ipc>(2)."
15834 msgstr ""
15835
15836 #. type: Plain text
15837 #: build/C/man2/syscalls.2:595
15838 msgid "Note the following points:"
15839 msgstr ""
15840
15841 #.  __NR_afs_syscall is 53 on Linux 2.6.22/i386
15842 #.  __NR_break is 17 on Linux 2.6.22/i386
15843 #.  __NR_ftime is 35 on Linux 2.6.22/i386
15844 #.  __NR_getpmsg is 188 on Linux 2.6.22/i386
15845 #.  __NR_gtty is 32 on Linux 2.6.22/i386
15846 #.  __NR_idle is 112 on Linux 2.6.22/i386
15847 #.  __NR_lock is 53 on Linux 2.6.22/i386
15848 #.  __NR_madvise1 is 219 on Linux 2.6.22/i386
15849 #.  __NR_mpx is 66 on Linux 2.6.22/i386
15850 #.  Slot has been reused
15851 #.  __NR_prof is 44 on Linux 2.6.22/i386
15852 #.  __NR_profil is 98 on Linux 2.6.22/i386
15853 #.  __NR_putpmsg is 189 on Linux 2.6.22/i386
15854 #.  __NR_security is 223 on Linux 2.4/i386
15855 #.  __NR_security is 223 on Linux 2.4/i386; absent on 2.6/i386, present
15856 #.  on a couple of 2.6 architectures
15857 #.  __NR_stty is 31 on Linux 2.6.22/i386
15858 #.  __NR_tuxcall is 184 on x86_64, also on PPC and alpha
15859 #.  __NR_ulimit is 58 on Linux 2.6.22/i386
15860 #.  __NR_vserver is 273 on Linux 2.6.22/i386
15861 #. type: Plain text
15862 #: build/C/man2/syscalls.2:633
15863 msgid ""
15864 "Although slots are reserved for them in the system call table, the following "
15865 "system calls are not implemented in the standard kernel: B<afs_syscall>(2), "
15866 "B<break>(2), B<ftime>(2), B<getpmsg>(2), B<gtty>(2), B<idle>(2), B<lock>(2), "
15867 "B<madvise1>(2), B<mpx>(2), B<phys>(2), B<prof>(2), B<profil>(2), "
15868 "B<putpmsg>(2), B<security>(2), B<stty>(2), B<tuxcall>(2), B<ulimit>(2), and "
15869 "B<vserver>(2)  (see also B<unimplemented>(2)).  However, B<ftime>(3), "
15870 "B<profil>(3)  and B<ulimit>(3)  exist as library routines.  The slot for "
15871 "B<phys>(2)  is in use since kernel 2.1.116 for B<umount>(2); B<phys>(2)  "
15872 "will never be implemented."
15873 msgstr ""
15874
15875 #.  The security call is for future use.
15876 #. type: Plain text
15877 #: build/C/man2/syscalls.2:641
15878 msgid ""
15879 "The B<getpmsg>(2)  and B<putpmsg>(2)  calls are for kernels patched to "
15880 "support STREAMS, and may never be in the standard kernel."
15881 msgstr ""
15882
15883 #. type: Plain text
15884 #: build/C/man2/syscalls.2:656
15885 msgid ""
15886 "Roughly speaking, the code belonging to the system call with number __NR_xxx "
15887 "defined in I</usr/include/asm/unistd.h> can be found in the kernel source in "
15888 "the routine I<sys_xxx>().  (The dispatch table for i386 can be found in "
15889 "I</usr/src/linux/arch/i386/kernel/entry.S>.)  There are many exceptions, "
15890 "however, mostly because older system calls were superseded by newer ones, "
15891 "and this has been treated somewhat unsystematically.  On platforms with "
15892 "proprietary OS emulation, such as parisc, sparc, sparc64 and alpha, there "
15893 "are many additional system calls; mips64 also contains a full set of 32-bit "
15894 "system calls."
15895 msgstr ""
15896
15897 #. type: Plain text
15898 #: build/C/man2/syscalls.2:675
15899 msgid ""
15900 "Over time, changes to the interfaces of some system calls have been "
15901 "necessary.  One reason for such changes was the need to increase the size of "
15902 "structures or scalar values passed to the system call.  Because of these "
15903 "changes, there are now various groups of related system calls (e.g., "
15904 "B<truncate>(2)  and B<truncate64>(2))  which perform similar tasks, but "
15905 "which vary in details such as the size of their arguments.  (As noted "
15906 "earlier, applications are generally unaware of this: the glibc wrapper "
15907 "functions do some work to ensure that the right system call is invoked, and "
15908 "that ABI compatibility is preserved for old binaries.)  Examples of systems "
15909 "calls that exist in multiple versions are the following:"
15910 msgstr ""
15911
15912 #.  e.g., on 2.6.22/i386: __NR_oldstat 18, __NR_stat 106, __NR_stat64 195
15913 #.  The stat system calls deal with three different data structures,
15914 #.  defined in include/asm-i386/stat.h: __old_kernel_stat, stat, stat64
15915 #. type: Plain text
15916 #: build/C/man2/syscalls.2:696
15917 msgid ""
15918 "By now there are three different versions of B<stat>(2): I<sys_stat>()  "
15919 "(slot I<__NR_oldstat>), I<sys_newstat>()  (slot I<__NR_stat>), and "
15920 "I<sys_stat64>()  (slot I<__NR_stat64>), with the last being the most "
15921 "current.  A similar story applies for B<lstat>(2)  and B<fstat>(2)."
15922 msgstr ""
15923
15924 #. type: Plain text
15925 #: build/C/man2/syscalls.2:707
15926 msgid ""
15927 "Similarly, the defines I<__NR_oldolduname>, I<__NR_olduname>, and "
15928 "I<__NR_uname> refer to the routines I<sys_olduname>(), I<sys_uname>()  and "
15929 "I<sys_newuname>()."
15930 msgstr ""
15931
15932 #. type: Plain text
15933 #: build/C/man2/syscalls.2:714
15934 msgid ""
15935 "In Linux 2.0, a new version of B<vm86>(2)  appeared, with the old and the "
15936 "new kernel routines being named I<sys_vm86old>()  and I<sys_vm86>()."
15937 msgstr ""
15938
15939 #. type: Plain text
15940 #: build/C/man2/syscalls.2:725
15941 msgid ""
15942 "In Linux 2.4, a new version of B<getrlimit>(2)  appeared, with the old and "
15943 "the new kernel routines being named I<sys_old_getrlimit>()  (slot "
15944 "I<__NR_getrlimit>)  and I<sys_getrlimit>()  (slot I<__NR_ugetrlimit>)."
15945 msgstr ""
15946
15947 #.  64-bit off_t changes: ftruncate64, *stat64,
15948 #.  fcntl64 (because of the flock structure), getdents64, *statfs64
15949 #. type: Plain text
15950 #: build/C/man2/syscalls.2:737
15951 msgid ""
15952 "Linux 2.4 increased the size of user and group IDs from 16 to 32 bits.  To "
15953 "support this change, a range of system calls were added (e.g., "
15954 "B<chown32>(2), B<getuid32>(2), B<getgroups32>(2), B<setresuid32>(2)), "
15955 "superseding earlier calls of the same name without the \"32\" suffix."
15956 msgstr ""
15957
15958 #. type: Plain text
15959 #: build/C/man2/syscalls.2:754
15960 msgid ""
15961 "Linux 2.4 added support for applications on 32-bit architectures to access "
15962 "large files (i.e., files for which the sizes and file offsets can't be "
15963 "represented in 32 bits.)  To support this change, replacements were required "
15964 "for system calls that deal with file offsets and sizes.  Thus the following "
15965 "system calls were added: B<fcntl64>(2), B<ftruncate64>(2), B<getdents64>(2), "
15966 "B<stat64>(2), B<statfs64>(2), and their analogs that work with file "
15967 "descriptors or symbolic links.  These system calls supersede the older "
15968 "system calls which, except in the case of the \"stat\" calls, have the same "
15969 "name without the \"64\" suffix."
15970 msgstr ""
15971
15972 #. type: Plain text
15973 #: build/C/man2/syscalls.2:758
15974 msgid ""
15975 "On newer platforms that only have 64-bit file access and 32-bit uids (e.g., "
15976 "alpha, ia64, s390x) there are no *64 or *32 calls.  Where the *64 and *32 "
15977 "calls exist, the other versions are obsolete."
15978 msgstr ""
15979
15980 #. type: Plain text
15981 #: build/C/man2/syscalls.2:766
15982 msgid ""
15983 "The I<rt_sig*> calls were added in kernel 2.2 to support the addition of "
15984 "real-time signals (see B<signal>(7)).  These system calls supersede the "
15985 "older system calls of the same name without the \"rt_\" prefix."
15986 msgstr ""
15987
15988 #.  (used by libc 6)
15989 #.  .PP
15990 #.  Two system call numbers,
15991 #.  .IR __NR__llseek
15992 #.  and
15993 #.  .IR __NR__sysctl
15994 #.  have an additional underscore absent in
15995 #.  .IR sys_llseek ()
15996 #.  and
15997 #.  .IR sys_sysctl ().
15998 #
15999 #.  In kernel 2.1.81,
16000 #.  .BR lchown (2)
16001 #.  and
16002 #.  .BR chown (2)
16003 #.  were swapped; that is,
16004 #.  .BR lchown (2)
16005 #.  was added with the semantics that were then current for
16006 #.  .BR chown (2),
16007 #.  and the semantics of the latter call were changed to what
16008 #.  they are today.
16009 #. type: Plain text
16010 #: build/C/man2/syscalls.2:816
16011 msgid ""
16012 "The B<select>(2)  and B<mmap>(2)  system calls use five or more arguments, "
16013 "which caused problems the way argument passing on the i386 used to be set "
16014 "up.  Thus, while other architectures have I<sys_select>()  and I<sys_mmap>()  "
16015 "corresponding to I<__NR_select> and I<__NR_mmap>, on i386 one finds "
16016 "I<old_select>()  and I<old_mmap>()  (routines that use a pointer to a "
16017 "argument block) instead.  These days passing five arguments is not a problem "
16018 "any more, and there is a I<__NR__newselect> that corresponds directly to "
16019 "I<sys_select>()  and similarly I<__NR_mmap2>."
16020 msgstr ""
16021
16022 #. type: Plain text
16023 #: build/C/man2/syscalls.2:820
16024 msgid "B<syscall>(2), B<unimplemented>(2), B<libc>(7)"
16025 msgstr ""
16026
16027 #. type: TH
16028 #: build/C/man3/sysconf.3:25
16029 #, no-wrap
16030 msgid "SYSCONF"
16031 msgstr ""
16032
16033 #. type: TH
16034 #: build/C/man3/sysconf.3:25
16035 #, no-wrap
16036 msgid "2007-12-12"
16037 msgstr ""
16038
16039 #. type: Plain text
16040 #: build/C/man3/sysconf.3:28
16041 msgid "sysconf - Get configuration information at runtime"
16042 msgstr ""
16043
16044 #. type: Plain text
16045 #: build/C/man3/sysconf.3:33
16046 #, no-wrap
16047 msgid "B<long sysconf(int >I<name>B<);>\n"
16048 msgstr ""
16049
16050 #. type: Plain text
16051 #: build/C/man3/sysconf.3:38
16052 msgid ""
16053 "POSIX allows an application to test at compile or run time whether certain "
16054 "options are supported, or what the value is of certain configurable "
16055 "constants or limits."
16056 msgstr ""
16057
16058 #. type: Plain text
16059 #: build/C/man3/sysconf.3:44
16060 msgid ""
16061 "At compile time this is done by including I<E<lt>unistd.hE<gt>> and/or "
16062 "I<E<lt>limits.hE<gt>> and testing the value of certain macros."
16063 msgstr ""
16064
16065 #. type: Plain text
16066 #: build/C/man3/sysconf.3:54
16067 msgid ""
16068 "At run time, one can ask for numerical values using the present function "
16069 "B<sysconf>().  One can ask for numerical values that may depend on the file "
16070 "system a file is in using the calls B<fpathconf>(3)  and B<pathconf>(3).  "
16071 "One can ask for string values using B<confstr>(3)."
16072 msgstr ""
16073
16074 #.  except that sysconf(_SC_OPEN_MAX) may change answer after a call
16075 #.  to setrlimit( ) which changes the RLIMIT_NOFILE soft limit
16076 #. type: Plain text
16077 #: build/C/man3/sysconf.3:59
16078 msgid ""
16079 "The values obtained from these functions are system configuration "
16080 "constants.  They do not change during the lifetime of a process."
16081 msgstr ""
16082
16083 #.  and 999 to indicate support for options no longer present in the latest
16084 #.  standard. (?)
16085 #. type: Plain text
16086 #: build/C/man3/sysconf.3:82
16087 msgid ""
16088 "For options, typically, there is a constant B<_POSIX_FOO> that may be "
16089 "defined in I<E<lt>unistd.hE<gt>>.  If it is undefined, one should ask at run "
16090 "time.  If it is defined to -1, then the option is not supported.  If it is "
16091 "defined to 0, then relevant functions and headers exist, but one has to ask "
16092 "at runtime what degree of support is available.  If it is defined to a value "
16093 "other than -1 or 0, then the option is supported.  Usually the value (such "
16094 "as 200112L) indicates the year and month of the POSIX revision describing "
16095 "the option.  Glibc uses the value 1 to indicate support as long as the POSIX "
16096 "revision has not been published yet.  The B<sysconf>()  argument will be "
16097 "B<_SC_FOO>.  For a list of options, see B<posixoptions>(7)."
16098 msgstr ""
16099
16100 #. type: Plain text
16101 #: build/C/man3/sysconf.3:102
16102 msgid ""
16103 "For variables or limits, typically, there is a constant B<_FOO>, maybe "
16104 "defined in I<E<lt>limits.hE<gt>>, or B<_POSIX_FOO>, maybe defined in "
16105 "I<E<lt>unistd.hE<gt>>.  The constant will not be defined if the limit is "
16106 "unspecified.  If the constant is defined, it gives a guaranteed value, and a "
16107 "greater value might actually be supported.  If an application wants to take "
16108 "advantage of values which may change between systems, a call to B<sysconf>()  "
16109 "can be made.  The B<sysconf>()  argument will be B<_SC_FOO>."
16110 msgstr ""
16111
16112 #. type: SS
16113 #: build/C/man3/sysconf.3:102
16114 #, no-wrap
16115 msgid "POSIX.1 Variables"
16116 msgstr ""
16117
16118 #. type: Plain text
16119 #: build/C/man3/sysconf.3:107
16120 msgid ""
16121 "We give the name of the variable, the name of the B<sysconf>()  argument "
16122 "used to inquire about its value, and a short description."
16123 msgstr ""
16124
16125 #.  [for the moment: only the things that are unconditionally present]
16126 #.  .TP
16127 #.  .BR AIO_LISTIO_MAX " - " _SC_AIO_LISTIO_MAX
16128 #.  (if _POSIX_ASYNCHRONOUS_IO)
16129 #.  Maximum number of I/O operations in a single list I/O call.
16130 #.  Must not be less than _POSIX_AIO_LISTIO_MAX.
16131 #.  .TP
16132 #.  .BR AIO_MAX " - " _SC_AIO_MAX
16133 #.  (if _POSIX_ASYNCHRONOUS_IO)
16134 #.  Maximum number of outstanding asynchronous I/O operations.
16135 #.  Must not be less than _POSIX_AIO_MAX.
16136 #.  .TP
16137 #.  .BR AIO_PRIO_DELTA_MAX " - " _SC_AIO_PRIO_DELTA_MAX
16138 #.  (if _POSIX_ASYNCHRONOUS_IO)
16139 #.  The maximum amount by which a process can decrease its
16140 #.  asynchronous I/O priority level from its own scheduling priority.
16141 #.  Must be nonnegative.
16142 #. type: Plain text
16143 #: build/C/man3/sysconf.3:126
16144 msgid "First, the POSIX.1 compatible values."
16145 msgstr ""
16146
16147 #. type: TP
16148 #: build/C/man3/sysconf.3:126
16149 #, no-wrap
16150 msgid "B<ARG_MAX> - B<_SC_ARG_MAX>"
16151 msgstr ""
16152
16153 #. type: Plain text
16154 #: build/C/man3/sysconf.3:134
16155 msgid ""
16156 "The maximum length of the arguments to the B<exec>(3)  family of functions.  "
16157 "Must not be less than B<_POSIX_ARG_MAX> (4096)."
16158 msgstr ""
16159
16160 #. type: TP
16161 #: build/C/man3/sysconf.3:134
16162 #, no-wrap
16163 msgid "B<CHILD_MAX> - B<_SC_CHILD_MAX>"
16164 msgstr ""
16165
16166 #. type: Plain text
16167 #: build/C/man3/sysconf.3:140
16168 msgid ""
16169 "The max number of simultaneous processes per user ID.  Must not be less than "
16170 "B<_POSIX_CHILD_MAX> (25)."
16171 msgstr ""
16172
16173 #. type: TP
16174 #: build/C/man3/sysconf.3:140
16175 #, no-wrap
16176 msgid "B<HOST_NAME_MAX> - B<_SC_HOST_NAME_MAX>"
16177 msgstr ""
16178
16179 #. type: Plain text
16180 #: build/C/man3/sysconf.3:148
16181 msgid ""
16182 "Max length of a hostname, not including the terminating null byte, as "
16183 "returned by B<gethostname>(2).  Must not be less than "
16184 "B<_POSIX_HOST_NAME_MAX> (255)."
16185 msgstr ""
16186
16187 #. type: TP
16188 #: build/C/man3/sysconf.3:148
16189 #, no-wrap
16190 msgid "B<LOGIN_NAME_MAX> - B<_SC_LOGIN_NAME_MAX>"
16191 msgstr ""
16192
16193 #. type: Plain text
16194 #: build/C/man3/sysconf.3:154
16195 msgid ""
16196 "Maximum length of a login name, including the terminating null byte.  Must "
16197 "not be less than B<_POSIX_LOGIN_NAME_MAX> (9)."
16198 msgstr ""
16199
16200 #. type: TP
16201 #: build/C/man3/sysconf.3:154
16202 #, no-wrap
16203 msgid "clock ticks - B<_SC_CLK_TCK>"
16204 msgstr ""
16205
16206 #. type: Plain text
16207 #: build/C/man3/sysconf.3:163
16208 msgid ""
16209 "The number of clock ticks per second.  The corresponding variable is "
16210 "obsolete.  It was of course called B<CLK_TCK>.  (Note: the macro "
16211 "B<CLOCKS_PER_SEC> does not give information: it must equal 1000000.)"
16212 msgstr ""
16213
16214 #. type: TP
16215 #: build/C/man3/sysconf.3:163
16216 #, no-wrap
16217 msgid "B<OPEN_MAX> - B<_SC_OPEN_MAX>"
16218 msgstr ""
16219
16220 #. type: Plain text
16221 #: build/C/man3/sysconf.3:169
16222 msgid ""
16223 "The maximum number of files that a process can have open at any time.  Must "
16224 "not be less than B<_POSIX_OPEN_MAX> (20)."
16225 msgstr ""
16226
16227 #. type: TP
16228 #: build/C/man3/sysconf.3:169
16229 #, no-wrap
16230 msgid "B<PAGESIZE> - B<_SC_PAGESIZE>"
16231 msgstr ""
16232
16233 #. type: Plain text
16234 #: build/C/man3/sysconf.3:174
16235 msgid ""
16236 "Size of a page in bytes.  Must not be less than 1.  (Some systems use "
16237 "PAGE_SIZE instead.)"
16238 msgstr ""
16239
16240 #. type: TP
16241 #: build/C/man3/sysconf.3:174 build/C/man3/sysconf.3:261
16242 #, no-wrap
16243 msgid "B<RE_DUP_MAX> - B<_SC_RE_DUP_MAX>"
16244 msgstr ""
16245
16246 #. type: Plain text
16247 #: build/C/man3/sysconf.3:183
16248 msgid ""
16249 "The number of repeated occurrences of a BRE permitted by B<regexec>(3)  and "
16250 "B<regcomp>(3).  Must not be less than B<_POSIX2_RE_DUP_MAX> (255)."
16251 msgstr ""
16252
16253 #. type: TP
16254 #: build/C/man3/sysconf.3:183
16255 #, no-wrap
16256 msgid "B<STREAM_MAX> - B<_SC_STREAM_MAX>"
16257 msgstr ""
16258
16259 #. type: Plain text
16260 #: build/C/man3/sysconf.3:192
16261 msgid ""
16262 "The maximum number of streams that a process can have open at any time.  If "
16263 "defined, it has the same value as the standard C macro B<FOPEN_MAX>.  Must "
16264 "not be less than B<_POSIX_STREAM_MAX> (8)."
16265 msgstr ""
16266
16267 #. type: TP
16268 #: build/C/man3/sysconf.3:192
16269 #, no-wrap
16270 msgid "B<SYMLOOP_MAX>"
16271 msgstr ""
16272
16273 #. type: Plain text
16274 #: build/C/man3/sysconf.3:200
16275 msgid ""
16276 "The maximum number of symbolic links seen in a pathname before resolution "
16277 "returns B<ELOOP>.  Must not be less than B<_POSIX_SYMLOOP_MAX> (8)."
16278 msgstr ""
16279
16280 #. type: TP
16281 #: build/C/man3/sysconf.3:200
16282 #, no-wrap
16283 msgid "B<TTY_NAME_MAX> - B<_SC_TTY_NAME_MAX>"
16284 msgstr ""
16285
16286 #. type: Plain text
16287 #: build/C/man3/sysconf.3:207
16288 msgid ""
16289 "The maximum length of terminal device name, including the terminating null "
16290 "byte.  Must not be less than B<_POSIX_TTY_NAME_MAX> (9)."
16291 msgstr ""
16292
16293 #. type: TP
16294 #: build/C/man3/sysconf.3:207
16295 #, no-wrap
16296 msgid "B<TZNAME_MAX> - B<_SC_TZNAME_MAX>"
16297 msgstr ""
16298
16299 #. type: Plain text
16300 #: build/C/man3/sysconf.3:213
16301 msgid ""
16302 "The maximum number of bytes in a timezone name.  Must not be less than "
16303 "B<_POSIX_TZNAME_MAX> (6)."
16304 msgstr ""
16305
16306 #. type: TP
16307 #: build/C/man3/sysconf.3:213
16308 #, no-wrap
16309 msgid "B<_POSIX_VERSION> - B<_SC_VERSION>"
16310 msgstr ""
16311
16312 #. type: Plain text
16313 #: build/C/man3/sysconf.3:221
16314 msgid ""
16315 "indicates the year and month the POSIX.1 standard was approved in the format "
16316 "B<YYYYMML>; the value B<199009L> indicates the Sept. 1990 revision."
16317 msgstr ""
16318
16319 #. type: SS
16320 #: build/C/man3/sysconf.3:221
16321 #, no-wrap
16322 msgid "POSIX.2 Variables"
16323 msgstr ""
16324
16325 #. type: Plain text
16326 #: build/C/man3/sysconf.3:223
16327 msgid "Next, the POSIX.2 values, giving limits for utilities."
16328 msgstr ""
16329
16330 #. type: TP
16331 #: build/C/man3/sysconf.3:223
16332 #, no-wrap
16333 msgid "B<BC_BASE_MAX> - B<_SC_BC_BASE_MAX>"
16334 msgstr ""
16335
16336 #. type: Plain text
16337 #: build/C/man3/sysconf.3:230
16338 msgid "indicates the maximum I<obase> value accepted by the B<bc>(1)  utility."
16339 msgstr ""
16340
16341 #. type: TP
16342 #: build/C/man3/sysconf.3:230
16343 #, no-wrap
16344 msgid "B<BC_DIM_MAX> - B<_SC_BC_DIM_MAX>"
16345 msgstr ""
16346
16347 #. type: Plain text
16348 #: build/C/man3/sysconf.3:234
16349 msgid "indicates the maximum value of elements permitted in an array by B<bc>(1)."
16350 msgstr ""
16351
16352 #. type: TP
16353 #: build/C/man3/sysconf.3:234
16354 #, no-wrap
16355 msgid "B<BC_SCALE_MAX> - B<_SC_BC_SCALE_MAX>"
16356 msgstr ""
16357
16358 #. type: Plain text
16359 #: build/C/man3/sysconf.3:240
16360 msgid "indicates the maximum I<scale> value allowed by B<bc>(1)."
16361 msgstr ""
16362
16363 #. type: TP
16364 #: build/C/man3/sysconf.3:240
16365 #, no-wrap
16366 msgid "B<BC_STRING_MAX> - B<_SC_BC_STRING_MAX>"
16367 msgstr ""
16368
16369 #. type: Plain text
16370 #: build/C/man3/sysconf.3:244
16371 msgid "indicates the maximum length of a string accepted by B<bc>(1)."
16372 msgstr ""
16373
16374 #. type: TP
16375 #: build/C/man3/sysconf.3:244
16376 #, no-wrap
16377 msgid "B<COLL_WEIGHTS_MAX> - B<_SC_COLL_WEIGHTS_MAX>"
16378 msgstr ""
16379
16380 #. type: Plain text
16381 #: build/C/man3/sysconf.3:250
16382 msgid ""
16383 "indicates the maximum numbers of weights that can be assigned to an entry of "
16384 "the B<LC_COLLATE order> keyword in the locale definition file,"
16385 msgstr ""
16386
16387 #. type: TP
16388 #: build/C/man3/sysconf.3:250
16389 #, no-wrap
16390 msgid "B<EXPR_NEST_MAX> - B<_SC_EXPR_NEST_MAX>"
16391 msgstr ""
16392
16393 #. type: Plain text
16394 #: build/C/man3/sysconf.3:255
16395 msgid ""
16396 "is the maximum number of expressions which can be nested within parentheses "
16397 "by B<expr>(1)."
16398 msgstr ""
16399
16400 #. type: TP
16401 #: build/C/man3/sysconf.3:255
16402 #, no-wrap
16403 msgid "B<LINE_MAX> - B<_SC_LINE_MAX>"
16404 msgstr ""
16405
16406 #. type: Plain text
16407 #: build/C/man3/sysconf.3:261
16408 msgid ""
16409 "The maximum length of a utility's input line, either from standard input or "
16410 "from a file.  This includes space for a trailing newline."
16411 msgstr ""
16412
16413 #. type: Plain text
16414 #: build/C/man3/sysconf.3:267
16415 msgid ""
16416 "The maximum number of repeated occurrences of a regular expression when the "
16417 "interval notation B<\\e{m,n\\e}> is used."
16418 msgstr ""
16419
16420 #. type: TP
16421 #: build/C/man3/sysconf.3:267
16422 #, no-wrap
16423 msgid "B<POSIX2_VERSION> - B<_SC_2_VERSION>"
16424 msgstr ""
16425
16426 #. type: Plain text
16427 #: build/C/man3/sysconf.3:271
16428 msgid "indicates the version of the POSIX.2 standard in the format of YYYYMML."
16429 msgstr ""
16430
16431 #. type: TP
16432 #: build/C/man3/sysconf.3:271
16433 #, no-wrap
16434 msgid "B<POSIX2_C_DEV> - B<_SC_2_C_DEV>"
16435 msgstr ""
16436
16437 #. type: Plain text
16438 #: build/C/man3/sysconf.3:275
16439 msgid ""
16440 "indicates whether the POSIX.2 C language development facilities are "
16441 "supported."
16442 msgstr ""
16443
16444 #. type: TP
16445 #: build/C/man3/sysconf.3:275
16446 #, no-wrap
16447 msgid "B<POSIX2_FORT_DEV> - B<_SC_2_FORT_DEV>"
16448 msgstr ""
16449
16450 #. type: Plain text
16451 #: build/C/man3/sysconf.3:279
16452 msgid "indicates whether the POSIX.2 FORTRAN development utilities are supported."
16453 msgstr ""
16454
16455 #. type: TP
16456 #: build/C/man3/sysconf.3:279
16457 #, no-wrap
16458 msgid "B<POSIX2_FORT_RUN> - B<_SC_2_FORT_RUN>"
16459 msgstr ""
16460
16461 #. type: Plain text
16462 #: build/C/man3/sysconf.3:282
16463 msgid "indicates whether the POSIX.2 FORTRAN runtime utilities are supported."
16464 msgstr ""
16465
16466 #. type: TP
16467 #: build/C/man3/sysconf.3:282
16468 #, no-wrap
16469 msgid "B<_POSIX2_LOCALEDEF> - B<_SC_2_LOCALEDEF>"
16470 msgstr ""
16471
16472 #. type: Plain text
16473 #: build/C/man3/sysconf.3:287
16474 msgid ""
16475 "indicates whether the POSIX.2 creation of locates via B<localedef>(1)  is "
16476 "supported."
16477 msgstr ""
16478
16479 #. type: TP
16480 #: build/C/man3/sysconf.3:287
16481 #, no-wrap
16482 msgid "B<POSIX2_SW_DEV> - B<_SC_2_SW_DEV>"
16483 msgstr ""
16484
16485 #. type: Plain text
16486 #: build/C/man3/sysconf.3:291
16487 msgid ""
16488 "indicates whether the POSIX.2 software development utilities option is "
16489 "supported."
16490 msgstr ""
16491
16492 #. type: Plain text
16493 #: build/C/man3/sysconf.3:293
16494 msgid "These values also exist, but may not be standard."
16495 msgstr ""
16496
16497 #. type: TP
16498 #: build/C/man3/sysconf.3:293
16499 #, no-wrap
16500 msgid " - B<_SC_PHYS_PAGES>"
16501 msgstr ""
16502
16503 #. type: Plain text
16504 #: build/C/man3/sysconf.3:300
16505 msgid ""
16506 "The number of pages of physical memory.  Note that it is possible for the "
16507 "product of this value and the value of B<_SC_PAGE_SIZE> to overflow."
16508 msgstr ""
16509
16510 #. type: TP
16511 #: build/C/man3/sysconf.3:300
16512 #, no-wrap
16513 msgid " - B<_SC_AVPHYS_PAGES>"
16514 msgstr ""
16515
16516 #. type: Plain text
16517 #: build/C/man3/sysconf.3:303
16518 msgid "The number of currently available pages of physical memory."
16519 msgstr ""
16520
16521 #. type: TP
16522 #: build/C/man3/sysconf.3:303
16523 #, no-wrap
16524 msgid " - B<_SC_NPROCESSORS_CONF>"
16525 msgstr ""
16526
16527 #. type: Plain text
16528 #: build/C/man3/sysconf.3:306
16529 msgid "The number of processors configured."
16530 msgstr ""
16531
16532 #. type: TP
16533 #: build/C/man3/sysconf.3:306
16534 #, no-wrap
16535 msgid " - B<_SC_NPROCESSORS_ONLN>"
16536 msgstr ""
16537
16538 #. type: Plain text
16539 #: build/C/man3/sysconf.3:309
16540 msgid "The number of processors currently online (available)."
16541 msgstr ""
16542
16543 #. type: Plain text
16544 #: build/C/man3/sysconf.3:322
16545 msgid ""
16546 "If I<name> is invalid, -1 is returned, and I<errno> is set to B<EINVAL>.  "
16547 "Otherwise, the value returned is the value of the system resource and "
16548 "I<errno> is not changed.  In the case of options, a positive value is "
16549 "returned if a queried option is available, and -1 if it is not.  In the case "
16550 "of limits, -1 means that there is no definite limit."
16551 msgstr ""
16552
16553 #. type: Plain text
16554 #: build/C/man3/sysconf.3:330
16555 msgid ""
16556 "It is difficult to use B<ARG_MAX> because it is not specified how much of "
16557 "the argument space for B<exec>(3)  is consumed by the user's environment "
16558 "variables."
16559 msgstr ""
16560
16561 #. type: Plain text
16562 #: build/C/man3/sysconf.3:341
16563 msgid ""
16564 "B<bc>(1), B<expr>(1), B<getconf>(1), B<locale>(1), B<fpathconf>(3), "
16565 "B<pathconf>(3), B<posixoptions>(7)"
16566 msgstr ""
16567
16568 #. type: TH
16569 #: build/C/man2/sysctl.2:28
16570 #, no-wrap
16571 msgid "SYSCTL"
16572 msgstr ""
16573
16574 #. type: TH
16575 #: build/C/man2/sysctl.2:28
16576 #, no-wrap
16577 msgid "2008-11-20"
16578 msgstr ""
16579
16580 #. type: Plain text
16581 #: build/C/man2/sysctl.2:31
16582 msgid "sysctl - read/write system parameters"
16583 msgstr ""
16584
16585 #. type: Plain text
16586 #: build/C/man2/sysctl.2:36
16587 #, no-wrap
16588 msgid "B<#include E<lt>linux/sysctl.hE<gt>>\n"
16589 msgstr ""
16590
16591 #. type: Plain text
16592 #: build/C/man2/sysctl.2:38
16593 #, no-wrap
16594 msgid "B<int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
16595 msgstr ""
16596
16597 #. type: Plain text
16598 #: build/C/man2/sysctl.2:42
16599 msgid "B<Do not use this system call!> See NOTES."
16600 msgstr ""
16601
16602 #. type: Plain text
16603 #: build/C/man2/sysctl.2:49
16604 msgid ""
16605 "The B<_sysctl>()  call reads and/or writes kernel parameters.  For example, "
16606 "the hostname, or the maximum number of open files.  The argument has the "
16607 "form"
16608 msgstr ""
16609
16610 #. type: Plain text
16611 #: build/C/man2/sysctl.2:61
16612 #, no-wrap
16613 msgid ""
16614 "struct __sysctl_args {\n"
16615 "    int    *name;    /* integer vector describing variable */\n"
16616 "    int     nlen;    /* length of this vector */\n"
16617 "    void   *oldval;  /* 0 or address where to store old value */\n"
16618 "    size_t *oldlenp; /* available room for old value,\n"
16619 "                        overwritten by actual size of old value */\n"
16620 "    void   *newval;  /* 0 or address of new value */\n"
16621 "    size_t  newlen;  /* size of new value */\n"
16622 "};\n"
16623 msgstr ""
16624
16625 #. type: Plain text
16626 #: build/C/man2/sysctl.2:69
16627 msgid ""
16628 "This call does a search in a tree structure, possibly resembling a directory "
16629 "tree under I</proc/sys>, and if the requested item is found calls some "
16630 "appropriate routine to read or modify the value."
16631 msgstr ""
16632
16633 #. type: Plain text
16634 #: build/C/man2/sysctl.2:76
16635 msgid ""
16636 "Upon successful completion, B<_sysctl>()  returns 0.  Otherwise, a value of "
16637 "-1 is returned and I<errno> is set to indicate the error."
16638 msgstr ""
16639
16640 #. type: Plain text
16641 #: build/C/man2/sysctl.2:83
16642 msgid ""
16643 "The invocation asked for the previous value by setting I<oldval> non-NULL, "
16644 "but allowed zero room in I<oldlenp>."
16645 msgstr ""
16646
16647 #. type: Plain text
16648 #: build/C/man2/sysctl.2:87
16649 msgid "I<name> was not found."
16650 msgstr ""
16651
16652 #. type: Plain text
16653 #: build/C/man2/sysctl.2:95
16654 msgid ""
16655 "No search permission for one of the encountered \"directories\", or no read "
16656 "permission where I<oldval> was nonzero, or no write permission where "
16657 "I<newval> was nonzero."
16658 msgstr ""
16659
16660 #. type: Plain text
16661 #: build/C/man2/sysctl.2:109
16662 msgid ""
16663 "This call is Linux-specific, and should not be used in programs intended to "
16664 "be portable.  A B<sysctl>()  call has been present in Linux since version "
16665 "1.3.57.  It originated in 4.4BSD.  Only Linux has the I</proc/sys> mirror, "
16666 "and the object naming schemes differ between Linux and 4.4BSD, but the "
16667 "declaration of the B<sysctl>()  function is the same in both."
16668 msgstr ""
16669
16670 #.  See http://lwn.net/Articles/247243/
16671 #. type: Plain text
16672 #: build/C/man2/sysctl.2:121
16673 msgid ""
16674 "Or rather... don't call it: use of this system call has long been "
16675 "discouraged, and it is so unloved that B<it is likely to disappear in a "
16676 "future kernel version>.  Remove it from your programs now; use the "
16677 "I</proc/sys> interface instead."
16678 msgstr ""
16679
16680 #. type: Plain text
16681 #: build/C/man2/sysctl.2:124
16682 msgid ""
16683 "The object names vary between kernel versions, making this system call "
16684 "worthless for applications."
16685 msgstr ""
16686
16687 #. type: Plain text
16688 #: build/C/man2/sysctl.2:126
16689 msgid "Not all available objects are properly documented."
16690 msgstr ""
16691
16692 #. type: Plain text
16693 #: build/C/man2/sysctl.2:129
16694 msgid ""
16695 "It is not yet possible to change operating system by writing to "
16696 "I</proc/sys/kernel/ostype>."
16697 msgstr ""
16698
16699 #. type: Plain text
16700 #: build/C/man2/sysctl.2:138
16701 #, no-wrap
16702 msgid ""
16703 "#define _GNU_SOURCE\n"
16704 "#include E<lt>unistd.hE<gt>\n"
16705 "#include E<lt>sys/syscall.hE<gt>\n"
16706 "#include E<lt>string.hE<gt>\n"
16707 "#include E<lt>stdio.hE<gt>\n"
16708 "#include E<lt>stdlib.hE<gt>\n"
16709 "#include E<lt>linux/sysctl.hE<gt>\n"
16710 msgstr ""
16711
16712 #. type: Plain text
16713 #: build/C/man2/sysctl.2:140
16714 #, no-wrap
16715 msgid "int _sysctl(struct __sysctl_args *args );\n"
16716 msgstr ""
16717
16718 #. type: Plain text
16719 #: build/C/man2/sysctl.2:142
16720 #, no-wrap
16721 msgid "#define OSNAMESZ 100\n"
16722 msgstr ""
16723
16724 #. type: Plain text
16725 #: build/C/man2/sysctl.2:150
16726 #, no-wrap
16727 msgid ""
16728 "int\n"
16729 "main(void)\n"
16730 "{\n"
16731 "    struct __sysctl_args args;\n"
16732 "    char osname[OSNAMESZ];\n"
16733 "    size_t osnamelth;\n"
16734 "    int name[] = { CTL_KERN, KERN_OSTYPE };\n"
16735 msgstr ""
16736
16737 #. type: Plain text
16738 #: build/C/man2/sysctl.2:156
16739 #, no-wrap
16740 msgid ""
16741 "    memset(&args, 0, sizeof(struct __sysctl_args));\n"
16742 "    args.name = name;\n"
16743 "    args.nlen = sizeof(name)/sizeof(name[0]);\n"
16744 "    args.oldval = osname;\n"
16745 "    args.oldlenp = &osnamelth;\n"
16746 msgstr ""
16747
16748 #. type: Plain text
16749 #: build/C/man2/sysctl.2:158
16750 #, no-wrap
16751 msgid "    osnamelth = sizeof(osname);\n"
16752 msgstr ""
16753
16754 #. type: Plain text
16755 #: build/C/man2/sysctl.2:166
16756 #, no-wrap
16757 msgid ""
16758 "    if (syscall(SYS__sysctl, &args) == -1) {\n"
16759 "        perror(\"_sysctl\");\n"
16760 "        exit(EXIT_FAILURE);\n"
16761 "    }\n"
16762 "    printf(\"This machine is running %*s\\en\", osnamelth, osname);\n"
16763 "    exit(EXIT_SUCCESS);\n"
16764 "}\n"
16765 msgstr ""
16766
16767 #. type: Plain text
16768 #: build/C/man2/sysctl.2:169 build/C/man2/sysinfo.2:96
16769 msgid "B<proc>(5)"
16770 msgstr ""
16771
16772 #. type: TH
16773 #: build/C/man2/sysinfo.2:14
16774 #, no-wrap
16775 msgid "SYSINFO"
16776 msgstr ""
16777
16778 #. type: TH
16779 #: build/C/man2/sysinfo.2:14
16780 #, no-wrap
16781 msgid "2007-11-15"
16782 msgstr ""
16783
16784 #. type: Plain text
16785 #: build/C/man2/sysinfo.2:17
16786 msgid "sysinfo - returns information on overall system statistics"
16787 msgstr ""
16788
16789 #. type: Plain text
16790 #: build/C/man2/sysinfo.2:19
16791 msgid "B<#include E<lt>sys/sysinfo.hE<gt>>"
16792 msgstr ""
16793
16794 #. type: Plain text
16795 #: build/C/man2/sysinfo.2:21
16796 msgid "B<int sysinfo(struct sysinfo *>I<info>B<);>"
16797 msgstr ""
16798
16799 #. type: Plain text
16800 #: build/C/man2/sysinfo.2:25
16801 msgid ""
16802 "Until Linux 2.3.16, B<sysinfo>()  used to return information in the "
16803 "following structure:"
16804 msgstr ""
16805
16806 #. type: Plain text
16807 #: build/C/man2/sysinfo.2:40
16808 #, no-wrap
16809 msgid ""
16810 "struct sysinfo {\n"
16811 "    long uptime;             /* Seconds since boot */\n"
16812 "    unsigned long loads[3];  /* 1, 5, and 15 minute load averages */\n"
16813 "    unsigned long totalram;  /* Total usable main memory size */\n"
16814 "    unsigned long freeram;   /* Available memory size */\n"
16815 "    unsigned long sharedram; /* Amount of shared memory */\n"
16816 "    unsigned long bufferram; /* Memory used by buffers */\n"
16817 "    unsigned long totalswap; /* Total swap space size */\n"
16818 "    unsigned long freeswap;  /* swap space still available */\n"
16819 "    unsigned short procs;    /* Number of current processes */\n"
16820 "    char _f[22];             /* Pads structure to 64 bytes */\n"
16821 "};\n"
16822 msgstr ""
16823
16824 #. type: Plain text
16825 #: build/C/man2/sysinfo.2:44
16826 msgid "and the sizes were given in bytes."
16827 msgstr ""
16828
16829 #. type: Plain text
16830 #: build/C/man2/sysinfo.2:47
16831 msgid "Since Linux 2.3.23 (i386), 2.3.48 (all architectures) the structure is:"
16832 msgstr ""
16833
16834 #. type: Plain text
16835 #: build/C/man2/sysinfo.2:65
16836 #, no-wrap
16837 msgid ""
16838 "struct sysinfo {\n"
16839 "    long uptime;             /* Seconds since boot */\n"
16840 "    unsigned long loads[3];  /* 1, 5, and 15 minute load averages */\n"
16841 "    unsigned long totalram;  /* Total usable main memory size */\n"
16842 "    unsigned long freeram;   /* Available memory size */\n"
16843 "    unsigned long sharedram; /* Amount of shared memory */\n"
16844 "    unsigned long bufferram; /* Memory used by buffers */\n"
16845 "    unsigned long totalswap; /* Total swap space size */\n"
16846 "    unsigned long freeswap;  /* swap space still available */\n"
16847 "    unsigned short procs;    /* Number of current processes */\n"
16848 "    unsigned long totalhigh; /* Total high memory size */\n"
16849 "    unsigned long freehigh;  /* Available high memory size */\n"
16850 "    unsigned int mem_unit;   /* Memory unit size in bytes */\n"
16851 "    char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding for libc5 */\n"
16852 "};\n"
16853 msgstr ""
16854
16855 #. type: Plain text
16856 #: build/C/man2/sysinfo.2:69
16857 msgid "and the sizes are given as multiples of I<mem_unit> bytes."
16858 msgstr ""
16859
16860 #. type: Plain text
16861 #: build/C/man2/sysinfo.2:74
16862 msgid ""
16863 "B<sysinfo>()  provides a simple way of getting overall system statistics.  "
16864 "This is more portable than reading I</dev/kmem>."
16865 msgstr ""
16866
16867 #. type: Plain text
16868 #: build/C/man2/sysinfo.2:83
16869 msgid "pointer to I<struct\\ sysinfo> is invalid"
16870 msgstr ""
16871
16872 #. type: Plain text
16873 #: build/C/man2/sysinfo.2:94
16874 msgid ""
16875 "The Linux kernel has a B<sysinfo>()  system call since 0.98.pl6.  Linux libc "
16876 "contains a B<sysinfo>()  routine since 5.3.5, and glibc has one since 1.90."
16877 msgstr ""
16878
16879 #. type: TH
16880 #: build/C/man3/tcgetpgrp.3:23
16881 #, no-wrap
16882 msgid "TCGETPGRP"
16883 msgstr ""
16884
16885 #. type: TH
16886 #: build/C/man3/tcgetpgrp.3:23
16887 #, no-wrap
16888 msgid "2003-01-28"
16889 msgstr ""
16890
16891 #. type: Plain text
16892 #: build/C/man3/tcgetpgrp.3:26
16893 msgid "tcgetpgrp, tcsetpgrp - get and set terminal foreground process group"
16894 msgstr ""
16895
16896 #. type: Plain text
16897 #: build/C/man3/tcgetpgrp.3:30
16898 msgid "B<pid_t tcgetpgrp(int >I<fd>B<);>"
16899 msgstr ""
16900
16901 #. type: Plain text
16902 #: build/C/man3/tcgetpgrp.3:32
16903 msgid "B<int tcsetpgrp(int >I<fd>B<, pid_t >I<pgrp>B<);>"
16904 msgstr ""
16905
16906 #.  The process itself may be a background process.
16907 #. type: Plain text
16908 #: build/C/man3/tcgetpgrp.3:40
16909 msgid ""
16910 "The function B<tcgetpgrp>()  returns the process group ID of the foreground "
16911 "process group on the terminal associated to I<fd>, which must be the "
16912 "controlling terminal of the calling process."
16913 msgstr ""
16914
16915 #. type: Plain text
16916 #: build/C/man3/tcgetpgrp.3:50
16917 msgid ""
16918 "The function B<tcsetpgrp>()  makes the process group with process group ID "
16919 "I<pgrp> the foreground process group on the terminal associated to I<fd>, "
16920 "which must be the controlling terminal of the calling process, and still be "
16921 "associated with its session.  Moreover, I<pgrp> must be a (nonempty) process "
16922 "group belonging to the same session as the calling process."
16923 msgstr ""
16924
16925 #. type: Plain text
16926 #: build/C/man3/tcgetpgrp.3:59
16927 msgid ""
16928 "If B<tcsetpgrp>()  is called by a member of a background process group in "
16929 "its session, and the calling process is not blocking or ignoring B<SIGTTOU>, "
16930 "a B<SIGTTOU> signal is sent to all members of this background process group."
16931 msgstr ""
16932
16933 #. type: Plain text
16934 #: build/C/man3/tcgetpgrp.3:74
16935 msgid ""
16936 "When I<fd> refers to the controlling terminal of the calling process, the "
16937 "function B<tcgetpgrp>()  will return the foreground process group ID of that "
16938 "terminal if there is one, and some value larger than 1 that is not presently "
16939 "a process group ID otherwise.  When I<fd> does not refer to the controlling "
16940 "terminal of the calling process, -1 is returned, and I<errno> is set "
16941 "appropriately."
16942 msgstr ""
16943
16944 #. type: Plain text
16945 #: build/C/man3/tcgetpgrp.3:81
16946 msgid ""
16947 "When successful, B<tcsetpgrp>()  returns 0.  Otherwise, it returns -1, and "
16948 "I<errno> is set appropriately."
16949 msgstr ""
16950
16951 #. type: Plain text
16952 #: build/C/man3/tcgetpgrp.3:90
16953 msgid "I<pgrp> has an unsupported value."
16954 msgstr ""
16955
16956 #. type: Plain text
16957 #: build/C/man3/tcgetpgrp.3:99
16958 msgid ""
16959 "The calling process does not have a controlling terminal, or it has one but "
16960 "it is not described by I<fd>, or, for B<tcsetpgrp>(), this controlling "
16961 "terminal is no longer associated with the session of the calling process."
16962 msgstr ""
16963
16964 #. type: Plain text
16965 #: build/C/man3/tcgetpgrp.3:104
16966 msgid ""
16967 "I<pgrp> has a supported value, but is not the process group ID of a process "
16968 "in the same session as the calling process."
16969 msgstr ""
16970
16971 #. type: Plain text
16972 #: build/C/man3/tcgetpgrp.3:112
16973 msgid ""
16974 "These functions are implemented via the B<TIOCGPGRP> and B<TIOCSPGRP> "
16975 "ioctls."
16976 msgstr ""
16977
16978 #. type: SS
16979 #: build/C/man3/tcgetpgrp.3:112 build/C/man2/vfork.2:173
16980 #, no-wrap
16981 msgid "History"
16982 msgstr ""
16983
16984 #. type: Plain text
16985 #: build/C/man3/tcgetpgrp.3:115
16986 msgid "The ioctls appeared in 4.2BSD.  The functions are POSIX inventions."
16987 msgstr ""
16988
16989 #. type: Plain text
16990 #: build/C/man3/tcgetpgrp.3:119
16991 msgid "B<setpgid>(2), B<setsid>(2), B<credentials>(7)"
16992 msgstr ""
16993
16994 #. type: TH
16995 #: build/C/man2/truncate.2:41
16996 #, no-wrap
16997 msgid "TRUNCATE"
16998 msgstr ""
16999
17000 #. type: TH
17001 #: build/C/man2/truncate.2:41
17002 #, no-wrap
17003 msgid "2011-09-08"
17004 msgstr ""
17005
17006 #. type: Plain text
17007 #: build/C/man2/truncate.2:44
17008 msgid "truncate, ftruncate - truncate a file to a specified length"
17009 msgstr ""
17010
17011 #. type: Plain text
17012 #: build/C/man2/truncate.2:50
17013 msgid "B<int truncate(const char *>I<path>B<, off_t >I<length>B<);>"
17014 msgstr ""
17015
17016 #. type: Plain text
17017 #: build/C/man2/truncate.2:52
17018 msgid "B<int ftruncate(int >I<fd>B<, off_t >I<length>B<);>"
17019 msgstr ""
17020
17021 #. type: Plain text
17022 #: build/C/man2/truncate.2:61
17023 msgid "B<truncate>():"
17024 msgstr ""
17025
17026 #. type: Plain text
17027 #: build/C/man2/truncate.2:69
17028 msgid "B<ftruncate>():"
17029 msgstr ""
17030
17031 #. type: Plain text
17032 #: build/C/man2/truncate.2:74
17033 msgid "|| /* Since glibc 2.3.5: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L"
17034 msgstr ""
17035
17036 #. type: Plain text
17037 #: build/C/man2/truncate.2:89
17038 msgid ""
17039 "The B<truncate>()  and B<ftruncate>()  functions cause the regular file "
17040 "named by I<path> or referenced by I<fd> to be truncated to a size of "
17041 "precisely I<length> bytes."
17042 msgstr ""
17043
17044 #. type: Plain text
17045 #: build/C/man2/truncate.2:93
17046 msgid ""
17047 "If the file previously was larger than this size, the extra data is lost.  "
17048 "If the file previously was shorter, it is extended, and the extended part "
17049 "reads as null bytes (\\(aq\\e0\\(aq)."
17050 msgstr ""
17051
17052 #. type: Plain text
17053 #: build/C/man2/truncate.2:95
17054 msgid "The file offset is not changed."
17055 msgstr ""
17056
17057 #. type: Plain text
17058 #: build/C/man2/truncate.2:102
17059 msgid ""
17060 "If the size changed, then the st_ctime and st_mtime fields (respectively, "
17061 "time of last status change and time of last modification; see B<stat>(2))  "
17062 "for the file are updated, and the set-user-ID and set-group-ID permission "
17063 "bits may be cleared."
17064 msgstr ""
17065
17066 #. type: Plain text
17067 #: build/C/man2/truncate.2:108
17068 msgid ""
17069 "With B<ftruncate>(), the file must be open for writing; with B<truncate>(), "
17070 "the file must be writable."
17071 msgstr ""
17072
17073 #. type: Plain text
17074 #: build/C/man2/truncate.2:116
17075 msgid "For B<truncate>():"
17076 msgstr ""
17077
17078 #. type: Plain text
17079 #: build/C/man2/truncate.2:122
17080 msgid ""
17081 "Search permission is denied for a component of the path prefix, or the named "
17082 "file is not writable by the user.  (See also B<path_resolution>(7).)"
17083 msgstr ""
17084
17085 #. type: Plain text
17086 #: build/C/man2/truncate.2:126
17087 msgid "I<Path> points outside the process's allocated address space."
17088 msgstr ""
17089
17090 #. type: TP
17091 #: build/C/man2/truncate.2:126
17092 #, no-wrap
17093 msgid "B<EFBIG>"
17094 msgstr ""
17095
17096 #. type: Plain text
17097 #: build/C/man2/truncate.2:131
17098 msgid "The argument I<length> is larger than the maximum file size. (XSI)"
17099 msgstr ""
17100
17101 #. type: Plain text
17102 #: build/C/man2/truncate.2:138
17103 msgid ""
17104 "While blocked waiting to complete, the call was interrupted by a signal "
17105 "handler; see B<fcntl>(2)  and B<signal>(7)."
17106 msgstr ""
17107
17108 #. type: Plain text
17109 #: build/C/man2/truncate.2:143
17110 msgid "The argument I<length> is negative or larger than the maximum file size."
17111 msgstr ""
17112
17113 #. type: Plain text
17114 #: build/C/man2/truncate.2:146
17115 msgid "An I/O error occurred updating the inode."
17116 msgstr ""
17117
17118 #. type: Plain text
17119 #: build/C/man2/truncate.2:149
17120 msgid "The named file is a directory."
17121 msgstr ""
17122
17123 #. type: Plain text
17124 #: build/C/man2/truncate.2:152
17125 msgid "Too many symbolic links were encountered in translating the pathname."
17126 msgstr ""
17127
17128 #. type: Plain text
17129 #: build/C/man2/truncate.2:156
17130 msgid ""
17131 "A component of a pathname exceeded 255 characters, or an entire pathname "
17132 "exceeded 1023 characters."
17133 msgstr ""
17134
17135 #. type: Plain text
17136 #: build/C/man2/truncate.2:159
17137 msgid "The named file does not exist."
17138 msgstr ""
17139
17140 #.  This happens for at least MSDOS and VFAT file systems
17141 #.  on kernel 2.6.13
17142 #. type: Plain text
17143 #: build/C/man2/truncate.2:168
17144 msgid ""
17145 "The underlying file system does not support extending a file beyond its "
17146 "current size."
17147 msgstr ""
17148
17149 #. type: Plain text
17150 #: build/C/man2/truncate.2:174
17151 msgid "The file is a pure procedure (shared text) file that is being executed."
17152 msgstr ""
17153
17154 #. type: Plain text
17155 #: build/C/man2/truncate.2:181
17156 msgid ""
17157 "For B<ftruncate>()  the same errors apply, but instead of things that can be "
17158 "wrong with I<path>, we now have things that can be wrong with the file "
17159 "descriptor, I<fd>:"
17160 msgstr ""
17161
17162 #. type: Plain text
17163 #: build/C/man2/truncate.2:185
17164 msgid "I<fd> is not a valid descriptor."
17165 msgstr ""
17166
17167 #. type: TP
17168 #: build/C/man2/truncate.2:185
17169 #, no-wrap
17170 msgid "B<EBADF> or B<EINVAL>"
17171 msgstr ""
17172
17173 #. type: Plain text
17174 #: build/C/man2/truncate.2:189
17175 msgid "I<fd> is not open for writing."
17176 msgstr ""
17177
17178 #. type: Plain text
17179 #: build/C/man2/truncate.2:193
17180 msgid "I<fd> does not reference a regular file."
17181 msgstr ""
17182
17183 #.  POSIX.1-1996 has
17184 #.  .BR ftruncate ().
17185 #.  POSIX.1-2001 also has
17186 #.  .BR truncate (),
17187 #.  as an XSI extension.
17188 #.  .LP
17189 #.  SVr4 documents additional
17190 #.  .BR truncate ()
17191 #.  error conditions EMFILE, EMULTIHP, ENFILE, ENOLINK.  SVr4 documents for
17192 #.  .BR ftruncate ()
17193 #.  an additional EAGAIN error condition.
17194 #. type: Plain text
17195 #: build/C/man2/truncate.2:206
17196 msgid "4.4BSD, SVr4, POSIX.1-2001 (these calls first appeared in 4.2BSD)."
17197 msgstr ""
17198
17199 #.  At the very least: OSF/1, Solaris 7, and FreeBSD conform, mtk, Jan 2002
17200 #. type: Plain text
17201 #: build/C/man2/truncate.2:227
17202 msgid ""
17203 "The details in DESCRIPTION are for XSI-compliant systems.  For "
17204 "non-XSI-compliant systems, the POSIX standard allows two behaviors for "
17205 "B<ftruncate>()  when I<length> exceeds the file length (note that "
17206 "B<truncate>()  is not specified at all in such an environment): either "
17207 "returning an error, or extending the file.  Like most UNIX implementations, "
17208 "Linux follows the XSI requirement when dealing with native file systems.  "
17209 "However, some nonnative file systems do not permit B<truncate>()  and "
17210 "B<ftruncate>()  to be used to extend a file beyond its current length: a "
17211 "notable example on Linux is VFAT."
17212 msgstr ""
17213
17214 #. type: Plain text
17215 #: build/C/man2/truncate.2:241
17216 msgid ""
17217 "The original Linux B<truncate>()  and B<ftruncate>()  system calls were not "
17218 "designed to handle large file offsets.  Consequently, Linux 2.4 added "
17219 "B<truncate64>()  and B<ftruncate64>()  system calls that handle large "
17220 "files.  However, these details can be ignored by applications using glibc, "
17221 "whose wrapper functions transparently employ the more recent system calls "
17222 "where they are available."
17223 msgstr ""
17224
17225 #.  http://sourceware.org/bugzilla/show_bug.cgi?id=12037
17226 #. type: Plain text
17227 #: build/C/man2/truncate.2:249
17228 msgid ""
17229 "A header file bug in glibc 2.12 meant that the minimum value of "
17230 "B<_POSIX_C_SOURCE> required to expose the declaration of B<ftruncate>()  was "
17231 "200809L instead of 200112L.  This has been fixed in later glibc versions."
17232 msgstr ""
17233
17234 #. type: Plain text
17235 #: build/C/man2/truncate.2:253
17236 msgid "B<open>(2), B<stat>(2), B<path_resolution>(7)"
17237 msgstr ""
17238
17239 #. type: TH
17240 #: build/C/man3/ualarm.3:23
17241 #, no-wrap
17242 msgid "UALARM"
17243 msgstr ""
17244
17245 #. type: Plain text
17246 #: build/C/man3/ualarm.3:26
17247 msgid "ualarm - schedule signal after given number of microseconds"
17248 msgstr ""
17249
17250 #. type: Plain text
17251 #: build/C/man3/ualarm.3:31
17252 #, no-wrap
17253 msgid "B<useconds_t ualarm(useconds_t >I<usecs>B<, useconds_t >I<interval>B<);>\n"
17254 msgstr ""
17255
17256 #. type: Plain text
17257 #: build/C/man3/ualarm.3:39
17258 msgid "B<ualarm>():"
17259 msgstr ""
17260
17261 #. type: Plain text
17262 #: build/C/man3/ualarm.3:68
17263 msgid ""
17264 "The B<ualarm>()  function causes the signal B<SIGALRM> to be sent to the "
17265 "invoking process after (not less than)  I<usecs> microseconds.  The delay "
17266 "may be lengthened slightly by any system activity or by the time spent "
17267 "processing the call or by the granularity of system timers."
17268 msgstr ""
17269
17270 #. type: Plain text
17271 #: build/C/man3/ualarm.3:72
17272 msgid "Unless caught or ignored, the B<SIGALRM> signal will terminate the process."
17273 msgstr ""
17274
17275 #. type: Plain text
17276 #: build/C/man3/ualarm.3:80
17277 msgid ""
17278 "If the I<interval> argument is nonzero, further B<SIGALRM> signals will be "
17279 "sent every I<interval> microseconds after the first."
17280 msgstr ""
17281
17282 #. type: Plain text
17283 #: build/C/man3/ualarm.3:83
17284 msgid ""
17285 "This function returns the number of microseconds remaining for any alarm "
17286 "that was previously set, or 0 if no alarm was pending."
17287 msgstr ""
17288
17289 #. type: Plain text
17290 #: build/C/man3/ualarm.3:87
17291 msgid "Interrupted by a signal."
17292 msgstr ""
17293
17294 #. type: Plain text
17295 #: build/C/man3/ualarm.3:91
17296 msgid ""
17297 "I<usecs> or I<interval> is not smaller than 1000000.  (On systems where that "
17298 "is considered an error.)"
17299 msgstr ""
17300
17301 #. type: Plain text
17302 #: build/C/man3/ualarm.3:99
17303 msgid ""
17304 "4.3BSD, POSIX.1-2001.  POSIX.1-2001 marks B<ualarm>()  as obsolete.  "
17305 "POSIX.1-2008 removes the specification of B<ualarm>().  4.3BSD, SUSv2, and "
17306 "POSIX do not define any errors."
17307 msgstr ""
17308
17309 #. type: Plain text
17310 #: build/C/man3/ualarm.3:112
17311 msgid ""
17312 "The type I<useconds_t> is an unsigned integer type capable of holding "
17313 "integers in the range [0,1000000].  On the original BSD implementation, and "
17314 "in glibc before version 2.1, the arguments to B<ualarm>()  were instead "
17315 "typed as I<unsigned int>.  Programs will be more portable if they never "
17316 "mention I<useconds_t> explicitly."
17317 msgstr ""
17318
17319 #. type: Plain text
17320 #: build/C/man3/ualarm.3:126
17321 msgid ""
17322 "The interaction of this function with other timer functions such as "
17323 "B<alarm>(2), B<sleep>(3), B<nanosleep>(2), B<setitimer>(2), "
17324 "B<timer_create>(2), B<timer_delete>(2), B<timer_getoverrun>(2), "
17325 "B<timer_gettime>(2), B<timer_settime>(2), B<usleep>(3)  is unspecified."
17326 msgstr ""
17327
17328 #. type: Plain text
17329 #: build/C/man3/ualarm.3:134
17330 msgid ""
17331 "This function is obsolete.  Use B<setitimer>(2)  or POSIX interval timers "
17332 "(B<timer_create>(2), etc.)  instead."
17333 msgstr ""
17334
17335 #. type: Plain text
17336 #: build/C/man3/ualarm.3:142
17337 msgid ""
17338 "B<alarm>(2), B<getitimer>(2), B<nanosleep>(2), B<select>(2), "
17339 "B<setitimer>(2), B<usleep>(3), B<time>(7)"
17340 msgstr ""
17341
17342 #. type: TH
17343 #: build/C/man2/umask.2:34
17344 #, no-wrap
17345 msgid "UMASK"
17346 msgstr ""
17347
17348 #. type: TH
17349 #: build/C/man2/umask.2:34
17350 #, no-wrap
17351 msgid "2008-01-09"
17352 msgstr ""
17353
17354 #. type: Plain text
17355 #: build/C/man2/umask.2:37
17356 msgid "umask - set file mode creation mask"
17357 msgstr ""
17358
17359 #. type: Plain text
17360 #: build/C/man2/umask.2:43
17361 msgid "B<mode_t umask(mode_t >I<mask>B<);>"
17362 msgstr ""
17363
17364 #. type: Plain text
17365 #: build/C/man2/umask.2:50
17366 msgid ""
17367 "B<umask>()  sets the calling process's file mode creation mask (umask) to "
17368 "I<mask> & 0777 (i.e., only the file permission bits of I<mask> are used), "
17369 "and returns the previous value of the mask."
17370 msgstr ""
17371
17372 #.  e.g., mkfifo(), creat(), mknod(), sem_open(), mq_open(), shm_open()
17373 #.  but NOT the System V IPC *get() calls
17374 #. type: Plain text
17375 #: build/C/man2/umask.2:63
17376 msgid ""
17377 "The umask is used by B<open>(2), B<mkdir>(2), and other system calls that "
17378 "create files to modify the permissions placed on newly created files or "
17379 "directories.  Specifically, permissions in the umask are turned off from the "
17380 "I<mode> argument to B<open>(2)  and B<mkdir>(2)."
17381 msgstr ""
17382
17383 #. type: Plain text
17384 #: build/C/man2/umask.2:68
17385 msgid ""
17386 "The constants that should be used to specify I<mask> are described under "
17387 "B<stat>(2)."
17388 msgstr ""
17389
17390 #. type: Plain text
17391 #: build/C/man2/umask.2:77
17392 msgid ""
17393 "The typical default value for the process umask is I<S_IWGRP\\ |\\ S_IWOTH> "
17394 "(octal 022).  In the usual case where the I<mode> argument to B<open>(2)  is "
17395 "specified as:"
17396 msgstr ""
17397
17398 #. type: Plain text
17399 #: build/C/man2/umask.2:80
17400 #, no-wrap
17401 msgid "    S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH\n"
17402 msgstr ""
17403
17404 #. type: Plain text
17405 #: build/C/man2/umask.2:84
17406 msgid ""
17407 "(octal 0666) when creating a new file, the permissions on the resulting file "
17408 "will be:"
17409 msgstr ""
17410
17411 #. type: Plain text
17412 #: build/C/man2/umask.2:87
17413 #, no-wrap
17414 msgid "    S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH\n"
17415 msgstr ""
17416
17417 #. type: Plain text
17418 #: build/C/man2/umask.2:90
17419 msgid "(because 0666 & ~022 = 0644; i.e., rw-r--r--)."
17420 msgstr ""
17421
17422 #. type: Plain text
17423 #: build/C/man2/umask.2:93
17424 msgid ""
17425 "This system call always succeeds and the previous value of the mask is "
17426 "returned."
17427 msgstr ""
17428
17429 #. type: Plain text
17430 #: build/C/man2/umask.2:101
17431 msgid ""
17432 "A child process created via B<fork>(2)  inherits its parent's umask.  The "
17433 "umask is left unchanged by B<execve>(2)."
17434 msgstr ""
17435
17436 #. type: Plain text
17437 #: build/C/man2/umask.2:116
17438 msgid ""
17439 "The umask setting also affects the permissions assigned to POSIX IPC objects "
17440 "(B<mq_open>(3), B<sem_open>(3), B<shm_open>(3)), FIFOs (B<mkfifo>(3)), and "
17441 "UNIX domain sockets (B<unix>(7))  created by the process.  The umask does "
17442 "not affect the permissions assigned to System V IPC objects created by the "
17443 "process (using B<msgget>(2), B<semget>(2), B<shmget>(2))."
17444 msgstr ""
17445
17446 #.  FIXME . eventually: .BR acl (5)
17447 #. type: Plain text
17448 #: build/C/man2/umask.2:122
17449 msgid "B<chmod>(2), B<mkdir>(2), B<open>(2), B<stat>(2)"
17450 msgstr ""
17451
17452 #. type: TH
17453 #: build/C/man2/uname.2:25
17454 #, no-wrap
17455 msgid "UNAME"
17456 msgstr ""
17457
17458 #. type: Plain text
17459 #: build/C/man2/uname.2:28
17460 msgid "uname - get name and information about current kernel"
17461 msgstr ""
17462
17463 #. type: Plain text
17464 #: build/C/man2/uname.2:30
17465 msgid "B<#include E<lt>sys/utsname.hE<gt>>"
17466 msgstr ""
17467
17468 #. type: Plain text
17469 #: build/C/man2/uname.2:32
17470 msgid "B<int uname(struct utsname *>I<buf>B<);>"
17471 msgstr ""
17472
17473 #. type: Plain text
17474 #: build/C/man2/uname.2:40
17475 msgid ""
17476 "B<uname>()  returns system information in the structure pointed to by "
17477 "I<buf>.  The I<utsname> struct is defined in I<E<lt>sys/utsname.hE<gt>>:"
17478 msgstr ""
17479
17480 #. type: Plain text
17481 #: build/C/man2/uname.2:54
17482 #, no-wrap
17483 msgid ""
17484 "struct utsname {\n"
17485 "    char sysname[];    /* Operating system name (e.g., \"Linux\") */\n"
17486 "    char nodename[];   /* Name within \"some implementation-defined\n"
17487 "                          network\" */\n"
17488 "    char release[];    /* OS release (e.g., \"2.6.28\") */\n"
17489 "    char version[];    /* OS version */\n"
17490 "    char machine[];    /* Hardware identifier */\n"
17491 "#ifdef _GNU_SOURCE\n"
17492 "    char domainname[]; /* NIS or YP domain name */\n"
17493 "#endif\n"
17494 "};\n"
17495 msgstr ""
17496
17497 #. type: Plain text
17498 #: build/C/man2/uname.2:61
17499 msgid ""
17500 "The length of the arrays in a I<struct utsname> is unspecified (see NOTES); "
17501 "the fields are terminated by a null byte (\\(aq\\e0\\(aq)."
17502 msgstr ""
17503
17504 #. type: Plain text
17505 #: build/C/man2/uname.2:71
17506 msgid "I<buf> is not valid."
17507 msgstr ""
17508
17509 #. type: Plain text
17510 #: build/C/man2/uname.2:76
17511 msgid "SVr4, POSIX.1-2001.  There is no B<uname>()  call in 4.3BSD."
17512 msgstr ""
17513
17514 #. type: Plain text
17515 #: build/C/man2/uname.2:80
17516 msgid "The I<domainname> member (the NIS or YP domain name) is a GNU extension."
17517 msgstr ""
17518
17519 #. type: Plain text
17520 #: build/C/man2/uname.2:92
17521 msgid ""
17522 "This is a system call, and the operating system presumably knows its name, "
17523 "release and version.  It also knows what hardware it runs on.  So, four of "
17524 "the fields of the struct are meaningful.  On the other hand, the field "
17525 "I<nodename> is meaningless: it gives the name of the present machine in some "
17526 "undefined network, but typically machines are in more than one network and "
17527 "have several names.  Moreover, the kernel has no way of knowing about such "
17528 "things, so it has to be told what to answer here.  The same holds for the "
17529 "additional I<domainname> field."
17530 msgstr ""
17531
17532 #. type: Plain text
17533 #: build/C/man2/uname.2:106
17534 msgid ""
17535 "To this end Linux uses the system calls B<sethostname>(2)  and "
17536 "B<setdomainname>(2).  Note that there is no standard that says that the "
17537 "hostname set by B<sethostname>(2)  is the same string as the I<nodename> "
17538 "field of the struct returned by B<uname>()  (indeed, some systems allow a "
17539 "256-byte hostname and an 8-byte nodename), but this is true on Linux.  The "
17540 "same holds for B<setdomainname>(2)  and the I<domainname> field."
17541 msgstr ""
17542
17543 #. type: Plain text
17544 #: build/C/man2/uname.2:121
17545 msgid ""
17546 "The length of the fields in the struct varies.  Some operating systems or "
17547 "libraries use a hardcoded 9 or 33 or 65 or 257.  Other systems use "
17548 "B<SYS_NMLN> or B<_SYS_NMLN> or B<UTSLEN> or B<_UTSNAME_LENGTH>.  Clearly, it "
17549 "is a bad idea to use any of these constants; just use sizeof(...).  Often "
17550 "257 is chosen in order to have room for an internet hostname."
17551 msgstr ""
17552
17553 #. type: Plain text
17554 #: build/C/man2/uname.2:128
17555 msgid ""
17556 "Part of the utsname information is also accessible via "
17557 "I</proc/sys/kernel/>{I<ostype>, I<hostname>, I<osrelease>, I<version>, "
17558 "I<domainname>}."
17559 msgstr ""
17560
17561 #. type: SS
17562 #: build/C/man2/uname.2:128
17563 #, no-wrap
17564 msgid "Underlying kernel interface"
17565 msgstr ""
17566
17567 #.  That was back before Linux 1.0
17568 #.  That was also back before Linux 1.0
17569 #. type: Plain text
17570 #: build/C/man2/uname.2:155
17571 msgid ""
17572 "Over time, increases in the size of the I<utsname> structure have led to "
17573 "three successive versions of B<uname>(): I<sys_olduname>()  (slot "
17574 "I<__NR_oldolduname>), I<sys_uname>()  (slot I<__NR_olduname>), and "
17575 "I<sys_newuname>()  (slot I<__NR_uname)>.  The first one used length 9 for "
17576 "all fields; the second used 65; the third also uses 65 but adds the "
17577 "I<domainname> field.  The glibc B<uname>()  wrapper function hides these "
17578 "details from applications, invoking the most recent version of the system "
17579 "call provided by the kernel."
17580 msgstr ""
17581
17582 #. type: Plain text
17583 #: build/C/man2/uname.2:159
17584 msgid "B<uname>(1), B<getdomainname>(2), B<gethostname>(2)"
17585 msgstr ""
17586
17587 #. type: TH
17588 #: build/C/man2/uselib.2:31
17589 #, no-wrap
17590 msgid "USELIB"
17591 msgstr ""
17592
17593 #. type: TH
17594 #: build/C/man2/uselib.2:31
17595 #, no-wrap
17596 msgid "2005-01-09"
17597 msgstr ""
17598
17599 #. type: Plain text
17600 #: build/C/man2/uselib.2:34
17601 msgid "uselib - load shared library"
17602 msgstr ""
17603
17604 #. type: Plain text
17605 #: build/C/man2/uselib.2:38
17606 msgid "B<int uselib(const char *>I<library>B<);>"
17607 msgstr ""
17608
17609 #. type: Plain text
17610 #: build/C/man2/uselib.2:48
17611 msgid ""
17612 "The system call B<uselib>()  serves to load a shared library to be used by "
17613 "the calling process.  It is given a pathname.  The address where to load is "
17614 "found in the library itself.  The library can have any recognized binary "
17615 "format."
17616 msgstr ""
17617
17618 #. type: Plain text
17619 #: build/C/man2/uselib.2:59
17620 msgid ""
17621 "In addition to all of the error codes returned by B<open>(2)  and "
17622 "B<mmap>(2), the following may also be returned:"
17623 msgstr ""
17624
17625 #. type: Plain text
17626 #: build/C/man2/uselib.2:67
17627 msgid ""
17628 "The library specified by I<library> does not have read or execute "
17629 "permission, or the caller does not have search permission for one of the "
17630 "directories in the path prefix.  (See also B<path_resolution>(7).)"
17631 msgstr ""
17632
17633 #. type: Plain text
17634 #: build/C/man2/uselib.2:76
17635 msgid ""
17636 "The file specified by I<library> is not an executable of known type, e.g., "
17637 "does not have the correct magic numbers."
17638 msgstr ""
17639
17640 #. type: Plain text
17641 #: build/C/man2/uselib.2:80
17642 msgid ""
17643 "B<uselib>()  is Linux-specific, and should not be used in programs intended "
17644 "to be portable."
17645 msgstr ""
17646
17647 #. type: Plain text
17648 #: build/C/man2/uselib.2:85
17649 msgid ""
17650 "B<uselib>()  was used by early libc startup code to load the shared "
17651 "libraries with names found in an array of names in the binary."
17652 msgstr ""
17653
17654 #.  libc 4.3.1f - changelog 1993-03-02
17655 #.  libc 4.3.4 - changelog 1993-04-21
17656 #. type: Plain text
17657 #: build/C/man2/uselib.2:95
17658 msgid ""
17659 "Since libc 4.3.2, startup code tries to prefix these names with "
17660 "\"/usr/lib\", \"/lib\" and \"\" before giving up.  In libc 4.3.4 and later "
17661 "these names are looked for in the directories found in B<LD_LIBRARY_PATH>, "
17662 "and if not found there, prefixes \"/usr/lib\", \"/lib\" and \"/\" are tried."
17663 msgstr ""
17664
17665 #. type: Plain text
17666 #: build/C/man2/uselib.2:100
17667 msgid ""
17668 "From libc 4.4.4 on only the library \"/lib/ld.so\" is loaded, so that this "
17669 "dynamic library can load the remaining libraries needed (again using this "
17670 "call).  This is also the state of affairs in libc5."
17671 msgstr ""
17672
17673 #. type: Plain text
17674 #: build/C/man2/uselib.2:102
17675 msgid "glibc2 does not use this call."
17676 msgstr ""
17677
17678 #. type: Plain text
17679 #: build/C/man2/uselib.2:112
17680 msgid ""
17681 "B<ar>(1), B<gcc>(1), B<ld>(1), B<ldd>(1), B<mmap>(2), B<open>(2), "
17682 "B<dlopen>(3), B<capabilities>(7), B<ld.so>(8)"
17683 msgstr ""
17684
17685 #. type: TH
17686 #: build/C/man3/usleep.3:31
17687 #, no-wrap
17688 msgid "USLEEP"
17689 msgstr ""
17690
17691 #. type: TH
17692 #: build/C/man3/usleep.3:31
17693 #, no-wrap
17694 msgid "2010-12-03"
17695 msgstr ""
17696
17697 #. type: Plain text
17698 #: build/C/man3/usleep.3:34
17699 msgid "usleep - suspend execution for microsecond intervals"
17700 msgstr ""
17701
17702 #. type: Plain text
17703 #: build/C/man3/usleep.3:39
17704 #, no-wrap
17705 msgid "B<int usleep(useconds_t >I<usec>B<);>\n"
17706 msgstr ""
17707
17708 #. type: Plain text
17709 #: build/C/man3/usleep.3:47
17710 msgid "B<usleep>():"
17711 msgstr ""
17712
17713 #. type: Plain text
17714 #: build/C/man3/usleep.3:73
17715 msgid ""
17716 "The B<usleep>()  function suspends execution of the calling thread for (at "
17717 "least) I<usec> microseconds.  The sleep may be lengthened slightly by any "
17718 "system activity or by the time spent processing the call or by the "
17719 "granularity of system timers."
17720 msgstr ""
17721
17722 #. type: Plain text
17723 #: build/C/man3/usleep.3:75
17724 msgid "0 on success, -1 on error."
17725 msgstr ""
17726
17727 #. type: Plain text
17728 #: build/C/man3/usleep.3:80
17729 msgid "Interrupted by a signal; see B<signal>(7)."
17730 msgstr ""
17731
17732 #. type: Plain text
17733 #: build/C/man3/usleep.3:84
17734 msgid ""
17735 "I<usec> is not smaller than 1000000.  (On systems where that is considered "
17736 "an error.)"
17737 msgstr ""
17738
17739 #. type: Plain text
17740 #: build/C/man3/usleep.3:91
17741 msgid ""
17742 "4.3BSD, POSIX.1-2001.  POSIX.1-2001 declares this function obsolete; use "
17743 "B<nanosleep>(2)  instead.  POSIX.1-2008 removes the specification of "
17744 "B<usleep>()."
17745 msgstr ""
17746
17747 #. type: Plain text
17748 #: build/C/man3/usleep.3:98
17749 msgid ""
17750 "On the original BSD implementation, and in glibc before version 2.2.2, the "
17751 "return type of this function is I<void>.  The POSIX version returns I<int>, "
17752 "and this is also the prototype used since glibc 2.2.2."
17753 msgstr ""
17754
17755 #. type: Plain text
17756 #: build/C/man3/usleep.3:102
17757 msgid "Only the B<EINVAL> error return is documented by SUSv2 and POSIX.1-2001."
17758 msgstr ""
17759
17760 #. type: Plain text
17761 #: build/C/man3/usleep.3:110
17762 msgid ""
17763 "The type I<useconds_t> is an unsigned integer type capable of holding "
17764 "integers in the range [0,1000000].  Programs will be more portable if they "
17765 "never mention this type explicitly.  Use"
17766 msgstr ""
17767
17768 #. type: Plain text
17769 #: build/C/man3/usleep.3:118
17770 #, no-wrap
17771 msgid ""
17772 "#include E<lt>unistd.hE<gt>\n"
17773 "\\&...\n"
17774 "    unsigned int usecs;\n"
17775 "\\&...\n"
17776 "    usleep(usecs);\n"
17777 msgstr ""
17778
17779 #. type: Plain text
17780 #: build/C/man3/usleep.3:135
17781 msgid ""
17782 "The interaction of this function with the B<SIGALRM> signal, and with other "
17783 "timer functions such as B<alarm>(2), B<sleep>(3), B<nanosleep>(2), "
17784 "B<setitimer>(2), B<timer_create>(2), B<timer_delete>(2), "
17785 "B<timer_getoverrun>(2), B<timer_gettime>(2), B<timer_settime>(2), "
17786 "B<ualarm>(3)  is unspecified."
17787 msgstr ""
17788
17789 #. type: Plain text
17790 #: build/C/man3/usleep.3:144
17791 msgid ""
17792 "B<alarm>(2), B<getitimer>(2), B<nanosleep>(2), B<select>(2), "
17793 "B<setitimer>(2), B<sleep>(3), B<ualarm>(3), B<time>(7)"
17794 msgstr ""
17795
17796 #. type: TH
17797 #: build/C/man2/vfork.2:26
17798 #, no-wrap
17799 msgid "VFORK"
17800 msgstr ""
17801
17802 #. type: Plain text
17803 #: build/C/man2/vfork.2:29
17804 msgid "vfork - create a child process and block parent"
17805 msgstr ""
17806
17807 #. type: Plain text
17808 #: build/C/man2/vfork.2:35
17809 msgid "B<pid_t vfork(void);>"
17810 msgstr ""
17811
17812 #. type: Plain text
17813 #: build/C/man2/vfork.2:42
17814 msgid "B<vfork>():"
17815 msgstr ""
17816
17817 #. type: SS
17818 #: build/C/man2/vfork.2:61
17819 #, no-wrap
17820 msgid "Standard Description"
17821 msgstr ""
17822
17823 #. type: Plain text
17824 #: build/C/man2/vfork.2:80
17825 msgid ""
17826 "(From POSIX.1)  The B<vfork>()  function has the same effect as B<fork>(2), "
17827 "except that the behavior is undefined if the process created by B<vfork>()  "
17828 "either modifies any data other than a variable of type I<pid_t> used to "
17829 "store the return value from B<vfork>(), or returns from the function in "
17830 "which B<vfork>()  was called, or calls any other function before "
17831 "successfully calling B<_exit>(2)  or one of the B<exec>(3)  family of "
17832 "functions."
17833 msgstr ""
17834
17835 #. type: SS
17836 #: build/C/man2/vfork.2:80
17837 #, no-wrap
17838 msgid "Linux Description"
17839 msgstr ""
17840
17841 #. type: Plain text
17842 #: build/C/man2/vfork.2:87
17843 msgid ""
17844 "B<vfork>(), just like B<fork>(2), creates a child process of the calling "
17845 "process.  For details and return value and errors, see B<fork>(2)."
17846 msgstr ""
17847
17848 #. type: Plain text
17849 #: build/C/man2/vfork.2:96
17850 msgid ""
17851 "B<vfork>()  is a special case of B<clone>(2).  It is used to create new "
17852 "processes without copying the page tables of the parent process.  It may be "
17853 "useful in performance-sensitive applications where a child is created which "
17854 "then immediately issues an B<execve>(2)."
17855 msgstr ""
17856
17857 #. type: Plain text
17858 #: build/C/man2/vfork.2:113
17859 msgid ""
17860 "B<vfork>()  differs from B<fork>(2)  in that the parent is suspended until "
17861 "the child terminates (either normally, by calling B<_exit>(2), or "
17862 "abnormally, after delivery of a fatal signal), or it makes a call to "
17863 "B<execve>(2).  Until that point, the child shares all memory with its "
17864 "parent, including the stack.  The child must not return from the current "
17865 "function or call B<exit>(3), but may call B<_exit>(2)."
17866 msgstr ""
17867
17868 #. type: Plain text
17869 #: build/C/man2/vfork.2:120
17870 msgid ""
17871 "Signal handlers are inherited, but not shared.  Signals to the parent arrive "
17872 "after the child releases the parent's memory (i.e., after the child "
17873 "terminates or calls B<execve>(2))."
17874 msgstr ""
17875
17876 #. type: SS
17877 #: build/C/man2/vfork.2:120
17878 #, no-wrap
17879 msgid "Historic Description"
17880 msgstr ""
17881
17882 #. type: Plain text
17883 #: build/C/man2/vfork.2:147
17884 msgid ""
17885 "Under Linux, B<fork>(2)  is implemented using copy-on-write pages, so the "
17886 "only penalty incurred by B<fork>(2)  is the time and memory required to "
17887 "duplicate the parent's page tables, and to create a unique task structure "
17888 "for the child.  However, in the bad old days a B<fork>(2)  would require "
17889 "making a complete copy of the caller's data space, often needlessly, since "
17890 "usually immediately afterward an B<exec>(3)  is done.  Thus, for greater "
17891 "efficiency, BSD introduced the B<vfork>()  system call, which did not fully "
17892 "copy the address space of the parent process, but borrowed the parent's "
17893 "memory and thread of control until a call to B<execve>(2)  or an exit "
17894 "occurred.  The parent process was suspended while the child was using its "
17895 "resources.  The use of B<vfork>()  was tricky: for example, not modifying "
17896 "data in the parent process depended on knowing which variables were held in "
17897 "a register."
17898 msgstr ""
17899
17900 #.  In AIXv3.1 vfork is equivalent to fork.
17901 #. type: Plain text
17902 #: build/C/man2/vfork.2:161
17903 msgid ""
17904 "4.3BSD, POSIX.1-2001.  POSIX.1-2008 removes the specification of "
17905 "B<vfork>().  The requirements put on B<vfork>()  by the standards are weaker "
17906 "than those put on B<fork>(2), so an implementation where the two are "
17907 "synonymous is compliant.  In particular, the programmer cannot rely on the "
17908 "parent remaining blocked until the child either terminates or calls "
17909 "B<execve>(2), and cannot rely on any specific behavior with respect to "
17910 "shared memory."
17911 msgstr ""
17912
17913 #. type: Plain text
17914 #: build/C/man2/vfork.2:173
17915 msgid ""
17916 "Fork handlers established using B<pthread_atfork>(3)  are not called when a "
17917 "multithreaded program employing the NPTL threading library calls "
17918 "B<vfork>().  Fork handlers are called in this case in a program using the "
17919 "LinuxThreads threading library.  (See B<pthreads>(7)  for a description of "
17920 "Linux threading libraries.)"
17921 msgstr ""
17922
17923 #.  In the release notes for 4.2BSD Sam Leffler wrote: `vfork: Is still
17924 #.  present, but definitely on its way out'.
17925 #. type: Plain text
17926 #: build/C/man2/vfork.2:189
17927 msgid ""
17928 "The B<vfork>()  system call appeared in 3.0BSD.  In 4.4BSD it was made "
17929 "synonymous to B<fork>(2)  but NetBSD introduced it again, "
17930 "cf. http://www.netbsd.org/Documentation/kernel/vfork.html .  In Linux, it "
17931 "has been equivalent to B<fork>(2)  until 2.2.0-pre6 or so.  Since 2.2.0-pre9 "
17932 "(on i386, somewhat later on other architectures) it is an independent system "
17933 "call.  Support was added in glibc 2.0.112."
17934 msgstr ""
17935
17936 #. type: Plain text
17937 #: build/C/man2/vfork.2:199
17938 msgid ""
17939 "It is rather unfortunate that Linux revived this specter from the past.  The "
17940 "BSD man page states: \"This system call will be eliminated when proper "
17941 "system sharing mechanisms are implemented.  Users should not depend on the "
17942 "memory sharing semantics of B<vfork>()  as it will, in that case, be made "
17943 "synonymous to B<fork>(2).\""
17944 msgstr ""
17945
17946 #
17947 #.  As far as I can tell, the following is not true in 2.6.19:
17948 #.  Currently (Linux 2.3.25),
17949 #.  .BR strace (1)
17950 #.  cannot follow
17951 #.  .BR vfork ()
17952 #.  and requires a kernel patch.
17953 #. type: Plain text
17954 #: build/C/man2/vfork.2:219
17955 msgid ""
17956 "Details of the signal handling are obscure and differ between systems.  The "
17957 "BSD man page states: \"To avoid a possible deadlock situation, processes "
17958 "that are children in the middle of a B<vfork>()  are never sent B<SIGTTOU> "
17959 "or B<SIGTTIN> signals; rather, output or I<ioctl>s are allowed and input "
17960 "attempts result in an end-of-file indication.\""
17961 msgstr ""
17962
17963 #. type: Plain text
17964 #: build/C/man2/vfork.2:225
17965 msgid "B<clone>(2), B<execve>(2), B<fork>(2), B<unshare>(2), B<wait>(2)"
17966 msgstr ""
17967
17968 #. type: TH
17969 #: build/C/man2/vhangup.2:27
17970 #, no-wrap
17971 msgid "VHANGUP"
17972 msgstr ""
17973
17974 #. type: Plain text
17975 #: build/C/man2/vhangup.2:30
17976 msgid "vhangup - virtually hangup the current tty"
17977 msgstr ""
17978
17979 #. type: Plain text
17980 #: build/C/man2/vhangup.2:34
17981 msgid "B<int vhangup(void);>"
17982 msgstr ""
17983
17984 #. type: Plain text
17985 #: build/C/man2/vhangup.2:43
17986 msgid "B<vhangup>(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\\ E<lt>\\ 500)"
17987 msgstr ""
17988
17989 #. type: Plain text
17990 #: build/C/man2/vhangup.2:49
17991 msgid ""
17992 "B<vhangup>()  simulates a hangup on the current terminal.  This call "
17993 "arranges for other users to have a ``clean'' tty at login time."
17994 msgstr ""
17995
17996 #. type: Plain text
17997 #: build/C/man2/vhangup.2:62
17998 msgid ""
17999 "The calling process has insufficient privilege to call B<vhangup>(); the "
18000 "B<CAP_SYS_TTY_CONFIG> capability is required."
18001 msgstr ""
18002
18003 #. type: Plain text
18004 #: build/C/man2/vhangup.2:65
18005 msgid ""
18006 "This call is Linux-specific, and should not be used in programs intended to "
18007 "be portable."
18008 msgstr ""
18009
18010 #. type: Plain text
18011 #: build/C/man2/vhangup.2:68
18012 msgid "B<capabilities>(7), B<init>(8)"
18013 msgstr ""