OSDN Git Service

(split) LDP: Update POT and ja.po to LDP v3.37.
[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-22 04:26+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:38 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:38 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:39 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:41 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:52 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:61 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:170 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:126 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:157 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:180 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:141 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:594 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:172
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:220 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:207 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:225 build/C/man3/fpathconf.3:163 build/C/man2/fsync.2:163 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:817 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:270 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:211 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:235 build/C/man3/fpathconf.3:168 build/C/man2/fsync.2:172 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:821 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:276 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:218 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:242 build/C/man3/fpathconf.3:175 build/C/man2/fsync.2:179 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:828 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:283 build/C/man2/vhangup.2:75
308 msgid ""
309 "This page is part of release 3.37 of the Linux I<man-pages> project.  A "
310 "description of the project, and information about reporting bugs, can be "
311 "found at http://www.kernel.org/doc/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:120 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:109 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:126 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:114 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:151 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:119 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:249
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
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:43 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:51 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:211
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:127 build/C/man2/fcntl.2:1082 build/C/man2/flock.2:116 build/C/man2/fsync.2:115 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:62 build/C/man2/dup.2:68 build/C/man2/dup.2:101 build/C/man2/dup.2:110 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:596 build/C/man2/syscalls.2:634 build/C/man2/syscalls.2:676 build/C/man2/syscalls.2:697 build/C/man2/syscalls.2:708 build/C/man2/syscalls.2:715 build/C/man2/syscalls.2:726 build/C/man2/syscalls.2:738 build/C/man2/syscalls.2:759 build/C/man2/syscalls.2:767 build/C/man2/vfork.2:191 build/C/man2/vfork.2:195
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:143 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:165 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
2617 #, no-wrap
2618 msgid "2012-02-14"
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:49
2636 #, no-wrap
2637 msgid ""
2638 "B<#define _GNU_SOURCE>             /* See feature_test_macros(7) */\n"
2639 "B<#include E<lt>fcntl.hE<gt>>              /* Obtain O_* constant "
2640 "definitions */\n"
2641 "B<#include E<lt>unistd.hE<gt>>\n"
2642 msgstr ""
2643
2644 #. type: Plain text
2645 #: build/C/man2/dup.2:51
2646 #, no-wrap
2647 msgid "B<int dup3(int >I<oldfd>B<, int >I<newfd>B<, int >I<flags>B<);>\n"
2648 msgstr ""
2649
2650 #. type: Plain text
2651 #: build/C/man2/dup.2:55
2652 msgid "These system calls create a copy of the file descriptor I<oldfd>."
2653 msgstr ""
2654
2655 #. type: Plain text
2656 #: build/C/man2/dup.2:58
2657 msgid "B<dup>()  uses the lowest-numbered unused descriptor for the new descriptor."
2658 msgstr ""
2659
2660 #. type: Plain text
2661 #: build/C/man2/dup.2:62
2662 msgid ""
2663 "B<dup2>()  makes I<newfd> be the copy of I<oldfd>, closing I<newfd> first if "
2664 "necessary, but note the following:"
2665 msgstr ""
2666
2667 #. type: Plain text
2668 #: build/C/man2/dup.2:68
2669 msgid ""
2670 "If I<oldfd> is not a valid file descriptor, then the call fails, and "
2671 "I<newfd> is not closed."
2672 msgstr ""
2673
2674 #. type: Plain text
2675 #: build/C/man2/dup.2:79
2676 msgid ""
2677 "If I<oldfd> is a valid file descriptor, and I<newfd> has the same value as "
2678 "I<oldfd>, then B<dup2>()  does nothing, and returns I<newfd>."
2679 msgstr ""
2680
2681 #. type: Plain text
2682 #: build/C/man2/dup.2:88
2683 msgid ""
2684 "After a successful return from one of these system calls, the old and new "
2685 "file descriptors may be used interchangeably.  They refer to the same open "
2686 "file description (see B<open>(2))  and thus share file offset and file "
2687 "status flags; for example, if the file offset is modified by using "
2688 "B<lseek>(2)  on one of the descriptors, the offset is also changed for the "
2689 "other."
2690 msgstr ""
2691
2692 #. type: Plain text
2693 #: build/C/man2/dup.2:96
2694 msgid ""
2695 "The two descriptors do not share file descriptor flags (the close-on-exec "
2696 "flag).  The close-on-exec flag (B<FD_CLOEXEC>; see B<fcntl>(2))  for the "
2697 "duplicate descriptor is off."
2698 msgstr ""
2699
2700 #. type: Plain text
2701 #: build/C/man2/dup.2:101
2702 msgid "B<dup3>()  is the same as B<dup2>(), except that:"
2703 msgstr ""
2704
2705 #. type: Plain text
2706 #: build/C/man2/dup.2:110
2707 msgid ""
2708 "The caller can force the close-on-exec flag to be set for the new file "
2709 "descriptor by specifying B<O_CLOEXEC> in I<flags>.  See the description of "
2710 "the same flag in B<open>(2)  for reasons why this may be useful."
2711 msgstr ""
2712
2713 #.  FIXME . To confirm with Al Viro that this was intended, and its rationale
2714 #. type: Plain text
2715 #: build/C/man2/dup.2:120
2716 msgid "If I<oldfd> equals I<newfd>, then B<dup3>()  fails with the error B<EINVAL>."
2717 msgstr ""
2718
2719 #. type: Plain text
2720 #: build/C/man2/dup.2:126
2721 msgid ""
2722 "On success, these system calls return the new descriptor.  On error, -1 is "
2723 "returned, and I<errno> is set appropriately."
2724 msgstr ""
2725
2726 #. type: Plain text
2727 #: build/C/man2/dup.2:133
2728 msgid ""
2729 "I<oldfd> isn't an open file descriptor, or I<newfd> is out of the allowed "
2730 "range for file descriptors."
2731 msgstr ""
2732
2733 #. type: TP
2734 #: build/C/man2/dup.2:133 build/C/man2/swapon.2:114
2735 #, no-wrap
2736 msgid "B<EBUSY>"
2737 msgstr ""
2738
2739 #. type: Plain text
2740 #: build/C/man2/dup.2:143
2741 msgid ""
2742 "(Linux only) This may be returned by B<dup2>()  or B<dup3>()  during a race "
2743 "condition with B<open>(2)  and B<dup>()."
2744 msgstr ""
2745
2746 #. type: Plain text
2747 #: build/C/man2/dup.2:151
2748 msgid ""
2749 "The B<dup2>()  or B<dup3>()  call was interrupted by a signal; see "
2750 "B<signal>(7)."
2751 msgstr ""
2752
2753 #.  FIXME . To confirm with Al Viro that this was intended, and its rationale
2754 #. type: Plain text
2755 #: build/C/man2/dup.2:161
2756 msgid ""
2757 "(B<dup3>())  I<flags> contain an invalid value.  Or, I<oldfd> was equal to "
2758 "I<newfd>."
2759 msgstr ""
2760
2761 #. type: TP
2762 #: build/C/man2/dup.2:161 build/C/man2/execve.2:393 build/C/man2/fcntl.2:1122 build/C/man3/getlogin.3:103
2763 #, no-wrap
2764 msgid "B<EMFILE>"
2765 msgstr ""
2766
2767 #. type: Plain text
2768 #: build/C/man2/dup.2:165
2769 msgid ""
2770 "The process already has the maximum number of file descriptors open and "
2771 "tried to open a new one."
2772 msgstr ""
2773
2774 #. type: Plain text
2775 #: build/C/man2/dup.2:170
2776 msgid ""
2777 "B<dup3>()  was added to Linux in version 2.6.27; glibc support is available "
2778 "starting with version 2.9."
2779 msgstr ""
2780
2781 #. type: Plain text
2782 #: build/C/man2/dup.2:174
2783 msgid "B<dup>(), B<dup2>(): SVr4, 4.3BSD, POSIX.1-2001."
2784 msgstr ""
2785
2786 #.  SVr4 documents additional
2787 #.  EINTR and ENOLINK error conditions.  POSIX.1 adds EINTR.
2788 #.  The EBUSY return is Linux-specific.
2789 #. type: Plain text
2790 #: build/C/man2/dup.2:180
2791 msgid "B<dup3>()  is Linux-specific."
2792 msgstr ""
2793
2794 #. type: Plain text
2795 #: build/C/man2/dup.2:194
2796 msgid ""
2797 "The error returned by B<dup2>()  is different from that returned by "
2798 "B<fcntl(>..., B<F_DUPFD>, ...B<)> when I<newfd> is out of range.  On some "
2799 "systems B<dup2>()  also sometimes returns B<EINVAL> like B<F_DUPFD>."
2800 msgstr ""
2801
2802 #. type: Plain text
2803 #: build/C/man2/dup.2:207
2804 msgid ""
2805 "If I<newfd> was open, any errors that would have been reported at "
2806 "B<close>(2)  time are lost.  A careful programmer will not use B<dup2>()  or "
2807 "B<dup3>()  without closing I<newfd> first."
2808 msgstr ""
2809
2810 #. type: Plain text
2811 #: build/C/man2/dup.2:211
2812 msgid "B<close>(2), B<fcntl>(2), B<open>(2)"
2813 msgstr ""
2814
2815 #. type: TH
2816 #: build/C/man3/encrypt.3:24
2817 #, no-wrap
2818 msgid "ENCRYPT"
2819 msgstr ""
2820
2821 #. type: TH
2822 #: build/C/man3/encrypt.3:24
2823 #, no-wrap
2824 msgid "2003-04-04"
2825 msgstr ""
2826
2827 #. type: Plain text
2828 #: build/C/man3/encrypt.3:27
2829 msgid "encrypt, setkey, encrypt_r, setkey_r - encrypt 64-bit messages"
2830 msgstr ""
2831
2832 #. type: Plain text
2833 #: build/C/man3/encrypt.3:29 build/C/man3/encrypt.3:35
2834 msgid "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */"
2835 msgstr ""
2836
2837 #. type: Plain text
2838 #: build/C/man3/encrypt.3:33
2839 msgid "B<void encrypt(char >I<block>B<[64], int >I<edflag>B<);>"
2840 msgstr ""
2841
2842 #. type: Plain text
2843 #: build/C/man3/encrypt.3:37
2844 msgid "B<#include E<lt>stdlib.hE<gt>>"
2845 msgstr ""
2846
2847 #. type: Plain text
2848 #: build/C/man3/encrypt.3:39
2849 msgid "B<void setkey(const char *>I<key>B<);>"
2850 msgstr ""
2851
2852 #. type: Plain text
2853 #: build/C/man3/encrypt.3:41 build/C/man3/getumask.3:31
2854 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */"
2855 msgstr ""
2856
2857 #. type: Plain text
2858 #: build/C/man3/encrypt.3:43
2859 msgid "B<#include E<lt>crypt.hE<gt>>"
2860 msgstr ""
2861
2862 #. type: Plain text
2863 #: build/C/man3/encrypt.3:45
2864 msgid "B<void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>"
2865 msgstr ""
2866
2867 #. type: Plain text
2868 #: build/C/man3/encrypt.3:48
2869 msgid ""
2870 "B<void encrypt_r(char *>I<block>B<, int >I<edflag>B<, struct crypt_data "
2871 "*>I<data>B<);>"
2872 msgstr ""
2873
2874 #. type: Plain text
2875 #: build/C/man3/encrypt.3:50
2876 msgid "Each of these requires linking with I<-lcrypt>."
2877 msgstr ""
2878
2879 #. type: Plain text
2880 #: build/C/man3/encrypt.3:62
2881 msgid ""
2882 "These functions encrypt and decrypt 64-bit messages.  The B<setkey>()  "
2883 "function sets the key used by B<encrypt>().  The I<key> argument used here "
2884 "is an array of 64 bytes, each of which has numerical value 1 or 0.  The "
2885 "bytes key[n] where n=8*i-1 are ignored, so that the effective key length is "
2886 "56 bits."
2887 msgstr ""
2888
2889 #. type: Plain text
2890 #: build/C/man3/encrypt.3:74
2891 msgid ""
2892 "The B<encrypt>()  function modifies the passed buffer, encoding if I<edflag> "
2893 "is 0, and decoding if 1 is being passed.  Like the I<key> argument, also "
2894 "I<block> is a bit vector representation of the actual value that is "
2895 "encoded.  The result is returned in that same vector."
2896 msgstr ""
2897
2898 #. type: Plain text
2899 #: build/C/man3/encrypt.3:84
2900 msgid ""
2901 "These two functions are not reentrant, that is, the key data is kept in "
2902 "static storage.  The functions B<setkey_r>()  and B<encrypt_r>()  are the "
2903 "reentrant versions.  They use the following structure to hold the key data:"
2904 msgstr ""
2905
2906 #. type: Plain text
2907 #: build/C/man3/encrypt.3:99
2908 #, no-wrap
2909 msgid ""
2910 "struct crypt_data {\n"
2911 "    char     keysched[16 * 8];\n"
2912 "    char     sb0[32768];\n"
2913 "    char     sb1[32768];\n"
2914 "    char     sb2[32768];\n"
2915 "    char     sb3[32768];\n"
2916 "    char     crypt_3_buf[14];\n"
2917 "    char     current_salt[2];\n"
2918 "    long int current_saltbits;\n"
2919 "    int      direction;\n"
2920 "    int      initialized;\n"
2921 "};\n"
2922 msgstr ""
2923
2924 #. type: Plain text
2925 #: build/C/man3/encrypt.3:107
2926 msgid "Before calling B<setkey_r>()  set I<data-E<gt>initialized> to zero."
2927 msgstr ""
2928
2929 #. type: Plain text
2930 #: build/C/man3/encrypt.3:109
2931 msgid "These functions do not return any value."
2932 msgstr ""
2933
2934 #. type: Plain text
2935 #: build/C/man3/encrypt.3:114
2936 msgid ""
2937 "Set I<errno> to zero before calling the above functions.  On success, it is "
2938 "unchanged."
2939 msgstr ""
2940
2941 #. type: Plain text
2942 #: build/C/man3/encrypt.3:118
2943 msgid ""
2944 "The function is not provided.  (For example because of former USA export "
2945 "restrictions.)"
2946 msgstr ""
2947
2948 #. type: Plain text
2949 #: build/C/man3/encrypt.3:129
2950 msgid ""
2951 "The functions B<encrypt>()  and B<setkey>()  conform to SVr4, SUSv2, and "
2952 "POSIX.1-2001.  The functions B<encrypt_r>()  and B<setkey_r>()  are GNU "
2953 "extensions."
2954 msgstr ""
2955
2956 #. type: Plain text
2957 #: build/C/man3/encrypt.3:131
2958 msgid "In glibc 2.2 these functions use the DES algorithm."
2959 msgstr ""
2960
2961 #. type: Plain text
2962 #: build/C/man3/encrypt.3:138
2963 msgid ""
2964 "You need to link with libcrypt to compile this example with glibc.  To do "
2965 "useful work the I<key[]> and I<txt[]> arrays must be filled with a useful "
2966 "bit pattern."
2967 msgstr ""
2968
2969 #. type: Plain text
2970 #: build/C/man3/encrypt.3:143
2971 #, no-wrap
2972 msgid ""
2973 "#define _XOPEN_SOURCE\n"
2974 "#include E<lt>unistd.hE<gt>\n"
2975 "#include E<lt>stdlib.hE<gt>\n"
2976 msgstr ""
2977
2978 #. type: Plain text
2979 #: build/C/man3/encrypt.3:149
2980 #, no-wrap
2981 msgid ""
2982 "int\n"
2983 "main(void)\n"
2984 "{\n"
2985 "    char key[64];      /* bit pattern for key */\n"
2986 "    char txt[64];      /* bit pattern for messages */\n"
2987 msgstr ""
2988
2989 #. type: Plain text
2990 #: build/C/man3/encrypt.3:154
2991 #, no-wrap
2992 msgid ""
2993 "    setkey(key);\n"
2994 "    encrypt(txt, 0);   /* encode */\n"
2995 "    encrypt(txt, 1);   /* decode */\n"
2996 "}\n"
2997 msgstr ""
2998
2999 #.  .BR fcrypt (3)
3000 #. type: Plain text
3001 #: build/C/man3/encrypt.3:160
3002 msgid "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3),"
3003 msgstr ""
3004
3005 #. type: TH
3006 #: build/C/man7/environ.7:33
3007 #, no-wrap
3008 msgid "ENVIRON"
3009 msgstr ""
3010
3011 #. type: TH
3012 #: build/C/man7/environ.7:33 build/C/man2/flock.2:34
3013 #, no-wrap
3014 msgid "2009-07-25"
3015 msgstr ""
3016
3017 #. type: Plain text
3018 #: build/C/man7/environ.7:36
3019 msgid "environ - user environment"
3020 msgstr ""
3021
3022 #. type: Plain text
3023 #: build/C/man7/environ.7:39
3024 #, no-wrap
3025 msgid "B<extern char **>I<environ>B<;>\n"
3026 msgstr ""
3027
3028 #. type: Plain text
3029 #: build/C/man7/environ.7:56
3030 msgid ""
3031 "The variable I<environ> points to an array of pointers to strings called the "
3032 "\"environment\".  The last pointer in this array has the value NULL.  (This "
3033 "variable must be declared in the user program, but is declared in the header "
3034 "file I<E<lt>unistd.hE<gt>> in case the header files came from libc4 or "
3035 "libc5, and in case they came from glibc and B<_GNU_SOURCE> was defined.)  "
3036 "This array of strings is made available to the process by the B<exec>(3)  "
3037 "call that started the process."
3038 msgstr ""
3039
3040 #. type: Plain text
3041 #: build/C/man7/environ.7:61
3042 msgid ""
3043 "By convention the strings in I<environ> have the form "
3044 "\"I<name>B<=>I<value>\".  Common examples are:"
3045 msgstr ""
3046
3047 #. type: TP
3048 #: build/C/man7/environ.7:61
3049 #, no-wrap
3050 msgid "B<USER>"
3051 msgstr ""
3052
3053 #. type: Plain text
3054 #: build/C/man7/environ.7:64
3055 msgid "The name of the logged-in user (used by some BSD-derived programs)."
3056 msgstr ""
3057
3058 #. type: TP
3059 #: build/C/man7/environ.7:64
3060 #, no-wrap
3061 msgid "B<LOGNAME>"
3062 msgstr ""
3063
3064 #. type: Plain text
3065 #: build/C/man7/environ.7:67
3066 msgid "The name of the logged-in user (used by some System-V derived programs)."
3067 msgstr ""
3068
3069 #. type: TP
3070 #: build/C/man7/environ.7:67
3071 #, no-wrap
3072 msgid "B<HOME>"
3073 msgstr ""
3074
3075 #. type: Plain text
3076 #: build/C/man7/environ.7:73
3077 msgid ""
3078 "A user's login directory, set by B<login>(1)  from the password file "
3079 "B<passwd>(5)."
3080 msgstr ""
3081
3082 #. type: TP
3083 #: build/C/man7/environ.7:73
3084 #, no-wrap
3085 msgid "B<LANG>"
3086 msgstr ""
3087
3088 #. type: Plain text
3089 #: build/C/man7/environ.7:80
3090 msgid ""
3091 "The name of a locale to use for locale categories when not overridden by "
3092 "B<LC_ALL> or more specific environment variables like B<LC_COLLATE>, "
3093 "B<LC_CTYPE>, B<LC_MESSAGES>, B<LC_MONETARY>, B<LC_NUMERIC>, B<LC_TIME>, cf.  "
3094 "B<locale>(5)."
3095 msgstr ""
3096
3097 #. type: TP
3098 #: build/C/man7/environ.7:80
3099 #, no-wrap
3100 msgid "B<PATH>"
3101 msgstr ""
3102
3103 #. type: Plain text
3104 #: build/C/man7/environ.7:92
3105 msgid ""
3106 "The sequence of directory prefixes that B<sh>(1)  and many other programs "
3107 "apply in searching for a file known by an incomplete pathname.  The prefixes "
3108 "are separated by \\(aqB<:>\\(aq.  (Similarly one has B<CDPATH> used by some "
3109 "shells to find the target of a change directory command, B<MANPATH> used by "
3110 "B<man>(1)  to find manual pages, etc.)"
3111 msgstr ""
3112
3113 #. type: TP
3114 #: build/C/man7/environ.7:92
3115 #, no-wrap
3116 msgid "B<PWD>"
3117 msgstr ""
3118
3119 #. type: Plain text
3120 #: build/C/man7/environ.7:96
3121 msgid "The current working directory.  Set by some shells."
3122 msgstr ""
3123
3124 #. type: TP
3125 #: build/C/man7/environ.7:96
3126 #, no-wrap
3127 msgid "B<SHELL>"
3128 msgstr ""
3129
3130 #. type: Plain text
3131 #: build/C/man7/environ.7:99
3132 msgid "The pathname of the user's login shell."
3133 msgstr ""
3134
3135 #. type: TP
3136 #: build/C/man7/environ.7:99
3137 #, no-wrap
3138 msgid "B<TERM>"
3139 msgstr ""
3140
3141 #. type: Plain text
3142 #: build/C/man7/environ.7:102
3143 msgid "The terminal type for which output is to be prepared."
3144 msgstr ""
3145
3146 #. type: TP
3147 #: build/C/man7/environ.7:102
3148 #, no-wrap
3149 msgid "B<PAGER>"
3150 msgstr ""
3151
3152 #. type: Plain text
3153 #: build/C/man7/environ.7:105
3154 msgid "The user's preferred utility to display text files."
3155 msgstr ""
3156
3157 #. type: TP
3158 #: build/C/man7/environ.7:105
3159 #, no-wrap
3160 msgid "B<EDITOR>/B<VISUAL>"
3161 msgstr ""
3162
3163 #.  .TP
3164 #.  .B BROWSER
3165 #.  The user's preferred utility to browse URLs. Sequence of colon-separated
3166 #.  browser commands. See http://www.catb.org/~esr/BROWSER/ .
3167 #. type: Plain text
3168 #: build/C/man7/environ.7:112
3169 msgid "The user's preferred utility to edit text files."
3170 msgstr ""
3171
3172 #. type: Plain text
3173 #: build/C/man7/environ.7:127
3174 msgid ""
3175 "Further names may be placed in the environment by the I<export> command and "
3176 "\"name=value\" in B<sh>(1), or by the I<setenv> command if you use "
3177 "B<csh>(1).  Arguments may also be placed in the environment at the point of "
3178 "an B<exec>(3).  A C program can manipulate its environment using the "
3179 "functions B<getenv>(3), B<putenv>(3), B<setenv>(3), and B<unsetenv>(3)."
3180 msgstr ""
3181
3182 #. type: Plain text
3183 #: build/C/man7/environ.7:131
3184 msgid ""
3185 "Note that the behavior of many programs and library routines is influenced "
3186 "by the presence or value of certain environment variables.  A random "
3187 "collection:"
3188 msgstr ""
3189
3190 #. type: Plain text
3191 #: build/C/man7/environ.7:137
3192 msgid ""
3193 "The variables B<LANG>, B<LANGUAGE>, B<NLSPATH>, B<LOCPATH>, B<LC_ALL>, "
3194 "B<LC_MESSAGES>, etc. influence locale handling, cf.  B<locale>(5)."
3195 msgstr ""
3196
3197 #. type: Plain text
3198 #: build/C/man7/environ.7:144
3199 msgid ""
3200 "B<TMPDIR> influences the path prefix of names created by B<tmpnam>(3)  and "
3201 "other routines, the temporary directory used by B<sort>(1)  and other "
3202 "programs, etc."
3203 msgstr ""
3204
3205 #. type: Plain text
3206 #: build/C/man7/environ.7:148
3207 msgid ""
3208 "B<LD_LIBRARY_PATH>, B<LD_PRELOAD> and other LD_* variables influence the "
3209 "behavior of the dynamic loader/linker."
3210 msgstr ""
3211
3212 #. type: Plain text
3213 #: build/C/man7/environ.7:152
3214 msgid ""
3215 "B<POSIXLY_CORRECT> makes certain programs and library routines follow the "
3216 "prescriptions of POSIX."
3217 msgstr ""
3218
3219 #. type: Plain text
3220 #: build/C/man7/environ.7:158
3221 msgid "The behavior of B<malloc>(3)  is influenced by B<MALLOC_*> variables."
3222 msgstr ""
3223
3224 #. type: Plain text
3225 #: build/C/man7/environ.7:164
3226 msgid ""
3227 "The variable B<HOSTALIASES> gives the name of a file containing aliases to "
3228 "be used with B<gethostbyname>(3)."
3229 msgstr ""
3230
3231 #. type: Plain text
3232 #: build/C/man7/environ.7:175
3233 msgid ""
3234 "B<TZ> and B<TZDIR> give timezone information used by B<tzset>(3)  and "
3235 "through that by functions like B<ctime>(3), B<localtime>(3), B<mktime>(3), "
3236 "B<strftime>(3).  See also B<tzselect>(8)."
3237 msgstr ""
3238
3239 #. type: Plain text
3240 #: build/C/man7/environ.7:179
3241 msgid ""
3242 "B<TERMCAP> gives information on how to address a given terminal (or gives "
3243 "the name of a file containing such information)."
3244 msgstr ""
3245
3246 #. type: Plain text
3247 #: build/C/man7/environ.7:182
3248 msgid ""
3249 "B<COLUMNS> and B<LINES> tell applications about the window size, possibly "
3250 "overriding the actual size."
3251 msgstr ""
3252
3253 #. type: Plain text
3254 #: build/C/man7/environ.7:187
3255 msgid ""
3256 "B<PRINTER> or B<LPDEST> may specify the desired printer to use.  See "
3257 "B<lpr>(1)."
3258 msgstr ""
3259
3260 #. type: Plain text
3261 #: build/C/man7/environ.7:189
3262 msgid "Etc."
3263 msgstr ""
3264
3265 #. type: Plain text
3266 #: build/C/man7/environ.7:194
3267 msgid ""
3268 "Clearly there is a security risk here.  Many a system command has been "
3269 "tricked into mischief by a user who specified unusual values for B<IFS> or "
3270 "B<LD_LIBRARY_PATH>."
3271 msgstr ""
3272
3273 #. type: Plain text
3274 #: build/C/man7/environ.7:227
3275 msgid ""
3276 "There is also the risk of name space pollution.  Programs like I<make> and "
3277 "I<autoconf> allow overriding of default utility names from the environment "
3278 "with similarly named variables in all caps.  Thus one uses B<CC> to select "
3279 "the desired C compiler (and similarly B<MAKE>, B<AR>, B<AS>, B<FC>, B<LD>, "
3280 "B<LEX>, B<RM>, B<YACC>, etc.).  However, in some traditional uses such an "
3281 "environment variable gives options for the program instead of a pathname.  "
3282 "Thus, one has B<MORE>, B<LESS>, and B<GZIP>.  Such usage is considered "
3283 "mistaken, and to be avoided in new programs.  The authors of I<gzip> should "
3284 "consider renaming their option to B<GZIP_OPT>."
3285 msgstr ""
3286
3287 #. type: Plain text
3288 #: build/C/man7/environ.7:241
3289 msgid ""
3290 "B<bash>(1), B<csh>(1), B<login>(1), B<sh>(1), B<tcsh>(1), B<execve>(2), "
3291 "B<clearenv>(3), B<exec>(3), B<getenv>(3), B<putenv>(3), B<setenv>(3), "
3292 "B<unsetenv>(3), B<locale>(5)"
3293 msgstr ""
3294
3295 #. type: TH
3296 #: build/C/man3/euidaccess.3:26
3297 #, no-wrap
3298 msgid "EUIDACCESS"
3299 msgstr ""
3300
3301 #. type: TH
3302 #: build/C/man3/euidaccess.3:26 build/C/man3/getopt.3:39
3303 #, no-wrap
3304 msgid "2010-11-01"
3305 msgstr ""
3306
3307 #. type: Plain text
3308 #: build/C/man3/euidaccess.3:29
3309 msgid "euidaccess, eaccess - check effective user's permissions for a file"
3310 msgstr ""
3311
3312 #. type: Plain text
3313 #: build/C/man3/euidaccess.3:33
3314 #, no-wrap
3315 msgid ""
3316 "B<#define _GNU_SOURCE>             /* See feature_test_macros(7) */\n"
3317 "B<#include E<lt>unistd.hE<gt>>\n"
3318 msgstr ""
3319
3320 #. type: Plain text
3321 #: build/C/man3/euidaccess.3:36
3322 #, no-wrap
3323 msgid ""
3324 "B<int euidaccess(const char *>I<pathname>B<, int >I<mode>B<);>\n"
3325 "B<int eaccess(const char *>I<pathname>B<, int >I<mode>B<);>\n"
3326 msgstr ""
3327
3328 #. type: Plain text
3329 #: build/C/man3/euidaccess.3:48
3330 msgid ""
3331 "Like B<access>(2), B<euidaccess>()  checks permissions and existence of the "
3332 "file identified by its argument I<pathname>.  However, whereas B<access>(2), "
3333 "performs checks using the real user and group identifiers of the process, "
3334 "B<euidaccess>()  uses the effective identifiers."
3335 msgstr ""
3336
3337 #. type: Plain text
3338 #: build/C/man3/euidaccess.3:54
3339 msgid ""
3340 "I<mode> is a mask consisting of one or more of B<R_OK>, B<W_OK>, B<X_OK> and "
3341 "B<F_OK>, with the same meanings as for B<access>(2)."
3342 msgstr ""
3343
3344 #. type: Plain text
3345 #: build/C/man3/euidaccess.3:59
3346 msgid ""
3347 "B<eaccess>()  is a synonym for B<euidaccess>(), provided for compatibility "
3348 "with some other systems."
3349 msgstr ""
3350
3351 #. type: Plain text
3352 #: build/C/man3/euidaccess.3:70
3353 msgid "As for B<access>(2)."
3354 msgstr ""
3355
3356 #. type: Plain text
3357 #: build/C/man3/euidaccess.3:74
3358 msgid "The B<eaccess>()  function was added to glibc in version 2.4."
3359 msgstr ""
3360
3361 #.  e.g., FreeBSD 6.1.
3362 #. type: Plain text
3363 #: build/C/man3/euidaccess.3:80
3364 msgid ""
3365 "These functions are nonstandard.  Some other systems have an B<eaccess>()  "
3366 "function."
3367 msgstr ""
3368
3369 #. type: Plain text
3370 #: build/C/man3/euidaccess.3:87
3371 msgid ""
3372 "I<Warning>: Using this function to check a process's permissions on a file "
3373 "before performing some operation based on that information leads to race "
3374 "conditions: the file permissions may change between the two steps.  "
3375 "Generally, it is safer just to attempt the desired operation and handle any "
3376 "permission error that occurs."
3377 msgstr ""
3378
3379 #. type: Plain text
3380 #: build/C/man3/euidaccess.3:95
3381 msgid ""
3382 "This function always dereferences symbolic links.  If you need to check the "
3383 "permissions on a symbolic link, use B<faccessat(2)> with the flags "
3384 "B<AT_EACCESS> and B<AT_SYMLINK_NOFOLLOW>."
3385 msgstr ""
3386
3387 #. type: Plain text
3388 #: build/C/man3/euidaccess.3:106
3389 msgid ""
3390 "B<access>(2), B<chmod>(2), B<chown>(2), B<faccessat>(2), B<open>(2), "
3391 "B<setgid>(2), B<setuid>(2), B<stat>(2), B<credentials>(7), "
3392 "B<path_resolution>(7)"
3393 msgstr ""
3394
3395 #. type: TH
3396 #: build/C/man3/exec.3:39
3397 #, no-wrap
3398 msgid "EXEC"
3399 msgstr ""
3400
3401 #. type: TH
3402 #: build/C/man3/exec.3:39
3403 #, no-wrap
3404 msgid "2010-09-25"
3405 msgstr ""
3406
3407 #. type: Plain text
3408 #: build/C/man3/exec.3:42
3409 msgid "execl, execlp, execle, execv, execvp, execvpe - execute a file"
3410 msgstr ""
3411
3412 #. type: Plain text
3413 #: build/C/man3/exec.3:46
3414 msgid "B<extern char **environ;>"
3415 msgstr ""
3416
3417 #. type: Plain text
3418 #: build/C/man3/exec.3:48
3419 msgid "B<int execl(const char *>I<path>B<, const char *>I<arg>B<, ...);>"
3420 msgstr ""
3421
3422 #. type: Plain text
3423 #: build/C/man3/exec.3:50
3424 msgid "B<int execlp(const char *>I<file>B<, const char *>I<arg>B<, ...);>"
3425 msgstr ""
3426
3427 #. type: Plain text
3428 #: build/C/man3/exec.3:52
3429 msgid "B<int execle(const char *>I<path>B<, const char *>I<arg>B<,>"
3430 msgstr ""
3431
3432 #. type: Plain text
3433 #: build/C/man3/exec.3:54
3434 msgid "B< ..., char * const >I<envp>B<[]);>"
3435 msgstr ""
3436
3437 #. type: Plain text
3438 #: build/C/man3/exec.3:56
3439 msgid "B<int execv(const char *>I<path>B<, char *const >I<argv>B<[]);>"
3440 msgstr ""
3441
3442 #. type: Plain text
3443 #: build/C/man3/exec.3:58
3444 msgid "B<int execvp(const char *>I<file>B<, char *const >I<argv>B<[]);>"
3445 msgstr ""
3446
3447 #. type: Plain text
3448 #: build/C/man3/exec.3:60
3449 msgid "B<int execvpe(const char *>I<file>B<, char *const >I<argv>B<[],>"
3450 msgstr ""
3451
3452 #. type: Plain text
3453 #: build/C/man3/exec.3:62 build/C/man2/execve.2:46
3454 msgid "B< char *const >I<envp>B<[]);>"
3455 msgstr ""
3456
3457 #. type: Plain text
3458 #: build/C/man3/exec.3:70
3459 msgid "B<execvpe>(): _GNU_SOURCE"
3460 msgstr ""
3461
3462 #. type: Plain text
3463 #: build/C/man3/exec.3:80
3464 msgid ""
3465 "The B<exec>()  family of functions replaces the current process image with a "
3466 "new process image.  The functions described in this manual page are "
3467 "front-ends for B<execve>(2).  (See the manual page for B<execve>(2)  for "
3468 "further details about the replacement of the current process image.)"
3469 msgstr ""
3470
3471 #. type: Plain text
3472 #: build/C/man3/exec.3:83
3473 msgid ""
3474 "The initial argument for these functions is the name of a file that is to be "
3475 "executed."
3476 msgstr ""
3477
3478 #. type: Plain text
3479 #: build/C/man3/exec.3:105
3480 msgid ""
3481 "The I<const char *arg> and subsequent ellipses in the B<execl>(), "
3482 "B<execlp>(), and B<execle>()  functions can be thought of as I<arg0>, "
3483 "I<arg1>, \\&..., I<argn>.  Together they describe a list of one or more "
3484 "pointers to null-terminated strings that represent the argument list "
3485 "available to the executed program.  The first argument, by convention, "
3486 "should point to the filename associated with the file being executed.  The "
3487 "list of arguments I<must> be terminated by a NULL pointer, and, since these "
3488 "are variadic functions, this pointer must be cast I<(char *) NULL>."
3489 msgstr ""
3490
3491 #. type: Plain text
3492 #: build/C/man3/exec.3:118
3493 msgid ""
3494 "The B<execv>(), B<execvp>(), and B<execvpe>()  functions provide an array of "
3495 "pointers to null-terminated strings that represent the argument list "
3496 "available to the new program.  The first argument, by convention, should "
3497 "point to the filename associated with the file being executed.  The array of "
3498 "pointers I<must> be terminated by a NULL pointer."
3499 msgstr ""
3500
3501 #. type: Plain text
3502 #: build/C/man3/exec.3:135
3503 msgid ""
3504 "The B<execle>()  and B<execvpe>()  functions allow the caller to specify the "
3505 "environment of the executed program via the argument I<envp>.  The I<envp> "
3506 "argument is an array of pointers to null-terminated strings and I<must> be "
3507 "terminated by a NULL pointer.  The other functions take the environment for "
3508 "the new process image from the external variable I<environ> in the calling "
3509 "process."
3510 msgstr ""
3511
3512 #. type: SS
3513 #: build/C/man3/exec.3:135
3514 #, no-wrap
3515 msgid "Special semantics for execlp() and execvp()"
3516 msgstr ""
3517
3518 #. type: Plain text
3519 #: build/C/man3/exec.3:155
3520 msgid ""
3521 "The B<execlp>(), B<execvp>(), and B<execvpe>()  functions duplicate the "
3522 "actions of the shell in searching for an executable file if the specified "
3523 "filename does not contain a slash (/) character.  The file is sought in the "
3524 "colon-separated list of directory pathnames specified in the B<PATH> "
3525 "environment variable.  If this variable isn't defined, the path list "
3526 "defaults to the current directory followed by the list of directories "
3527 "returned by I<confstr(_CS_PATH)>.  (This B<confstr>(3)  call typically "
3528 "returns the value \"/bin:/usr/bin\".)"
3529 msgstr ""
3530
3531 #. type: Plain text
3532 #: build/C/man3/exec.3:159
3533 msgid ""
3534 "If the specified filename includes a slash character, then B<PATH> is "
3535 "ignored, and the file at the specified pathname is executed."
3536 msgstr ""
3537
3538 #. type: Plain text
3539 #: build/C/man3/exec.3:161
3540 msgid "In addition, certain errors are treated specially."
3541 msgstr ""
3542
3543 #. type: Plain text
3544 #: build/C/man3/exec.3:172
3545 msgid ""
3546 "If permission is denied for a file (the attempted B<execve>(2)  failed with "
3547 "the error B<EACCES>), these functions will continue searching the rest of "
3548 "the search path.  If no other file is found, however, they will return with "
3549 "I<errno> set to B<EACCES>."
3550 msgstr ""
3551
3552 #. type: Plain text
3553 #: build/C/man3/exec.3:181
3554 msgid ""
3555 "If the header of a file isn't recognized (the attempted B<execve>(2)  failed "
3556 "with the error B<ENOEXEC>), these functions will execute the shell "
3557 "(I</bin/sh>)  with the path of the file as its first argument.  (If this "
3558 "attempt fails, no further searching is done.)"
3559 msgstr ""
3560
3561 #. type: Plain text
3562 #: build/C/man3/exec.3:188
3563 msgid ""
3564 "The B<exec>()  functions only return if an error has have occurred.  The "
3565 "return value is -1, and I<errno> is set to indicate the error."
3566 msgstr ""
3567
3568 #. type: Plain text
3569 #: build/C/man3/exec.3:193
3570 msgid ""
3571 "All of these functions may fail and set I<errno> for any of the errors "
3572 "specified for B<execve>(2)."
3573 msgstr ""
3574
3575 #. type: Plain text
3576 #: build/C/man3/exec.3:197
3577 msgid "The B<execvpe>()  function first appeared in glibc 2.11."
3578 msgstr ""
3579
3580 #. type: Plain text
3581 #: build/C/man3/exec.3:199
3582 msgid "POSIX.1-2001, POSIX.1-2008."
3583 msgstr ""
3584
3585 #. type: Plain text
3586 #: build/C/man3/exec.3:203
3587 msgid "The B<execvpe>()  function is a GNU extension."
3588 msgstr ""
3589
3590 #. type: Plain text
3591 #: build/C/man3/exec.3:213
3592 msgid ""
3593 "On some other systems, the default path (used when the environment does not "
3594 "contain the variable B<PATH>) has the current working directory listed after "
3595 "I</bin> and I</usr/bin>, as an anti-Trojan-horse measure.  Linux uses here "
3596 "the traditional \"current directory first\" default path."
3597 msgstr ""
3598
3599 #. type: Plain text
3600 #: build/C/man3/exec.3:227
3601 msgid ""
3602 "The behavior of B<execlp>()  and B<execvp>()  when errors occur while "
3603 "attempting to execute the file is historic practice, but has not "
3604 "traditionally been documented and is not specified by the POSIX standard.  "
3605 "BSD (and possibly other systems) do an automatic sleep and retry if "
3606 "B<ETXTBSY> is encountered.  Linux treats it as a hard error and returns "
3607 "immediately."
3608 msgstr ""
3609
3610 #. type: Plain text
3611 #: build/C/man3/exec.3:239
3612 msgid ""
3613 "Traditionally, the functions B<execlp>()  and B<execvp>()  ignored all "
3614 "errors except for the ones described above and B<ENOMEM> and B<E2BIG>, upon "
3615 "which they returned.  They now return if any error other than the ones "
3616 "described above occurs."
3617 msgstr ""
3618
3619 #. type: Plain text
3620 #: build/C/man3/exec.3:246
3621 msgid ""
3622 "B<sh>(1), B<execve>(2), B<fork>(2), B<ptrace>(2), B<fexecve>(3), "
3623 "B<environ>(7)"
3624 msgstr ""
3625
3626 #. type: TH
3627 #: build/C/man2/execve.2:37
3628 #, no-wrap
3629 msgid "EXECVE"
3630 msgstr ""
3631
3632 #. type: TH
3633 #: build/C/man2/execve.2:37
3634 #, no-wrap
3635 msgid "2011-09-14"
3636 msgstr ""
3637
3638 #. type: Plain text
3639 #: build/C/man2/execve.2:40
3640 msgid "execve - execute program"
3641 msgstr ""
3642
3643 #. type: Plain text
3644 #: build/C/man2/execve.2:44
3645 msgid "B<int execve(const char *>I<filename>B<, char *const >I<argv>B<[], >"
3646 msgstr ""
3647
3648 #. type: Plain text
3649 #: build/C/man2/execve.2:51
3650 msgid ""
3651 "B<execve>()  executes the program pointed to by I<filename>.  I<filename> "
3652 "must be either a binary executable, or a script starting with a line of the "
3653 "form:"
3654 msgstr ""
3655
3656 #. type: Plain text
3657 #: build/C/man2/execve.2:55 build/C/man2/execve.2:252
3658 #, no-wrap
3659 msgid "B<#!> I<interpreter >[optional-arg]\n"
3660 msgstr ""
3661
3662 #. type: Plain text
3663 #: build/C/man2/execve.2:59
3664 msgid "For details of the latter case, see \"Interpreter scripts\" below."
3665 msgstr ""
3666
3667 #. type: Plain text
3668 #: build/C/man2/execve.2:68
3669 msgid ""
3670 "I<argv> is an array of argument strings passed to the new program.  By "
3671 "convention, the first of these strings should contain the filename "
3672 "associated with the file being executed.  I<envp> is an array of strings, "
3673 "conventionally of the form B<key=value>, which are passed as environment to "
3674 "the new program.  Both I<argv> and I<envp> must be terminated by a NULL "
3675 "pointer.  The argument vector and environment can be accessed by the called "
3676 "program's main function, when it is defined as:"
3677 msgstr ""
3678
3679 #. type: Plain text
3680 #: build/C/man2/execve.2:72
3681 #, no-wrap
3682 msgid "int main(int argc, char *argv[], char *envp[])\n"
3683 msgstr ""
3684
3685 #. type: Plain text
3686 #: build/C/man2/execve.2:79
3687 msgid ""
3688 "B<execve>()  does not return on success, and the text, data, bss, and stack "
3689 "of the calling process are overwritten by that of the program loaded."
3690 msgstr ""
3691
3692 #. type: Plain text
3693 #: build/C/man2/execve.2:83
3694 msgid ""
3695 "If the current program is being ptraced, a B<SIGTRAP> is sent to it after a "
3696 "successful B<execve>()."
3697 msgstr ""
3698
3699 #. type: Plain text
3700 #: build/C/man2/execve.2:98
3701 msgid ""
3702 "If the set-user-ID bit is set on the program file pointed to by I<filename>, "
3703 "and the underlying file system is not mounted I<nosuid> (the B<MS_NOSUID> "
3704 "flag for B<mount>(2)), and the calling process is not being ptraced, then "
3705 "the effective user ID of the calling process is changed to that of the owner "
3706 "of the program file.  Similarly, when the set-group-ID bit of the program "
3707 "file is set the effective group ID of the calling process is set to the "
3708 "group of the program file."
3709 msgstr ""
3710
3711 #. type: Plain text
3712 #: build/C/man2/execve.2:103
3713 msgid ""
3714 "The effective user ID of the process is copied to the saved set-user-ID; "
3715 "similarly, the effective group ID is copied to the saved set-group-ID.  This "
3716 "copying takes place after any effective ID changes that occur because of the "
3717 "set-user-ID and set-group-ID permission bits."
3718 msgstr ""
3719
3720 #. type: Plain text
3721 #: build/C/man2/execve.2:111
3722 msgid ""
3723 "If the executable is an a.out dynamically linked binary executable "
3724 "containing shared-library stubs, the Linux dynamic linker B<ld.so>(8)  is "
3725 "called at the start of execution to bring needed shared libraries into "
3726 "memory and link the executable with them."
3727 msgstr ""
3728
3729 #. type: Plain text
3730 #: build/C/man2/execve.2:119
3731 msgid ""
3732 "If the executable is a dynamically linked ELF executable, the interpreter "
3733 "named in the PT_INTERP segment is used to load the needed shared libraries.  "
3734 "This interpreter is typically I</lib/ld-linux.so.1> for binaries linked with "
3735 "the Linux libc 5, or I</lib/ld-linux.so.2> for binaries linked with the "
3736 "glibc 2."
3737 msgstr ""
3738
3739 #. type: Plain text
3740 #: build/C/man2/execve.2:123
3741 msgid ""
3742 "All process attributes are preserved during an B<execve>(), except the "
3743 "following:"
3744 msgstr ""
3745
3746 #. type: Plain text
3747 #: build/C/man2/execve.2:127
3748 msgid ""
3749 "The dispositions of any signals that are being caught are reset to the "
3750 "default (B<signal>(7))."
3751 msgstr ""
3752
3753 #. type: Plain text
3754 #: build/C/man2/execve.2:130
3755 msgid "Any alternate signal stack is not preserved (B<sigaltstack>(2))."
3756 msgstr ""
3757
3758 #. type: Plain text
3759 #: build/C/man2/execve.2:133
3760 msgid "Memory mappings are not preserved (B<mmap>(2))."
3761 msgstr ""
3762
3763 #. type: Plain text
3764 #: build/C/man2/execve.2:136
3765 msgid "Attached System V shared memory segments are detached (B<shmat>(2))."
3766 msgstr ""
3767
3768 #. type: Plain text
3769 #: build/C/man2/execve.2:139
3770 msgid "POSIX shared memory regions are unmapped (B<shm_open>(3))."
3771 msgstr ""
3772
3773 #. type: Plain text
3774 #: build/C/man2/execve.2:142
3775 msgid "Open POSIX message queue descriptors are closed (B<mq_overview>(7))."
3776 msgstr ""
3777
3778 #. type: Plain text
3779 #: build/C/man2/execve.2:145
3780 msgid "Any open POSIX named semaphores are closed (B<sem_overview>(7))."
3781 msgstr ""
3782
3783 #. type: Plain text
3784 #: build/C/man2/execve.2:148
3785 msgid "POSIX timers are not preserved (B<timer_create>(2))."
3786 msgstr ""
3787
3788 #. type: Plain text
3789 #: build/C/man2/execve.2:151
3790 msgid "Any open directory streams are closed (B<opendir>(3))."
3791 msgstr ""
3792
3793 #. type: Plain text
3794 #: build/C/man2/execve.2:155
3795 msgid "Memory locks are not preserved (B<mlock>(2), B<mlockall>(2))."
3796 msgstr ""
3797
3798 #. type: Plain text
3799 #: build/C/man2/execve.2:159
3800 msgid "Exit handlers are not preserved (B<atexit>(3), B<on_exit>(3))."
3801 msgstr ""
3802
3803 #. type: Plain text
3804 #: build/C/man2/execve.2:162
3805 msgid "The floating-point environment is reset to the default (see B<fenv>(3))."
3806 msgstr ""
3807
3808 #. type: Plain text
3809 #: build/C/man2/execve.2:168
3810 msgid ""
3811 "The process attributes in the preceding list are all specified in "
3812 "POSIX.1-2001.  The following Linux-specific process attributes are also not "
3813 "preserved during an B<execve>():"
3814 msgstr ""
3815
3816 #. type: Plain text
3817 #: build/C/man2/execve.2:175
3818 msgid ""
3819 "The B<prctl>(2)  B<PR_SET_DUMPABLE> flag is set, unless a set-user-ID or "
3820 "set-group ID program is being executed, in which case it is cleared."
3821 msgstr ""
3822
3823 #. type: Plain text
3824 #: build/C/man2/execve.2:180
3825 msgid "The B<prctl>(2)  B<PR_SET_KEEPCAPS> flag is cleared."
3826 msgstr ""
3827
3828 #. type: Plain text
3829 #: build/C/man2/execve.2:187
3830 msgid ""
3831 "The process name, as set by B<prctl>(2)  B<PR_SET_NAME> (and displayed by "
3832 "I<ps\\ -o comm>), is reset to the name of the new executable file."
3833 msgstr ""
3834
3835 #. type: Plain text
3836 #: build/C/man2/execve.2:192
3837 msgid "The termination signal is reset to B<SIGCHLD> (see B<clone>(2))."
3838 msgstr ""
3839
3840 #. type: Plain text
3841 #: build/C/man2/execve.2:194 build/C/man2/fork.2:120
3842 msgid "Note the following further points:"
3843 msgstr ""
3844
3845 #. type: Plain text
3846 #: build/C/man2/execve.2:198
3847 msgid ""
3848 "All threads other than the calling thread are destroyed during an "
3849 "B<execve>().  Mutexes, condition variables, and other pthreads objects are "
3850 "not preserved."
3851 msgstr ""
3852
3853 #. type: Plain text
3854 #: build/C/man2/execve.2:201
3855 msgid ""
3856 "The equivalent of I<setlocale(LC_ALL, \"C\")> is executed at program "
3857 "start-up."
3858 msgstr ""
3859
3860 #. type: Plain text
3861 #: build/C/man2/execve.2:209
3862 msgid ""
3863 "POSIX.1-2001 specifies that the dispositions of any signals that are ignored "
3864 "or set to the default are left unchanged.  POSIX.1-2001 specifies one "
3865 "exception: if B<SIGCHLD> is being ignored, then an implementation may leave "
3866 "the disposition unchanged or reset it to the default; Linux does the former."
3867 msgstr ""
3868
3869 #. type: Plain text
3870 #: build/C/man2/execve.2:213
3871 msgid ""
3872 "Any outstanding asynchronous I/O operations are canceled (B<aio_read>(3), "
3873 "B<aio_write>(3))."
3874 msgstr ""
3875
3876 #. type: Plain text
3877 #: build/C/man2/execve.2:218
3878 msgid "For the handling of capabilities during B<execve>(), see B<capabilities>(7)."
3879 msgstr ""
3880
3881 #.  On Linux it appears that these file descriptors are
3882 #.  always open after an execve(), and it looks like
3883 #.  Solaris 8 and FreeBSD 6.1 are the same. -- mtk, 30 Apr 2007
3884 #. type: Plain text
3885 #: build/C/man2/execve.2:245
3886 msgid ""
3887 "By default, file descriptors remain open across an B<execve>().  File "
3888 "descriptors that are marked close-on-exec are closed; see the description of "
3889 "B<FD_CLOEXEC> in B<fcntl>(2).  (If a file descriptor is closed, this will "
3890 "cause the release of all record locks obtained on the underlying file by "
3891 "this process.  See B<fcntl>(2)  for details.)  POSIX.1-2001 says that if "
3892 "file descriptors 0, 1, and 2 would otherwise be closed after a successful "
3893 "B<execve>(), and the process would gain privilege because the set-user_ID or "
3894 "set-group_ID permission bit was set on the executed file, then the system "
3895 "may open an unspecified file for each of these file descriptors.  As a "
3896 "general principle, no portable program, whether privileged or not, can "
3897 "assume that these three file descriptors will remain closed across an "
3898 "B<execve>()."
3899 msgstr ""
3900
3901 #. type: SS
3902 #: build/C/man2/execve.2:245
3903 #, no-wrap
3904 msgid "Interpreter scripts"
3905 msgstr ""
3906
3907 #. type: Plain text
3908 #: build/C/man2/execve.2:248
3909 msgid ""
3910 "An interpreter script is a text file that has execute permission enabled and "
3911 "whose first line is of the form:"
3912 msgstr ""
3913
3914 #. type: Plain text
3915 #: build/C/man2/execve.2:266
3916 msgid ""
3917 "The I<interpreter> must be a valid pathname for an executable which is not "
3918 "itself a script.  If the I<filename> argument of B<execve>()  specifies an "
3919 "interpreter script, then I<interpreter> will be invoked with the following "
3920 "arguments:"
3921 msgstr ""
3922
3923 #. type: Plain text
3924 #: build/C/man2/execve.2:270
3925 #, no-wrap
3926 msgid "I<interpreter> [optional-arg] I<filename> arg...\n"
3927 msgstr ""
3928
3929 #. type: Plain text
3930 #: build/C/man2/execve.2:279
3931 msgid ""
3932 "where I<arg...> is the series of words pointed to by the I<argv> argument of "
3933 "B<execve>()."
3934 msgstr ""
3935
3936 #. type: Plain text
3937 #: build/C/man2/execve.2:284
3938 msgid ""
3939 "For portable use, I<optional-arg> should either be absent, or be specified "
3940 "as a single word (i.e., it should not contain white space); see NOTES below."
3941 msgstr ""
3942
3943 #. type: SS
3944 #: build/C/man2/execve.2:284
3945 #, no-wrap
3946 msgid "Limits on size of arguments and environment"
3947 msgstr ""
3948
3949 #. type: Plain text
3950 #: build/C/man2/execve.2:297
3951 msgid ""
3952 "Most UNIX implementations impose some limit on the total size of the "
3953 "command-line argument (I<argv>)  and environment (I<envp>)  strings that may "
3954 "be passed to a new program.  POSIX.1 allows an implementation to advertise "
3955 "this limit using the B<ARG_MAX> constant (either defined in "
3956 "I<E<lt>limits.hE<gt>> or available at run time using the call "
3957 "I<sysconf(_SC_ARG_MAX)>)."
3958 msgstr ""
3959
3960 #. type: Plain text
3961 #: build/C/man2/execve.2:304
3962 msgid ""
3963 "On Linux prior to kernel 2.6.23, the memory used to store the environment "
3964 "and argument strings was limited to 32 pages (defined by the kernel constant "
3965 "B<MAX_ARG_PAGES>).  On architectures with a 4-kB page size, this yields a "
3966 "maximum size of 128 kB."
3967 msgstr ""
3968
3969 #.  For some background on the changes to ARG_MAX in kernels 2.6.23 and
3970 #.  2.6.25, see:
3971 #.      http://sourceware.org/bugzilla/show_bug.cgi?id=5786
3972 #.      http://bugzilla.kernel.org/show_bug.cgi?id=10095
3973 #.      http://thread.gmane.org/gmane.linux.kernel/646709/focus=648101,
3974 #.      checked into 2.6.25 as commit a64e715fc74b1a7dcc5944f848acc38b2c4d4ee2.
3975 #.  Ollie: That doesn't include the lists of pointers, though,
3976 #.  so the actual usage is a bit higher (1 pointer per argument).
3977 #. type: Plain text
3978 #: build/C/man2/execve.2:340
3979 msgid ""
3980 "On kernel 2.6.23 and later, most architectures support a size limit derived "
3981 "from the soft B<RLIMIT_STACK> resource limit (see B<getrlimit>(2))  that is "
3982 "in force at the time of the B<execve>()  call.  (Architectures with no "
3983 "memory management unit are excepted: they maintain the limit that was in "
3984 "effect before kernel 2.6.23.)  This change allows programs to have a much "
3985 "larger argument and/or environment list.  For these architectures, the total "
3986 "size is limited to 1/4 of the allowed stack size.  (Imposing the 1/4-limit "
3987 "ensures that the new program always has some stack space.)  Since Linux "
3988 "2.6.25, the kernel places a floor of 32 pages on this size limit, so that, "
3989 "even when B<RLIMIT_STACK> is set very low, applications are guaranteed to "
3990 "have at least as much argument and environment space as was provided by "
3991 "Linux 2.6.23 and earlier.  (This guarantee was not provided in Linux 2.6.23 "
3992 "and 2.6.24.)  Additionally, the limit per string is 32 pages (the kernel "
3993 "constant B<MAX_ARG_STRLEN>), and the maximum number of strings is "
3994 "0x7FFFFFFF."
3995 msgstr ""
3996
3997 #. type: Plain text
3998 #: build/C/man2/execve.2:346
3999 msgid ""
4000 "On success, B<execve>()  does not return, on error -1 is returned, and "
4001 "I<errno> is set appropriately."
4002 msgstr ""
4003
4004 #. type: TP
4005 #: build/C/man2/execve.2:347
4006 #, no-wrap
4007 msgid "B<E2BIG>"
4008 msgstr ""
4009
4010 #. type: Plain text
4011 #: build/C/man2/execve.2:354
4012 msgid ""
4013 "The total number of bytes in the environment (I<envp>)  and argument list "
4014 "(I<argv>)  is too large."
4015 msgstr ""
4016
4017 #. type: Plain text
4018 #: build/C/man2/execve.2:361
4019 msgid ""
4020 "Search permission is denied on a component of the path prefix of I<filename> "
4021 "or the name of a script interpreter.  (See also B<path_resolution>(7).)"
4022 msgstr ""
4023
4024 #. type: Plain text
4025 #: build/C/man2/execve.2:364
4026 msgid "The file or a script interpreter is not a regular file."
4027 msgstr ""
4028
4029 #. type: Plain text
4030 #: build/C/man2/execve.2:367
4031 msgid "Execute permission is denied for the file or a script or ELF interpreter."
4032 msgstr ""
4033
4034 #. type: Plain text
4035 #: build/C/man2/execve.2:371
4036 msgid "The file system is mounted I<noexec>."
4037 msgstr ""
4038
4039 #. type: Plain text
4040 #: build/C/man2/execve.2:375
4041 msgid "I<filename> points outside your accessible address space."
4042 msgstr ""
4043
4044 #. type: Plain text
4045 #: build/C/man2/execve.2:379
4046 msgid ""
4047 "An ELF executable had more than one PT_INTERP segment (i.e., tried to name "
4048 "more than one interpreter)."
4049 msgstr ""
4050
4051 #. type: TP
4052 #: build/C/man2/execve.2:382 build/C/man2/truncate.2:146
4053 #, no-wrap
4054 msgid "B<EISDIR>"
4055 msgstr ""
4056
4057 #. type: Plain text
4058 #: build/C/man2/execve.2:385
4059 msgid "An ELF interpreter was a directory."
4060 msgstr ""
4061
4062 #. type: TP
4063 #: build/C/man2/execve.2:385
4064 #, no-wrap
4065 msgid "B<ELIBBAD>"
4066 msgstr ""
4067
4068 #. type: Plain text
4069 #: build/C/man2/execve.2:388
4070 msgid "An ELF interpreter was not in a recognized format."
4071 msgstr ""
4072
4073 #. type: Plain text
4074 #: build/C/man2/execve.2:393
4075 msgid ""
4076 "Too many symbolic links were encountered in resolving I<filename> or the "
4077 "name of a script or ELF interpreter."
4078 msgstr ""
4079
4080 #. type: Plain text
4081 #: build/C/man2/execve.2:396
4082 msgid "The process has the maximum number of files open."
4083 msgstr ""
4084
4085 #. type: Plain text
4086 #: build/C/man2/execve.2:400
4087 msgid "I<filename> is too long."
4088 msgstr ""
4089
4090 #. type: TP
4091 #: build/C/man2/execve.2:400 build/C/man3/getlogin.3:106 build/C/man2/swapon.2:133 build/C/man2/uselib.2:67
4092 #, no-wrap
4093 msgid "B<ENFILE>"
4094 msgstr ""
4095
4096 #. type: Plain text
4097 #: build/C/man2/execve.2:403 build/C/man2/swapon.2:136 build/C/man2/uselib.2:70
4098 msgid "The system limit on the total number of open files has been reached."
4099 msgstr ""
4100
4101 #. type: Plain text
4102 #: build/C/man2/execve.2:409
4103 msgid ""
4104 "The file I<filename> or a script or ELF interpreter does not exist, or a "
4105 "shared library needed for file or interpreter cannot be found."
4106 msgstr ""
4107
4108 #. type: TP
4109 #: build/C/man2/execve.2:409 build/C/man2/uselib.2:70
4110 #, no-wrap
4111 msgid "B<ENOEXEC>"
4112 msgstr ""
4113
4114 #. type: Plain text
4115 #: build/C/man2/execve.2:414
4116 msgid ""
4117 "An executable is not in a recognized format, is for the wrong architecture, "
4118 "or has some other format error that means it cannot be executed."
4119 msgstr ""
4120
4121 #. type: Plain text
4122 #: build/C/man2/execve.2:422
4123 msgid ""
4124 "A component of the path prefix of I<filename> or a script or ELF interpreter "
4125 "is not a directory."
4126 msgstr ""
4127
4128 #. type: Plain text
4129 #: build/C/man2/execve.2:428
4130 msgid ""
4131 "The file system is mounted I<nosuid>, the user is not the superuser, and the "
4132 "file has the set-user-ID or set-group-ID bit set."
4133 msgstr ""
4134
4135 #. type: Plain text
4136 #: build/C/man2/execve.2:432
4137 msgid ""
4138 "The process is being traced, the user is not the superuser and the file has "
4139 "the set-user-ID or set-group-ID bit set."
4140 msgstr ""
4141
4142 #. type: Plain text
4143 #: build/C/man2/execve.2:435
4144 msgid "Executable was open for writing by one or more processes."
4145 msgstr ""
4146
4147 #.  SVr4 documents additional error
4148 #.  conditions EAGAIN, EINTR, ELIBACC, ENOLINK, EMULTIHOP; POSIX does not
4149 #.  document ETXTBSY, EPERM, EFAULT, ELOOP, EIO, ENFILE, EMFILE, EINVAL,
4150 #.  EISDIR or ELIBBAD error conditions.
4151 #. type: Plain text
4152 #: build/C/man2/execve.2:443
4153 msgid ""
4154 "SVr4, 4.3BSD, POSIX.1-2001.  POSIX.1-2001 does not document the #! behavior "
4155 "but is otherwise compatible."
4156 msgstr ""
4157
4158 #. type: Plain text
4159 #: build/C/man2/execve.2:446
4160 msgid "Set-user-ID and set-group-ID processes can not be B<ptrace>(2)d."
4161 msgstr ""
4162
4163 #. type: Plain text
4164 #: build/C/man2/execve.2:448
4165 msgid "Linux ignores the set-user-ID and set-group-ID bits on scripts."
4166 msgstr ""
4167
4168 #. type: Plain text
4169 #: build/C/man2/execve.2:459
4170 msgid ""
4171 "The result of mounting a file system I<nosuid> varies across Linux kernel "
4172 "versions: some will refuse execution of set-user-ID and set-group-ID "
4173 "executables when this would give the user powers she did not have already "
4174 "(and return B<EPERM>), some will just ignore the set-user-ID and "
4175 "set-group-ID bits and B<exec>()  successfully."
4176 msgstr ""
4177
4178 #. type: Plain text
4179 #: build/C/man2/execve.2:462
4180 msgid ""
4181 "A maximum line length of 127 characters is allowed for the first line in a "
4182 "#! executable shell script."
4183 msgstr ""
4184
4185 #.  e.g., Solaris 8
4186 #.  e.g., FreeBSD before 6.0, but not FreeBSD 6.0 onward
4187 #. type: Plain text
4188 #: build/C/man2/execve.2:481
4189 msgid ""
4190 "The semantics of the I<optional-arg> argument of an interpreter script vary "
4191 "across implementations.  On Linux, the entire string following the "
4192 "I<interpreter> name is passed as a single argument to the interpreter, and "
4193 "this string can include white space.  However, behavior differs on some "
4194 "other systems.  Some systems use the first white space to terminate "
4195 "I<optional-arg>.  On some systems, an interpreter script can have multiple "
4196 "arguments, and white spaces in I<optional-arg> are used to delimit the "
4197 "arguments."
4198 msgstr ""
4199
4200 #.  e.g., EFAULT on Solaris 8 and FreeBSD 6.1; but
4201 #.  HP-UX 11 is like Linux -- mtk, Apr 2007
4202 #.  Bug filed 30 Apr 2007: http://bugzilla.kernel.org/show_bug.cgi?id=8408
4203 #.  Bug rejected (because fix would constitute an ABI change).
4204 #. type: Plain text
4205 #: build/C/man2/execve.2:496
4206 msgid ""
4207 "On Linux, I<argv> can be specified as NULL, which has the same effect as "
4208 "specifying this argument as a pointer to a list containing a single NULL "
4209 "pointer.  B<Do not take advantage of this misfeature!> It is nonstandard and "
4210 "nonportable: on most other UNIX systems doing this will result in an error "
4211 "(B<EFAULT>)."
4212 msgstr ""
4213
4214 #
4215 #.  .SH BUGS
4216 #.  Some Linux versions have failed to check permissions on ELF
4217 #.  interpreters.  This is a security hole, because it allows users to
4218 #.  open any file, such as a rewinding tape device, for reading.  Some
4219 #.  Linux versions have also had other security holes in
4220 #.  .BR execve ()
4221 #.  that could be exploited for denial of service by a suitably crafted
4222 #.  ELF binary. There are no known problems with 2.0.34 or 2.2.15.
4223 #. type: Plain text
4224 #: build/C/man2/execve.2:516
4225 msgid ""
4226 "POSIX.1-2001 says that values returned by B<sysconf>(3)  should be invariant "
4227 "over the lifetime of a process.  However, since Linux 2.6.23, if the "
4228 "B<RLIMIT_STACK> resource limit changes, then the value reported by "
4229 "B<_SC_ARG_MAX> will also change, to reflect the fact that the limit on space "
4230 "for holding command-line arguments and environment variables has changed."
4231 msgstr ""
4232
4233 #. type: SS
4234 #: build/C/man2/execve.2:516
4235 #, no-wrap
4236 msgid "Historical"
4237 msgstr ""
4238
4239 #. type: Plain text
4240 #: build/C/man2/execve.2:527
4241 msgid ""
4242 "With UNIX V6 the argument list of an B<exec>()  call was ended by 0, while "
4243 "the argument list of I<main> was ended by -1.  Thus, this argument list was "
4244 "not directly usable in a further B<exec>()  call.  Since UNIX V7 both are "
4245 "NULL."
4246 msgstr ""
4247
4248 #. type: Plain text
4249 #: build/C/man2/execve.2:530
4250 msgid ""
4251 "The following program is designed to be execed by the second program below.  "
4252 "It just echoes its command-line one per line."
4253 msgstr ""
4254
4255 #. type: Plain text
4256 #: build/C/man2/execve.2:534
4257 #, no-wrap
4258 msgid "/* myecho.c */\n"
4259 msgstr ""
4260
4261 #. type: Plain text
4262 #: build/C/man2/execve.2:537
4263 #, no-wrap
4264 msgid ""
4265 "#include E<lt>stdio.hE<gt>\n"
4266 "#include E<lt>stdlib.hE<gt>\n"
4267 msgstr ""
4268
4269 #. type: Plain text
4270 #: build/C/man2/execve.2:542
4271 #, no-wrap
4272 msgid ""
4273 "int\n"
4274 "main(int argc, char *argv[])\n"
4275 "{\n"
4276 "    int j;\n"
4277 msgstr ""
4278
4279 #. type: Plain text
4280 #: build/C/man2/execve.2:545
4281 #, no-wrap
4282 msgid ""
4283 "    for (j = 0; j E<lt> argc; j++)\n"
4284 "        printf(\"argv[%d]: %s\\en\", j, argv[j]);\n"
4285 msgstr ""
4286
4287 #. type: Plain text
4288 #: build/C/man2/execve.2:553
4289 msgid ""
4290 "This program can be used to exec the program named in its command-line "
4291 "argument:"
4292 msgstr ""
4293
4294 #. type: Plain text
4295 #: build/C/man2/execve.2:557
4296 #, no-wrap
4297 msgid "/* execve.c */\n"
4298 msgstr ""
4299
4300 #. type: Plain text
4301 #: build/C/man2/execve.2:561
4302 #, no-wrap
4303 msgid ""
4304 "#include E<lt>stdio.hE<gt>\n"
4305 "#include E<lt>stdlib.hE<gt>\n"
4306 "#include E<lt>unistd.hE<gt>\n"
4307 msgstr ""
4308
4309 #. type: Plain text
4310 #: build/C/man2/execve.2:567
4311 #, no-wrap
4312 msgid ""
4313 "int\n"
4314 "main(int argc, char *argv[])\n"
4315 "{\n"
4316 "    char *newargv[] = { NULL, \"hello\", \"world\", NULL };\n"
4317 "    char *newenviron[] = { NULL };\n"
4318 msgstr ""
4319
4320 #. type: Plain text
4321 #: build/C/man2/execve.2:572
4322 #, no-wrap
4323 msgid ""
4324 "    if (argc != 2) {\n"
4325 "\tfprintf(stderr, \"Usage: %s E<lt>file-to-execE<gt>\\en\", argv[0]);\n"
4326 "\texit(EXIT_FAILURE);\n"
4327 "    }\n"
4328 msgstr ""
4329
4330 #. type: Plain text
4331 #: build/C/man2/execve.2:574
4332 #, no-wrap
4333 msgid "    newargv[0] = argv[1];\n"
4334 msgstr ""
4335
4336 #. type: Plain text
4337 #: build/C/man2/execve.2:579
4338 #, no-wrap
4339 msgid ""
4340 "    execve(argv[1], newargv, newenviron);\n"
4341 "    perror(\"execve\");   /* execve() only returns on error */\n"
4342 "    exit(EXIT_FAILURE);\n"
4343 "}\n"
4344 msgstr ""
4345
4346 #. type: Plain text
4347 #: build/C/man2/execve.2:583
4348 msgid "We can use the second program to exec the first as follows:"
4349 msgstr ""
4350
4351 #. type: Plain text
4352 #: build/C/man2/execve.2:592
4353 #, no-wrap
4354 msgid ""
4355 "$B< cc myecho.c -o myecho>\n"
4356 "$B< cc execve.c -o execve>\n"
4357 "$B< ./execve ./myecho>\n"
4358 "argv[0]: ./myecho\n"
4359 "argv[1]: hello\n"
4360 "argv[2]: world\n"
4361 msgstr ""
4362
4363 #. type: Plain text
4364 #: build/C/man2/execve.2:600
4365 msgid ""
4366 "We can also use these programs to demonstrate the use of a script "
4367 "interpreter.  To do this we create a script whose \"interpreter\" is our "
4368 "I<myecho> program:"
4369 msgstr ""
4370
4371 #. type: Plain text
4372 #: build/C/man2/execve.2:607
4373 #, no-wrap
4374 msgid ""
4375 "$B< cat E<gt> script.sh>\n"
4376 "B<#! ./myecho script-arg>\n"
4377 "B<^D>\n"
4378 "$B< chmod +x script.sh>\n"
4379 msgstr ""
4380
4381 #. type: Plain text
4382 #: build/C/man2/execve.2:611
4383 msgid "We can then use our program to exec the script:"
4384 msgstr ""
4385
4386 #. type: Plain text
4387 #: build/C/man2/execve.2:620
4388 #, no-wrap
4389 msgid ""
4390 "$B< ./execve ./script.sh>\n"
4391 "argv[0]: ./myecho\n"
4392 "argv[1]: script-arg\n"
4393 "argv[2]: ./script.sh\n"
4394 "argv[3]: hello\n"
4395 "argv[4]: world\n"
4396 msgstr ""
4397
4398 #. type: Plain text
4399 #: build/C/man2/execve.2:633
4400 msgid ""
4401 "B<chmod>(2), B<fork>(2), B<ptrace>(2), B<execl>(3), B<fexecve>(3), "
4402 "B<getopt>(3), B<credentials>(7), B<environ>(7), B<path_resolution>(7), "
4403 "B<ld.so>(8)"
4404 msgstr ""
4405
4406 #. type: TH
4407 #: build/C/man2/exit_group.2:23
4408 #, no-wrap
4409 msgid "EXIT_GROUP"
4410 msgstr ""
4411
4412 #. type: TH
4413 #: build/C/man2/exit_group.2:23 build/C/man2/get_thread_area.2:6 build/C/man2/set_thread_area.2:7
4414 #, no-wrap
4415 msgid "2008-11-27"
4416 msgstr ""
4417
4418 #. type: Plain text
4419 #: build/C/man2/exit_group.2:26
4420 msgid "exit_group - exit all threads in a process"
4421 msgstr ""
4422
4423 #. type: Plain text
4424 #: build/C/man2/exit_group.2:29
4425 #, no-wrap
4426 msgid "B<#include E<lt>linux/unistd.hE<gt>>\n"
4427 msgstr ""
4428
4429 #. type: Plain text
4430 #: build/C/man2/exit_group.2:31
4431 #, no-wrap
4432 msgid "B<void exit_group(int >I<status>B<);>\n"
4433 msgstr ""
4434
4435 #. type: Plain text
4436 #: build/C/man2/exit_group.2:37
4437 msgid ""
4438 "This system call is equivalent to B<exit>(2)  except that it terminates not "
4439 "only the calling thread, but all threads in the calling process's thread "
4440 "group."
4441 msgstr ""
4442
4443 #. type: Plain text
4444 #: build/C/man2/exit_group.2:39
4445 msgid "This system call does not return."
4446 msgstr ""
4447
4448 #. type: Plain text
4449 #: build/C/man2/exit_group.2:41
4450 msgid "This call is present since Linux 2.5.35."
4451 msgstr ""
4452
4453 #. type: Plain text
4454 #: build/C/man2/exit_group.2:43
4455 msgid "This call is Linux-specific."
4456 msgstr ""
4457
4458 #. type: Plain text
4459 #: build/C/man2/exit_group.2:47
4460 msgid ""
4461 "Since glibc 2.3, this is the system call invoked when the B<exit>(2)  "
4462 "wrapper function is called."
4463 msgstr ""
4464
4465 #. type: Plain text
4466 #: build/C/man2/exit_group.2:49
4467 msgid "B<exit>(2)"
4468 msgstr ""
4469
4470 #. type: TH
4471 #: build/C/man2/fcntl.2:61
4472 #, no-wrap
4473 msgid "FCNTL"
4474 msgstr ""
4475
4476 #. type: Plain text
4477 #: build/C/man2/fcntl.2:64
4478 msgid "fcntl - manipulate file descriptor"
4479 msgstr ""
4480
4481 #. type: Plain text
4482 #: build/C/man2/fcntl.2:68
4483 #, no-wrap
4484 msgid ""
4485 "B<#include E<lt>unistd.hE<gt>>\n"
4486 "B<#include E<lt>fcntl.hE<gt>>\n"
4487 msgstr ""
4488
4489 #. type: Plain text
4490 #: build/C/man2/fcntl.2:70
4491 #, no-wrap
4492 msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
4493 msgstr ""
4494
4495 #. type: Plain text
4496 #: build/C/man2/fcntl.2:77
4497 msgid ""
4498 "B<fcntl>()  performs one of the operations described below on the open file "
4499 "descriptor I<fd>.  The operation is determined by I<cmd>."
4500 msgstr ""
4501
4502 #. type: Plain text
4503 #: build/C/man2/fcntl.2:91
4504 msgid ""
4505 "B<fcntl>()  can take an optional third argument.  Whether or not this "
4506 "argument is required is determined by I<cmd>.  The required argument type is "
4507 "indicated in parentheses after each I<cmd> name (in most cases, the required "
4508 "type is I<long>, and we identify the argument using the name I<arg>), or "
4509 "I<void> is specified if the argument is not required."
4510 msgstr ""
4511
4512 #. type: SS
4513 #: build/C/man2/fcntl.2:91
4514 #, no-wrap
4515 msgid "Duplicating a file descriptor"
4516 msgstr ""
4517
4518 #. type: TP
4519 #: build/C/man2/fcntl.2:92
4520 #, no-wrap
4521 msgid "B<F_DUPFD> (I<long>)"
4522 msgstr ""
4523
4524 #. type: Plain text
4525 #: build/C/man2/fcntl.2:102
4526 msgid ""
4527 "Find the lowest numbered available file descriptor greater than or equal to "
4528 "I<arg> and make it be a copy of I<fd>.  This is different from B<dup2>(2), "
4529 "which uses exactly the descriptor specified."
4530 msgstr ""
4531
4532 #. type: Plain text
4533 #: build/C/man2/fcntl.2:104
4534 msgid "On success, the new descriptor is returned."
4535 msgstr ""
4536
4537 #. type: Plain text
4538 #: build/C/man2/fcntl.2:108
4539 msgid "See B<dup>(2)  for further details."
4540 msgstr ""
4541
4542 #. type: TP
4543 #: build/C/man2/fcntl.2:108
4544 #, no-wrap
4545 msgid "B<F_DUPFD_CLOEXEC> (I<long>; since Linux 2.6.24)"
4546 msgstr ""
4547
4548 #. type: Plain text
4549 #: build/C/man2/fcntl.2:125
4550 msgid ""
4551 "As for B<F_DUPFD>, but additionally set the close-on-exec flag for the "
4552 "duplicate descriptor.  Specifying this flag permits a program to avoid an "
4553 "additional B<fcntl>()  B<F_SETFD> operation to set the B<FD_CLOEXEC> flag.  "
4554 "For an explanation of why this flag is useful, see the description of "
4555 "B<O_CLOEXEC> in B<open>(2)."
4556 msgstr ""
4557
4558 #. type: SS
4559 #: build/C/man2/fcntl.2:125
4560 #, no-wrap
4561 msgid "File descriptor flags"
4562 msgstr ""
4563
4564 #. type: Plain text
4565 #: build/C/man2/fcntl.2:136
4566 msgid ""
4567 "The following commands manipulate the flags associated with a file "
4568 "descriptor.  Currently, only one such flag is defined: B<FD_CLOEXEC>, the "
4569 "close-on-exec flag.  If the B<FD_CLOEXEC> bit is 0, the file descriptor will "
4570 "remain open across an B<execve>(2), otherwise it will be closed."
4571 msgstr ""
4572
4573 #. type: TP
4574 #: build/C/man2/fcntl.2:136
4575 #, no-wrap
4576 msgid "B<F_GETFD> (I<void>)"
4577 msgstr ""
4578
4579 #. type: Plain text
4580 #: build/C/man2/fcntl.2:141
4581 msgid "Read the file descriptor flags; I<arg> is ignored."
4582 msgstr ""
4583
4584 #. type: TP
4585 #: build/C/man2/fcntl.2:141
4586 #, no-wrap
4587 msgid "B<F_SETFD> (I<long>)"
4588 msgstr ""
4589
4590 #. type: Plain text
4591 #: build/C/man2/fcntl.2:145
4592 msgid "Set the file descriptor flags to the value specified by I<arg>."
4593 msgstr ""
4594
4595 #. type: SS
4596 #: build/C/man2/fcntl.2:145
4597 #, no-wrap
4598 msgid "File status flags"
4599 msgstr ""
4600
4601 #.  or
4602 #.  .BR creat (2),
4603 #. type: Plain text
4604 #: build/C/man2/fcntl.2:160
4605 msgid ""
4606 "Each open file description has certain associated status flags, initialized "
4607 "by B<open>(2)  and possibly modified by B<fcntl>().  Duplicated file "
4608 "descriptors (made with B<dup>(2), B<fcntl>(F_DUPFD), B<fork>(2), etc.) refer "
4609 "to the same open file description, and thus share the same file status "
4610 "flags."
4611 msgstr ""
4612
4613 #. type: Plain text
4614 #: build/C/man2/fcntl.2:163
4615 msgid "The file status flags and their semantics are described in B<open>(2)."
4616 msgstr ""
4617
4618 #. type: TP
4619 #: build/C/man2/fcntl.2:163
4620 #, no-wrap
4621 msgid "B<F_GETFL> (I<void>)"
4622 msgstr ""
4623
4624 #. type: Plain text
4625 #: build/C/man2/fcntl.2:168
4626 msgid "Get the file access mode and the file status flags; I<arg> is ignored."
4627 msgstr ""
4628
4629 #. type: TP
4630 #: build/C/man2/fcntl.2:168
4631 #, no-wrap
4632 msgid "B<F_SETFL> (I<long>)"
4633 msgstr ""
4634
4635 #.  FIXME . According to POSIX.1-2001, O_SYNC should also be modifiable
4636 #.  via fcntl(2), but currently Linux does not permit this
4637 #.  See http://bugzilla.kernel.org/show_bug.cgi?id=5994
4638 #. type: Plain text
4639 #: build/C/man2/fcntl.2:191
4640 msgid ""
4641 "Set the file status flags to the value specified by I<arg>.  File access "
4642 "mode (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>)  and file creation flags (i.e., "
4643 "B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>)  in I<arg> are ignored.  On "
4644 "Linux this command can change only the B<O_APPEND>, B<O_ASYNC>, B<O_DIRECT>, "
4645 "B<O_NOATIME>, and B<O_NONBLOCK> flags."
4646 msgstr ""
4647
4648 #. type: SS
4649 #: build/C/man2/fcntl.2:191
4650 #, no-wrap
4651 msgid "Advisory locking"
4652 msgstr ""
4653
4654 #. type: Plain text
4655 #: build/C/man2/fcntl.2:199
4656 msgid ""
4657 "B<F_GETLK>, B<F_SETLK> and B<F_SETLKW> are used to acquire, release, and "
4658 "test for the existence of record locks (also known as file-segment or "
4659 "file-region locks).  The third argument, I<lock>, is a pointer to a "
4660 "structure that has at least the following fields (in unspecified order)."
4661 msgstr ""
4662
4663 #. type: Plain text
4664 #: build/C/man2/fcntl.2:214
4665 #, no-wrap
4666 msgid ""
4667 "struct flock {\n"
4668 "    ...\n"
4669 "    short l_type;    /* Type of lock: F_RDLCK,\n"
4670 "                        F_WRLCK, F_UNLCK */\n"
4671 "    short l_whence;  /* How to interpret l_start:\n"
4672 "                        SEEK_SET, SEEK_CUR, SEEK_END */\n"
4673 "    off_t l_start;   /* Starting offset for lock */\n"
4674 "    off_t l_len;     /* Number of bytes to lock */\n"
4675 "    pid_t l_pid;     /* PID of process blocking our lock\n"
4676 "                        (F_GETLK only) */\n"
4677 "    ...\n"
4678 "};\n"
4679 msgstr ""
4680
4681 #. type: Plain text
4682 #: build/C/man2/fcntl.2:222
4683 msgid ""
4684 "The I<l_whence>, I<l_start>, and I<l_len> fields of this structure specify "
4685 "the range of bytes we wish to lock.  Bytes past the end of the file may be "
4686 "locked, but not bytes before the start of the file."
4687 msgstr ""
4688
4689 #. type: Plain text
4690 #: build/C/man2/fcntl.2:242
4691 msgid ""
4692 "I<l_start> is the starting offset for the lock, and is interpreted relative "
4693 "to either: the start of the file (if I<l_whence> is B<SEEK_SET>); the "
4694 "current file offset (if I<l_whence> is B<SEEK_CUR>); or the end of the file "
4695 "(if I<l_whence> is B<SEEK_END>).  In the final two cases, I<l_start> can be "
4696 "a negative number provided the offset does not lie before the start of the "
4697 "file."
4698 msgstr ""
4699
4700 #. type: Plain text
4701 #: build/C/man2/fcntl.2:257
4702 msgid ""
4703 "I<l_len> specifies the number of bytes to be locked.  If I<l_len> is "
4704 "positive, then the range to be locked covers bytes I<l_start> up to and "
4705 "including I<l_start>+I<l_len>-I<1>.  Specifying 0 for I<l_len> has the "
4706 "special meaning: lock all bytes starting at the location specified by "
4707 "I<l_whence> and I<l_start> through to the end of file, no matter how large "
4708 "the file grows."
4709 msgstr ""
4710
4711 #. type: Plain text
4712 #: build/C/man2/fcntl.2:270
4713 msgid ""
4714 "POSIX.1-2001 allows (but does not require)  an implementation to support a "
4715 "negative I<l_len> value; if I<l_len> is negative, the interval described by "
4716 "I<lock> covers bytes I<l_start>+I<l_len> up to and including I<l_start>-1.  "
4717 "This is supported by Linux since kernel versions 2.4.21 and 2.5.49."
4718 msgstr ""
4719
4720 #. type: Plain text
4721 #: build/C/man2/fcntl.2:289
4722 msgid ""
4723 "The I<l_type> field can be used to place a read (B<F_RDLCK>)  or a write "
4724 "(B<F_WRLCK>)  lock on a file.  Any number of processes may hold a read lock "
4725 "(shared lock)  on a file region, but only one process may hold a write lock "
4726 "(exclusive lock).  An exclusive lock excludes all other locks, both shared "
4727 "and exclusive.  A single process can hold only one type of lock on a file "
4728 "region; if a new lock is applied to an already-locked region, then the "
4729 "existing lock is converted to the new lock type.  (Such conversions may "
4730 "involve splitting, shrinking, or coalescing with an existing lock if the "
4731 "byte range specified by the new lock does not precisely coincide with the "
4732 "range of the existing lock.)"
4733 msgstr ""
4734
4735 #. type: TP
4736 #: build/C/man2/fcntl.2:289
4737 #, no-wrap
4738 msgid "B<F_SETLK> (I<struct flock *>)"
4739 msgstr ""
4740
4741 #. type: Plain text
4742 #: build/C/man2/fcntl.2:312
4743 msgid ""
4744 "Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>)  or release a "
4745 "lock (when I<l_type> is B<F_UNLCK>)  on the bytes specified by the "
4746 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>.  If a conflicting "
4747 "lock is held by another process, this call returns -1 and sets I<errno> to "
4748 "B<EACCES> or B<EAGAIN>."
4749 msgstr ""
4750
4751 #. type: TP
4752 #: build/C/man2/fcntl.2:312
4753 #, no-wrap
4754 msgid "B<F_SETLKW> (I<struct flock *>)"
4755 msgstr ""
4756
4757 #. type: Plain text
4758 #: build/C/man2/fcntl.2:326
4759 msgid ""
4760 "As for B<F_SETLK>, but if a conflicting lock is held on the file, then wait "
4761 "for that lock to be released.  If a signal is caught while waiting, then the "
4762 "call is interrupted and (after the signal handler has returned)  returns "
4763 "immediately (with return value -1 and I<errno> set to B<EINTR>; see "
4764 "B<signal>(7))."
4765 msgstr ""
4766
4767 #. type: TP
4768 #: build/C/man2/fcntl.2:326
4769 #, no-wrap
4770 msgid "B<F_GETLK> (I<struct flock *>)"
4771 msgstr ""
4772
4773 #. type: Plain text
4774 #: build/C/man2/fcntl.2:350
4775 msgid ""
4776 "On input to this call, I<lock> describes a lock we would like to place on "
4777 "the file.  If the lock could be placed, B<fcntl>()  does not actually place "
4778 "it, but returns B<F_UNLCK> in the I<l_type> field of I<lock> and leaves the "
4779 "other fields of the structure unchanged.  If one or more incompatible locks "
4780 "would prevent this lock being placed, then B<fcntl>()  returns details about "
4781 "one of these locks in the I<l_type>, I<l_whence>, I<l_start>, and I<l_len> "
4782 "fields of I<lock> and sets I<l_pid> to be the PID of the process holding "
4783 "that lock."
4784 msgstr ""
4785
4786 #. type: Plain text
4787 #: build/C/man2/fcntl.2:358
4788 msgid ""
4789 "In order to place a read lock, I<fd> must be open for reading.  In order to "
4790 "place a write lock, I<fd> must be open for writing.  To place both types of "
4791 "lock, open a file read-write."
4792 msgstr ""
4793
4794 #.  (Additional file descriptors referring to the same file
4795 #.  may have been obtained by calls to
4796 #.  .BR open "(2), " dup "(2), " dup2 "(2), or " fcntl ().)
4797 #. type: Plain text
4798 #: build/C/man2/fcntl.2:375
4799 msgid ""
4800 "As well as being removed by an explicit B<F_UNLCK>, record locks are "
4801 "automatically released when the process terminates or if it closes I<any> "
4802 "file descriptor referring to a file on which locks are held.  This is bad: "
4803 "it means that a process can lose the locks on a file like I</etc/passwd> or "
4804 "I</etc/mtab> when for some reason a library function decides to open, read "
4805 "and close it."
4806 msgstr ""
4807
4808 #. type: Plain text
4809 #: build/C/man2/fcntl.2:380
4810 msgid ""
4811 "Record locks are not inherited by a child created via B<fork>(2), but are "
4812 "preserved across an B<execve>(2)."
4813 msgstr ""
4814
4815 #. type: Plain text
4816 #: build/C/man2/fcntl.2:389
4817 msgid ""
4818 "Because of the buffering performed by the B<stdio>(3)  library, the use of "
4819 "record locking with routines in that package should be avoided; use "
4820 "B<read>(2)  and B<write>(2)  instead."
4821 msgstr ""
4822
4823 #. type: SS
4824 #: build/C/man2/fcntl.2:389
4825 #, no-wrap
4826 msgid "Mandatory locking"
4827 msgstr ""
4828
4829 #. type: Plain text
4830 #: build/C/man2/fcntl.2:393
4831 msgid ""
4832 "(Non-POSIX.)  The above record locks may be either advisory or mandatory, "
4833 "and are advisory by default."
4834 msgstr ""
4835
4836 #. type: Plain text
4837 #: build/C/man2/fcntl.2:396
4838 msgid ""
4839 "Advisory locks are not enforced and are useful only between cooperating "
4840 "processes."
4841 msgstr ""
4842
4843 #. type: Plain text
4844 #: build/C/man2/fcntl.2:415
4845 msgid ""
4846 "Mandatory locks are enforced for all processes.  If a process tries to "
4847 "perform an incompatible access (e.g., B<read>(2)  or B<write>(2))  on a file "
4848 "region that has an incompatible mandatory lock, then the result depends upon "
4849 "whether the B<O_NONBLOCK> flag is enabled for its open file description.  If "
4850 "the B<O_NONBLOCK> flag is not enabled, then system call is blocked until the "
4851 "lock is removed or converted to a mode that is compatible with the access.  "
4852 "If the B<O_NONBLOCK> flag is enabled, then the system call fails with the "
4853 "error B<EAGAIN>."
4854 msgstr ""
4855
4856 #. type: Plain text
4857 #: build/C/man2/fcntl.2:432
4858 msgid ""
4859 "To make use of mandatory locks, mandatory locking must be enabled both on "
4860 "the file system that contains the file to be locked, and on the file "
4861 "itself.  Mandatory locking is enabled on a file system using the \"-o mand\" "
4862 "option to B<mount>(8), or the B<MS_MANDLOCK> flag for B<mount>(2).  "
4863 "Mandatory locking is enabled on a file by disabling group execute permission "
4864 "on the file and enabling the set-group-ID permission bit (see B<chmod>(1)  "
4865 "and B<chmod>(2))."
4866 msgstr ""
4867
4868 #. type: Plain text
4869 #: build/C/man2/fcntl.2:435
4870 msgid ""
4871 "The Linux implementation of mandatory locking is unreliable.  See BUGS "
4872 "below."
4873 msgstr ""
4874
4875 #. type: SS
4876 #: build/C/man2/fcntl.2:435
4877 #, no-wrap
4878 msgid "Managing signals"
4879 msgstr ""
4880
4881 #. type: Plain text
4882 #: build/C/man2/fcntl.2:444
4883 msgid ""
4884 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG> and "
4885 "B<F_SETSIG> are used to manage I/O availability signals:"
4886 msgstr ""
4887
4888 #. type: TP
4889 #: build/C/man2/fcntl.2:444
4890 #, no-wrap
4891 msgid "B<F_GETOWN> (I<void>)"
4892 msgstr ""
4893
4894 #. type: Plain text
4895 #: build/C/man2/fcntl.2:457
4896 msgid ""
4897 "Return (as the function result)  the process ID or process group currently "
4898 "receiving B<SIGIO> and B<SIGURG> signals for events on file descriptor "
4899 "I<fd>.  Process IDs are returned as positive values; process group IDs are "
4900 "returned as negative values (but see BUGS below).  I<arg> is ignored."
4901 msgstr ""
4902
4903 #. type: TP
4904 #: build/C/man2/fcntl.2:457
4905 #, no-wrap
4906 msgid "B<F_SETOWN> (I<long>)"
4907 msgstr ""
4908
4909 #. type: Plain text
4910 #: build/C/man2/fcntl.2:474
4911 msgid ""
4912 "Set the process ID or process group ID that will receive B<SIGIO> and "
4913 "B<SIGURG> signals for events on file descriptor I<fd> to the ID given in "
4914 "I<arg>.  A process ID is specified as a positive value; a process group ID "
4915 "is specified as a negative value.  Most commonly, the calling process "
4916 "specifies itself as the owner (that is, I<arg> is specified as "
4917 "B<getpid>(2))."
4918 msgstr ""
4919
4920 #.  From glibc.info:
4921 #. type: Plain text
4922 #: build/C/man2/fcntl.2:491
4923 msgid ""
4924 "If you set the B<O_ASYNC> status flag on a file descriptor by using the "
4925 "B<F_SETFL> command of B<fcntl>(), a B<SIGIO> signal is sent whenever input "
4926 "or output becomes possible on that file descriptor.  B<F_SETSIG> can be used "
4927 "to obtain delivery of a signal other than B<SIGIO>.  If this permission "
4928 "check fails, then the signal is silently discarded."
4929 msgstr ""
4930
4931 #. type: Plain text
4932 #: build/C/man2/fcntl.2:499
4933 msgid ""
4934 "Sending a signal to the owner process (group) specified by B<F_SETOWN> is "
4935 "subject to the same permissions checks as are described for B<kill>(2), "
4936 "where the sending process is the one that employs B<F_SETOWN> (but see BUGS "
4937 "below)."
4938 msgstr ""
4939
4940 #.  The following appears to be rubbish.  It doesn't seem to
4941 #.  be true according to the kernel source, and I can write
4942 #.  a program that gets a terminal-generated SIGIO even though
4943 #.  it is not the foreground process group of the terminal.
4944 #.  -- MTK, 8 Apr 05
4945 #
4946 #.  If the file descriptor
4947 #.  .I fd
4948 #.  refers to a terminal device, then SIGIO
4949 #.  signals are sent to the foreground process group of the terminal.
4950 #. type: Plain text
4951 #: build/C/man2/fcntl.2:523
4952 msgid ""
4953 "If the file descriptor I<fd> refers to a socket, B<F_SETOWN> also selects "
4954 "the recipient of B<SIGURG> signals that are delivered when out-of-band data "
4955 "arrives on that socket.  (B<SIGURG> is sent in any situation where "
4956 "B<select>(2)  would report the socket as having an \"exceptional "
4957 "condition\".)"
4958 msgstr ""
4959
4960 #. type: Plain text
4961 #: build/C/man2/fcntl.2:526
4962 msgid "The following was true in 2.6.x kernels up to and including kernel 2.6.11:"
4963 msgstr ""
4964
4965 #.  The relevant place in the (2.6) kernel source is the
4966 #.  'switch' in fs/fcntl.c::send_sigio_to_task() -- MTK, Apr 2005
4967 #.  send_sigurg()/send_sigurg_to_task() bypasses
4968 #.  kill_fasync()/send_sigio()/send_sigio_to_task()
4969 #.  to directly call send_group_sig_info()
4970 #.      -- MTK, Apr 2005 (kernel 2.6.11)
4971 #. type: Plain text
4972 #: build/C/man2/fcntl.2:566
4973 msgid ""
4974 "If a nonzero value is given to B<F_SETSIG> in a multithreaded process "
4975 "running with a threading library that supports thread groups (e.g., NPTL), "
4976 "then a positive value given to B<F_SETOWN> has a different meaning: instead "
4977 "of being a process ID identifying a whole process, it is a thread ID "
4978 "identifying a specific thread within a process.  Consequently, it may be "
4979 "necessary to pass B<F_SETOWN> the result of B<gettid>(2)  instead of "
4980 "B<getpid>(2)  to get sensible results when B<F_SETSIG> is used.  (In current "
4981 "Linux threading implementations, a main thread's thread ID is the same as "
4982 "its process ID.  This means that a single-threaded program can equally use "
4983 "B<gettid>(2)  or B<getpid>(2)  in this scenario.)  Note, however, that the "
4984 "statements in this paragraph do not apply to the B<SIGURG> signal generated "
4985 "for out-of-band data on a socket: this signal is always sent to either a "
4986 "process or a process group, depending on the value given to B<F_SETOWN>."
4987 msgstr ""
4988
4989 #. type: Plain text
4990 #: build/C/man2/fcntl.2:577
4991 msgid ""
4992 "The above behavior was accidentally dropped in Linux 2.6.12, and won't be "
4993 "restored.  From Linux 2.6.32 onward, use B<F_SETOWN_EX> to target B<SIGIO> "
4994 "and B<SIGURG> signals at a particular thread."
4995 msgstr ""
4996
4997 #. type: TP
4998 #: build/C/man2/fcntl.2:577
4999 #, no-wrap
5000 msgid "B<F_GETOWN_EX> (struct f_owner_ex *) (since Linux 2.6.32)"
5001 msgstr ""
5002
5003 #. type: Plain text
5004 #: build/C/man2/fcntl.2:586
5005 msgid ""
5006 "Return the current file descriptor owner settings as defined by a previous "
5007 "B<F_SETOWN_EX> operation.  The information is returned in the structure "
5008 "pointed to by I<arg>, which has the following form:"
5009 msgstr ""
5010
5011 #. type: Plain text
5012 #: build/C/man2/fcntl.2:593
5013 #, no-wrap
5014 msgid ""
5015 "struct f_owner_ex {\n"
5016 "    int   type;\n"
5017 "    pid_t pid;\n"
5018 "};\n"
5019 msgstr ""
5020
5021 #. type: Plain text
5022 #: build/C/man2/fcntl.2:610
5023 msgid ""
5024 "The I<type> field will have one of the values B<F_OWNER_TID>, "
5025 "B<F_OWNER_PID>, or B<F_OWNER_PGRP>.  The I<pid> field is a positive integer "
5026 "representing a thread ID, process ID, or process group ID.  See "
5027 "B<F_SETOWN_EX> for more details."
5028 msgstr ""
5029
5030 #. type: TP
5031 #: build/C/man2/fcntl.2:610
5032 #, no-wrap
5033 msgid "B<F_SETOWN_EX> (struct f_owner_ex *) (since Linux 2.6.32)"
5034 msgstr ""
5035
5036 #. type: Plain text
5037 #: build/C/man2/fcntl.2:626
5038 msgid ""
5039 "This operation performs a similar task to B<F_SETOWN>.  It allows the caller "
5040 "to direct I/O availability signals to a specific thread, process, or process "
5041 "group.  The caller specifies the target of signals via I<arg>, which is a "
5042 "pointer to a I<f_owner_ex> structure.  The I<type> field has one of the "
5043 "following values, which define how I<pid> is interpreted:"
5044 msgstr ""
5045
5046 #. type: TP
5047 #: build/C/man2/fcntl.2:627
5048 #, no-wrap
5049 msgid "B<F_OWNER_TID>"
5050 msgstr ""
5051
5052 #. type: Plain text
5053 #: build/C/man2/fcntl.2:636
5054 msgid ""
5055 "Send the signal to the thread whose thread ID (the value returned by a call "
5056 "to B<clone>(2)  or B<gettid>(2))  is specified in I<pid>."
5057 msgstr ""
5058
5059 #. type: TP
5060 #: build/C/man2/fcntl.2:636
5061 #, no-wrap
5062 msgid "B<F_OWNER_PID>"
5063 msgstr ""
5064
5065 #. type: Plain text
5066 #: build/C/man2/fcntl.2:641
5067 msgid "Send the signal to the process whose ID is specified in I<pid>."
5068 msgstr ""
5069
5070 #. type: TP
5071 #: build/C/man2/fcntl.2:641
5072 #, no-wrap
5073 msgid "B<F_OWNER_PGRP>"
5074 msgstr ""
5075
5076 #. type: Plain text
5077 #: build/C/man2/fcntl.2:649
5078 msgid ""
5079 "Send the signal to the process group whose ID is specified in I<pid>.  (Note "
5080 "that, unlike with B<F_SETOWN>, a process group ID is specified as a positive "
5081 "value here.)"
5082 msgstr ""
5083
5084 #. type: TP
5085 #: build/C/man2/fcntl.2:650
5086 #, no-wrap
5087 msgid "B<F_GETSIG> (I<void>)"
5088 msgstr ""
5089
5090 #. type: Plain text
5091 #: build/C/man2/fcntl.2:665
5092 msgid ""
5093 "Return (as the function result)  the signal sent when input or output "
5094 "becomes possible.  A value of zero means B<SIGIO> is sent.  Any other value "
5095 "(including B<SIGIO>)  is the signal sent instead, and in this case "
5096 "additional info is available to the signal handler if installed with "
5097 "B<SA_SIGINFO>.  I<arg> is ignored."
5098 msgstr ""
5099
5100 #. type: TP
5101 #: build/C/man2/fcntl.2:665
5102 #, no-wrap
5103 msgid "B<F_SETSIG> (I<long>)"
5104 msgstr ""
5105
5106 #
5107 #.  The following was true only up until 2.6.11:
5108 #
5109 #.  Additionally, passing a nonzero value to
5110 #.  .B F_SETSIG
5111 #.  changes the signal recipient from a whole process to a specific thread
5112 #.  within a process.
5113 #.  See the description of
5114 #.  .B F_SETOWN
5115 #.  for more details.
5116 #. type: Plain text
5117 #: build/C/man2/fcntl.2:688
5118 msgid ""
5119 "Set the signal sent when input or output becomes possible to the value given "
5120 "in I<arg>.  A value of zero means to send the default B<SIGIO> signal.  Any "
5121 "other value (including B<SIGIO>)  is the signal to send instead, and in this "
5122 "case additional info is available to the signal handler if installed with "
5123 "B<SA_SIGINFO>."
5124 msgstr ""
5125
5126 #. type: Plain text
5127 #: build/C/man2/fcntl.2:716
5128 msgid ""
5129 "By using B<F_SETSIG> with a nonzero value, and setting B<SA_SIGINFO> for the "
5130 "signal handler (see B<sigaction>(2)), extra information about I/O events is "
5131 "passed to the handler in a I<siginfo_t> structure.  If the I<si_code> field "
5132 "indicates the source is B<SI_SIGIO>, the I<si_fd> field gives the file "
5133 "descriptor associated with the event.  Otherwise, there is no indication "
5134 "which file descriptors are pending, and you should use the usual mechanisms "
5135 "(B<select>(2), B<poll>(2), B<read>(2)  with B<O_NONBLOCK> set etc.) to "
5136 "determine which file descriptors are available for I/O."
5137 msgstr ""
5138
5139 #. type: Plain text
5140 #: build/C/man2/fcntl.2:725
5141 msgid ""
5142 "By selecting a real time signal (value E<gt>= B<SIGRTMIN>), multiple I/O "
5143 "events may be queued using the same signal numbers.  (Queuing is dependent "
5144 "on available memory).  Extra information is available if B<SA_SIGINFO> is "
5145 "set for the signal handler, as above."
5146 msgstr ""
5147
5148 #.  See fs/fcntl.c::send_sigio_to_task() (2.4/2.6) sources -- MTK, Apr 05
5149 #. type: Plain text
5150 #: build/C/man2/fcntl.2:738
5151 msgid ""
5152 "Note that Linux imposes a limit on the number of real-time signals that may "
5153 "be queued to a process (see B<getrlimit>(2)  and B<signal>(7))  and if this "
5154 "limit is reached, then the kernel reverts to delivering B<SIGIO>, and this "
5155 "signal is delivered to the entire process rather than to a specific thread."
5156 msgstr ""
5157
5158 #. type: Plain text
5159 #: build/C/man2/fcntl.2:745
5160 msgid ""
5161 "Using these mechanisms, a program can implement fully asynchronous I/O "
5162 "without using B<select>(2)  or B<poll>(2)  most of the time."
5163 msgstr ""
5164
5165 #. type: Plain text
5166 #: build/C/man2/fcntl.2:761
5167 msgid ""
5168 "The use of B<O_ASYNC>, B<F_GETOWN>, B<F_SETOWN> is specific to BSD and "
5169 "Linux.  B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and B<F_SETSIG> are "
5170 "Linux-specific.  POSIX has asynchronous I/O and the I<aio_sigevent> "
5171 "structure to achieve similar things; these are also available in Linux as "
5172 "part of the GNU C Library (Glibc)."
5173 msgstr ""
5174
5175 #. type: SS
5176 #: build/C/man2/fcntl.2:761
5177 #, no-wrap
5178 msgid "Leases"
5179 msgstr ""
5180
5181 #. type: Plain text
5182 #: build/C/man2/fcntl.2:776
5183 msgid ""
5184 "B<F_SETLEASE> and B<F_GETLEASE> (Linux 2.4 onward) are used (respectively) "
5185 "to establish a new lease, and retrieve the current lease, on the open file "
5186 "description referred to by the file descriptor I<fd>.  A file lease provides "
5187 "a mechanism whereby the process holding the lease (the \"lease holder\") is "
5188 "notified (via delivery of a signal)  when a process (the \"lease breaker\") "
5189 "tries to B<open>(2)  or B<truncate>(2)  the file referred to by that file "
5190 "descriptor."
5191 msgstr ""
5192
5193 #. type: TP
5194 #: build/C/man2/fcntl.2:776
5195 #, no-wrap
5196 msgid "B<F_SETLEASE> (I<long>)"
5197 msgstr ""
5198
5199 #. type: Plain text
5200 #: build/C/man2/fcntl.2:781
5201 msgid ""
5202 "Set or remove a file lease according to which of the following values is "
5203 "specified in the integer I<arg>:"
5204 msgstr ""
5205
5206 #. type: TP
5207 #: build/C/man2/fcntl.2:782
5208 #, no-wrap
5209 msgid "B<F_RDLCK>"
5210 msgstr ""
5211
5212 #.  The following became true in kernel 2.6.10:
5213 #.  See the man-pages-2.09 Changelog for further info.
5214 #. type: Plain text
5215 #: build/C/man2/fcntl.2:791
5216 msgid ""
5217 "Take out a read lease.  This will cause the calling process to be notified "
5218 "when the file is opened for writing or is truncated.  A read lease can only "
5219 "be placed on a file descriptor that is opened read-only."
5220 msgstr ""
5221
5222 #. type: TP
5223 #: build/C/man2/fcntl.2:791
5224 #, no-wrap
5225 msgid "B<F_WRLCK>"
5226 msgstr ""
5227
5228 #. type: Plain text
5229 #: build/C/man2/fcntl.2:798
5230 msgid ""
5231 "Take out a write lease.  This will cause the caller to be notified when the "
5232 "file is opened for reading or writing or is truncated.  A write lease may be "
5233 "placed on a file only if there are no other open file descriptors for the "
5234 "file."
5235 msgstr ""
5236
5237 #. type: TP
5238 #: build/C/man2/fcntl.2:798
5239 #, no-wrap
5240 msgid "B<F_UNLCK>"
5241 msgstr ""
5242
5243 #. type: Plain text
5244 #: build/C/man2/fcntl.2:801
5245 msgid "Remove our lease from the file."
5246 msgstr ""
5247
5248 #. type: Plain text
5249 #: build/C/man2/fcntl.2:815
5250 msgid ""
5251 "Leases are associated with an open file description (see B<open>(2)).  This "
5252 "means that duplicate file descriptors (created by, for example, B<fork>(2)  "
5253 "or B<dup>(2))  refer to the same lease, and this lease may be modified or "
5254 "released using any of these descriptors.  Furthermore, the lease is released "
5255 "by either an explicit B<F_UNLCK> operation on any of these duplicate "
5256 "descriptors, or when all such descriptors have been closed."
5257 msgstr ""
5258
5259 #. type: Plain text
5260 #: build/C/man2/fcntl.2:822
5261 msgid ""
5262 "Leases may only be taken out on regular files.  An unprivileged process may "
5263 "only take out a lease on a file whose UID (owner) matches the file system "
5264 "UID of the process.  A process with the B<CAP_LEASE> capability may take out "
5265 "leases on arbitrary files."
5266 msgstr ""
5267
5268 #. type: TP
5269 #: build/C/man2/fcntl.2:822
5270 #, no-wrap
5271 msgid "B<F_GETLEASE> (I<void>)"
5272 msgstr ""
5273
5274 #. type: Plain text
5275 #: build/C/man2/fcntl.2:831
5276 msgid ""
5277 "Indicates what type of lease is associated with the file descriptor I<fd> by "
5278 "returning either B<F_RDLCK>, B<F_WRLCK>, or B<F_UNLCK>, indicating, "
5279 "respectively, a read lease , a write lease, or no lease.  I<arg> is ignored."
5280 msgstr ""
5281
5282 #. type: Plain text
5283 #: build/C/man2/fcntl.2:862
5284 msgid ""
5285 "When a process (the \"lease breaker\") performs an B<open>(2)  or "
5286 "B<truncate>(2)  that conflicts with a lease established via B<F_SETLEASE>, "
5287 "the system call is blocked by the kernel and the kernel notifies the lease "
5288 "holder by sending it a signal (B<SIGIO> by default).  The lease holder "
5289 "should respond to receipt of this signal by doing whatever cleanup is "
5290 "required in preparation for the file to be accessed by another process "
5291 "(e.g., flushing cached buffers) and then either remove or downgrade its "
5292 "lease.  A lease is removed by performing an B<F_SETLEASE> command specifying "
5293 "I<arg> as B<F_UNLCK>.  If the lease holder currently holds a write lease on "
5294 "the file, and the lease breaker is opening the file for reading, then it is "
5295 "sufficient for the lease holder to downgrade the lease to a read lease.  "
5296 "This is done by performing an B<F_SETLEASE> command specifying I<arg> as "
5297 "B<F_RDLCK>."
5298 msgstr ""
5299
5300 #. type: Plain text
5301 #: build/C/man2/fcntl.2:867
5302 msgid ""
5303 "If the lease holder fails to downgrade or remove the lease within the number "
5304 "of seconds specified in I</proc/sys/fs/lease-break-time> then the kernel "
5305 "forcibly removes or downgrades the lease holder's lease."
5306 msgstr ""
5307
5308 #. type: Plain text
5309 #: build/C/man2/fcntl.2:871
5310 msgid ""
5311 "Once the lease has been voluntarily or forcibly removed or downgraded, and "
5312 "assuming the lease breaker has not unblocked its system call, the kernel "
5313 "permits the lease breaker's system call to proceed."
5314 msgstr ""
5315
5316 #. type: Plain text
5317 #: build/C/man2/fcntl.2:892
5318 msgid ""
5319 "If the lease breaker's blocked B<open>(2)  or B<truncate>(2)  is interrupted "
5320 "by a signal handler, then the system call fails with the error B<EINTR>, but "
5321 "the other steps still occur as described above.  If the lease breaker is "
5322 "killed by a signal while blocked in B<open>(2)  or B<truncate>(2), then the "
5323 "other steps still occur as described above.  If the lease breaker specifies "
5324 "the B<O_NONBLOCK> flag when calling B<open>(2), then the call immediately "
5325 "fails with the error B<EWOULDBLOCK>, but the other steps still occur as "
5326 "described above."
5327 msgstr ""
5328
5329 #. type: Plain text
5330 #: build/C/man2/fcntl.2:913
5331 msgid ""
5332 "The default signal used to notify the lease holder is B<SIGIO>, but this can "
5333 "be changed using the B<F_SETSIG> command to B<fcntl>().  If a B<F_SETSIG> "
5334 "command is performed (even one specifying B<SIGIO>), and the signal handler "
5335 "is established using B<SA_SIGINFO>, then the handler will receive a "
5336 "I<siginfo_t> structure as its second argument, and the I<si_fd> field of "
5337 "this argument will hold the descriptor of the leased file that has been "
5338 "accessed by another process.  (This is useful if the caller holds leases "
5339 "against multiple files)."
5340 msgstr ""
5341
5342 #. type: SS
5343 #: build/C/man2/fcntl.2:913
5344 #, no-wrap
5345 msgid "File and directory change notification (dnotify)"
5346 msgstr ""
5347
5348 #. type: TP
5349 #: build/C/man2/fcntl.2:914
5350 #, no-wrap
5351 msgid "B<F_NOTIFY> (I<long>)"
5352 msgstr ""
5353
5354 #. type: Plain text
5355 #: build/C/man2/fcntl.2:924
5356 msgid ""
5357 "(Linux 2.4 onward)  Provide notification when the directory referred to by "
5358 "I<fd> or any of the files that it contains is changed.  The events to be "
5359 "notified are specified in I<arg>, which is a bit mask specified by ORing "
5360 "together zero or more of the following bits:"
5361 msgstr ""
5362
5363 #. type: TP
5364 #: build/C/man2/fcntl.2:927
5365 #, no-wrap
5366 msgid "B<DN_ACCESS>"
5367 msgstr ""
5368
5369 #. type: Plain text
5370 #: build/C/man2/fcntl.2:930
5371 msgid "A file was accessed (read, pread, readv)"
5372 msgstr ""
5373
5374 #. type: TP
5375 #: build/C/man2/fcntl.2:930
5376 #, no-wrap
5377 msgid "B<DN_MODIFY>"
5378 msgstr ""
5379
5380 #. type: Plain text
5381 #: build/C/man2/fcntl.2:933
5382 msgid "A file was modified (write, pwrite, writev, truncate, ftruncate)."
5383 msgstr ""
5384
5385 #. type: TP
5386 #: build/C/man2/fcntl.2:933
5387 #, no-wrap
5388 msgid "B<DN_CREATE>"
5389 msgstr ""
5390
5391 #. type: Plain text
5392 #: build/C/man2/fcntl.2:936
5393 msgid "A file was created (open, creat, mknod, mkdir, link, symlink, rename)."
5394 msgstr ""
5395
5396 #. type: TP
5397 #: build/C/man2/fcntl.2:936
5398 #, no-wrap
5399 msgid "B<DN_DELETE>"
5400 msgstr ""
5401
5402 #. type: Plain text
5403 #: build/C/man2/fcntl.2:939
5404 msgid "A file was unlinked (unlink, rename to another directory, rmdir)."
5405 msgstr ""
5406
5407 #. type: TP
5408 #: build/C/man2/fcntl.2:939
5409 #, no-wrap
5410 msgid "B<DN_RENAME>"
5411 msgstr ""
5412
5413 #. type: Plain text
5414 #: build/C/man2/fcntl.2:942
5415 msgid "A file was renamed within this directory (rename)."
5416 msgstr ""
5417
5418 #. type: TP
5419 #: build/C/man2/fcntl.2:942
5420 #, no-wrap
5421 msgid "B<DN_ATTRIB>"
5422 msgstr ""
5423
5424 #. type: Plain text
5425 #: build/C/man2/fcntl.2:945
5426 msgid "The attributes of a file were changed (chown, chmod, utime[s])."
5427 msgstr ""
5428
5429 #. type: Plain text
5430 #: build/C/man2/fcntl.2:953
5431 msgid ""
5432 "(In order to obtain these definitions, the B<_GNU_SOURCE> feature test macro "
5433 "must be defined before including I<any> header files.)"
5434 msgstr ""
5435
5436 #. type: Plain text
5437 #: build/C/man2/fcntl.2:961
5438 msgid ""
5439 "Directory notifications are normally \"one-shot\", and the application must "
5440 "reregister to receive further notifications.  Alternatively, if "
5441 "B<DN_MULTISHOT> is included in I<arg>, then notification will remain in "
5442 "effect until explicitly removed."
5443 msgstr ""
5444
5445 #.  The following does seem a poor API-design choice...
5446 #. type: Plain text
5447 #: build/C/man2/fcntl.2:973
5448 msgid ""
5449 "A series of B<F_NOTIFY> requests is cumulative, with the events in I<arg> "
5450 "being added to the set already monitored.  To disable notification of all "
5451 "events, make an B<F_NOTIFY> call specifying I<arg> as 0."
5452 msgstr ""
5453
5454 #. type: Plain text
5455 #: build/C/man2/fcntl.2:991
5456 msgid ""
5457 "Notification occurs via delivery of a signal.  The default signal is "
5458 "B<SIGIO>, but this can be changed using the B<F_SETSIG> command to "
5459 "B<fcntl>().  In the latter case, the signal handler receives a I<siginfo_t> "
5460 "structure as its second argument (if the handler was established using "
5461 "B<SA_SIGINFO>)  and the I<si_fd> field of this structure contains the file "
5462 "descriptor which generated the notification (useful when establishing "
5463 "notification on multiple directories)."
5464 msgstr ""
5465
5466 #. type: Plain text
5467 #: build/C/man2/fcntl.2:996
5468 msgid ""
5469 "Especially when using B<DN_MULTISHOT>, a real time signal should be used for "
5470 "notification, so that multiple notifications can be queued."
5471 msgstr ""
5472
5473 #. type: Plain text
5474 #: build/C/man2/fcntl.2:1005
5475 msgid ""
5476 "B<NOTE:> New applications should use the I<inotify> interface (available "
5477 "since kernel 2.6.13), which provides a much superior interface for obtaining "
5478 "notifications of file system events.  See B<inotify>(7)."
5479 msgstr ""
5480
5481 #. type: SS
5482 #: build/C/man2/fcntl.2:1005
5483 #, no-wrap
5484 msgid "Changing the capacity of a pipe"
5485 msgstr ""
5486
5487 #. type: TP
5488 #: build/C/man2/fcntl.2:1006
5489 #, no-wrap
5490 msgid "B<F_SETPIPE_SZ> (I<long>; since Linux 2.6.35)"
5491 msgstr ""
5492
5493 #. type: Plain text
5494 #: build/C/man2/fcntl.2:1037
5495 msgid ""
5496 "Change the capacity of the pipe referred to by I<fd> to be at least I<arg> "
5497 "bytes.  An unprivileged process can adjust the pipe capacity to any value "
5498 "between the system page size and the limit defined in "
5499 "I</proc/sys/fs/pipe-size-max> (see B<proc>(5)).  Attempts to set the pipe "
5500 "capacity below the page size are silently rounded up to the page size.  "
5501 "Attempts by an unprivileged process to set the pipe capacity above the limit "
5502 "in I</proc/sys/fs/pipe-size-max> yield the error B<EPERM>; a privileged "
5503 "process (B<CAP_SYS_RESOURCE>)  can override the limit.  When allocating the "
5504 "buffer for the pipe, the kernel may use a capacity larger than I<arg>, if "
5505 "that is convenient for the implementation.  The B<F_GETPIPE_SZ> operation "
5506 "returns the actual size used.  Attempting to set the pipe capacity smaller "
5507 "than the amount of buffer space currently used to store data produces the "
5508 "error B<EBUSY>."
5509 msgstr ""
5510
5511 #. type: TP
5512 #: build/C/man2/fcntl.2:1037
5513 #, no-wrap
5514 msgid "B<F_GETPIPE_SZ> (I<void>; since Linux 2.6.35)"
5515 msgstr ""
5516
5517 #. type: Plain text
5518 #: build/C/man2/fcntl.2:1041
5519 msgid ""
5520 "Return (as the function result) the capacity of the pipe referred to by "
5521 "I<fd>."
5522 msgstr ""
5523
5524 #. type: Plain text
5525 #: build/C/man2/fcntl.2:1043
5526 msgid "For a successful call, the return value depends on the operation:"
5527 msgstr ""
5528
5529 #. type: TP
5530 #: build/C/man2/fcntl.2:1043
5531 #, no-wrap
5532 msgid "B<F_DUPFD>"
5533 msgstr ""
5534
5535 #. type: Plain text
5536 #: build/C/man2/fcntl.2:1046
5537 msgid "The new descriptor."
5538 msgstr ""
5539
5540 #. type: TP
5541 #: build/C/man2/fcntl.2:1046
5542 #, no-wrap
5543 msgid "B<F_GETFD>"
5544 msgstr ""
5545
5546 #. type: Plain text
5547 #: build/C/man2/fcntl.2:1049
5548 msgid "Value of file descriptor flags."
5549 msgstr ""
5550
5551 #. type: TP
5552 #: build/C/man2/fcntl.2:1049
5553 #, no-wrap
5554 msgid "B<F_GETFL>"
5555 msgstr ""
5556
5557 #. type: Plain text
5558 #: build/C/man2/fcntl.2:1052
5559 msgid "Value of file status flags."
5560 msgstr ""
5561
5562 #. type: TP
5563 #: build/C/man2/fcntl.2:1052
5564 #, no-wrap
5565 msgid "B<F_GETLEASE>"
5566 msgstr ""
5567
5568 #. type: Plain text
5569 #: build/C/man2/fcntl.2:1055
5570 msgid "Type of lease held on file descriptor."
5571 msgstr ""
5572
5573 #. type: TP
5574 #: build/C/man2/fcntl.2:1055
5575 #, no-wrap
5576 msgid "B<F_GETOWN>"
5577 msgstr ""
5578
5579 #. type: Plain text
5580 #: build/C/man2/fcntl.2:1058
5581 msgid "Value of descriptor owner."
5582 msgstr ""
5583
5584 #. type: TP
5585 #: build/C/man2/fcntl.2:1058
5586 #, no-wrap
5587 msgid "B<F_GETSIG>"
5588 msgstr ""
5589
5590 #. type: Plain text
5591 #: build/C/man2/fcntl.2:1064
5592 msgid ""
5593 "Value of signal sent when read or write becomes possible, or zero for "
5594 "traditional B<SIGIO> behavior."
5595 msgstr ""
5596
5597 #. type: TP
5598 #: build/C/man2/fcntl.2:1064
5599 #, no-wrap
5600 msgid "B<F_GETPIPE_SZ>"
5601 msgstr ""
5602
5603 #. type: Plain text
5604 #: build/C/man2/fcntl.2:1067
5605 msgid "The pipe capacity."
5606 msgstr ""
5607
5608 #. type: TP
5609 #: build/C/man2/fcntl.2:1067
5610 #, no-wrap
5611 msgid "All other commands"
5612 msgstr ""
5613
5614 #. type: Plain text
5615 #: build/C/man2/fcntl.2:1070
5616 msgid "Zero."
5617 msgstr ""
5618
5619 #. type: Plain text
5620 #: build/C/man2/fcntl.2:1074
5621 msgid "On error, -1 is returned, and I<errno> is set appropriately."
5622 msgstr ""
5623
5624 #. type: TP
5625 #: build/C/man2/fcntl.2:1075 build/C/man3/lockf.3:116
5626 #, no-wrap
5627 msgid "B<EACCES> or B<EAGAIN>"
5628 msgstr ""
5629
5630 #. type: Plain text
5631 #: build/C/man2/fcntl.2:1078
5632 msgid "Operation is prohibited by locks held by other processes."
5633 msgstr ""
5634
5635 #. type: TP
5636 #: build/C/man2/fcntl.2:1078 build/C/man2/fork.2:168 build/C/man2/fork.2:173
5637 #, no-wrap
5638 msgid "B<EAGAIN>"
5639 msgstr ""
5640
5641 #. type: Plain text
5642 #: build/C/man2/fcntl.2:1082
5643 msgid ""
5644 "The operation is prohibited because the file has been memory-mapped by "
5645 "another process."
5646 msgstr ""
5647
5648 #. type: Plain text
5649 #: build/C/man2/fcntl.2:1091
5650 msgid ""
5651 "I<fd> is not an open file descriptor, or the command was B<F_SETLK> or "
5652 "B<F_SETLKW> and the file descriptor open mode doesn't match with the type of "
5653 "lock requested."
5654 msgstr ""
5655
5656 #. type: TP
5657 #: build/C/man2/fcntl.2:1091 build/C/man3/lockf.3:136
5658 #, no-wrap
5659 msgid "B<EDEADLK>"
5660 msgstr ""
5661
5662 #. type: Plain text
5663 #: build/C/man2/fcntl.2:1096
5664 msgid ""
5665 "It was detected that the specified B<F_SETLKW> command would cause a "
5666 "deadlock."
5667 msgstr ""
5668
5669 #. type: Plain text
5670 #: build/C/man2/fcntl.2:1100
5671 msgid "I<lock> is outside your accessible address space."
5672 msgstr ""
5673
5674 #. type: Plain text
5675 #: build/C/man2/fcntl.2:1112
5676 msgid ""
5677 "For B<F_SETLKW>, the command was interrupted by a signal; see B<signal>(7).  "
5678 "For B<F_GETLK> and B<F_SETLK>, the command was interrupted by a signal "
5679 "before the lock was checked or acquired.  Most likely when locking a remote "
5680 "file (e.g., locking over NFS), but can sometimes happen locally."
5681 msgstr ""
5682
5683 #. type: Plain text
5684 #: build/C/man2/fcntl.2:1122
5685 msgid ""
5686 "For B<F_DUPFD>, I<arg> is negative or is greater than the maximum allowable "
5687 "value.  For B<F_SETSIG>, I<arg> is not an allowable signal number."
5688 msgstr ""
5689
5690 #. type: Plain text
5691 #: build/C/man2/fcntl.2:1127
5692 msgid ""
5693 "For B<F_DUPFD>, the process already has the maximum number of file "
5694 "descriptors open."
5695 msgstr ""
5696
5697 #. type: TP
5698 #: build/C/man2/fcntl.2:1127 build/C/man2/flock.2:129 build/C/man3/lockf.3:145
5699 #, no-wrap
5700 msgid "B<ENOLCK>"
5701 msgstr ""
5702
5703 #. type: Plain text
5704 #: build/C/man2/fcntl.2:1131
5705 msgid ""
5706 "Too many segment locks open, lock table is full, or a remote locking "
5707 "protocol failed (e.g., locking over NFS)."
5708 msgstr ""
5709
5710 #. type: Plain text
5711 #: build/C/man2/fcntl.2:1136
5712 msgid ""
5713 "Attempted to clear the B<O_APPEND> flag on a file that has the append-only "
5714 "attribute set."
5715 msgstr ""
5716
5717 #. type: Plain text
5718 #: build/C/man2/fcntl.2:1149
5719 msgid ""
5720 "SVr4, 4.3BSD, POSIX.1-2001.  Only the operations B<F_DUPFD>, B<F_GETFD>, "
5721 "B<F_SETFD>, B<F_GETFL>, B<F_SETFL>, B<F_GETLK>, B<F_SETLK> and B<F_SETLKW>, "
5722 "are specified in POSIX.1-2001."
5723 msgstr ""
5724
5725 #. type: Plain text
5726 #: build/C/man2/fcntl.2:1161
5727 msgid ""
5728 "B<F_GETOWN> and B<F_SETOWN> are specified in POSIX.1-2001.  (To get their "
5729 "definitions, define B<BSD_SOURCE>, or B<_XOPEN_SOURCE> with the value 500 or "
5730 "greater, or define B<_POSIX_C_SOURCE> with the value 200809L or greater.)"
5731 msgstr ""
5732
5733 #. type: Plain text
5734 #: build/C/man2/fcntl.2:1169
5735 msgid ""
5736 "B<F_DUPFD_CLOEXEC> is specified in POSIX.1-2008.  (To get this definition, "
5737 "define B<_POSIX_C_SOURCE> with the value 200809L or greater, or "
5738 "B<_XOPEN_SOURCE> with the value 700 or greater.)"
5739 msgstr ""
5740
5741 #.  .PP
5742 #.  SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
5743 #. type: Plain text
5744 #: build/C/man2/fcntl.2:1186
5745 msgid ""
5746 "B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_SETPIPE_SZ>, B<F_GETPIPE_SZ>, "
5747 "B<F_GETSIG>, B<F_SETSIG>, B<F_NOTIFY>, B<F_GETLEASE>, and B<F_SETLEASE> are "
5748 "Linux-specific.  (Define the B<_GNU_SOURCE> macro to obtain these "
5749 "definitions.)"
5750 msgstr ""
5751
5752 #. type: Plain text
5753 #: build/C/man2/fcntl.2:1207
5754 msgid ""
5755 "The original Linux B<fcntl>()  system call was not designed to handle large "
5756 "file offsets (in the I<flock> structure).  Consequently, an B<fcntl64>()  "
5757 "system call was added in Linux 2.4.  The newer system call employs a "
5758 "different structure for file locking, I<flock64>, and corresponding "
5759 "commands, B<F_GETLK64>, B<F_SETLK64>, and B<F_SETLKW64>.  However, these "
5760 "details can be ignored by applications using glibc, whose B<fcntl>()  "
5761 "wrapper function transparently employs the more recent system call where it "
5762 "is available."
5763 msgstr ""
5764
5765 #. type: Plain text
5766 #: build/C/man2/fcntl.2:1212
5767 msgid ""
5768 "The errors returned by B<dup2>(2)  are different from those returned by "
5769 "B<F_DUPFD>."
5770 msgstr ""
5771
5772 #. type: Plain text
5773 #: build/C/man2/fcntl.2:1218
5774 msgid ""
5775 "Since kernel 2.0, there is no interaction between the types of lock placed "
5776 "by B<flock>(2)  and B<fcntl>()."
5777 msgstr ""
5778
5779 #.  e.g., Solaris 8 documents this field in fcntl(2), and Irix 6.5
5780 #.  documents it in fcntl(5).  mtk, May 2007
5781 #. type: Plain text
5782 #: build/C/man2/fcntl.2:1229
5783 msgid ""
5784 "Several systems have more fields in I<struct flock> such as, for example, "
5785 "I<l_sysid>.  Clearly, I<l_pid> alone is not going to be very useful if the "
5786 "process holding the lock may live on a different machine."
5787 msgstr ""
5788
5789 #.  glibc source: sysdeps/unix/sysv/linux/i386/sysdep.h
5790 #.  mtk, Dec 04: some limited testing on alpha and ia64 seems to
5791 #.  indicate that ANY negative PGID value will cause F_GETOWN
5792 #.  to misinterpret the return as an error. Some other architectures
5793 #.  seem to have the same range check as i386.
5794 #. type: Plain text
5795 #: build/C/man2/fcntl.2:1255
5796 msgid ""
5797 "A limitation of the Linux system call conventions on some architectures "
5798 "(notably i386) means that if a (negative)  process group ID to be returned "
5799 "by B<F_GETOWN> falls in the range -1 to -4095, then the return value is "
5800 "wrongly interpreted by glibc as an error in the system call; that is, the "
5801 "return value of B<fcntl>()  will be -1, and I<errno> will contain the "
5802 "(positive) process group ID.  The Linux-specific B<F_GETOWN_EX> operation "
5803 "avoids this problem.  Since glibc version 2.11, glibc makes the kernel "
5804 "B<F_GETOWN> problem invisible by implementing B<F_GETOWN> using "
5805 "B<F_GETOWN_EX>."
5806 msgstr ""
5807
5808 #. type: Plain text
5809 #: build/C/man2/fcntl.2:1272
5810 msgid ""
5811 "In Linux 2.4 and earlier, there is bug that can occur when an unprivileged "
5812 "process uses B<F_SETOWN> to specify the owner of a socket file descriptor as "
5813 "a process (group) other than the caller.  In this case, B<fcntl>()  can "
5814 "return -1 with I<errno> set to B<EPERM>, even when the owner process (group) "
5815 "is one that the caller has permission to send signals to.  Despite this "
5816 "error return, the file descriptor owner is set, and signals will be sent to "
5817 "the owner."
5818 msgstr ""
5819
5820 #.  http://marc.info/?l=linux-kernel&m=119013491707153&w=2
5821 #. type: Plain text
5822 #: build/C/man2/fcntl.2:1287
5823 msgid ""
5824 "The implementation of mandatory locking in all known versions of Linux is "
5825 "subject to race conditions which render it unreliable: a B<write>(2)  call "
5826 "that overlaps with a lock may modify data after the mandatory lock is "
5827 "acquired; a B<read>(2)  call that overlaps with a lock may detect changes to "
5828 "data that were made only after a write lock was acquired.  Similar races "
5829 "exist between mandatory locks and B<mmap>(2).  It is therefore inadvisable "
5830 "to rely on mandatory locking."
5831 msgstr ""
5832
5833 #. type: Plain text
5834 #: build/C/man2/fcntl.2:1295
5835 msgid ""
5836 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
5837 "B<capabilities>(7), B<feature_test_macros>(7)"
5838 msgstr ""
5839
5840 #. type: Plain text
5841 #: build/C/man2/fcntl.2:1309
5842 msgid ""
5843 "See also I<locks.txt>, I<mandatory-locking.txt>, and I<dnotify.txt> in the "
5844 "kernel source directory I<Documentation/filesystems/>.  (On older kernels, "
5845 "these files are directly under the I<Documentation/> directory, and "
5846 "I<mandatory-locking.txt> is called I<mandatory.txt>.)"
5847 msgstr ""
5848
5849 #. type: TH
5850 #: build/C/man3/fexecve.3:25
5851 #, no-wrap
5852 msgid "FEXECVE"
5853 msgstr ""
5854
5855 #. type: TH
5856 #: build/C/man3/fexecve.3:25
5857 #, no-wrap
5858 msgid "2010-09-15"
5859 msgstr ""
5860
5861 #. type: Plain text
5862 #: build/C/man3/fexecve.3:28
5863 msgid "fexecve - execute program specified via file descriptor"
5864 msgstr ""
5865
5866 #. type: Plain text
5867 #: build/C/man3/fexecve.3:33
5868 #, no-wrap
5869 msgid ""
5870 "B<int fexecve(int >I<fd>B<, char *const >I<argv>B<[], char *const "
5871 ">I<envp>B<[]);>\n"
5872 msgstr ""
5873
5874 #. type: Plain text
5875 #: build/C/man3/fexecve.3:41
5876 msgid "B<fexecve>():"
5877 msgstr ""
5878
5879 #. type: TP
5880 #: build/C/man3/fexecve.3:44
5881 #, no-wrap
5882 msgid "Since glibc 2.10:"
5883 msgstr ""
5884
5885 #. type: Plain text
5886 #: build/C/man3/fexecve.3:47
5887 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 700 || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
5888 msgstr ""
5889
5890 #. type: TP
5891 #: build/C/man3/fexecve.3:47
5892 #, no-wrap
5893 msgid "Before glibc 2.10:"
5894 msgstr ""
5895
5896 #. type: Plain text
5897 #: build/C/man3/fexecve.3:50 build/C/man3/getcwd.3:52
5898 msgid "_GNU_SOURCE"
5899 msgstr ""
5900
5901 #.  POSIX.1-2008 specifies the O_EXEC flag for open as an alternative,
5902 #.  but Linux doesn't support this flag yet.
5903 #. type: Plain text
5904 #: build/C/man3/fexecve.3:67
5905 msgid ""
5906 "B<fexecve>()  performs the same task as B<execve>(2), with the difference "
5907 "that the file to be executed is specified via a file descriptor, I<fd>, "
5908 "rather than via a pathname.  The file descriptor I<fd> must be opened "
5909 "read-only, and the caller must have permission to execute the file that it "
5910 "refers to."
5911 msgstr ""
5912
5913 #. type: Plain text
5914 #: build/C/man3/fexecve.3:74
5915 msgid ""
5916 "A successful call to B<fexecve>()  never returns.  On error, the function "
5917 "returns, with a result value of -1, and I<errno> is set appropriately."
5918 msgstr ""
5919
5920 #. type: Plain text
5921 #: build/C/man3/fexecve.3:78
5922 msgid "Errors are as for B<execve>(2), with the following additions:"
5923 msgstr ""
5924
5925 #. type: Plain text
5926 #: build/C/man3/fexecve.3:86
5927 msgid ""
5928 "I<fd> is not a valid file descriptor, or I<argv> is NULL, or I<envp> is "
5929 "NULL."
5930 msgstr ""
5931
5932 #. type: Plain text
5933 #: build/C/man3/fexecve.3:91
5934 msgid "The I</proc> file system could not be accessed."
5935 msgstr ""
5936
5937 #. type: Plain text
5938 #: build/C/man3/fexecve.3:94
5939 msgid "B<fexecve>()  is implemented since glibc 2.3.2."
5940 msgstr ""
5941
5942 #. type: Plain text
5943 #: build/C/man3/fexecve.3:98
5944 msgid ""
5945 "POSIX.1-2008.  This function is not specified in POSIX.1-2001, and is not "
5946 "widely available on other systems."
5947 msgstr ""
5948
5949 #. type: Plain text
5950 #: build/C/man3/fexecve.3:106
5951 msgid ""
5952 "On Linux, B<fexecve>()  is implemented using the B<proc>(5)  file system, so "
5953 "I</proc> needs to be mounted and available at the time of the call."
5954 msgstr ""
5955
5956 #. type: Plain text
5957 #: build/C/man3/fexecve.3:108
5958 msgid "B<execve>(2)"
5959 msgstr ""
5960
5961 #. type: TH
5962 #: build/C/man2/flock.2:34
5963 #, no-wrap
5964 msgid "FLOCK"
5965 msgstr ""
5966
5967 #. type: Plain text
5968 #: build/C/man2/flock.2:37
5969 msgid "flock - apply or remove an advisory lock on an open file"
5970 msgstr ""
5971
5972 #. type: Plain text
5973 #: build/C/man2/flock.2:39
5974 msgid "B<#include E<lt>sys/file.hE<gt>>"
5975 msgstr ""
5976
5977 #. type: Plain text
5978 #: build/C/man2/flock.2:41
5979 msgid "B<int flock(int >I<fd>B<, int >I<operation>B<);>"
5980 msgstr ""
5981
5982 #. type: Plain text
5983 #: build/C/man2/flock.2:47
5984 msgid ""
5985 "Apply or remove an advisory lock on the open file specified by I<fd>.  The "
5986 "argument I<operation> is one of the following:"
5987 msgstr ""
5988
5989 #. type: TP
5990 #: build/C/man2/flock.2:48
5991 #, no-wrap
5992 msgid "B<LOCK_SH>"
5993 msgstr ""
5994
5995 #. type: Plain text
5996 #: build/C/man2/flock.2:53
5997 msgid ""
5998 "Place a shared lock.  More than one process may hold a shared lock for a "
5999 "given file at a given time."
6000 msgstr ""
6001
6002 #. type: TP
6003 #: build/C/man2/flock.2:53
6004 #, no-wrap
6005 msgid "B<LOCK_EX>"
6006 msgstr ""
6007
6008 #. type: Plain text
6009 #: build/C/man2/flock.2:58
6010 msgid ""
6011 "Place an exclusive lock.  Only one process may hold an exclusive lock for a "
6012 "given file at a given time."
6013 msgstr ""
6014
6015 #. type: TP
6016 #: build/C/man2/flock.2:58
6017 #, no-wrap
6018 msgid "B<LOCK_UN>"
6019 msgstr ""
6020
6021 #. type: Plain text
6022 #: build/C/man2/flock.2:61
6023 msgid "Remove an existing lock held by this process."
6024 msgstr ""
6025
6026 #. type: Plain text
6027 #: build/C/man2/flock.2:70
6028 msgid ""
6029 "A call to B<flock>()  may block if an incompatible lock is held by another "
6030 "process.  To make a nonblocking request, include B<LOCK_NB> (by ORing)  with "
6031 "any of the above operations."
6032 msgstr ""
6033
6034 #. type: Plain text
6035 #: build/C/man2/flock.2:72
6036 msgid "A single file may not simultaneously have both shared and exclusive locks."
6037 msgstr ""
6038
6039 #. type: Plain text
6040 #: build/C/man2/flock.2:86
6041 msgid ""
6042 "Locks created by B<flock>()  are associated with an open file table entry.  "
6043 "This means that duplicate file descriptors (created by, for example, "
6044 "B<fork>(2)  or B<dup>(2))  refer to the same lock, and this lock may be "
6045 "modified or released using any of these descriptors.  Furthermore, the lock "
6046 "is released either by an explicit B<LOCK_UN> operation on any of these "
6047 "duplicate descriptors, or when all such descriptors have been closed."
6048 msgstr ""
6049
6050 #. type: Plain text
6051 #: build/C/man2/flock.2:95
6052 msgid ""
6053 "If a process uses B<open>(2)  (or similar) to obtain more than one "
6054 "descriptor for the same file, these descriptors are treated independently by "
6055 "B<flock>().  An attempt to lock the file using one of these file descriptors "
6056 "may be denied by a lock that the calling process has already placed via "
6057 "another descriptor."
6058 msgstr ""
6059
6060 #. type: Plain text
6061 #: build/C/man2/flock.2:102
6062 msgid ""
6063 "A process may only hold one type of lock (shared or exclusive)  on a file.  "
6064 "Subsequent B<flock>()  calls on an already locked file will convert an "
6065 "existing lock to the new lock mode."
6066 msgstr ""
6067
6068 #. type: Plain text
6069 #: build/C/man2/flock.2:107
6070 msgid "Locks created by B<flock>()  are preserved across an B<execve>(2)."
6071 msgstr ""
6072
6073 #. type: Plain text
6074 #: build/C/man2/flock.2:110
6075 msgid ""
6076 "A shared or exclusive lock can be placed on a file regardless of the mode in "
6077 "which the file was opened."
6078 msgstr ""
6079
6080 #. type: Plain text
6081 #: build/C/man2/flock.2:120
6082 msgid "I<fd> is not an open file descriptor."
6083 msgstr ""
6084
6085 #. type: Plain text
6086 #: build/C/man2/flock.2:125
6087 msgid ""
6088 "While waiting to acquire a lock, the call was interrupted by delivery of a "
6089 "signal caught by a handler; see B<signal>(7)."
6090 msgstr ""
6091
6092 #. type: Plain text
6093 #: build/C/man2/flock.2:129
6094 msgid "I<operation> is invalid."
6095 msgstr ""
6096
6097 #. type: Plain text
6098 #: build/C/man2/flock.2:132
6099 msgid "The kernel ran out of memory for allocating lock records."
6100 msgstr ""
6101
6102 #. type: TP
6103 #: build/C/man2/flock.2:132
6104 #, no-wrap
6105 msgid "B<EWOULDBLOCK>"
6106 msgstr ""
6107
6108 #. type: Plain text
6109 #: build/C/man2/flock.2:137
6110 msgid "The file is locked and the B<LOCK_NB> flag was selected."
6111 msgstr ""
6112
6113 #. type: Plain text
6114 #: build/C/man2/flock.2:146
6115 msgid ""
6116 "4.4BSD (the B<flock>()  call first appeared in 4.2BSD).  A version of "
6117 "B<flock>(), possibly implemented in terms of B<fcntl>(2), appears on most "
6118 "UNIX systems."
6119 msgstr ""
6120
6121 #. type: Plain text
6122 #: build/C/man2/flock.2:153
6123 msgid ""
6124 "B<flock>()  does not lock files over NFS.  Use B<fcntl>(2)  instead: that "
6125 "does work over NFS, given a sufficiently recent version of Linux and a "
6126 "server which supports locking."
6127 msgstr ""
6128
6129 #. type: Plain text
6130 #: build/C/man2/flock.2:168
6131 msgid ""
6132 "Since kernel 2.0, B<flock>()  is implemented as a system call in its own "
6133 "right rather than being emulated in the GNU C library as a call to "
6134 "B<fcntl>(2).  This yields true BSD semantics: there is no interaction "
6135 "between the types of lock placed by B<flock>()  and B<fcntl>(2), and "
6136 "B<flock>()  does not detect deadlock."
6137 msgstr ""
6138
6139 #. type: Plain text
6140 #: build/C/man2/flock.2:174
6141 msgid ""
6142 "B<flock>()  places advisory locks only; given suitable permissions on a "
6143 "file, a process is free to ignore the use of B<flock>()  and perform I/O on "
6144 "the file."
6145 msgstr ""
6146
6147 #. type: Plain text
6148 #: build/C/man2/flock.2:187
6149 msgid ""
6150 "B<flock>()  and B<fcntl>(2)  locks have different semantics with respect to "
6151 "forked processes and B<dup>(2).  On systems that implement B<flock>()  using "
6152 "B<fcntl>(2), the semantics of B<flock>()  will be different from those "
6153 "described in this manual page."
6154 msgstr ""
6155
6156 #.  Kernel 2.5.21 changed things a little: during lock conversion
6157 #.  it is now the highest priority process that will get the lock -- mtk
6158 #. type: Plain text
6159 #: build/C/man2/flock.2:200
6160 msgid ""
6161 "Converting a lock (shared to exclusive, or vice versa) is not guaranteed to "
6162 "be atomic: the existing lock is first removed, and then a new lock is "
6163 "established.  Between these two steps, a pending lock request by another "
6164 "process may be granted, with the result that the conversion either blocks, "
6165 "or fails if B<LOCK_NB> was specified.  (This is the original BSD behavior, "
6166 "and occurs on many other implementations.)"
6167 msgstr ""
6168
6169 #. type: Plain text
6170 #: build/C/man2/flock.2:208
6171 msgid ""
6172 "B<close>(2), B<dup>(2), B<execve>(2), B<fcntl>(2), B<fork>(2), B<open>(2), "
6173 "B<lockf>(3)"
6174 msgstr ""
6175
6176 #. type: Plain text
6177 #: build/C/man2/flock.2:214
6178 msgid ""
6179 "See also I<Documentation/filesystem/locks.txt> in the kernel source "
6180 "(I<Documentation/locks.txt> in older kernels)."
6181 msgstr ""
6182
6183 #. type: TH
6184 #: build/C/man2/fork.2:39
6185 #, no-wrap
6186 msgid "FORK"
6187 msgstr ""
6188
6189 #. type: TH
6190 #: build/C/man2/fork.2:39 build/C/man2/fsync.2:38
6191 #, no-wrap
6192 msgid "2012-02-27"
6193 msgstr ""
6194
6195 #. type: Plain text
6196 #: build/C/man2/fork.2:42
6197 msgid "fork - create a child process"
6198 msgstr ""
6199
6200 #. type: Plain text
6201 #: build/C/man2/fork.2:46
6202 msgid "B<pid_t fork(void);>"
6203 msgstr ""
6204
6205 #. type: Plain text
6206 #: build/C/man2/fork.2:52
6207 msgid ""
6208 "B<fork>()  creates a new process by duplicating the calling process.  The "
6209 "new process, referred to as the I<child>, is an exact duplicate of the "
6210 "calling process, referred to as the I<parent>, except for the following "
6211 "points:"
6212 msgstr ""
6213
6214 #. type: Plain text
6215 #: build/C/man2/fork.2:56
6216 msgid ""
6217 "The child has its own unique process ID, and this PID does not match the ID "
6218 "of any existing process group (B<setpgid>(2))."
6219 msgstr ""
6220
6221 #. type: Plain text
6222 #: build/C/man2/fork.2:58
6223 msgid "The child's parent process ID is the same as the parent's process ID."
6224 msgstr ""
6225
6226 #. type: Plain text
6227 #: build/C/man2/fork.2:62
6228 msgid ""
6229 "The child does not inherit its parent's memory locks (B<mlock>(2), "
6230 "B<mlockall>(2))."
6231 msgstr ""
6232
6233 #. type: Plain text
6234 #: build/C/man2/fork.2:68
6235 msgid ""
6236 "Process resource utilizations (B<getrusage>(2))  and CPU time counters "
6237 "(B<times>(2))  are reset to zero in the child."
6238 msgstr ""
6239
6240 #. type: Plain text
6241 #: build/C/man2/fork.2:71
6242 msgid "The child's set of pending signals is initially empty (B<sigpending>(2))."
6243 msgstr ""
6244
6245 #. type: Plain text
6246 #: build/C/man2/fork.2:74
6247 msgid ""
6248 "The child does not inherit semaphore adjustments from its parent "
6249 "(B<semop>(2))."
6250 msgstr ""
6251
6252 #. type: Plain text
6253 #: build/C/man2/fork.2:77
6254 msgid "The child does not inherit record locks from its parent (B<fcntl>(2))."
6255 msgstr ""
6256
6257 #. type: Plain text
6258 #: build/C/man2/fork.2:82
6259 msgid ""
6260 "The child does not inherit timers from its parent (B<setitimer>(2), "
6261 "B<alarm>(2), B<timer_create>(2))."
6262 msgstr ""
6263
6264 #. type: Plain text
6265 #: build/C/man2/fork.2:89
6266 msgid ""
6267 "The child does not inherit outstanding asynchronous I/O operations from its "
6268 "parent (B<aio_read>(3), B<aio_write>(3)), nor does it inherit any "
6269 "asynchronous I/O contexts from its parent (see B<io_setup>(2))."
6270 msgstr ""
6271
6272 #. type: Plain text
6273 #: build/C/man2/fork.2:94
6274 msgid ""
6275 "The process attributes in the preceding list are all specified in "
6276 "POSIX.1-2001.  The parent and child also differ with respect to the "
6277 "following Linux-specific process attributes:"
6278 msgstr ""
6279
6280 #. type: Plain text
6281 #: build/C/man2/fork.2:101
6282 msgid ""
6283 "The child does not inherit directory change notifications (dnotify)  from "
6284 "its parent (see the description of B<F_NOTIFY> in B<fcntl>(2))."
6285 msgstr ""
6286
6287 #. type: Plain text
6288 #: build/C/man2/fork.2:107
6289 msgid ""
6290 "The B<prctl>(2)  B<PR_SET_PDEATHSIG> setting is reset so that the child does "
6291 "not receive a signal when its parent terminates."
6292 msgstr ""
6293
6294 #. type: Plain text
6295 #: build/C/man2/fork.2:113
6296 msgid ""
6297 "Memory mappings that have been marked with the B<madvise>(2)  "
6298 "B<MADV_DONTFORK> flag are not inherited across a B<fork>()."
6299 msgstr ""
6300
6301 #. type: Plain text
6302 #: build/C/man2/fork.2:118
6303 msgid "The termination signal of the child is always B<SIGCHLD> (see B<clone>(2))."
6304 msgstr ""
6305
6306 #. type: Plain text
6307 #: build/C/man2/fork.2:129
6308 msgid ""
6309 "The child process is created with a single thread\\(emthe one that called "
6310 "B<fork>().  The entire virtual address space of the parent is replicated in "
6311 "the child, including the states of mutexes, condition variables, and other "
6312 "pthreads objects; the use of B<pthread_atfork>(3)  may be helpful for "
6313 "dealing with problems that this can cause."
6314 msgstr ""
6315
6316 #. type: Plain text
6317 #: build/C/man2/fork.2:143
6318 msgid ""
6319 "The child inherits copies of the parent's set of open file descriptors.  "
6320 "Each file descriptor in the child refers to the same open file description "
6321 "(see B<open>(2))  as the corresponding file descriptor in the parent.  This "
6322 "means that the two descriptors share open file status flags, current file "
6323 "offset, and signal-driven I/O attributes (see the description of B<F_SETOWN> "
6324 "and B<F_SETSIG> in B<fcntl>(2))."
6325 msgstr ""
6326
6327 #. type: Plain text
6328 #: build/C/man2/fork.2:152
6329 msgid ""
6330 "The child inherits copies of the parent's set of open message queue "
6331 "descriptors (see B<mq_overview>(7)).  Each descriptor in the child refers to "
6332 "the same open message queue description as the corresponding descriptor in "
6333 "the parent.  This means that the two descriptors share the same flags "
6334 "(I<mq_flags>)."
6335 msgstr ""
6336
6337 #. type: Plain text
6338 #: build/C/man2/fork.2:160
6339 msgid ""
6340 "The child inherits copies of the parent's set of open directory streams (see "
6341 "B<opendir>(3)).  POSIX.1-2001 says that the corresponding directory streams "
6342 "in the parent and child I<may> share the directory stream positioning; on "
6343 "Linux/glibc they do not."
6344 msgstr ""
6345
6346 #. type: Plain text
6347 #: build/C/man2/fork.2:167
6348 msgid ""
6349 "On success, the PID of the child process is returned in the parent, and 0 is "
6350 "returned in the child.  On failure, -1 is returned in the parent, no child "
6351 "process is created, and I<errno> is set appropriately."
6352 msgstr ""
6353
6354 #. type: Plain text
6355 #: build/C/man2/fork.2:173
6356 msgid ""
6357 "B<fork>()  cannot allocate sufficient memory to copy the parent's page "
6358 "tables and allocate a task structure for the child."
6359 msgstr ""
6360
6361 #. type: Plain text
6362 #: build/C/man2/fork.2:183
6363 msgid ""
6364 "It was not possible to create a new process because the caller's "
6365 "B<RLIMIT_NPROC> resource limit was encountered.  To exceed this limit, the "
6366 "process must have either the B<CAP_SYS_ADMIN> or the B<CAP_SYS_RESOURCE> "
6367 "capability."
6368 msgstr ""
6369
6370 #. type: Plain text
6371 #: build/C/man2/fork.2:187
6372 msgid ""
6373 "B<fork>()  failed to allocate the necessary kernel structures because memory "
6374 "is tight."
6375 msgstr ""
6376
6377 #. type: Plain text
6378 #: build/C/man2/fork.2:196
6379 msgid ""
6380 "Under Linux, B<fork>()  is implemented using copy-on-write pages, so the "
6381 "only penalty that it incurs is the time and memory required to duplicate the "
6382 "parent's page tables, and to create a unique task structure for the child."
6383 msgstr ""
6384
6385 #.  nptl/sysdeps/unix/sysv/linux/fork.c
6386 #.  and does some magic to ensure that getpid(2) returns the right value.
6387 #. type: Plain text
6388 #: build/C/man2/fork.2:220
6389 msgid ""
6390 "Since version 2.3.3, rather than invoking the kernel's B<fork>()  system "
6391 "call, the glibc B<fork>()  wrapper that is provided as part of the NPTL "
6392 "threading implementation invokes B<clone>(2)  with flags that provide the "
6393 "same effect as the traditional system call.  (A call to B<fork>()  is "
6394 "equivalent to a call to B<clone>(2)  specifying I<flags> as just "
6395 "B<SIGCHLD>.)  The glibc wrapper invokes any fork handlers that have been "
6396 "established using B<pthread_atfork>(3)."
6397 msgstr ""
6398
6399 #. type: Plain text
6400 #: build/C/man2/fork.2:225
6401 msgid "See B<pipe>(2)  and B<wait>(2)."
6402 msgstr ""
6403
6404 #. type: Plain text
6405 #: build/C/man2/fork.2:235
6406 msgid ""
6407 "B<clone>(2), B<execve>(2), B<setrlimit>(2), B<unshare>(2), B<vfork>(2), "
6408 "B<wait>(2), B<daemon>(3), B<capabilities>(7), B<credentials>(7)"
6409 msgstr ""
6410
6411 #. type: TH
6412 #: build/C/man3/fpathconf.3:24
6413 #, no-wrap
6414 msgid "FPATHCONF"
6415 msgstr ""
6416
6417 #. type: TH
6418 #: build/C/man3/fpathconf.3:24
6419 #, no-wrap
6420 msgid "1993-04-04"
6421 msgstr ""
6422
6423 #. type: Plain text
6424 #: build/C/man3/fpathconf.3:27
6425 msgid "fpathconf, pathconf - get configuration values for files"
6426 msgstr ""
6427
6428 #. type: Plain text
6429 #: build/C/man3/fpathconf.3:32
6430 #, no-wrap
6431 msgid "B<long fpathconf(int >I<fd>B<, int >I<name>B<);>\n"
6432 msgstr ""
6433
6434 #. type: Plain text
6435 #: build/C/man3/fpathconf.3:34
6436 #, no-wrap
6437 msgid "B<long pathconf(char *>I<path>B<, int >I<name>B<);>\n"
6438 msgstr ""
6439
6440 #. type: Plain text
6441 #: build/C/man3/fpathconf.3:41
6442 msgid ""
6443 "B<fpathconf>()  gets a value for the configuration option I<name> for the "
6444 "open file descriptor I<fd>."
6445 msgstr ""
6446
6447 #. type: Plain text
6448 #: build/C/man3/fpathconf.3:47
6449 msgid ""
6450 "B<pathconf>()  gets a value for configuration option I<name> for the "
6451 "filename I<path>."
6452 msgstr ""
6453
6454 #. type: Plain text
6455 #: build/C/man3/fpathconf.3:56
6456 msgid ""
6457 "The corresponding macros defined in I<E<lt>unistd.hE<gt>> are minimum "
6458 "values; if an application wants to take advantage of values which may "
6459 "change, a call to B<fpathconf>()  or B<pathconf>()  can be made, which may "
6460 "yield more liberal results."
6461 msgstr ""
6462
6463 #. type: Plain text
6464 #: build/C/man3/fpathconf.3:61
6465 msgid ""
6466 "Setting I<name> equal to one of the following constants returns the "
6467 "following configuration options:"
6468 msgstr ""
6469
6470 #. type: TP
6471 #: build/C/man3/fpathconf.3:61
6472 #, no-wrap
6473 msgid "B<_PC_LINK_MAX>"
6474 msgstr ""
6475
6476 #. type: Plain text
6477 #: build/C/man3/fpathconf.3:71
6478 msgid ""
6479 "returns the maximum number of links to the file.  If I<fd> or I<path> refer "
6480 "to a directory, then the value applies to the whole directory.  The "
6481 "corresponding macro is B<_POSIX_LINK_MAX>."
6482 msgstr ""
6483
6484 #. type: TP
6485 #: build/C/man3/fpathconf.3:71
6486 #, no-wrap
6487 msgid "B<_PC_MAX_CANON>"
6488 msgstr ""
6489
6490 #. type: Plain text
6491 #: build/C/man3/fpathconf.3:80
6492 msgid ""
6493 "returns the maximum length of a formatted input line, where I<fd> or I<path> "
6494 "must refer to a terminal.  The corresponding macro is B<_POSIX_MAX_CANON>."
6495 msgstr ""
6496
6497 #. type: TP
6498 #: build/C/man3/fpathconf.3:80
6499 #, no-wrap
6500 msgid "B<_PC_MAX_INPUT>"
6501 msgstr ""
6502
6503 #. type: Plain text
6504 #: build/C/man3/fpathconf.3:89
6505 msgid ""
6506 "returns the maximum length of an input line, where I<fd> or I<path> must "
6507 "refer to a terminal.  The corresponding macro is B<_POSIX_MAX_INPUT>."
6508 msgstr ""
6509
6510 #. type: TP
6511 #: build/C/man3/fpathconf.3:89
6512 #, no-wrap
6513 msgid "B<_PC_NAME_MAX>"
6514 msgstr ""
6515
6516 #. type: Plain text
6517 #: build/C/man3/fpathconf.3:98
6518 msgid ""
6519 "returns the maximum length of a filename in the directory I<path> or I<fd> "
6520 "that the process is allowed to create.  The corresponding macro is "
6521 "B<_POSIX_NAME_MAX>."
6522 msgstr ""
6523
6524 #. type: TP
6525 #: build/C/man3/fpathconf.3:98
6526 #, no-wrap
6527 msgid "B<_PC_PATH_MAX>"
6528 msgstr ""
6529
6530 #. type: Plain text
6531 #: build/C/man3/fpathconf.3:107
6532 msgid ""
6533 "returns the maximum length of a relative pathname when I<path> or I<fd> is "
6534 "the current working directory.  The corresponding macro is "
6535 "B<_POSIX_PATH_MAX>."
6536 msgstr ""
6537
6538 #. type: TP
6539 #: build/C/man3/fpathconf.3:107
6540 #, no-wrap
6541 msgid "B<_PC_PIPE_BUF>"
6542 msgstr ""
6543
6544 #. type: Plain text
6545 #: build/C/man3/fpathconf.3:116
6546 msgid ""
6547 "returns the size of the pipe buffer, where I<fd> must refer to a pipe or "
6548 "FIFO and I<path> must refer to a FIFO.  The corresponding macro is "
6549 "B<_POSIX_PIPE_BUF>."
6550 msgstr ""
6551
6552 #. type: TP
6553 #: build/C/man3/fpathconf.3:116
6554 #, no-wrap
6555 msgid "B<_PC_CHOWN_RESTRICTED>"
6556 msgstr ""
6557
6558 #. type: Plain text
6559 #: build/C/man3/fpathconf.3:129
6560 msgid ""
6561 "returns nonzero if the B<chown>(2)  call may not be used on this file.  If "
6562 "I<fd> or I<path> refer to a directory, then this applies to all files in "
6563 "that directory.  The corresponding macro is B<_POSIX_CHOWN_RESTRICTED>."
6564 msgstr ""
6565
6566 #. type: TP
6567 #: build/C/man3/fpathconf.3:129
6568 #, no-wrap
6569 msgid "B<_PC_NO_TRUNC>"
6570 msgstr ""
6571
6572 #. type: Plain text
6573 #: build/C/man3/fpathconf.3:136
6574 msgid ""
6575 "returns nonzero if accessing filenames longer than B<_POSIX_NAME_MAX> "
6576 "generates an error.  The corresponding macro is B<_POSIX_NO_TRUNC>."
6577 msgstr ""
6578
6579 #. type: TP
6580 #: build/C/man3/fpathconf.3:136
6581 #, no-wrap
6582 msgid "B<_PC_VDISABLE>"
6583 msgstr ""
6584
6585 #. type: Plain text
6586 #: build/C/man3/fpathconf.3:143
6587 msgid ""
6588 "returns nonzero if special character processing can be disabled, where I<fd> "
6589 "or I<path> must refer to a terminal."
6590 msgstr ""
6591
6592 #. type: Plain text
6593 #: build/C/man3/fpathconf.3:152
6594 msgid ""
6595 "The limit is returned, if one exists.  If the system does not have a limit "
6596 "for the requested resource, -1 is returned, and I<errno> is unchanged.  If "
6597 "there is an error, -1 is returned, and I<errno> is set to reflect the nature "
6598 "of the error."
6599 msgstr ""
6600
6601 #. type: Plain text
6602 #: build/C/man3/fpathconf.3:160
6603 msgid ""
6604 "Files with name lengths longer than the value returned for I<name> equal to "
6605 "B<_PC_NAME_MAX> may exist in the given directory."
6606 msgstr ""
6607
6608 #. type: Plain text
6609 #: build/C/man3/fpathconf.3:163 build/C/man3/sysconf.3:333
6610 msgid ""
6611 "Some returned values may be huge; they are not suitable for allocating "
6612 "memory."
6613 msgstr ""
6614
6615 #. type: Plain text
6616 #: build/C/man3/fpathconf.3:168
6617 msgid "B<getconf>(1), B<open>(2), B<statfs>(2), B<sysconf>(3)"
6618 msgstr ""
6619
6620 #. type: TH
6621 #: build/C/man2/fsync.2:38
6622 #, no-wrap
6623 msgid "FSYNC"
6624 msgstr ""
6625
6626 #. type: Plain text
6627 #: build/C/man2/fsync.2:41
6628 msgid "fsync, fdatasync - synchronize a file's in-core state with storage device"
6629 msgstr ""
6630
6631 #. type: Plain text
6632 #: build/C/man2/fsync.2:45
6633 msgid "B<int fsync(int >I<fd>B<);>"
6634 msgstr ""
6635
6636 #. type: Plain text
6637 #: build/C/man2/fsync.2:47
6638 msgid "B<int fdatasync(int >I<fd>B<);>"
6639 msgstr ""
6640
6641 #. type: Plain text
6642 #: build/C/man2/fsync.2:55
6643 msgid "B<fsync>(): _BSD_SOURCE || _XOPEN_SOURCE"
6644 msgstr ""
6645
6646 #.  _POSIX_C_SOURCE\ >=\ 200112L only since glibc 2.8
6647 #. type: Plain text
6648 #: build/C/man2/fsync.2:58
6649 #, no-wrap
6650 msgid "         || /* since glibc 2.8: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L\n"
6651 msgstr ""
6652
6653 #. type: Plain text
6654 #: build/C/man2/fsync.2:61
6655 msgid ""
6656 "B<fdatasync>(): _POSIX_C_SOURCE\\ E<gt>=\\ 199309L || _XOPEN_SOURCE\\ "
6657 "E<gt>=\\ 500"
6658 msgstr ""
6659
6660 #. type: Plain text
6661 #: build/C/man2/fsync.2:74
6662 msgid ""
6663 "B<fsync>()  transfers (\"flushes\") all modified in-core data of (i.e., "
6664 "modified buffer cache pages for) the file referred to by the file descriptor "
6665 "I<fd> to the disk device (or other permanent storage device) so that all "
6666 "changed information can be retrieved even after the system crashed or was "
6667 "rebooted.  This includes writing through or flushing a disk cache if "
6668 "present.  The call blocks until the device reports that the transfer has "
6669 "completed.  It also flushes metadata information associated with the file "
6670 "(see B<stat>(2))."
6671 msgstr ""
6672
6673 #. type: Plain text
6674 #: build/C/man2/fsync.2:83
6675 msgid ""
6676 "Calling B<fsync>()  does not necessarily ensure that the entry in the "
6677 "directory containing the file has also reached disk.  For that an explicit "
6678 "B<fsync>()  on a file descriptor for the directory is also needed."
6679 msgstr ""
6680
6681 #. type: Plain text
6682 #: build/C/man2/fsync.2:104
6683 msgid ""
6684 "B<fdatasync>()  is similar to B<fsync>(), but does not flush modified "
6685 "metadata unless that metadata is needed in order to allow a subsequent data "
6686 "retrieval to be correctly handled.  For example, changes to I<st_atime> or "
6687 "I<st_mtime> (respectively, time of last access and time of last "
6688 "modification; see B<stat>(2))  do not require flushing because they are not "
6689 "necessary for a subsequent data read to be handled correctly.  On the other "
6690 "hand, a change to the file size (I<st_size>, as made by say "
6691 "B<ftruncate>(2)), would require a metadata flush."
6692 msgstr ""
6693
6694 #. type: Plain text
6695 #: build/C/man2/fsync.2:109
6696 msgid ""
6697 "The aim of B<fdatasync>()  is to reduce disk activity for applications that "
6698 "do not require all metadata to be synchronized with the disk."
6699 msgstr ""
6700
6701 #. type: Plain text
6702 #: build/C/man2/fsync.2:114
6703 msgid ""
6704 "On success, these system calls return zero.  On error, -1 is returned, and "
6705 "I<errno> is set appropriately."
6706 msgstr ""
6707
6708 #. type: Plain text
6709 #: build/C/man2/fsync.2:119
6710 msgid "I<fd> is not a valid open file descriptor."
6711 msgstr ""
6712
6713 #. type: Plain text
6714 #: build/C/man2/fsync.2:122
6715 msgid "An error occurred during synchronization."
6716 msgstr ""
6717
6718 #. type: TP
6719 #: build/C/man2/fsync.2:122
6720 #, no-wrap
6721 msgid "B<EROFS>, B<EINVAL>"
6722 msgstr ""
6723
6724 #. type: Plain text
6725 #: build/C/man2/fsync.2:126
6726 msgid "I<fd> is bound to a special file which does not support synchronization."
6727 msgstr ""
6728
6729 #. type: Plain text
6730 #: build/C/man2/fsync.2:128
6731 msgid "4.3BSD, POSIX.1-2001."
6732 msgstr ""
6733
6734 #. type: SH
6735 #: build/C/man2/fsync.2:128
6736 #, no-wrap
6737 msgid "AVAILABILITY"
6738 msgstr ""
6739
6740 #.  POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
6741 #.  -1: unavailable, 0: ask using sysconf().
6742 #.  glibc defines them to 1.
6743 #. type: Plain text
6744 #: build/C/man2/fsync.2:141
6745 msgid ""
6746 "On POSIX systems on which B<fdatasync>()  is available, "
6747 "B<_POSIX_SYNCHRONIZED_IO> is defined in I<E<lt>unistd.hE<gt>> to a value "
6748 "greater than 0.  (See also B<sysconf>(3).)"
6749 msgstr ""
6750
6751 #. type: Plain text
6752 #: build/C/man2/fsync.2:147
6753 msgid ""
6754 "On some UNIX systems (but not Linux), I<fd> must be a I<writable> file "
6755 "descriptor."
6756 msgstr ""
6757
6758 #. type: Plain text
6759 #: build/C/man2/fsync.2:153
6760 msgid ""
6761 "In Linux 2.2 and earlier, B<fdatasync>()  is equivalent to B<fsync>(), and "
6762 "so has no performance advantage."
6763 msgstr ""
6764
6765 #. type: Plain text
6766 #: build/C/man2/fsync.2:163
6767 msgid ""
6768 "The B<fsync>()  implementations in older kernels and lesser used filesystems "
6769 "does not know how to flush disk caches.  In these cases disk caches need to "
6770 "be disabled using B<hdparm>(8)  or B<sdparm>(8)  to guarantee safe "
6771 "operation."
6772 msgstr ""
6773
6774 #. type: Plain text
6775 #: build/C/man2/fsync.2:172
6776 msgid ""
6777 "B<bdflush>(2), B<open>(2), B<sync>(2), B<sync_file_range>(2), B<hdparm>(8), "
6778 "B<mount>(8), B<sync>(8), B<update>(8)"
6779 msgstr ""
6780
6781 #. type: TH
6782 #: build/C/man2/get_thread_area.2:6
6783 #, no-wrap
6784 msgid "GET_THREAD_AREA"
6785 msgstr ""
6786
6787 #. type: Plain text
6788 #: build/C/man2/get_thread_area.2:9
6789 msgid "get_thread_area - Get a Thread Local Storage (TLS) area"
6790 msgstr ""
6791
6792 #. type: Plain text
6793 #: build/C/man2/get_thread_area.2:13 build/C/man2/set_thread_area.2:14
6794 msgid "B<#include E<lt>asm/ldt.hE<gt>>"
6795 msgstr ""
6796
6797 #. type: Plain text
6798 #: build/C/man2/get_thread_area.2:15
6799 msgid "B<int get_thread_area(struct user_desc *>I<u_info>B<);>"
6800 msgstr ""
6801
6802 #. type: Plain text
6803 #: build/C/man2/get_thread_area.2:24
6804 msgid ""
6805 "B<get_thread_area>()  returns an entry in the current thread's Thread Local "
6806 "Storage (TLS) array.  The index of the entry corresponds to the value of "
6807 "I<u_info-E<gt>entry_number>, passed in by the user.  If the value is in "
6808 "bounds, B<get_thread_area>()  copies the corresponding TLS entry into the "
6809 "area pointed to by I<u_info>."
6810 msgstr ""
6811
6812 #. type: Plain text
6813 #: build/C/man2/get_thread_area.2:30
6814 msgid ""
6815 "B<get_thread_area>()  returns 0 on success.  Otherwise, it returns -1 and "
6816 "sets I<errno> appropriately."
6817 msgstr ""
6818
6819 #. type: Plain text
6820 #: build/C/man2/get_thread_area.2:34 build/C/man2/set_thread_area.2:52
6821 msgid "I<u_info> is an invalid pointer."
6822 msgstr ""
6823
6824 #. type: Plain text
6825 #: build/C/man2/get_thread_area.2:37 build/C/man2/set_thread_area.2:49
6826 msgid "I<u_info-E<gt>entry_number> is out of bounds."
6827 msgstr ""
6828
6829 #. type: Plain text
6830 #: build/C/man2/get_thread_area.2:41
6831 msgid "A version of B<get_thread_area>()  first appeared in Linux 2.5.32."
6832 msgstr ""
6833
6834 #. type: Plain text
6835 #: build/C/man2/get_thread_area.2:45
6836 msgid ""
6837 "B<get_thread_area>()  is Linux-specific and should not be used in programs "
6838 "that are intended to be portable."
6839 msgstr ""
6840
6841 #. type: Plain text
6842 #: 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
6843 msgid ""
6844 "Glibc does not provide a wrapper for this system call; call it using "
6845 "B<syscall>(2)."
6846 msgstr ""
6847
6848 #. type: Plain text
6849 #: build/C/man2/get_thread_area.2:52
6850 msgid "B<modify_ldt>(2), B<set_thread_area>(2)"
6851 msgstr ""
6852
6853 #. type: TH
6854 #: build/C/man3/getcwd.3:30
6855 #, no-wrap
6856 msgid "GETCWD"
6857 msgstr ""
6858
6859 #. type: Plain text
6860 #: build/C/man3/getcwd.3:33
6861 msgid "getcwd, getwd, get_current_dir_name - Get current working directory"
6862 msgstr ""
6863
6864 #. type: Plain text
6865 #: build/C/man3/getcwd.3:38
6866 #, no-wrap
6867 msgid "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
6868 msgstr ""
6869
6870 #. type: Plain text
6871 #: build/C/man3/getcwd.3:40
6872 #, no-wrap
6873 msgid "B<char *getwd(char *>I<buf>B<);>\n"
6874 msgstr ""
6875
6876 #. type: Plain text
6877 #: build/C/man3/getcwd.3:42
6878 #, no-wrap
6879 msgid "B<char *get_current_dir_name(void);>\n"
6880 msgstr ""
6881
6882 #. type: Plain text
6883 #: build/C/man3/getcwd.3:50
6884 msgid "B<get_current_dir_name>():"
6885 msgstr ""
6886
6887 #. type: Plain text
6888 #: build/C/man3/getcwd.3:55
6889 msgid "B<getwd>():"
6890 msgstr ""
6891
6892 #. type: Plain text
6893 #: build/C/man3/getcwd.3:65 build/C/man3/ualarm.3:49 build/C/man3/usleep.3:57 build/C/man2/vfork.2:52
6894 #, no-wrap
6895 msgid ""
6896 "_BSD_SOURCE ||\n"
6897 "    (_XOPEN_SOURCE\\ E<gt>=\\ 500 ||\n"
6898 "        _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED) &&\n"
6899 "    !(_POSIX_C_SOURCE\\ E<gt>=\\ 200809L || _XOPEN_SOURCE\\ E<gt>=\\ 700)\n"
6900 msgstr ""
6901
6902 #. type: Plain text
6903 #: 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
6904 msgid ""
6905 "Before glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
6906 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
6907 msgstr ""
6908
6909 #. type: Plain text
6910 #: build/C/man3/getcwd.3:80
6911 msgid ""
6912 "These functions return a null-terminated string containing an absolute "
6913 "pathname that is the current working directory of the calling process.  The "
6914 "pathname is returned as the function result and via the argument I<buf>, if "
6915 "present."
6916 msgstr ""
6917
6918 #. type: Plain text
6919 #: build/C/man3/getcwd.3:88
6920 msgid ""
6921 "The B<getcwd>()  function copies an absolute pathname of the current working "
6922 "directory to the array pointed to by I<buf>, which is of length I<size>."
6923 msgstr ""
6924
6925 #. type: Plain text
6926 #: build/C/man3/getcwd.3:98
6927 msgid ""
6928 "If the length of the absolute pathname of the current working directory, "
6929 "including the terminating null byte, exceeds I<size> bytes, NULL is "
6930 "returned, and I<errno> is set to B<ERANGE>; an application should check for "
6931 "this error, and allocate a larger buffer if necessary."
6932 msgstr ""
6933
6934 #. type: Plain text
6935 #: build/C/man3/getcwd.3:116
6936 msgid ""
6937 "As an extension to the POSIX.1-2001 standard, Linux (libc4, libc5, glibc)  "
6938 "B<getcwd>()  allocates the buffer dynamically using B<malloc>(3)  if I<buf> "
6939 "is NULL.  In this case, the allocated buffer has the length I<size> unless "
6940 "I<size> is zero, when I<buf> is allocated as big as necessary.  The caller "
6941 "should B<free>(3)  the returned buffer."
6942 msgstr ""
6943
6944 #. type: Plain text
6945 #: build/C/man3/getcwd.3:129
6946 msgid ""
6947 "B<get_current_dir_name>()  will B<malloc>(3)  an array big enough to hold "
6948 "the absolute pathname of the current working directory.  If the environment "
6949 "variable B<PWD> is set, and its value is correct, then that value will be "
6950 "returned.  The caller should B<free>(3)  the returned buffer."
6951 msgstr ""
6952
6953 #. type: Plain text
6954 #: build/C/man3/getcwd.3:154
6955 msgid ""
6956 "B<getwd>()  does not B<malloc>(3)  any memory.  The I<buf> argument should "
6957 "be a pointer to an array at least B<PATH_MAX> bytes long.  If the length of "
6958 "the absolute pathname of the current working directory, including the "
6959 "terminating null byte, exceeds B<PATH_MAX> bytes, NULL is returned, and "
6960 "I<errno> is set to B<ENAMETOOLONG>.  (Note that on some systems, B<PATH_MAX> "
6961 "may not be a compile-time constant; furthermore, its value may depend on the "
6962 "file system, see B<pathconf>(3).)  For portability and security reasons, use "
6963 "of B<getwd>()  is deprecated."
6964 msgstr ""
6965
6966 #. type: Plain text
6967 #: build/C/man3/getcwd.3:163
6968 msgid ""
6969 "On success, these functions return a pointer to a string containing the "
6970 "pathname of the current working directory.  In the case B<getcwd>()  and "
6971 "B<getwd>()  this is the same value as I<buf>."
6972 msgstr ""
6973
6974 #. type: Plain text
6975 #: build/C/man3/getcwd.3:170
6976 msgid ""
6977 "On failure, these functions return NULL, and I<errno> is set to indicate the "
6978 "error.  The contents of the array pointed to by I<buf> are undefined on "
6979 "error."
6980 msgstr ""
6981
6982 #. type: Plain text
6983 #: build/C/man3/getcwd.3:174
6984 msgid "Permission to read or search a component of the filename was denied."
6985 msgstr ""
6986
6987 #. type: Plain text
6988 #: build/C/man3/getcwd.3:178
6989 msgid "I<buf> points to a bad address."
6990 msgstr ""
6991
6992 #. type: Plain text
6993 #: build/C/man3/getcwd.3:185
6994 msgid "The I<size> argument is zero and I<buf> is not a NULL pointer."
6995 msgstr ""
6996
6997 #. type: TP
6998 #: build/C/man3/getcwd.3:185
6999 #, no-wrap
7000 msgid "EINVAL"
7001 msgstr ""
7002
7003 #. type: Plain text
7004 #: build/C/man3/getcwd.3:190
7005 msgid "B<getwd>(): I<buf> is NULL."
7006 msgstr ""
7007
7008 #. type: TP
7009 #: build/C/man3/getcwd.3:190
7010 #, no-wrap
7011 msgid "ENAMETOOLONG"
7012 msgstr ""
7013
7014 #. type: Plain text
7015 #: build/C/man3/getcwd.3:196
7016 msgid ""
7017 "B<getwd>(): The size of the null-terminated absolute pathname string exceeds "
7018 "B<PATH_MAX> bytes."
7019 msgstr ""
7020
7021 #. type: Plain text
7022 #: build/C/man3/getcwd.3:199
7023 msgid "The current working directory has been unlinked."
7024 msgstr ""
7025
7026 #. type: TP
7027 #: build/C/man3/getcwd.3:199 build/C/man3/getlogin.3:112
7028 #, no-wrap
7029 msgid "B<ERANGE>"
7030 msgstr ""
7031
7032 #. type: Plain text
7033 #: build/C/man3/getcwd.3:206
7034 msgid ""
7035 "The I<size> argument is less than the length of the absolute pathname of the "
7036 "working directory, including the terminating null byte.  You need to "
7037 "allocate a bigger array and try again."
7038 msgstr ""
7039
7040 #. type: Plain text
7041 #: build/C/man3/getcwd.3:214
7042 msgid ""
7043 "B<getcwd>()  conforms to POSIX.1-2001.  Note however that POSIX.1-2001 "
7044 "leaves the behavior of B<getcwd>()  unspecified if I<buf> is NULL."
7045 msgstr ""
7046
7047 #. type: Plain text
7048 #: build/C/man3/getcwd.3:225
7049 msgid ""
7050 "B<getwd>()  is present in POSIX.1-2001, but marked LEGACY.  POSIX.1-2008 "
7051 "removes the specification of B<getwd>().  Use B<getcwd>()  instead.  "
7052 "POSIX.1-2001 does not define any errors for B<getwd>()."
7053 msgstr ""
7054
7055 #. type: Plain text
7056 #: build/C/man3/getcwd.3:228
7057 msgid "B<get_current_dir_name>()  is a GNU extension."
7058 msgstr ""
7059
7060 #. type: Plain text
7061 #: build/C/man3/getcwd.3:239
7062 msgid ""
7063 "Under Linux, the function B<getcwd>()  is a system call (since 2.1.92).  On "
7064 "older systems it would query I</proc/self/cwd>.  If both system call and "
7065 "proc file system are missing, a generic implementation is called.  Only in "
7066 "that case can these calls fail under Linux with B<EACCES>."
7067 msgstr ""
7068
7069 #. type: Plain text
7070 #: build/C/man3/getcwd.3:247
7071 msgid ""
7072 "These functions are often used to save the location of the current working "
7073 "directory for the purpose of returning to it later.  Opening the current "
7074 "directory (\".\") and calling B<fchdir>(2)  to return is usually a faster "
7075 "and more reliable alternative when sufficiently many file descriptors are "
7076 "available, especially on platforms other than Linux."
7077 msgstr ""
7078
7079 #. type: Plain text
7080 #: build/C/man3/getcwd.3:254
7081 msgid ""
7082 "B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
7083 "B<malloc>(3)"
7084 msgstr ""
7085
7086 #. type: TH
7087 #: build/C/man2/getdomainname.2:29
7088 #, no-wrap
7089 msgid "GETDOMAINNAME"
7090 msgstr ""
7091
7092 #. type: TH
7093 #: build/C/man2/getdomainname.2:29
7094 #, no-wrap
7095 msgid "2009-09-27"
7096 msgstr ""
7097
7098 #. type: Plain text
7099 #: build/C/man2/getdomainname.2:32
7100 msgid "getdomainname, setdomainname - get/set domain name"
7101 msgstr ""
7102
7103 #. type: Plain text
7104 #: build/C/man2/getdomainname.2:36
7105 msgid "B<int getdomainname(char *>I<name>B<, size_t >I<len>B<);>"
7106 msgstr ""
7107
7108 #. type: Plain text
7109 #: build/C/man2/getdomainname.2:38
7110 msgid "B<int setdomainname(const char *>I<name>B<, size_t >I<len>B<);>"
7111 msgstr ""
7112
7113 #. type: Plain text
7114 #: build/C/man2/getdomainname.2:47
7115 msgid "B<getdomainname>(), B<setdomainname>():"
7116 msgstr ""
7117
7118 #. type: Plain text
7119 #: build/C/man2/getdomainname.2:49 build/C/man3/gethostid.3:54 build/C/man2/gethostname.2:60 build/C/man3/getusershell.3:53
7120 msgid "_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\\ E<lt>\\ 500)"
7121 msgstr ""
7122
7123 #. type: Plain text
7124 #: build/C/man2/getdomainname.2:54
7125 msgid ""
7126 "These functions are used to access or to change the domain name of the host "
7127 "system."
7128 msgstr ""
7129
7130 #. type: Plain text
7131 #: build/C/man2/getdomainname.2:65
7132 msgid ""
7133 "B<setdomainname>()  sets the domain name to the value given in the character "
7134 "array I<name>.  The I<len> argument specifies the number of bytes in "
7135 "I<name>.  (Thus, I<name> does not require a terminating null byte.)"
7136 msgstr ""
7137
7138 #. type: Plain text
7139 #: build/C/man2/getdomainname.2:75
7140 msgid ""
7141 "B<getdomainname>()  returns the null-terminated domain name in the character "
7142 "array I<name>, which has a length of I<len> bytes.  If the null-terminated "
7143 "domain name requires more than I<len> bytes, B<getdomainname>()  returns the "
7144 "first I<len> bytes (glibc) or gives an error (libc)."
7145 msgstr ""
7146
7147 #. type: Plain text
7148 #: build/C/man2/getdomainname.2:83
7149 msgid "B<setdomainname>()  can fail with the following errors:"
7150 msgstr ""
7151
7152 #. type: Plain text
7153 #: build/C/man2/getdomainname.2:87
7154 msgid "I<name> pointed outside of user address space."
7155 msgstr ""
7156
7157 #. type: Plain text
7158 #: build/C/man2/getdomainname.2:91
7159 msgid "I<len> was negative or too large."
7160 msgstr ""
7161
7162 #. type: Plain text
7163 #: build/C/man2/getdomainname.2:96
7164 msgid ""
7165 "the caller is unprivileged (Linux: does not have the B<CAP_SYS_ADMIN> "
7166 "capability)."
7167 msgstr ""
7168
7169 #. type: Plain text
7170 #: build/C/man2/getdomainname.2:99
7171 msgid "B<getdomainname>()  can fail with the following errors:"
7172 msgstr ""
7173
7174 #. type: Plain text
7175 #: build/C/man2/getdomainname.2:110
7176 msgid ""
7177 "For B<getdomainname>()  under libc: I<name> is NULL or I<name> is longer "
7178 "than I<len> bytes."
7179 msgstr ""
7180
7181 #.  But they appear on most systems...
7182 #. type: Plain text
7183 #: build/C/man2/getdomainname.2:113
7184 msgid "POSIX does not specify these calls."
7185 msgstr ""
7186
7187 #. type: Plain text
7188 #: build/C/man2/getdomainname.2:117
7189 msgid ""
7190 "Since Linux 1.0, the limit on the length of a domain name, including the "
7191 "terminating null byte, is 64 bytes.  In older kernels, it was 8 bytes."
7192 msgstr ""
7193
7194 #. type: Plain text
7195 #: build/C/man2/getdomainname.2:127
7196 msgid ""
7197 "On most Linux architectures (including x86), there is no B<getdomainname>()  "
7198 "system call; instead, glibc implements B<getdomainname>()  as a library "
7199 "function that returns a copy of the I<domainname> field returned from a call "
7200 "to B<uname>(2)."
7201 msgstr ""
7202
7203 #. type: Plain text
7204 #: build/C/man2/getdomainname.2:131
7205 msgid "B<gethostname>(2), B<sethostname>(2), B<uname>(2)"
7206 msgstr ""
7207
7208 #. type: TH
7209 #: build/C/man2/getdtablesize.2:27
7210 #, no-wrap
7211 msgid "GETDTABLESIZE"
7212 msgstr ""
7213
7214 #. type: Plain text
7215 #: build/C/man2/getdtablesize.2:30
7216 msgid "getdtablesize - get descriptor table size"
7217 msgstr ""
7218
7219 #. type: Plain text
7220 #: build/C/man2/getdtablesize.2:34
7221 msgid "B<int getdtablesize(void);>"
7222 msgstr ""
7223
7224 #. type: Plain text
7225 #: build/C/man2/getdtablesize.2:41
7226 msgid "B<getdtablesize>():"
7227 msgstr ""
7228
7229 #. type: Plain text
7230 #: build/C/man2/getdtablesize.2:49 build/C/man2/getpagesize.2:45
7231 #, no-wrap
7232 msgid ""
7233 "_BSD_SOURCE ||\n"
7234 "    !(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600)\n"
7235 msgstr ""
7236
7237 #. type: Plain text
7238 #: build/C/man2/getdtablesize.2:61
7239 msgid ""
7240 "B<getdtablesize>()  returns the maximum number of files a process can have "
7241 "open, one more than the largest possible value for a file descriptor."
7242 msgstr ""
7243
7244 #. type: Plain text
7245 #: build/C/man2/getdtablesize.2:63
7246 msgid "The current limit on the number of open files per process."
7247 msgstr ""
7248
7249 #. type: Plain text
7250 #: build/C/man2/getdtablesize.2:69
7251 msgid ""
7252 "On Linux, B<getdtablesize>()  can return any of the errors described for "
7253 "B<getrlimit>(2); see NOTES below."
7254 msgstr ""
7255
7256 #. type: Plain text
7257 #: build/C/man2/getdtablesize.2:77
7258 msgid ""
7259 "SVr4, 4.4BSD (the B<getdtablesize>()  function first appeared in 4.2BSD).  "
7260 "It is not specified in POSIX.1-2001; portable applications should employ "
7261 "I<sysconf(_SC_OPEN_MAX)> instead of this call."
7262 msgstr ""
7263
7264 #. type: Plain text
7265 #: build/C/man2/getdtablesize.2:90
7266 msgid ""
7267 "B<getdtablesize>()  is implemented as a libc library function.  The glibc "
7268 "version calls B<getrlimit>(2)  and returns the current B<RLIMIT_NOFILE> "
7269 "limit, or B<OPEN_MAX> when that fails.  The libc4 and libc5 versions return "
7270 "B<OPEN_MAX> (set to 256 since Linux 0.98.4)."
7271 msgstr ""
7272
7273 #. type: Plain text
7274 #: build/C/man2/getdtablesize.2:95
7275 msgid "B<close>(2), B<dup>(2), B<getrlimit>(2), B<open>(2)"
7276 msgstr ""
7277
7278 #. type: TH
7279 #: build/C/man3/gethostid.3:29
7280 #, no-wrap
7281 msgid "GETHOSTID"
7282 msgstr ""
7283
7284 #. type: Plain text
7285 #: build/C/man3/gethostid.3:32
7286 msgid "gethostid, sethostid - get or set the unique identifier of the current host"
7287 msgstr ""
7288
7289 #. type: Plain text
7290 #: build/C/man3/gethostid.3:36
7291 msgid "B<long gethostid(void);>"
7292 msgstr ""
7293
7294 #. type: Plain text
7295 #: build/C/man3/gethostid.3:38
7296 msgid "B<int sethostid(long >I<hostid>B<);>"
7297 msgstr ""
7298
7299 #. type: Plain text
7300 #: build/C/man3/gethostid.3:47
7301 msgid "B<gethostid>():"
7302 msgstr ""
7303
7304 #. type: Plain text
7305 #: build/C/man3/gethostid.3:52
7306 msgid "B<sethostid>():"
7307 msgstr ""
7308
7309 #. type: Plain text
7310 #: build/C/man3/gethostid.3:67
7311 msgid ""
7312 "B<gethostid>()  and B<sethostid>()  respectively get or set a unique 32-bit "
7313 "identifier for the current machine.  The 32-bit identifier is intended to be "
7314 "unique among all UNIX systems in existence.  This normally resembles the "
7315 "Internet address for the local machine, as returned by B<gethostbyname>(3), "
7316 "and thus usually never needs to be set."
7317 msgstr ""
7318
7319 #. type: Plain text
7320 #: build/C/man3/gethostid.3:71
7321 msgid "The B<sethostid>()  call is restricted to the superuser."
7322 msgstr ""
7323
7324 #. type: Plain text
7325 #: build/C/man3/gethostid.3:75
7326 msgid ""
7327 "B<gethostid>()  returns the 32-bit identifier for the current host as set by "
7328 "B<sethostid>()."
7329 msgstr ""
7330
7331 #. type: Plain text
7332 #: build/C/man3/gethostid.3:81
7333 msgid ""
7334 "On success, B<sethostid>()  returns 0; on error, -1 is returned, and "
7335 "I<errno> is set to indicate the error."
7336 msgstr ""
7337
7338 #. type: Plain text
7339 #: build/C/man3/gethostid.3:84
7340 msgid "B<sethostid>()  can fail with the following errors:"
7341 msgstr ""
7342
7343 #. type: Plain text
7344 #: build/C/man3/gethostid.3:88
7345 msgid ""
7346 "The caller did not have permission to write to the file used to store the "
7347 "host ID."
7348 msgstr ""
7349
7350 #. type: Plain text
7351 #: build/C/man3/gethostid.3:92
7352 msgid ""
7353 "The calling process's effective user or group ID is not the same as its "
7354 "corresponding real ID."
7355 msgstr ""
7356
7357 #. type: Plain text
7358 #: build/C/man3/gethostid.3:102
7359 msgid ""
7360 "4.2BSD; these functions were dropped in 4.4BSD.  SVr4 includes "
7361 "B<gethostid>()  but not B<sethostid>().  POSIX.1-2001 specifies "
7362 "B<gethostid>()  but not B<sethostid>()."
7363 msgstr ""
7364
7365 #.  libc5 used /etc/hostid; libc4 didn't have these functions
7366 #. type: Plain text
7367 #: build/C/man3/gethostid.3:111
7368 msgid ""
7369 "In the glibc implementation, the I<hostid> is stored in the file "
7370 "I</etc/hostid>.  (In glibc versions before 2.2, the file I</var/adm/hostid> "
7371 "was used.)"
7372 msgstr ""
7373
7374 #. type: Plain text
7375 #: build/C/man3/gethostid.3:122
7376 msgid ""
7377 "In the glibc implementation, if B<gethostid>()  cannot open the file "
7378 "containing the host ID, then it obtains the hostname using "
7379 "B<gethostname>(2), passes that hostname to B<gethostbyname_r>(3)  in order "
7380 "to obtain the host's IPv4 address, and returns a value obtained by "
7381 "bit-twiddling the IPv4 address.  (This value may not be unique.)"
7382 msgstr ""
7383
7384 #. type: Plain text
7385 #: build/C/man3/gethostid.3:124
7386 msgid "It is impossible to ensure that the identifier is globally unique."
7387 msgstr ""
7388
7389 #. type: Plain text
7390 #: build/C/man3/gethostid.3:127
7391 msgid "B<hostid>(1), B<gethostbyname>(3)"
7392 msgstr ""
7393
7394 #. type: TH
7395 #: build/C/man2/gethostname.2:32
7396 #, no-wrap
7397 msgid "GETHOSTNAME"
7398 msgstr ""
7399
7400 #. type: Plain text
7401 #: build/C/man2/gethostname.2:35
7402 msgid "gethostname, sethostname - get/set hostname"
7403 msgstr ""
7404
7405 #. type: Plain text
7406 #: build/C/man2/gethostname.2:39
7407 msgid "B<int gethostname(char *>I<name>B<, size_t >I<len>B<);>"
7408 msgstr ""
7409
7410 #. type: Plain text
7411 #: build/C/man2/gethostname.2:41
7412 msgid "B<int sethostname(const char *>I<name>B<, size_t >I<len>B<);>"
7413 msgstr ""
7414
7415 #. type: Plain text
7416 #: build/C/man2/gethostname.2:50
7417 msgid "B<gethostname>():"
7418 msgstr ""
7419
7420 #. type: Plain text
7421 #: build/C/man2/gethostname.2:53
7422 msgid "Since glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500"
7423 msgstr ""
7424
7425 #. type: Plain text
7426 #: build/C/man2/gethostname.2:55
7427 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L"
7428 msgstr ""
7429
7430 #. type: Plain text
7431 #: build/C/man2/gethostname.2:58
7432 msgid "B<sethostname>():"
7433 msgstr ""
7434
7435 #. type: Plain text
7436 #: build/C/man2/gethostname.2:66
7437 msgid ""
7438 "These system calls are used to access or to change the hostname of the "
7439 "current processor."
7440 msgstr ""
7441
7442 #. type: Plain text
7443 #: build/C/man2/gethostname.2:77
7444 msgid ""
7445 "B<sethostname>()  sets the hostname to the value given in the character "
7446 "array I<name>.  The I<len> argument specifies the number of bytes in "
7447 "I<name>.  (Thus, I<name> does not require a terminating null byte.)"
7448 msgstr ""
7449
7450 #. type: Plain text
7451 #: build/C/man2/gethostname.2:89
7452 msgid ""
7453 "B<gethostname>()  returns the null-terminated hostname in the character "
7454 "array I<name>, which has a length of I<len> bytes.  If the null-terminated "
7455 "hostname is too large to fit, then the name is truncated, and no error is "
7456 "returned (but see NOTES below).  POSIX.1-2001 says that if such truncation "
7457 "occurs, then it is unspecified whether the returned buffer includes a "
7458 "terminating null byte."
7459 msgstr ""
7460
7461 #. type: Plain text
7462 #: build/C/man2/gethostname.2:99
7463 msgid "I<name> is an invalid address."
7464 msgstr ""
7465
7466 #.  Can't occur for gethostbyname() wrapper, since 'len' has an
7467 #.  unsigned type; can occur for the underlying system call.
7468 #. type: Plain text
7469 #: build/C/man2/gethostname.2:109
7470 msgid ""
7471 "I<len> is negative or, for B<sethostname>(), I<len> is larger than the "
7472 "maximum allowed size."
7473 msgstr ""
7474
7475 #. type: Plain text
7476 #: build/C/man2/gethostname.2:117
7477 msgid ""
7478 "(glibc B<gethostname>())  I<len> is smaller than the actual size.  (Before "
7479 "version 2.1, glibc uses B<EINVAL> for this case.)"
7480 msgstr ""
7481
7482 #. type: Plain text
7483 #: build/C/man2/gethostname.2:124
7484 msgid ""
7485 "For B<sethostname>(), the caller did not have the B<CAP_SYS_ADMIN> "
7486 "capability."
7487 msgstr ""
7488
7489 #. type: Plain text
7490 #: build/C/man2/gethostname.2:130
7491 msgid ""
7492 "SVr4, 4.4BSD (these interfaces first appeared in 4.2BSD).  POSIX.1-2001 "
7493 "specifies B<gethostname>()  but not B<sethostname>()."
7494 msgstr ""
7495
7496 #. type: Plain text
7497 #: build/C/man2/gethostname.2:140
7498 msgid ""
7499 "SUSv2 guarantees that \"Host names are limited to 255 bytes\".  POSIX.1-2001 "
7500 "guarantees that \"Host names (not including the terminating null byte) are "
7501 "limited to B<HOST_NAME_MAX> bytes\".  On Linux, B<HOST_NAME_MAX> is defined "
7502 "with the value 64, which has been the limit since Linux 1.0 (earlier kernels "
7503 "imposed a limit of 8 bytes)."
7504 msgstr ""
7505
7506 #. type: Plain text
7507 #: build/C/man2/gethostname.2:163
7508 msgid ""
7509 "The GNU C library does not employ the B<gethostname>()  system call; "
7510 "instead, it implements B<gethostname>()  as a library function that calls "
7511 "B<uname>(2)  and copies up to I<len> bytes from the returned I<nodename> "
7512 "field into I<name>.  Having performed the copy, the function then checks if "
7513 "the length of the I<nodename> was greater than or equal to I<len>, and if it "
7514 "is, then the function returns -1 with I<errno> set to B<ENAMETOOLONG>; in "
7515 "this case, a terminating null byte is not included in the returned I<name>."
7516 msgstr ""
7517
7518 #.  At least glibc 2.0 and 2.1, older versions not checked
7519 #. type: Plain text
7520 #: build/C/man2/gethostname.2:176
7521 msgid ""
7522 "Versions of glibc before 2.2 handle the case where the length of the "
7523 "I<nodename> was greater than or equal to I<len> differently: nothing is "
7524 "copied into I<name> and the function returns -1 with I<errno> set to "
7525 "B<ENAMETOOLONG>."
7526 msgstr ""
7527
7528 #. type: Plain text
7529 #: build/C/man2/gethostname.2:180
7530 msgid "B<getdomainname>(2), B<setdomainname>(2), B<uname>(2)"
7531 msgstr ""
7532
7533 #. type: TH
7534 #: build/C/man3/getlogin.3:28
7535 #, no-wrap
7536 msgid "GETLOGIN"
7537 msgstr ""
7538
7539 #. type: TH
7540 #: build/C/man3/getlogin.3:28
7541 #, no-wrap
7542 msgid "2008-06-29"
7543 msgstr ""
7544
7545 #. type: Plain text
7546 #: build/C/man3/getlogin.3:31
7547 msgid "getlogin, getlogin_r, cuserid - get username"
7548 msgstr ""
7549
7550 #. type: Plain text
7551 #: build/C/man3/getlogin.3:35
7552 msgid "B<char *getlogin(void);>"
7553 msgstr ""
7554
7555 #. type: Plain text
7556 #: build/C/man3/getlogin.3:37
7557 msgid "B<int getlogin_r(char *>I<buf>B<, size_t >I<bufsize>B<);>"
7558 msgstr ""
7559
7560 #. type: Plain text
7561 #: build/C/man3/getlogin.3:39
7562 msgid "B<#include E<lt>stdio.hE<gt>>"
7563 msgstr ""
7564
7565 #. type: Plain text
7566 #: build/C/man3/getlogin.3:41
7567 msgid "B<char *cuserid(char *>I<string>B<);>"
7568 msgstr ""
7569
7570 #. type: Plain text
7571 #: build/C/man3/getlogin.3:49
7572 msgid "B<getlogin_r>(): _REENTRANT || _POSIX_C_SOURCE\\ E<gt>=\\ 199506L"
7573 msgstr ""
7574
7575 #. type: Plain text
7576 #: build/C/man3/getlogin.3:52
7577 msgid "B<cuserid>(): _XOPEN_SOURCE"
7578 msgstr ""
7579
7580 #. type: Plain text
7581 #: build/C/man3/getlogin.3:61
7582 msgid ""
7583 "B<getlogin>()  returns a pointer to a string containing the name of the user "
7584 "logged in on the controlling terminal of the process, or a NULL pointer if "
7585 "this information cannot be determined.  The string is statically allocated "
7586 "and might be overwritten on subsequent calls to this function or to "
7587 "B<cuserid>()."
7588 msgstr ""
7589
7590 #. type: Plain text
7591 #: build/C/man3/getlogin.3:67
7592 msgid ""
7593 "B<getlogin_r>()  returns this same username in the array I<buf> of size "
7594 "I<bufsize>."
7595 msgstr ""
7596
7597 #. type: Plain text
7598 #: build/C/man3/getlogin.3:79
7599 msgid ""
7600 "B<cuserid>()  returns a pointer to a string containing a username associated "
7601 "with the effective user ID of the process.  If I<string> is not a NULL "
7602 "pointer, it should be an array that can hold at least B<L_cuserid> "
7603 "characters; the string is returned in this array.  Otherwise, a pointer to a "
7604 "string in a static area is returned.  This string is statically allocated "
7605 "and might be overwritten on subsequent calls to this function or to "
7606 "B<getlogin>()."
7607 msgstr ""
7608
7609 #. type: Plain text
7610 #: build/C/man3/getlogin.3:83
7611 msgid ""
7612 "The macro B<L_cuserid> is an integer constant that indicates how long an "
7613 "array you might need to store a username.  B<L_cuserid> is declared in "
7614 "I<E<lt>stdio.hE<gt>>."
7615 msgstr ""
7616
7617 #. type: Plain text
7618 #: build/C/man3/getlogin.3:90
7619 msgid ""
7620 "These functions let your program identify positively the user who is running "
7621 "(B<cuserid>())  or the user who logged in this session (B<getlogin>()).  "
7622 "(These can differ when set-user-ID programs are involved.)"
7623 msgstr ""
7624
7625 #. type: Plain text
7626 #: build/C/man3/getlogin.3:95
7627 msgid ""
7628 "For most purposes, it is more useful to use the environment variable "
7629 "B<LOGNAME> to find out who the user is.  This is more flexible precisely "
7630 "because the user can set B<LOGNAME> arbitrarily."
7631 msgstr ""
7632
7633 #. type: Plain text
7634 #: build/C/man3/getlogin.3:101
7635 msgid ""
7636 "B<getlogin>()  returns a pointer to the username when successful, and NULL "
7637 "on failure.  B<getlogin_r>()  returns 0 when successful, and nonzero on "
7638 "failure."
7639 msgstr ""
7640
7641 #. type: Plain text
7642 #: build/C/man3/getlogin.3:103
7643 msgid "POSIX specifies"
7644 msgstr ""
7645
7646 #. type: Plain text
7647 #: build/C/man3/getlogin.3:106
7648 msgid "The calling process already has the maximum allowed number of open files."
7649 msgstr ""
7650
7651 #. type: Plain text
7652 #: build/C/man3/getlogin.3:109
7653 msgid "The system already has the maximum allowed number of open files."
7654 msgstr ""
7655
7656 #. type: TP
7657 #: build/C/man3/getlogin.3:109
7658 #, no-wrap
7659 msgid "B<ENXIO>"
7660 msgstr ""
7661
7662 #. type: Plain text
7663 #: build/C/man3/getlogin.3:112
7664 msgid "The calling process has no controlling tty."
7665 msgstr ""
7666
7667 #. type: Plain text
7668 #: build/C/man3/getlogin.3:118
7669 msgid ""
7670 "(getlogin_r)  The length of the username, including the terminating null "
7671 "byte, is larger than I<bufsize>."
7672 msgstr ""
7673
7674 #. type: Plain text
7675 #: build/C/man3/getlogin.3:120
7676 msgid "Linux/glibc also has"
7677 msgstr ""
7678
7679 #. type: Plain text
7680 #: build/C/man3/getlogin.3:123
7681 msgid "There was no corresponding entry in the utmp-file."
7682 msgstr ""
7683
7684 #. type: Plain text
7685 #: build/C/man3/getlogin.3:126
7686 msgid "Insufficient memory to allocate passwd structure."
7687 msgstr ""
7688
7689 #. type: TP
7690 #: build/C/man3/getlogin.3:126 build/C/man2/ioctl.2:105 build/C/man2/ioctl.2:109 build/C/man3/tcgetpgrp.3:90
7691 #, no-wrap
7692 msgid "B<ENOTTY>"
7693 msgstr ""
7694
7695 #. type: Plain text
7696 #: build/C/man3/getlogin.3:130
7697 msgid "Standard input didn't refer to a terminal.  (See BUGS.)"
7698 msgstr ""
7699
7700 #. type: TP
7701 #: build/C/man3/getlogin.3:131
7702 #, no-wrap
7703 msgid "I</etc/passwd>"
7704 msgstr ""
7705
7706 #. type: Plain text
7707 #: build/C/man3/getlogin.3:134
7708 msgid "password database file"
7709 msgstr ""
7710
7711 #. type: TP
7712 #: build/C/man3/getlogin.3:134
7713 #, no-wrap
7714 msgid "I</var/run/utmp>"
7715 msgstr ""
7716
7717 #. type: Plain text
7718 #: build/C/man3/getlogin.3:138
7719 msgid "(traditionally I</etc/utmp>; some libc versions used I</var/adm/utmp>)"
7720 msgstr ""
7721
7722 #. type: Plain text
7723 #: build/C/man3/getlogin.3:143
7724 msgid "B<getlogin>()  and B<getlogin_r>()  specified in POSIX.1-2001."
7725 msgstr ""
7726
7727 #. type: Plain text
7728 #: build/C/man3/getlogin.3:154
7729 msgid ""
7730 "System V has a B<cuserid>()  function which uses the real user ID rather "
7731 "than the effective user ID.  The B<cuserid>()  function was included in the "
7732 "1988 version of POSIX, but removed from the 1990 version.  It was present in "
7733 "SUSv2, but removed in POSIX.1-2001."
7734 msgstr ""
7735
7736 #. type: Plain text
7737 #: build/C/man3/getlogin.3:161
7738 msgid ""
7739 "OpenBSD has B<getlogin>()  and B<setlogin>(), and a username associated with "
7740 "a session, even if it has no controlling tty."
7741 msgstr ""
7742
7743 #. type: Plain text
7744 #: build/C/man3/getlogin.3:173
7745 msgid ""
7746 "Unfortunately, it is often rather easy to fool B<getlogin>().  Sometimes it "
7747 "does not work at all, because some program messed up the utmp file.  Often, "
7748 "it gives only the first 8 characters of the login name.  The user currently "
7749 "logged in on the controlling tty of our program need not be the user who "
7750 "started it.  Avoid B<getlogin>()  for security-related purposes."
7751 msgstr ""
7752
7753 #. type: Plain text
7754 #: build/C/man3/getlogin.3:183
7755 msgid ""
7756 "Note that glibc does not follow the POSIX specification and uses I<stdin> "
7757 "instead of I</dev/tty>.  A bug.  (Other recent systems, like SunOS 5.8 and "
7758 "HP-UX 11.11 and FreeBSD 4.8 all return the login name also when I<stdin> is "
7759 "redirected.)"
7760 msgstr ""
7761
7762 #. type: Plain text
7763 #: build/C/man3/getlogin.3:193
7764 msgid ""
7765 "Nobody knows precisely what B<cuserid>()  does; avoid it in portable "
7766 "programs.  Or avoid it altogether: use I<getpwuid(geteuid())> instead, if "
7767 "that is what you meant.  B<Do not use> B<cuserid>()."
7768 msgstr ""
7769
7770 #. type: Plain text
7771 #: build/C/man3/getlogin.3:197
7772 msgid "B<geteuid>(2), B<getuid>(2), B<utmp>(5)"
7773 msgstr ""
7774
7775 #. type: TH
7776 #: build/C/man3/getopt.3:39
7777 #, no-wrap
7778 msgid "GETOPT"
7779 msgstr ""
7780
7781 #. type: Plain text
7782 #: build/C/man3/getopt.3:43
7783 msgid ""
7784 "getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt - "
7785 "Parse command-line options"
7786 msgstr ""
7787
7788 #. type: Plain text
7789 #: build/C/man3/getopt.3:49
7790 #, no-wrap
7791 msgid ""
7792 "B<int getopt(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7793 "B<           const char *>I<optstring>B<);>\n"
7794 msgstr ""
7795
7796 #. type: Plain text
7797 #: build/C/man3/getopt.3:52
7798 #, no-wrap
7799 msgid ""
7800 "B<extern char *>I<optarg>B<;>\n"
7801 "B<extern int >I<optind>B<, >I<opterr>B<, >I<optopt>B<;>\n"
7802 msgstr ""
7803
7804 #. type: Plain text
7805 #: build/C/man3/getopt.3:54
7806 #, no-wrap
7807 msgid "B<#include E<lt>getopt.hE<gt>>\n"
7808 msgstr ""
7809
7810 #. type: Plain text
7811 #: build/C/man3/getopt.3:58
7812 #, no-wrap
7813 msgid ""
7814 "B<int getopt_long(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7815 "B<           const char *>I<optstring>B<,>\n"
7816 "B<           const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n"
7817 msgstr ""
7818
7819 #. type: Plain text
7820 #: build/C/man3/getopt.3:62
7821 #, no-wrap
7822 msgid ""
7823 "B<int getopt_long_only(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7824 "B<           const char *>I<optstring>B<,>\n"
7825 "B<           const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n"
7826 msgstr ""
7827
7828 #. type: Plain text
7829 #: build/C/man3/getopt.3:72
7830 msgid "B<getopt>(): _POSIX_C_SOURCE\\ E<gt>=\\ 2 || _XOPEN_SOURCE"
7831 msgstr ""
7832
7833 #. type: Plain text
7834 #: build/C/man3/getopt.3:76
7835 msgid "B<getopt_long>(), B<getopt_long_only>(): _GNU_SOURCE"
7836 msgstr ""
7837
7838 #. type: Plain text
7839 #: build/C/man3/getopt.3:97
7840 msgid ""
7841 "The B<getopt>()  function parses the command-line arguments.  Its arguments "
7842 "I<argc> and I<argv> are the argument count and array as passed to the "
7843 "I<main>()  function on program invocation.  An element of I<argv> that "
7844 "starts with \\(aq-\\(aq (and is not exactly \"-\" or \"--\")  is an option "
7845 "element.  The characters of this element (aside from the initial "
7846 "\\(aq-\\(aq) are option characters.  If B<getopt>()  is called repeatedly, "
7847 "it returns successively each of the option characters from each of the "
7848 "option elements."
7849 msgstr ""
7850
7851 #. type: Plain text
7852 #: build/C/man3/getopt.3:106
7853 msgid ""
7854 "The variable I<optind> is the index of the next element to be processed in "
7855 "I<argv>.  The system initializes this value to 1.  The caller can reset it "
7856 "to 1 to restart scanning of the same I<argv>, or when scanning a new "
7857 "argument vector."
7858 msgstr ""
7859
7860 #. type: Plain text
7861 #: build/C/man3/getopt.3:116
7862 msgid ""
7863 "If B<getopt>()  finds another option character, it returns that character, "
7864 "updating the external variable I<optind> and a static variable I<nextchar> "
7865 "so that the next call to B<getopt>()  can resume the scan with the following "
7866 "option character or I<argv>-element."
7867 msgstr ""
7868
7869 #. type: Plain text
7870 #: build/C/man3/getopt.3:122
7871 msgid ""
7872 "If there are no more option characters, B<getopt>()  returns -1.  Then "
7873 "I<optind> is the index in I<argv> of the first I<argv>-element that is not "
7874 "an option."
7875 msgstr ""
7876
7877 #. type: Plain text
7878 #: build/C/man3/getopt.3:149
7879 msgid ""
7880 "I<optstring> is a string containing the legitimate option characters.  If "
7881 "such a character is followed by a colon, the option requires an argument, so "
7882 "B<getopt>()  places a pointer to the following text in the same "
7883 "I<argv>-element, or the text of the following I<argv>-element, in "
7884 "I<optarg>.  Two colons mean an option takes an optional arg; if there is "
7885 "text in the current I<argv>-element (i.e., in the same word as the option "
7886 "name itself, for example, \"-oarg\"), then it is returned in I<optarg>, "
7887 "otherwise I<optarg> is set to zero.  This is a GNU extension.  If "
7888 "I<optstring> contains B<W> followed by a semicolon, then B<-W foo> is "
7889 "treated as the long option B<--foo>.  (The B<-W> option is reserved by "
7890 "POSIX.2 for implementation extensions.)  This behavior is a GNU extension, "
7891 "not available with libraries before glibc 2."
7892 msgstr ""
7893
7894 #. type: Plain text
7895 #: build/C/man3/getopt.3:167
7896 msgid ""
7897 "By default, B<getopt>()  permutes the contents of I<argv> as it scans, so "
7898 "that eventually all the nonoptions are at the end.  Two other modes are also "
7899 "implemented.  If the first character of I<optstring> is \\(aq+\\(aq or the "
7900 "environment variable B<POSIXLY_CORRECT> is set, then option processing stops "
7901 "as soon as a nonoption argument is encountered.  If the first character of "
7902 "I<optstring> is \\(aq-\\(aq, then each nonoption I<argv>-element is handled "
7903 "as if it were the argument of an option with character code 1.  (This is "
7904 "used by programs that were written to expect options and other "
7905 "I<argv>-elements in any order and that care about the ordering of the two.)  "
7906 "The special argument \"--\" forces an end of option-scanning regardless of "
7907 "the scanning mode."
7908 msgstr ""
7909
7910 #. type: Plain text
7911 #: build/C/man3/getopt.3:175
7912 msgid ""
7913 "If B<getopt>()  does not recognize an option character, it prints an error "
7914 "message to I<stderr>, stores the character in I<optopt>, and returns "
7915 "\\(aq?\\(aq.  The calling program may prevent the error message by setting "
7916 "I<opterr> to 0."
7917 msgstr ""
7918
7919 #. type: Plain text
7920 #: build/C/man3/getopt.3:194
7921 msgid ""
7922 "If B<getopt>()  finds an option character in I<argv> that was not included "
7923 "in I<optstring>, or if it detects a missing option argument, it returns "
7924 "\\(aq?\\(aq and sets the external variable I<optopt> to the actual option "
7925 "character.  If the first character (following any optional \\(aq+\\(aq or "
7926 "\\(aq-\\(aq described above)  of I<optstring> is a colon (\\(aq:\\(aq), then "
7927 "B<getopt>()  returns \\(aq:\\(aq instead of \\(aq?\\(aq to indicate a "
7928 "missing option argument.  If an error was detected, and the first character "
7929 "of I<optstring> is not a colon, and the external variable I<opterr> is "
7930 "nonzero (which is the default), B<getopt>()  prints an error message."
7931 msgstr ""
7932
7933 #. type: SS
7934 #: build/C/man3/getopt.3:194
7935 #, no-wrap
7936 msgid "getopt_long() and getopt_long_only()"
7937 msgstr ""
7938
7939 #. type: Plain text
7940 #: build/C/man3/getopt.3:210
7941 msgid ""
7942 "The B<getopt_long>()  function works like B<getopt>()  except that it also "
7943 "accepts long options, started with two dashes.  (If the program accepts only "
7944 "long options, then I<optstring> should be specified as an empty string "
7945 "(\"\"), not NULL.)  Long option names may be abbreviated if the abbreviation "
7946 "is unique or is an exact match for some defined option.  A long option may "
7947 "take a parameter, of the form B<--arg=param> or B<--arg param>."
7948 msgstr ""
7949
7950 #. type: Plain text
7951 #: build/C/man3/getopt.3:217
7952 msgid ""
7953 "I<longopts> is a pointer to the first element of an array of I<struct "
7954 "option> declared in I<E<lt>getopt.hE<gt>> as"
7955 msgstr ""
7956
7957 #. type: Plain text
7958 #: build/C/man3/getopt.3:226
7959 #, no-wrap
7960 msgid ""
7961 "struct option {\n"
7962 "    const char *name;\n"
7963 "    int         has_arg;\n"
7964 "    int        *flag;\n"
7965 "    int         val;\n"
7966 "};\n"
7967 msgstr ""
7968
7969 #. type: Plain text
7970 #: build/C/man3/getopt.3:230
7971 msgid "The meanings of the different fields are:"
7972 msgstr ""
7973
7974 #. type: TP
7975 #: build/C/man3/getopt.3:230
7976 #, no-wrap
7977 msgid "I<name>"
7978 msgstr ""
7979
7980 #. type: Plain text
7981 #: build/C/man3/getopt.3:233
7982 msgid "is the name of the long option."
7983 msgstr ""
7984
7985 #. type: TP
7986 #: build/C/man3/getopt.3:233
7987 #, no-wrap
7988 msgid "I<has_arg>"
7989 msgstr ""
7990
7991 #. type: Plain text
7992 #: build/C/man3/getopt.3:239
7993 msgid ""
7994 "is: B<no_argument> (or 0) if the option does not take an argument; "
7995 "B<required_argument> (or 1) if the option requires an argument; or "
7996 "B<optional_argument> (or 2) if the option takes an optional argument."
7997 msgstr ""
7998
7999 #. type: TP
8000 #: build/C/man3/getopt.3:239
8001 #, no-wrap
8002 msgid "I<flag>"
8003 msgstr ""
8004
8005 #. type: Plain text
8006 #: build/C/man3/getopt.3:253
8007 msgid ""
8008 "specifies how results are returned for a long option.  If I<flag> is NULL, "
8009 "then B<getopt_long>()  returns I<val>.  (For example, the calling program "
8010 "may set I<val> to the equivalent short option character.)  Otherwise, "
8011 "B<getopt_long>()  returns 0, and I<flag> points to a variable which is set "
8012 "to I<val> if the option is found, but left unchanged if the option is not "
8013 "found."
8014 msgstr ""
8015
8016 #. type: TP
8017 #: build/C/man3/getopt.3:253
8018 #, no-wrap
8019 msgid "I<val>"
8020 msgstr ""
8021
8022 #. type: Plain text
8023 #: build/C/man3/getopt.3:257
8024 msgid "is the value to return, or to load into the variable pointed to by I<flag>."
8025 msgstr ""
8026
8027 #. type: Plain text
8028 #: build/C/man3/getopt.3:259
8029 msgid "The last element of the array has to be filled with zeros."
8030 msgstr ""
8031
8032 #. type: Plain text
8033 #: build/C/man3/getopt.3:263
8034 msgid ""
8035 "If I<longindex> is not NULL, it points to a variable which is set to the "
8036 "index of the long option relative to I<longopts>."
8037 msgstr ""
8038
8039 #. type: Plain text
8040 #: build/C/man3/getopt.3:272
8041 msgid ""
8042 "B<getopt_long_only>()  is like B<getopt_long>(), but \\(aq-\\(aq as well as "
8043 "\"--\" can indicate a long option.  If an option that starts with "
8044 "\\(aq-\\(aq (not \"--\") doesn't match a long option, but does match a short "
8045 "option, it is parsed as a short option instead."
8046 msgstr ""
8047
8048 #. type: Plain text
8049 #: build/C/man3/getopt.3:290
8050 msgid ""
8051 "If an option was successfully found, then B<getopt>()  returns the option "
8052 "character.  If all command-line options have been parsed, then B<getopt>()  "
8053 "returns -1.  If B<getopt>()  encounters an option character that was not in "
8054 "I<optstring>, then \\(aq?\\(aq is returned.  If B<getopt>()  encounters an "
8055 "option with a missing argument, then the return value depends on the first "
8056 "character in I<optstring>: if it is \\(aq:\\(aq, then \\(aq:\\(aq is "
8057 "returned; otherwise \\(aq?\\(aq is returned."
8058 msgstr ""
8059
8060 #. type: Plain text
8061 #: build/C/man3/getopt.3:302
8062 msgid ""
8063 "B<getopt_long>()  and B<getopt_long_only>()  also return the option "
8064 "character when a short option is recognized.  For a long option, they return "
8065 "I<val> if I<flag> is NULL, and 0 otherwise.  Error and -1 returns are the "
8066 "same as for B<getopt>(), plus \\(aq?\\(aq for an ambiguous match or an "
8067 "extraneous parameter."
8068 msgstr ""
8069
8070 #. type: SH
8071 #: build/C/man3/getopt.3:302
8072 #, no-wrap
8073 msgid "ENVIRONMENT"
8074 msgstr ""
8075
8076 #. type: TP
8077 #: build/C/man3/getopt.3:303
8078 #, no-wrap
8079 msgid "B<POSIXLY_CORRECT>"
8080 msgstr ""
8081
8082 #. type: Plain text
8083 #: build/C/man3/getopt.3:307
8084 msgid ""
8085 "If this is set, then option processing stops as soon as a nonoption argument "
8086 "is encountered."
8087 msgstr ""
8088
8089 #. type: TP
8090 #: build/C/man3/getopt.3:307
8091 #, no-wrap
8092 msgid "B<_E<lt>PIDE<gt>_GNU_nonoption_argv_flags_>"
8093 msgstr ""
8094
8095 #. type: Plain text
8096 #: build/C/man3/getopt.3:316
8097 msgid ""
8098 "This variable was used by B<bash>(1)  2.0 to communicate to glibc which "
8099 "arguments are the results of wildcard expansion and so should not be "
8100 "considered as options.  This behavior was removed in B<bash>(1)  version "
8101 "2.01, but the support remains in glibc."
8102 msgstr ""
8103
8104 #. type: TP
8105 #: build/C/man3/getopt.3:317
8106 #, no-wrap
8107 msgid "B<getopt>():"
8108 msgstr ""
8109
8110 #. type: Plain text
8111 #: build/C/man3/getopt.3:327
8112 msgid ""
8113 "POSIX.2 and POSIX.1-2001, provided the environment variable "
8114 "B<POSIXLY_CORRECT> is set.  Otherwise, the elements of I<argv> aren't really "
8115 "const, because we permute them.  We pretend they're const in the prototype "
8116 "to be compatible with other systems."
8117 msgstr ""
8118
8119 #. type: Plain text
8120 #: build/C/man3/getopt.3:331
8121 msgid "The use of \\(aq+\\(aq and \\(aq-\\(aq in I<optstring> is a GNU extension."
8122 msgstr ""
8123
8124 #. type: Plain text
8125 #: build/C/man3/getopt.3:345
8126 msgid ""
8127 "On some older implementations, B<getopt>()  was declared in "
8128 "I<E<lt>stdio.hE<gt>>.  SUSv1 permitted the declaration to appear in either "
8129 "I<E<lt>unistd.hE<gt>> or I<E<lt>stdio.hE<gt>>.  POSIX.1-2001 marked the use "
8130 "of I<E<lt>stdio.hE<gt>> for this purpose as LEGACY.  POSIX.1-2001 does not "
8131 "allow the declaration to appear in I<E<lt>stdio.hE<gt>>."
8132 msgstr ""
8133
8134 #. type: TP
8135 #: build/C/man3/getopt.3:345
8136 #, no-wrap
8137 msgid "B<getopt_long>() and B<getopt_long_only>():"
8138 msgstr ""
8139
8140 #. type: Plain text
8141 #: build/C/man3/getopt.3:348
8142 msgid "These functions are GNU extensions."
8143 msgstr ""
8144
8145 #. type: Plain text
8146 #: build/C/man3/getopt.3:367
8147 msgid ""
8148 "A program that scans multiple argument vectors, or rescans the same vector "
8149 "more than once, and wants to make use of GNU extensions such as \\(aq+\\(aq "
8150 "and \\(aq-\\(aq at the start of I<optstring>, or changes the value of "
8151 "B<POSIXLY_CORRECT> between scans, must reinitialize B<getopt>()  by "
8152 "resetting I<optind> to 0, rather than the traditional value of 1.  "
8153 "(Resetting to 0 forces the invocation of an internal initialization routine "
8154 "that rechecks B<POSIXLY_CORRECT> and checks for GNU extensions in "
8155 "I<optstring>.)"
8156 msgstr ""
8157
8158 #. type: Plain text
8159 #: build/C/man3/getopt.3:374
8160 msgid ""
8161 "The POSIX.2 specification of B<getopt>()  has a technical error described in "
8162 "POSIX.2 Interpretation 150.  The GNU implementation (and probably all other "
8163 "implementations) implements the correct behavior rather than that specified."
8164 msgstr ""
8165
8166 #. type: Plain text
8167 #: build/C/man3/getopt.3:382
8168 msgid ""
8169 "The following trivial example program uses B<getopt>()  to handle two "
8170 "program options: I<-n>, with no associated value; and I<-t val>, which "
8171 "expects an associated value."
8172 msgstr ""
8173
8174 #. type: Plain text
8175 #: build/C/man3/getopt.3:387
8176 #, no-wrap
8177 msgid ""
8178 "#include E<lt>unistd.hE<gt>\n"
8179 "#include E<lt>stdlib.hE<gt>\n"
8180 "#include E<lt>stdio.hE<gt>\n"
8181 msgstr ""
8182
8183 #. type: Plain text
8184 #: build/C/man3/getopt.3:393
8185 #, no-wrap
8186 msgid ""
8187 "int\n"
8188 "main(int argc, char *argv[])\n"
8189 "{\n"
8190 "    int flags, opt;\n"
8191 "    int nsecs, tfnd;\n"
8192 msgstr ""
8193
8194 #. type: Plain text
8195 #: build/C/man3/getopt.3:412
8196 #, no-wrap
8197 msgid ""
8198 "    nsecs = 0;\n"
8199 "    tfnd = 0;\n"
8200 "    flags = 0;\n"
8201 "    while ((opt = getopt(argc, argv, \"nt:\")) != -1) {\n"
8202 "        switch (opt) {\n"
8203 "        case \\(aqn\\(aq:\n"
8204 "            flags = 1;\n"
8205 "            break;\n"
8206 "        case \\(aqt\\(aq:\n"
8207 "            nsecs = atoi(optarg);\n"
8208 "            tfnd = 1;\n"
8209 "            break;\n"
8210 "        default: /* \\(aq?\\(aq */\n"
8211 "            fprintf(stderr, \"Usage: %s [-t nsecs] [-n] name\\en\",\n"
8212 "                    argv[0]);\n"
8213 "            exit(EXIT_FAILURE);\n"
8214 "        }\n"
8215 "    }\n"
8216 msgstr ""
8217
8218 #. type: Plain text
8219 #: build/C/man3/getopt.3:414
8220 #, no-wrap
8221 msgid "    printf(\"flags=%d; tfnd=%d; optind=%d\\en\", flags, tfnd, optind);\n"
8222 msgstr ""
8223
8224 #. type: Plain text
8225 #: build/C/man3/getopt.3:419
8226 #, no-wrap
8227 msgid ""
8228 "    if (optind E<gt>= argc) {\n"
8229 "        fprintf(stderr, \"Expected argument after options\\en\");\n"
8230 "        exit(EXIT_FAILURE);\n"
8231 "    }\n"
8232 msgstr ""
8233
8234 #. type: Plain text
8235 #: build/C/man3/getopt.3:421
8236 #, no-wrap
8237 msgid "    printf(\"name argument = %s\\en\", argv[optind]);\n"
8238 msgstr ""
8239
8240 #. type: Plain text
8241 #: build/C/man3/getopt.3:423
8242 #, no-wrap
8243 msgid "    /* Other code omitted */\n"
8244 msgstr ""
8245
8246 #. type: Plain text
8247 #: build/C/man3/getopt.3:431
8248 msgid ""
8249 "The following example program illustrates the use of B<getopt_long>()  with "
8250 "most of its features."
8251 msgstr ""
8252
8253 #. type: Plain text
8254 #: build/C/man3/getopt.3:436
8255 #, no-wrap
8256 msgid ""
8257 "#include E<lt>stdio.hE<gt>     /* for printf */\n"
8258 "#include E<lt>stdlib.hE<gt>    /* for exit */\n"
8259 "#include E<lt>getopt.hE<gt>\n"
8260 msgstr ""
8261
8262 #. type: Plain text
8263 #: build/C/man3/getopt.3:442
8264 #, no-wrap
8265 msgid ""
8266 "int\n"
8267 "main(int argc, char **argv)\n"
8268 "{\n"
8269 "    int c;\n"
8270 "    int digit_optind = 0;\n"
8271 msgstr ""
8272
8273 #. type: Plain text
8274 #: build/C/man3/getopt.3:455
8275 #, no-wrap
8276 msgid ""
8277 "    while (1) {\n"
8278 "        int this_option_optind = optind ? optind : 1;\n"
8279 "        int option_index = 0;\n"
8280 "        static struct option long_options[] = {\n"
8281 "            {\"add\",     required_argument, 0,  0 },\n"
8282 "            {\"append\",  no_argument,       0,  0 },\n"
8283 "            {\"delete\",  required_argument, 0,  0 },\n"
8284 "            {\"verbose\", no_argument,       0,  0 },\n"
8285 "            {\"create\",  required_argument, 0, \\(aqc\\(aq},\n"
8286 "            {\"file\",    required_argument, 0,  0 },\n"
8287 "            {0,         0,                 0,  0 }\n"
8288 "        };\n"
8289 msgstr ""
8290
8291 #. type: Plain text
8292 #: build/C/man3/getopt.3:460
8293 #, no-wrap
8294 msgid ""
8295 "        c = getopt_long(argc, argv, \"abc:d:012\",\n"
8296 "                 long_options, &option_index);\n"
8297 "        if (c == -1)\n"
8298 "            break;\n"
8299 msgstr ""
8300
8301 #. type: Plain text
8302 #: build/C/man3/getopt.3:468
8303 #, no-wrap
8304 msgid ""
8305 "        switch (c) {\n"
8306 "        case 0:\n"
8307 "            printf(\"option %s\", long_options[option_index].name);\n"
8308 "            if (optarg)\n"
8309 "                printf(\" with arg %s\", optarg);\n"
8310 "            printf(\"\\en\");\n"
8311 "            break;\n"
8312 msgstr ""
8313
8314 #. type: Plain text
8315 #: build/C/man3/getopt.3:477
8316 #, no-wrap
8317 msgid ""
8318 "        case \\(aq0\\(aq:\n"
8319 "        case \\(aq1\\(aq:\n"
8320 "        case \\(aq2\\(aq:\n"
8321 "            if (digit_optind != 0 && digit_optind != this_option_optind)\n"
8322 "              printf(\"digits occur in two different "
8323 "argv-elements.\\en\");\n"
8324 "            digit_optind = this_option_optind;\n"
8325 "            printf(\"option %c\\en\", c);\n"
8326 "            break;\n"
8327 msgstr ""
8328
8329 #. type: Plain text
8330 #: build/C/man3/getopt.3:481
8331 #, no-wrap
8332 msgid ""
8333 "        case \\(aqa\\(aq:\n"
8334 "            printf(\"option a\\en\");\n"
8335 "            break;\n"
8336 msgstr ""
8337
8338 #. type: Plain text
8339 #: build/C/man3/getopt.3:485
8340 #, no-wrap
8341 msgid ""
8342 "        case \\(aqb\\(aq:\n"
8343 "            printf(\"option b\\en\");\n"
8344 "            break;\n"
8345 msgstr ""
8346
8347 #. type: Plain text
8348 #: build/C/man3/getopt.3:489
8349 #, no-wrap
8350 msgid ""
8351 "        case \\(aqc\\(aq:\n"
8352 "            printf(\"option c with value \\(aq%s\\(aq\\en\", optarg);\n"
8353 "            break;\n"
8354 msgstr ""
8355
8356 #. type: Plain text
8357 #: build/C/man3/getopt.3:493
8358 #, no-wrap
8359 msgid ""
8360 "        case \\(aqd\\(aq:\n"
8361 "            printf(\"option d with value \\(aq%s\\(aq\\en\", optarg);\n"
8362 "            break;\n"
8363 msgstr ""
8364
8365 #. type: Plain text
8366 #: build/C/man3/getopt.3:496
8367 #, no-wrap
8368 msgid ""
8369 "        case \\(aq?\\(aq:\n"
8370 "            break;\n"
8371 msgstr ""
8372
8373 #. type: Plain text
8374 #: build/C/man3/getopt.3:501
8375 #, no-wrap
8376 msgid ""
8377 "        default:\n"
8378 "            printf(\"?? getopt returned character code 0%o ??\\en\", c);\n"
8379 "        }\n"
8380 "    }\n"
8381 msgstr ""
8382
8383 #. type: Plain text
8384 #: build/C/man3/getopt.3:508
8385 #, no-wrap
8386 msgid ""
8387 "    if (optind E<lt> argc) {\n"
8388 "        printf(\"non-option ARGV-elements: \");\n"
8389 "        while (optind E<lt> argc)\n"
8390 "            printf(\"%s \", argv[optind++]);\n"
8391 "        printf(\"\\en\");\n"
8392 "    }\n"
8393 msgstr ""
8394
8395 #. type: Plain text
8396 #: build/C/man3/getopt.3:514
8397 msgid "B<getsubopt>(3)"
8398 msgstr ""
8399
8400 #. type: TH
8401 #: build/C/man2/getpagesize.2:23
8402 #, no-wrap
8403 msgid "GETPAGESIZE"
8404 msgstr ""
8405
8406 #. type: TH
8407 #: build/C/man2/getpagesize.2:23
8408 #, no-wrap
8409 msgid "2010-11-16"
8410 msgstr ""
8411
8412 #. type: Plain text
8413 #: build/C/man2/getpagesize.2:26
8414 msgid "getpagesize - get memory page size"
8415 msgstr ""
8416
8417 #. type: Plain text
8418 #: build/C/man2/getpagesize.2:30
8419 msgid "B<int getpagesize(void);>"
8420 msgstr ""
8421
8422 #. type: Plain text
8423 #: build/C/man2/getpagesize.2:37
8424 msgid "B<getpagesize>():"
8425 msgstr ""
8426
8427 #.  .SH HISTORY
8428 #.  This call first appeared in 4.2BSD.
8429 #. type: Plain text
8430 #: build/C/man2/getpagesize.2:62
8431 msgid ""
8432 "The function B<getpagesize>()  returns the number of bytes in a memory page, "
8433 "where \"page\" is a fixed-length block, the unit for memory allocation and "
8434 "file mapping performed by B<mmap>(2)."
8435 msgstr ""
8436
8437 #. type: Plain text
8438 #: build/C/man2/getpagesize.2:69
8439 msgid ""
8440 "SVr4, 4.4BSD, SUSv2.  In SUSv2 the B<getpagesize>()  call is labeled LEGACY, "
8441 "and in POSIX.1-2001 it has been dropped; HP-UX does not have this call."
8442 msgstr ""
8443
8444 #. type: Plain text
8445 #: build/C/man2/getpagesize.2:74
8446 msgid ""
8447 "Portable applications should employ I<sysconf(_SC_PAGESIZE)> instead of "
8448 "B<getpagesize>():"
8449 msgstr ""
8450
8451 #. type: Plain text
8452 #: build/C/man2/getpagesize.2:79
8453 #, no-wrap
8454 msgid ""
8455 "#include E<lt>unistd.hE<gt>\n"
8456 "long sz = sysconf(_SC_PAGESIZE);\n"
8457 msgstr ""
8458
8459 #. type: Plain text
8460 #: build/C/man2/getpagesize.2:86
8461 msgid "(Most systems allow the synonym B<_SC_PAGE_SIZE> for B<_SC_PAGESIZE>.)"
8462 msgstr ""
8463
8464 #. type: Plain text
8465 #: build/C/man2/getpagesize.2:106
8466 msgid ""
8467 "Whether B<getpagesize>()  is present as a Linux system call depends on the "
8468 "architecture.  If it is, it returns the kernel symbol B<PAGE_SIZE>, whose "
8469 "value depends on the architecture and machine model.  Generally, one uses "
8470 "binaries that are dependent on the architecture but not on the machine "
8471 "model, in order to have a single binary distribution per architecture.  This "
8472 "means that a user program should not find B<PAGE_SIZE> at compile time from "
8473 "a header file, but use an actual system call, at least for those "
8474 "architectures (like sun4) where this dependency exists.  Here libc4, libc5, "
8475 "glibc 2.0 fail because their B<getpagesize>()  returns a statically derived "
8476 "value, and does not use a system call.  Things are OK in glibc 2.1."
8477 msgstr ""
8478
8479 #. type: Plain text
8480 #: build/C/man2/getpagesize.2:109
8481 msgid "B<mmap>(2), B<sysconf>(3)"
8482 msgstr ""
8483
8484 #. type: TH
8485 #: build/C/man2/gettid.2:26
8486 #, no-wrap
8487 msgid "GETTID"
8488 msgstr ""
8489
8490 #. type: TH
8491 #: build/C/man2/gettid.2:26
8492 #, no-wrap
8493 msgid "2008-04-14"
8494 msgstr ""
8495
8496 #. type: Plain text
8497 #: build/C/man2/gettid.2:29
8498 msgid "gettid - get thread identification"
8499 msgstr ""
8500
8501 #. type: Plain text
8502 #: build/C/man2/gettid.2:32
8503 #, no-wrap
8504 msgid "B<#include E<lt>sys/types.hE<gt>>\n"
8505 msgstr ""
8506
8507 #. type: Plain text
8508 #: build/C/man2/gettid.2:34
8509 #, no-wrap
8510 msgid "B<pid_t gettid(void);>\n"
8511 msgstr ""
8512
8513 #. type: Plain text
8514 #: build/C/man2/gettid.2:47
8515 msgid ""
8516 "B<gettid>()  returns the caller's thread ID (TID).  In a single-threaded "
8517 "process, the thread ID is equal to the process ID (PID, as returned by "
8518 "B<getpid>(2)).  In a multithreaded process, all threads have the same PID, "
8519 "but each one has a unique TID.  For further details, see the discussion of "
8520 "B<CLONE_THREAD> in B<clone>(2)."
8521 msgstr ""
8522
8523 #. type: Plain text
8524 #: build/C/man2/gettid.2:49
8525 msgid "On success, returns the thread ID of the calling process."
8526 msgstr ""
8527
8528 #. type: Plain text
8529 #: build/C/man2/gettid.2:51
8530 msgid "This call is always successful."
8531 msgstr ""
8532
8533 #. type: Plain text
8534 #: build/C/man2/gettid.2:55
8535 msgid "The B<gettid>()  system call first appeared on Linux in kernel 2.4.11."
8536 msgstr ""
8537
8538 #. type: Plain text
8539 #: build/C/man2/gettid.2:59
8540 msgid ""
8541 "B<gettid>()  is Linux-specific and should not be used in programs that are "
8542 "intended to be portable."
8543 msgstr ""
8544
8545 #. type: Plain text
8546 #: build/C/man2/gettid.2:68
8547 msgid ""
8548 "The thread ID returned by this call is not the same thing as a POSIX thread "
8549 "ID (i.e., the opaque value returned by B<pthread_self>(3))."
8550 msgstr ""
8551
8552 #. type: Plain text
8553 #: build/C/man2/gettid.2:72
8554 msgid "B<clone>(2), B<fork>(2), B<getpid>(2)"
8555 msgstr ""
8556
8557 #. type: TH
8558 #: build/C/man3/getumask.3:26
8559 #, no-wrap
8560 msgid "GETUMASK"
8561 msgstr ""
8562
8563 #. type: TH
8564 #: build/C/man3/getumask.3:26
8565 #, no-wrap
8566 msgid "2010-09-10"
8567 msgstr ""
8568
8569 #. type: Plain text
8570 #: build/C/man3/getumask.3:29
8571 msgid "getumask - get file creation mask"
8572 msgstr ""
8573
8574 #. type: Plain text
8575 #: build/C/man3/getumask.3:33 build/C/man2/truncate.2:48 build/C/man2/umask.2:39 build/C/man2/vfork.2:31
8576 msgid "B<#include E<lt>sys/types.hE<gt>>"
8577 msgstr ""
8578
8579 #. type: Plain text
8580 #: build/C/man3/getumask.3:37
8581 msgid "B<mode_t getumask(void);>"
8582 msgstr ""
8583
8584 #. type: Plain text
8585 #: build/C/man3/getumask.3:40
8586 msgid "This function returns the current file creation mask.  It is equivalent to"
8587 msgstr ""
8588
8589 #. type: Plain text
8590 #: build/C/man3/getumask.3:49
8591 #, no-wrap
8592 msgid ""
8593 "mode_t getumask(void)\n"
8594 "{\n"
8595 "    mode_t mask = umask( 0 );\n"
8596 "    umask(mask);\n"
8597 "    return mask;\n"
8598 "}\n"
8599 msgstr ""
8600
8601 #. type: Plain text
8602 #: build/C/man3/getumask.3:56
8603 msgid ""
8604 "except that it is documented to be thread-safe (that is, shares a lock with "
8605 "the B<umask>(2)  library call)."
8606 msgstr ""
8607
8608 #. type: Plain text
8609 #: build/C/man3/getumask.3:58
8610 msgid "This is a vaporware GNU extension."
8611 msgstr ""
8612
8613 #. type: Plain text
8614 #: build/C/man3/getumask.3:61
8615 msgid ""
8616 "This function is documented but not implemented yet in glibc, as at version "
8617 "2.9."
8618 msgstr ""
8619
8620 #. type: Plain text
8621 #: build/C/man3/getumask.3:63
8622 msgid "B<umask>(2)"
8623 msgstr ""
8624
8625 #. type: TH
8626 #: build/C/man3/getusershell.3:28
8627 #, no-wrap
8628 msgid "GETUSERSHELL"
8629 msgstr ""
8630
8631 #. type: TH
8632 #: build/C/man3/getusershell.3:28 build/C/man2/nice.2:31 build/C/man2/syscall.2:38 build/C/man2/vhangup.2:27
8633 #, no-wrap
8634 msgid "2007-07-26"
8635 msgstr ""
8636
8637 #. type: Plain text
8638 #: build/C/man3/getusershell.3:31
8639 msgid "getusershell, setusershell, endusershell - get permitted user shells"
8640 msgstr ""
8641
8642 #. type: Plain text
8643 #: build/C/man3/getusershell.3:36
8644 #, no-wrap
8645 msgid "B<char *getusershell(void);>\n"
8646 msgstr ""
8647
8648 #. type: Plain text
8649 #: build/C/man3/getusershell.3:38
8650 #, no-wrap
8651 msgid "B<void setusershell(void);>\n"
8652 msgstr ""
8653
8654 #. type: Plain text
8655 #: build/C/man3/getusershell.3:40
8656 #, no-wrap
8657 msgid "B<void endusershell(void);>\n"
8658 msgstr ""
8659
8660 #. type: Plain text
8661 #: build/C/man3/getusershell.3:51
8662 msgid "B<getusershell>(), B<setusershell>(), B<endusershell>():"
8663 msgstr ""
8664
8665 #. type: Plain text
8666 #: build/C/man3/getusershell.3:67
8667 msgid ""
8668 "The B<getusershell>()  function returns the next line from the file "
8669 "I</etc/shells>, opening the file if necessary.  The line should contain the "
8670 "pathname of a valid user shell.  If I</etc/shells> does not exist or is "
8671 "unreadable, B<getusershell>()  behaves as if I</bin/sh> and I</bin/csh> were "
8672 "listed in the file."
8673 msgstr ""
8674
8675 #. type: Plain text
8676 #: build/C/man3/getusershell.3:71
8677 msgid "The B<setusershell>()  function rewinds I</etc/shells>."
8678 msgstr ""
8679
8680 #. type: Plain text
8681 #: build/C/man3/getusershell.3:75
8682 msgid "The B<endusershell>()  function closes I</etc/shells>."
8683 msgstr ""
8684
8685 #. type: Plain text
8686 #: build/C/man3/getusershell.3:79
8687 msgid "The B<getusershell>()  function returns a NULL pointer on end-of-file."
8688 msgstr ""
8689
8690 #. type: Plain text
8691 #: build/C/man3/getusershell.3:82
8692 #, no-wrap
8693 msgid "/etc/shells\n"
8694 msgstr ""
8695
8696 #. type: Plain text
8697 #: build/C/man3/getusershell.3:85
8698 msgid "4.3BSD."
8699 msgstr ""
8700
8701 #. type: Plain text
8702 #: build/C/man3/getusershell.3:87
8703 msgid "B<shells>(5)"
8704 msgstr ""
8705
8706 #. type: TH
8707 #: build/C/man2/idle.2:32
8708 #, no-wrap
8709 msgid "IDLE"
8710 msgstr ""
8711
8712 #. type: TH
8713 #: build/C/man2/idle.2:32
8714 #, no-wrap
8715 msgid "1994-08-21"
8716 msgstr ""
8717
8718 #. type: Plain text
8719 #: build/C/man2/idle.2:35
8720 msgid "idle - make process 0 idle"
8721 msgstr ""
8722
8723 #. type: Plain text
8724 #: build/C/man2/idle.2:39
8725 msgid "B<int idle(void);>"
8726 msgstr ""
8727
8728 #. type: Plain text
8729 #: build/C/man2/idle.2:46
8730 msgid ""
8731 "B<idle>()  is an internal system call used during bootstrap.  It marks the "
8732 "process's pages as swappable, lowers its priority, and enters the main "
8733 "scheduling loop.  B<idle>()  never returns."
8734 msgstr ""
8735
8736 #. type: Plain text
8737 #: build/C/man2/idle.2:52
8738 msgid ""
8739 "Only process 0 may call B<idle>().  Any user process, even a process with "
8740 "superuser permission, will receive B<EPERM>."
8741 msgstr ""
8742
8743 #. type: Plain text
8744 #: build/C/man2/idle.2:55
8745 msgid ""
8746 "B<idle>()  never returns for process 0, and always returns -1 for a user "
8747 "process."
8748 msgstr ""
8749
8750 #. type: Plain text
8751 #: build/C/man2/idle.2:59 build/C/man2/setup.2:60
8752 msgid "Always, for a user process."
8753 msgstr ""
8754
8755 #. type: Plain text
8756 #: build/C/man2/idle.2:61
8757 msgid "Since 2.3.13 this system call does not exist anymore."
8758 msgstr ""
8759
8760 #. type: Plain text
8761 #: build/C/man2/idle.2:64 build/C/man2/sysinfo.2:86
8762 msgid ""
8763 "This function is Linux-specific, and should not be used in programs intended "
8764 "to be portable."
8765 msgstr ""
8766
8767 #. type: TH
8768 #: build/C/man2/ioctl.2:39
8769 #, no-wrap
8770 msgid "IOCTL"
8771 msgstr ""
8772
8773 #. type: TH
8774 #: build/C/man2/ioctl.2:39
8775 #, no-wrap
8776 msgid "2000-09-21"
8777 msgstr ""
8778
8779 #. type: Plain text
8780 #: build/C/man2/ioctl.2:42
8781 msgid "ioctl - control device"
8782 msgstr ""
8783
8784 #. type: Plain text
8785 #: build/C/man2/ioctl.2:44
8786 msgid "B<#include E<lt>sys/ioctl.hE<gt>>"
8787 msgstr ""
8788
8789 #. type: Plain text
8790 #: build/C/man2/ioctl.2:46
8791 msgid "B<int ioctl(int >I<d>B<, int >I<request>B<, ...);>"
8792 msgstr ""
8793
8794 #. type: Plain text
8795 #: build/C/man2/ioctl.2:57
8796 msgid ""
8797 "The B<ioctl>()  function manipulates the underlying device parameters of "
8798 "special files.  In particular, many operating characteristics of character "
8799 "special files (e.g., terminals) may be controlled with B<ioctl>()  "
8800 "requests.  The argument I<d> must be an open file descriptor."
8801 msgstr ""
8802
8803 #. type: Plain text
8804 #: build/C/man2/ioctl.2:65
8805 msgid ""
8806 "The second argument is a device-dependent request code.  The third argument "
8807 "is an untyped pointer to memory.  It's traditionally B<char *>I<argp> (from "
8808 "the days before B<void *> was valid C), and will be so named for this "
8809 "discussion."
8810 msgstr ""
8811
8812 #. type: Plain text
8813 #: build/C/man2/ioctl.2:81
8814 msgid ""
8815 "An B<ioctl>()  I<request> has encoded in it whether the argument is an I<in> "
8816 "parameter or I<out> parameter, and the size of the argument I<argp> in "
8817 "bytes.  Macros and defines used in specifying an B<ioctl>()  I<request> are "
8818 "located in the file I<E<lt>sys/ioctl.hE<gt>>."
8819 msgstr ""
8820
8821 #. type: Plain text
8822 #: build/C/man2/ioctl.2:90
8823 msgid ""
8824 "Usually, on success zero is returned.  A few B<ioctl>()  requests use the "
8825 "return value as an output parameter and return a nonnegative value on "
8826 "success.  On error, -1 is returned, and I<errno> is set appropriately."
8827 msgstr ""
8828
8829 #. type: Plain text
8830 #: build/C/man2/ioctl.2:95
8831 msgid "I<d> is not a valid descriptor."
8832 msgstr ""
8833
8834 #. type: Plain text
8835 #: build/C/man2/ioctl.2:99
8836 msgid "I<argp> references an inaccessible memory area."
8837 msgstr ""
8838
8839 #. type: Plain text
8840 #: build/C/man2/ioctl.2:105
8841 msgid "I<Request> or I<argp> is not valid."
8842 msgstr ""
8843
8844 #. type: Plain text
8845 #: build/C/man2/ioctl.2:109
8846 msgid "I<d> is not associated with a character special device."
8847 msgstr ""
8848
8849 #. type: Plain text
8850 #: build/C/man2/ioctl.2:115
8851 msgid ""
8852 "The specified request does not apply to the kind of object that the "
8853 "descriptor I<d> references."
8854 msgstr ""
8855
8856 #. type: Plain text
8857 #: build/C/man2/ioctl.2:130
8858 msgid ""
8859 "No single standard.  Arguments, returns, and semantics of B<ioctl>()  vary "
8860 "according to the device driver in question (the call is used as a catch-all "
8861 "for operations that don't cleanly fit the UNIX stream I/O model).  See "
8862 "B<ioctl_list>(2)  for a list of many of the known B<ioctl>()  calls.  The "
8863 "B<ioctl>()  function call appeared in Version 7 AT&T UNIX."
8864 msgstr ""
8865
8866 #. type: Plain text
8867 #: build/C/man2/ioctl.2:138
8868 msgid ""
8869 "In order to use this call, one needs an open file descriptor.  Often the "
8870 "B<open>(2)  call has unwanted side effects, that can be avoided under Linux "
8871 "by giving it the B<O_NONBLOCK> flag."
8872 msgstr ""
8873
8874 #.  .BR mt (4),
8875 #. type: Plain text
8876 #: build/C/man2/ioctl.2:146
8877 msgid "B<execve>(2), B<fcntl>(2), B<ioctl_list>(2), B<open>(2), B<sd>(4), B<tty>(4)"
8878 msgstr ""
8879
8880 #. type: TH
8881 #: build/C/man2/ioctl_list.2:27
8882 #, no-wrap
8883 msgid "IOCTL_LIST"
8884 msgstr ""
8885
8886 #. type: TH
8887 #: build/C/man2/ioctl_list.2:27
8888 #, no-wrap
8889 msgid "2007-12-29"
8890 msgstr ""
8891
8892 #. type: Plain text
8893 #: build/C/man2/ioctl_list.2:30
8894 msgid "ioctl_list - list of ioctl calls in Linux/i386 kernel"
8895 msgstr ""
8896
8897 #. type: Plain text
8898 #: build/C/man2/ioctl_list.2:37
8899 msgid ""
8900 "This is Ioctl List 1.3.27, a list of ioctl calls in Linux/i386 kernel "
8901 "1.3.27.  It contains 421 ioctls from "
8902 "I<E<lt>/usr/include/{asm,linux}/*.hE<gt>>.  For each ioctl, its numerical "
8903 "value, its name, and its argument type are given."
8904 msgstr ""
8905
8906 #. type: Plain text
8907 #: build/C/man2/ioctl_list.2:45
8908 msgid ""
8909 "An argument type of I<const struct foo *> means the argument is input to the "
8910 "kernel.  I<struct foo *> means the kernel outputs the argument.  If the "
8911 "kernel uses the argument for both input and output, this is marked with "
8912 "I<//\\ I-O>."
8913 msgstr ""
8914
8915 #. type: Plain text
8916 #: build/C/man2/ioctl_list.2:50
8917 msgid ""
8918 "Some ioctls take more arguments or return more values than a single "
8919 "structure.  These are marked I<//\\ MORE> and documented further in a "
8920 "separate section."
8921 msgstr ""
8922
8923 #. type: Plain text
8924 #: build/C/man2/ioctl_list.2:52
8925 msgid "This list is very incomplete."
8926 msgstr ""
8927
8928 #. type: SS
8929 #: build/C/man2/ioctl_list.2:52
8930 #, no-wrap
8931 msgid "ioctl structure"
8932 msgstr ""
8933
8934 #.  added two sections - aeb
8935 #. type: Plain text
8936 #: build/C/man2/ioctl_list.2:57
8937 msgid ""
8938 "Ioctl command values are 32-bit constants.  In principle these constants are "
8939 "completely arbitrary, but people have tried to build some structure into "
8940 "them."
8941 msgstr ""
8942
8943 #. type: Plain text
8944 #: build/C/man2/ioctl_list.2:76
8945 msgid ""
8946 "The old Linux situation was that of mostly 16-bit constants, where the last "
8947 "byte is a serial number, and the preceding byte(s) give a type indicating "
8948 "the driver.  Sometimes the major number was used: 0x03 for the B<HDIO_*> "
8949 "ioctls, 0x06 for the B<LP*> ioctls.  And sometimes one or more ASCII letters "
8950 "were used.  For example, B<TCGETS> has value 0x00005401, with 0x54 = "
8951 "\\(aqT\\(aq indicating the terminal driver, and B<CYGETTIMEOUT> has value "
8952 "0x00435906, with 0x43 0x59 = \\(aqC\\(aq \\(aqY\\(aq indicating the cyclades "
8953 "driver."
8954 msgstr ""
8955
8956 #. type: Plain text
8957 #: build/C/man2/ioctl_list.2:84
8958 msgid ""
8959 "Later (0.98p5) some more information was built into the number.  One has 2 "
8960 "direction bits (00: none, 01: write, 10: read, 11: read/write)  followed by "
8961 "14 size bits (giving the size of the argument), followed by an 8-bit type "
8962 "(collecting the ioctls in groups for a common purpose or a common driver), "
8963 "and an 8-bit serial number."
8964 msgstr ""
8965
8966 #. type: Plain text
8967 #: build/C/man2/ioctl_list.2:94
8968 msgid ""
8969 "The macros describing this structure live in I<E<lt>asm/ioctl.hE<gt>> and "
8970 "are B<_IO(type,nr)> and B<{_IOR,_IOW,_IOWR}(type,nr,size)>.  They use "
8971 "I<sizeof(size)> so that size is a misnomer here: this third argument is a "
8972 "data type."
8973 msgstr ""
8974
8975 #. type: Plain text
8976 #: build/C/man2/ioctl_list.2:99
8977 msgid ""
8978 "Note that the size bits are very unreliable: in lots of cases they are "
8979 "wrong, either because of buggy macros using I<sizeof(sizeof(struct))>, or "
8980 "because of legacy values."
8981 msgstr ""
8982
8983 #. type: Plain text
8984 #: build/C/man2/ioctl_list.2:103
8985 msgid ""
8986 "Thus, it seems that the new structure only gave disadvantages: it does not "
8987 "help in checking, but it causes varying values for the various "
8988 "architectures."
8989 msgstr ""
8990
8991 #. type: Plain text
8992 #: build/C/man2/ioctl_list.2:109
8993 msgid ""
8994 "Decent ioctls return 0 on success and -1 on error, while any output value is "
8995 "stored via the argument.  However, quite a few ioctls in fact return an "
8996 "output value.  This is not yet indicated below."
8997 msgstr ""
8998
8999 #. type: Plain text
9000 #: build/C/man2/ioctl_list.2:111
9001 msgid "// Main table."
9002 msgstr ""
9003
9004 #. type: Plain text
9005 #: build/C/man2/ioctl_list.2:113
9006 msgid "// E<lt>include/asm-i386/socket.hE<gt>"
9007 msgstr ""
9008
9009 #. type: tbl table
9010 #: build/C/man2/ioctl_list.2:115
9011 #, no-wrap
9012 msgid "0x00008901\tFIOSETOWN\tconst int *\n"
9013 msgstr ""
9014
9015 #. type: tbl table
9016 #: build/C/man2/ioctl_list.2:116
9017 #, no-wrap
9018 msgid "0x00008902\tSIOCSPGRP\tconst int *\n"
9019 msgstr ""
9020
9021 #. type: tbl table
9022 #: build/C/man2/ioctl_list.2:117
9023 #, no-wrap
9024 msgid "0x00008903\tFIOGETOWN\tint *\n"
9025 msgstr ""
9026
9027 #. type: tbl table
9028 #: build/C/man2/ioctl_list.2:118
9029 #, no-wrap
9030 msgid "0x00008904\tSIOCGPGRP\tint *\n"
9031 msgstr ""
9032
9033 #. type: tbl table
9034 #: build/C/man2/ioctl_list.2:119
9035 #, no-wrap
9036 msgid "0x00008905\tSIOCATMAR\tint *\n"
9037 msgstr ""
9038
9039 #. type: tbl table
9040 #: build/C/man2/ioctl_list.2:120
9041 #, no-wrap
9042 msgid "0x00008906\tSIOCGSTAMP\ttimeval *\n"
9043 msgstr ""
9044
9045 #. type: Plain text
9046 #: build/C/man2/ioctl_list.2:124
9047 msgid "// E<lt>include/asm-i386/termios.hE<gt>"
9048 msgstr ""
9049
9050 #. type: tbl table
9051 #: build/C/man2/ioctl_list.2:126
9052 #, no-wrap
9053 msgid "0x00005401\tTCGETS\tstruct termios *\n"
9054 msgstr ""
9055
9056 #. type: tbl table
9057 #: build/C/man2/ioctl_list.2:127
9058 #, no-wrap
9059 msgid "0x00005402\tTCSETS\tconst struct termios *\n"
9060 msgstr ""
9061
9062 #. type: tbl table
9063 #: build/C/man2/ioctl_list.2:128
9064 #, no-wrap
9065 msgid "0x00005403\tTCSETSW\tconst struct termios *\n"
9066 msgstr ""
9067
9068 #. type: tbl table
9069 #: build/C/man2/ioctl_list.2:129
9070 #, no-wrap
9071 msgid "0x00005404\tTCSETSF\tconst struct termios *\n"
9072 msgstr ""
9073
9074 #. type: tbl table
9075 #: build/C/man2/ioctl_list.2:130
9076 #, no-wrap
9077 msgid "0x00005405\tTCGETA\tstruct termio *\n"
9078 msgstr ""
9079
9080 #. type: tbl table
9081 #: build/C/man2/ioctl_list.2:131
9082 #, no-wrap
9083 msgid "0x00005406\tTCSETA\tconst struct termio *\n"
9084 msgstr ""
9085
9086 #. type: tbl table
9087 #: build/C/man2/ioctl_list.2:132
9088 #, no-wrap
9089 msgid "0x00005407\tTCSETAW\tconst struct termio *\n"
9090 msgstr ""
9091
9092 #. type: tbl table
9093 #: build/C/man2/ioctl_list.2:133
9094 #, no-wrap
9095 msgid "0x00005408\tTCSETAF\tconst struct termio *\n"
9096 msgstr ""
9097
9098 #. type: tbl table
9099 #: build/C/man2/ioctl_list.2:134
9100 #, no-wrap
9101 msgid "0x00005409\tTCSBRK\tint\n"
9102 msgstr ""
9103
9104 #. type: tbl table
9105 #: build/C/man2/ioctl_list.2:135
9106 #, no-wrap
9107 msgid "0x0000540A\tTCXONC\tint\n"
9108 msgstr ""
9109
9110 #. type: tbl table
9111 #: build/C/man2/ioctl_list.2:136
9112 #, no-wrap
9113 msgid "0x0000540B\tTCFLSH\tint\n"
9114 msgstr ""
9115
9116 #. type: tbl table
9117 #: build/C/man2/ioctl_list.2:137
9118 #, no-wrap
9119 msgid "0x0000540C\tTIOCEXCL\tvoid\n"
9120 msgstr ""
9121
9122 #. type: tbl table
9123 #: build/C/man2/ioctl_list.2:138
9124 #, no-wrap
9125 msgid "0x0000540D\tTIOCNXCL\tvoid\n"
9126 msgstr ""
9127
9128 #. type: tbl table
9129 #: build/C/man2/ioctl_list.2:139
9130 #, no-wrap
9131 msgid "0x0000540E\tTIOCSCTTY\tint\n"
9132 msgstr ""
9133
9134 #. type: tbl table
9135 #: build/C/man2/ioctl_list.2:140
9136 #, no-wrap
9137 msgid "0x0000540F\tTIOCGPGRP\tpid_t *\n"
9138 msgstr ""
9139
9140 #. type: tbl table
9141 #: build/C/man2/ioctl_list.2:141
9142 #, no-wrap
9143 msgid "0x00005410\tTIOCSPGRP\tconst pid_t *\n"
9144 msgstr ""
9145
9146 #. type: tbl table
9147 #: build/C/man2/ioctl_list.2:142
9148 #, no-wrap
9149 msgid "0x00005411\tTIOCOUTQ\tint *\n"
9150 msgstr ""
9151
9152 #. type: tbl table
9153 #: build/C/man2/ioctl_list.2:143
9154 #, no-wrap
9155 msgid "0x00005412\tTIOCSTI\tconst char *\n"
9156 msgstr ""
9157
9158 #. type: tbl table
9159 #: build/C/man2/ioctl_list.2:144
9160 #, no-wrap
9161 msgid "0x00005413\tTIOCGWINSZ\tstruct winsize *\n"
9162 msgstr ""
9163
9164 #. type: tbl table
9165 #: build/C/man2/ioctl_list.2:145
9166 #, no-wrap
9167 msgid "0x00005414\tTIOCSWINSZ\tconst struct winsize *\n"
9168 msgstr ""
9169
9170 #. type: tbl table
9171 #: build/C/man2/ioctl_list.2:146
9172 #, no-wrap
9173 msgid "0x00005415\tTIOCMGET\tint *\n"
9174 msgstr ""
9175
9176 #. type: tbl table
9177 #: build/C/man2/ioctl_list.2:147
9178 #, no-wrap
9179 msgid "0x00005416\tTIOCMBIS\tconst int *\n"
9180 msgstr ""
9181
9182 #. type: tbl table
9183 #: build/C/man2/ioctl_list.2:148
9184 #, no-wrap
9185 msgid "0x00005417\tTIOCMBIC\tconst int *\n"
9186 msgstr ""
9187
9188 #. type: tbl table
9189 #: build/C/man2/ioctl_list.2:149
9190 #, no-wrap
9191 msgid "0x00005418\tTIOCMSET\tconst int *\n"
9192 msgstr ""
9193
9194 #. type: tbl table
9195 #: build/C/man2/ioctl_list.2:150
9196 #, no-wrap
9197 msgid "0x00005419\tTIOCGSOFTCAR\tint *\n"
9198 msgstr ""
9199
9200 #. type: tbl table
9201 #: build/C/man2/ioctl_list.2:151
9202 #, no-wrap
9203 msgid "0x0000541A\tTIOCSSOFTCAR\tconst int *\n"
9204 msgstr ""
9205
9206 #. type: tbl table
9207 #: build/C/man2/ioctl_list.2:152
9208 #, no-wrap
9209 msgid "0x0000541B\tFIONREAD\tint *\n"
9210 msgstr ""
9211
9212 #. type: tbl table
9213 #: build/C/man2/ioctl_list.2:153
9214 #, no-wrap
9215 msgid "0x0000541B\tTIOCINQ\tint *\n"
9216 msgstr ""
9217
9218 #. type: tbl table
9219 #: build/C/man2/ioctl_list.2:154
9220 #, no-wrap
9221 msgid "0x0000541C\tTIOCLINUX\tconst char *\t// MORE\n"
9222 msgstr ""
9223
9224 #. type: tbl table
9225 #: build/C/man2/ioctl_list.2:155
9226 #, no-wrap
9227 msgid "0x0000541D\tTIOCCONS\tvoid\n"
9228 msgstr ""
9229
9230 #. type: tbl table
9231 #: build/C/man2/ioctl_list.2:156
9232 #, no-wrap
9233 msgid "0x0000541E\tTIOCGSERIAL\tstruct serial_struct *\n"
9234 msgstr ""
9235
9236 #. type: tbl table
9237 #: build/C/man2/ioctl_list.2:157
9238 #, no-wrap
9239 msgid "0x0000541F\tTIOCSSERIAL\tconst struct serial_struct *\n"
9240 msgstr ""
9241
9242 #. type: tbl table
9243 #: build/C/man2/ioctl_list.2:158
9244 #, no-wrap
9245 msgid "0x00005420\tTIOCPKT\tconst int *\n"
9246 msgstr ""
9247
9248 #. type: tbl table
9249 #: build/C/man2/ioctl_list.2:159
9250 #, no-wrap
9251 msgid "0x00005421\tFIONBIO\tconst int *\n"
9252 msgstr ""
9253
9254 #. type: tbl table
9255 #: build/C/man2/ioctl_list.2:160
9256 #, no-wrap
9257 msgid "0x00005422\tTIOCNOTTY\tvoid\n"
9258 msgstr ""
9259
9260 #. type: tbl table
9261 #: build/C/man2/ioctl_list.2:161
9262 #, no-wrap
9263 msgid "0x00005423\tTIOCSETD\tconst int *\n"
9264 msgstr ""
9265
9266 #. type: tbl table
9267 #: build/C/man2/ioctl_list.2:162
9268 #, no-wrap
9269 msgid "0x00005424\tTIOCGETD\tint *\n"
9270 msgstr ""
9271
9272 #. type: tbl table
9273 #: build/C/man2/ioctl_list.2:163
9274 #, no-wrap
9275 msgid "0x00005425\tTCSBRKP\tint\n"
9276 msgstr ""
9277
9278 #. type: tbl table
9279 #: build/C/man2/ioctl_list.2:164
9280 #, no-wrap
9281 msgid "0x00005426\tTIOCTTYGSTRUCT\tstruct tty_struct *\n"
9282 msgstr ""
9283
9284 #. type: tbl table
9285 #: build/C/man2/ioctl_list.2:165
9286 #, no-wrap
9287 msgid "0x00005450\tFIONCLEX\tvoid\n"
9288 msgstr ""
9289
9290 #. type: tbl table
9291 #: build/C/man2/ioctl_list.2:166
9292 #, no-wrap
9293 msgid "0x00005451\tFIOCLEX\tvoid\n"
9294 msgstr ""
9295
9296 #. type: tbl table
9297 #: build/C/man2/ioctl_list.2:167
9298 #, no-wrap
9299 msgid "0x00005452\tFIOASYNC\tconst int *\n"
9300 msgstr ""
9301
9302 #. type: tbl table
9303 #: build/C/man2/ioctl_list.2:168
9304 #, no-wrap
9305 msgid "0x00005453\tTIOCSERCONFIG\tvoid\n"
9306 msgstr ""
9307
9308 #. type: tbl table
9309 #: build/C/man2/ioctl_list.2:169
9310 #, no-wrap
9311 msgid "0x00005454\tTIOCSERGWILD\tint *\n"
9312 msgstr ""
9313
9314 #. type: tbl table
9315 #: build/C/man2/ioctl_list.2:170
9316 #, no-wrap
9317 msgid "0x00005455\tTIOCSERSWILD\tconst int *\n"
9318 msgstr ""
9319
9320 #. type: tbl table
9321 #: build/C/man2/ioctl_list.2:171
9322 #, no-wrap
9323 msgid "0x00005456\tTIOCGLCKTRMIOS\tstruct termios *\n"
9324 msgstr ""
9325
9326 #. type: tbl table
9327 #: build/C/man2/ioctl_list.2:172
9328 #, no-wrap
9329 msgid "0x00005457\tTIOCSLCKTRMIOS\tconst struct termios *\n"
9330 msgstr ""
9331
9332 #. type: tbl table
9333 #: build/C/man2/ioctl_list.2:173
9334 #, no-wrap
9335 msgid "0x00005458\tTIOCSERGSTRUCT\tstruct async_struct *\n"
9336 msgstr ""
9337
9338 #. type: tbl table
9339 #: build/C/man2/ioctl_list.2:174
9340 #, no-wrap
9341 msgid "0x00005459\tTIOCSERGETLSR\tint *\n"
9342 msgstr ""
9343
9344 #. type: tbl table
9345 #: build/C/man2/ioctl_list.2:175
9346 #, no-wrap
9347 msgid "0x0000545A\tTIOCSERGETMULTI\tstruct serial_multiport_struct *\n"
9348 msgstr ""
9349
9350 #. type: tbl table
9351 #: build/C/man2/ioctl_list.2:176
9352 #, no-wrap
9353 msgid "0x0000545B\tTIOCSERSETMULTI\tconst struct serial_multiport_struct *\n"
9354 msgstr ""
9355
9356 #. type: Plain text
9357 #: build/C/man2/ioctl_list.2:180
9358 msgid "// E<lt>include/linux/ax25.hE<gt>"
9359 msgstr ""
9360
9361 #. type: tbl table
9362 #: build/C/man2/ioctl_list.2:182
9363 #, no-wrap
9364 msgid "0x000089E0\tSIOCAX25GETUID\tconst struct sockaddr_ax25 *\n"
9365 msgstr ""
9366
9367 #. type: tbl table
9368 #: build/C/man2/ioctl_list.2:183
9369 #, no-wrap
9370 msgid "0x000089E1\tSIOCAX25ADDUID\tconst struct sockaddr_ax25 *\n"
9371 msgstr ""
9372
9373 #. type: tbl table
9374 #: build/C/man2/ioctl_list.2:184
9375 #, no-wrap
9376 msgid "0x000089E2\tSIOCAX25DELUID\tconst struct sockaddr_ax25 *\n"
9377 msgstr ""
9378
9379 #. type: tbl table
9380 #: build/C/man2/ioctl_list.2:185
9381 #, no-wrap
9382 msgid "0x000089E3\tSIOCAX25NOUID\tconst int *\n"
9383 msgstr ""
9384
9385 #. type: tbl table
9386 #: build/C/man2/ioctl_list.2:186
9387 #, no-wrap
9388 msgid "0x000089E4\tSIOCAX25DIGCTL\tconst int *\n"
9389 msgstr ""
9390
9391 #. type: tbl table
9392 #: build/C/man2/ioctl_list.2:187
9393 #, no-wrap
9394 msgid "0x000089E5\tSIOCAX25GETPARMS\tstruct ax25_parms_struct *\t// I-O\n"
9395 msgstr ""
9396
9397 #. type: tbl table
9398 #: build/C/man2/ioctl_list.2:188
9399 #, no-wrap
9400 msgid "0x000089E6\tSIOCAX25SETPARMS\tconst struct ax25_parms_struct *\n"
9401 msgstr ""
9402
9403 #. type: Plain text
9404 #: build/C/man2/ioctl_list.2:192
9405 msgid "// E<lt>include/linux/cdk.hE<gt>"
9406 msgstr ""
9407
9408 #. type: tbl table
9409 #: build/C/man2/ioctl_list.2:194
9410 #, no-wrap
9411 msgid "0x00007314\tSTL_BINTR\tvoid\n"
9412 msgstr ""
9413
9414 #. type: tbl table
9415 #: build/C/man2/ioctl_list.2:195
9416 #, no-wrap
9417 msgid "0x00007315\tSTL_BSTART\tvoid\n"
9418 msgstr ""
9419
9420 #. type: tbl table
9421 #: build/C/man2/ioctl_list.2:196
9422 #, no-wrap
9423 msgid "0x00007316\tSTL_BSTOP\tvoid\n"
9424 msgstr ""
9425
9426 #. type: tbl table
9427 #: build/C/man2/ioctl_list.2:197
9428 #, no-wrap
9429 msgid "0x00007317\tSTL_BRESET\tvoid\n"
9430 msgstr ""
9431
9432 #. type: Plain text
9433 #: build/C/man2/ioctl_list.2:201
9434 msgid "// E<lt>include/linux/cdrom.hE<gt>"
9435 msgstr ""
9436
9437 #. type: tbl table
9438 #: build/C/man2/ioctl_list.2:203
9439 #, no-wrap
9440 msgid "0x00005301\tCDROMPAUSE\tvoid\n"
9441 msgstr ""
9442
9443 #. type: tbl table
9444 #: build/C/man2/ioctl_list.2:204
9445 #, no-wrap
9446 msgid "0x00005302\tCDROMRESUME\tvoid\n"
9447 msgstr ""
9448
9449 #. type: tbl table
9450 #: build/C/man2/ioctl_list.2:205
9451 #, no-wrap
9452 msgid "0x00005303\tCDROMPLAYMSF\tconst struct cdrom_msf *\n"
9453 msgstr ""
9454
9455 #. type: tbl table
9456 #: build/C/man2/ioctl_list.2:206
9457 #, no-wrap
9458 msgid "0x00005304\tCDROMPLAYTRKIND\tconst struct cdrom_ti *\n"
9459 msgstr ""
9460
9461 #. type: tbl table
9462 #: build/C/man2/ioctl_list.2:207
9463 #, no-wrap
9464 msgid "0x00005305\tCDROMREADTOCHDR\tstruct cdrom_tochdr *\n"
9465 msgstr ""
9466
9467 #. type: tbl table
9468 #: build/C/man2/ioctl_list.2:208
9469 #, no-wrap
9470 msgid "0x00005306\tCDROMREADTOCENTRY\tstruct cdrom_tocentry *\t// I-O\n"
9471 msgstr ""
9472
9473 #. type: tbl table
9474 #: build/C/man2/ioctl_list.2:209
9475 #, no-wrap
9476 msgid "0x00005307\tCDROMSTOP\tvoid\n"
9477 msgstr ""
9478
9479 #. type: tbl table
9480 #: build/C/man2/ioctl_list.2:210
9481 #, no-wrap
9482 msgid "0x00005308\tCDROMSTART\tvoid\n"
9483 msgstr ""
9484
9485 #. type: tbl table
9486 #: build/C/man2/ioctl_list.2:211
9487 #, no-wrap
9488 msgid "0x00005309\tCDROMEJECT\tvoid\n"
9489 msgstr ""
9490
9491 #. type: tbl table
9492 #: build/C/man2/ioctl_list.2:212
9493 #, no-wrap
9494 msgid "0x0000530A\tCDROMVOLCTRL\tconst struct cdrom_volctrl *\n"
9495 msgstr ""
9496
9497 #. type: tbl table
9498 #: build/C/man2/ioctl_list.2:213
9499 #, no-wrap
9500 msgid "0x0000530B\tCDROMSUBCHNL\tstruct cdrom_subchnl *\t// I-O\n"
9501 msgstr ""
9502
9503 #. type: tbl table
9504 #: build/C/man2/ioctl_list.2:214
9505 #, no-wrap
9506 msgid "0x0000530C\tCDROMREADMODE2\tconst struct cdrom_msf *\t// MORE\n"
9507 msgstr ""
9508
9509 #. type: tbl table
9510 #: build/C/man2/ioctl_list.2:215
9511 #, no-wrap
9512 msgid "0x0000530D\tCDROMREADMODE1\tconst struct cdrom_msf *\t// MORE\n"
9513 msgstr ""
9514
9515 #. type: tbl table
9516 #: build/C/man2/ioctl_list.2:216
9517 #, no-wrap
9518 msgid "0x0000530E\tCDROMREADAUDIO\tconst struct cdrom_read_audio *\t// MORE\n"
9519 msgstr ""
9520
9521 #. type: tbl table
9522 #: build/C/man2/ioctl_list.2:217
9523 #, no-wrap
9524 msgid "0x0000530F\tCDROMEJECT_SW\tint\n"
9525 msgstr ""
9526
9527 #. type: tbl table
9528 #: build/C/man2/ioctl_list.2:218
9529 #, no-wrap
9530 msgid "0x00005310\tCDROMMULTISESSION\tstruct cdrom_multisession *\t// I-O\n"
9531 msgstr ""
9532
9533 #. type: tbl table
9534 #: build/C/man2/ioctl_list.2:219
9535 #, no-wrap
9536 msgid "0x00005311\tCDROM_GET_UPC\tstruct { char [8]; } *\n"
9537 msgstr ""
9538
9539 #. type: tbl table
9540 #: build/C/man2/ioctl_list.2:220
9541 #, no-wrap
9542 msgid "0x00005312\tCDROMRESET\tvoid\n"
9543 msgstr ""
9544
9545 #. type: tbl table
9546 #: build/C/man2/ioctl_list.2:221
9547 #, no-wrap
9548 msgid "0x00005313\tCDROMVOLREAD\tstruct cdrom_volctrl *\n"
9549 msgstr ""
9550
9551 #. type: tbl table
9552 #: build/C/man2/ioctl_list.2:222
9553 #, no-wrap
9554 msgid "0x00005314\tCDROMREADRAW\tconst struct cdrom_msf *\t// MORE\n"
9555 msgstr ""
9556
9557 #. type: tbl table
9558 #: build/C/man2/ioctl_list.2:223
9559 #, no-wrap
9560 msgid "0x00005315\tCDROMREADCOOKED\tconst struct cdrom_msf *\t// MORE\n"
9561 msgstr ""
9562
9563 #. type: tbl table
9564 #: build/C/man2/ioctl_list.2:224
9565 #, no-wrap
9566 msgid "0x00005316\tCDROMSEEK\tconst struct cdrom_msf *\n"
9567 msgstr ""
9568
9569 #. type: Plain text
9570 #: build/C/man2/ioctl_list.2:228
9571 msgid "// E<lt>include/linux/cm206.hE<gt>"
9572 msgstr ""
9573
9574 #. type: tbl table
9575 #: build/C/man2/ioctl_list.2:230
9576 #, no-wrap
9577 msgid "0x00002000\tCM206CTL_GET_STAT\tint\n"
9578 msgstr ""
9579
9580 #. type: tbl table
9581 #: build/C/man2/ioctl_list.2:231
9582 #, no-wrap
9583 msgid "0x00002001\tCM206CTL_GET_LAST_STAT\tint\n"
9584 msgstr ""
9585
9586 #. type: Plain text
9587 #: build/C/man2/ioctl_list.2:235
9588 msgid "// E<lt>include/linux/cyclades.hE<gt>"
9589 msgstr ""
9590
9591 #. type: tbl table
9592 #: build/C/man2/ioctl_list.2:237
9593 #, no-wrap
9594 msgid "0x00435901\tCYGETMON\tstruct cyclades_monitor *\n"
9595 msgstr ""
9596
9597 #. type: tbl table
9598 #: build/C/man2/ioctl_list.2:238
9599 #, no-wrap
9600 msgid "0x00435902\tCYGETTHRESH\tint *\n"
9601 msgstr ""
9602
9603 #. type: tbl table
9604 #: build/C/man2/ioctl_list.2:239
9605 #, no-wrap
9606 msgid "0x00435903\tCYSETTHRESH\tint\n"
9607 msgstr ""
9608
9609 #. type: tbl table
9610 #: build/C/man2/ioctl_list.2:240
9611 #, no-wrap
9612 msgid "0x00435904\tCYGETDEFTHRESH\tint *\n"
9613 msgstr ""
9614
9615 #. type: tbl table
9616 #: build/C/man2/ioctl_list.2:241
9617 #, no-wrap
9618 msgid "0x00435905\tCYSETDEFTHRESH\tint\n"
9619 msgstr ""
9620
9621 #. type: tbl table
9622 #: build/C/man2/ioctl_list.2:242
9623 #, no-wrap
9624 msgid "0x00435906\tCYGETTIMEOUT\tint *\n"
9625 msgstr ""
9626
9627 #. type: tbl table
9628 #: build/C/man2/ioctl_list.2:243
9629 #, no-wrap
9630 msgid "0x00435907\tCYSETTIMEOUT\tint\n"
9631 msgstr ""
9632
9633 #. type: tbl table
9634 #: build/C/man2/ioctl_list.2:244
9635 #, no-wrap
9636 msgid "0x00435908\tCYGETDEFTIMEOUT\tint *\n"
9637 msgstr ""
9638
9639 #. type: tbl table
9640 #: build/C/man2/ioctl_list.2:245
9641 #, no-wrap
9642 msgid "0x00435909\tCYSETDEFTIMEOUT\tint\n"
9643 msgstr ""
9644
9645 #. type: Plain text
9646 #: build/C/man2/ioctl_list.2:249
9647 msgid "// E<lt>include/linux/ext2_fs.hE<gt>"
9648 msgstr ""
9649
9650 #. type: tbl table
9651 #: build/C/man2/ioctl_list.2:251
9652 #, no-wrap
9653 msgid "0x80046601\tEXT2_IOC_GETFLAGS\tint *\n"
9654 msgstr ""
9655
9656 #. type: tbl table
9657 #: build/C/man2/ioctl_list.2:252
9658 #, no-wrap
9659 msgid "0x40046602\tEXT2_IOC_SETFLAGS\tconst int *\n"
9660 msgstr ""
9661
9662 #. type: tbl table
9663 #: build/C/man2/ioctl_list.2:253
9664 #, no-wrap
9665 msgid "0x80047601\tEXT2_IOC_GETVERSION\tint *\n"
9666 msgstr ""
9667
9668 #. type: tbl table
9669 #: build/C/man2/ioctl_list.2:254
9670 #, no-wrap
9671 msgid "0x40047602\tEXT2_IOC_SETVERSION\tconst int *\n"
9672 msgstr ""
9673
9674 #. type: Plain text
9675 #: build/C/man2/ioctl_list.2:258
9676 msgid "// E<lt>include/linux/fd.hE<gt>"
9677 msgstr ""
9678
9679 #. type: tbl table
9680 #: build/C/man2/ioctl_list.2:260
9681 #, no-wrap
9682 msgid "0x00000000\tFDCLRPRM\tvoid\n"
9683 msgstr ""
9684
9685 #. type: tbl table
9686 #: build/C/man2/ioctl_list.2:261
9687 #, no-wrap
9688 msgid "0x00000001\tFDSETPRM\tconst struct floppy_struct *\n"
9689 msgstr ""
9690
9691 #. type: tbl table
9692 #: build/C/man2/ioctl_list.2:262
9693 #, no-wrap
9694 msgid "0x00000002\tFDDEFPRM\tconst struct floppy_struct *\n"
9695 msgstr ""
9696
9697 #. type: tbl table
9698 #: build/C/man2/ioctl_list.2:263
9699 #, no-wrap
9700 msgid "0x00000003\tFDGETPRM\tstruct floppy_struct *\n"
9701 msgstr ""
9702
9703 #. type: tbl table
9704 #: build/C/man2/ioctl_list.2:264
9705 #, no-wrap
9706 msgid "0x00000004\tFDMSGON\tvoid\n"
9707 msgstr ""
9708
9709 #. type: tbl table
9710 #: build/C/man2/ioctl_list.2:265
9711 #, no-wrap
9712 msgid "0x00000005\tFDMSGOFF\tvoid\n"
9713 msgstr ""
9714
9715 #. type: tbl table
9716 #: build/C/man2/ioctl_list.2:266
9717 #, no-wrap
9718 msgid "0x00000006\tFDFMTBEG\tvoid\n"
9719 msgstr ""
9720
9721 #. type: tbl table
9722 #: build/C/man2/ioctl_list.2:267
9723 #, no-wrap
9724 msgid "0x00000007\tFDFMTTRK\tconst struct format_descr *\n"
9725 msgstr ""
9726
9727 #. type: tbl table
9728 #: build/C/man2/ioctl_list.2:268
9729 #, no-wrap
9730 msgid "0x00000008\tFDFMTEND\tvoid\n"
9731 msgstr ""
9732
9733 #. type: tbl table
9734 #: build/C/man2/ioctl_list.2:269
9735 #, no-wrap
9736 msgid "0x0000000A\tFDSETEMSGTRESH\tint\n"
9737 msgstr ""
9738
9739 #. type: tbl table
9740 #: build/C/man2/ioctl_list.2:270
9741 #, no-wrap
9742 msgid "0x0000000B\tFDFLUSH\tvoid\n"
9743 msgstr ""
9744
9745 #. type: tbl table
9746 #: build/C/man2/ioctl_list.2:271
9747 #, no-wrap
9748 msgid "0x0000000C\tFDSETMAXERRS\tconst struct floppy_max_errors *\n"
9749 msgstr ""
9750
9751 #. type: tbl table
9752 #: build/C/man2/ioctl_list.2:272
9753 #, no-wrap
9754 msgid "0x0000000E\tFDGETMAXERRS\tstruct floppy_max_errors *\n"
9755 msgstr ""
9756
9757 #. type: tbl table
9758 #: build/C/man2/ioctl_list.2:273
9759 #, no-wrap
9760 msgid "0x00000010\tFDGETDRVTYP\tstruct { char [16]; } *\n"
9761 msgstr ""
9762
9763 #. type: tbl table
9764 #: build/C/man2/ioctl_list.2:274
9765 #, no-wrap
9766 msgid "0x00000014\tFDSETDRVPRM\tconst struct floppy_drive_params *\n"
9767 msgstr ""
9768
9769 #. type: tbl table
9770 #: build/C/man2/ioctl_list.2:275
9771 #, no-wrap
9772 msgid "0x00000015\tFDGETDRVPRM\tstruct floppy_drive_params *\n"
9773 msgstr ""
9774
9775 #. type: tbl table
9776 #: build/C/man2/ioctl_list.2:276
9777 #, no-wrap
9778 msgid "0x00000016\tFDGETDRVSTAT\tstruct floppy_drive_struct *\n"
9779 msgstr ""
9780
9781 #. type: tbl table
9782 #: build/C/man2/ioctl_list.2:277
9783 #, no-wrap
9784 msgid "0x00000017\tFDPOLLDRVSTAT\tstruct floppy_drive_struct *\n"
9785 msgstr ""
9786
9787 #. type: tbl table
9788 #: build/C/man2/ioctl_list.2:278
9789 #, no-wrap
9790 msgid "0x00000018\tFDRESET\tint\n"
9791 msgstr ""
9792
9793 #. type: tbl table
9794 #: build/C/man2/ioctl_list.2:279
9795 #, no-wrap
9796 msgid "0x00000019\tFDGETFDCSTAT\tstruct floppy_fdc_state *\n"
9797 msgstr ""
9798
9799 #. type: tbl table
9800 #: build/C/man2/ioctl_list.2:280
9801 #, no-wrap
9802 msgid "0x0000001B\tFDWERRORCLR\tvoid\n"
9803 msgstr ""
9804
9805 #. type: tbl table
9806 #: build/C/man2/ioctl_list.2:281
9807 #, no-wrap
9808 msgid "0x0000001C\tFDWERRORGET\tstruct floppy_write_errors *\n"
9809 msgstr ""
9810
9811 #. type: tbl table
9812 #: build/C/man2/ioctl_list.2:282
9813 #, no-wrap
9814 msgid "0x0000001E\tFDRAWCMD\tstruct floppy_raw_cmd *\t// MORE // I-O\n"
9815 msgstr ""
9816
9817 #. type: tbl table
9818 #: build/C/man2/ioctl_list.2:283
9819 #, no-wrap
9820 msgid "0x00000028\tFDTWADDLE\tvoid\n"
9821 msgstr ""
9822
9823 #. type: Plain text
9824 #: build/C/man2/ioctl_list.2:287
9825 msgid "// E<lt>include/linux/fs.hE<gt>"
9826 msgstr ""
9827
9828 #. type: tbl table
9829 #: build/C/man2/ioctl_list.2:289
9830 #, no-wrap
9831 msgid "0x0000125D\tBLKROSET\tconst int *\n"
9832 msgstr ""
9833
9834 #. type: tbl table
9835 #: build/C/man2/ioctl_list.2:290
9836 #, no-wrap
9837 msgid "0x0000125E\tBLKROGET\tint *\n"
9838 msgstr ""
9839
9840 #. type: tbl table
9841 #: build/C/man2/ioctl_list.2:291
9842 #, no-wrap
9843 msgid "0x0000125F\tBLKRRPART\tvoid\n"
9844 msgstr ""
9845
9846 #. type: tbl table
9847 #: build/C/man2/ioctl_list.2:292
9848 #, no-wrap
9849 msgid "0x00001260\tBLKGETSIZE\tunsigned long *\n"
9850 msgstr ""
9851
9852 #. type: tbl table
9853 #: build/C/man2/ioctl_list.2:293
9854 #, no-wrap
9855 msgid "0x00001261\tBLKFLSBUF\tvoid\n"
9856 msgstr ""
9857
9858 #. type: tbl table
9859 #: build/C/man2/ioctl_list.2:294
9860 #, no-wrap
9861 msgid "0x00001262\tBLKRASET\tint\n"
9862 msgstr ""
9863
9864 #. type: tbl table
9865 #: build/C/man2/ioctl_list.2:295
9866 #, no-wrap
9867 msgid "0x00001263\tBLKRAGET\tint *\n"
9868 msgstr ""
9869
9870 #. type: tbl table
9871 #: build/C/man2/ioctl_list.2:296
9872 #, no-wrap
9873 msgid "0x00000001\tFIBMAP\tint *\t// I-O\n"
9874 msgstr ""
9875
9876 #. type: tbl table
9877 #: build/C/man2/ioctl_list.2:297
9878 #, no-wrap
9879 msgid "0x00000002\tFIGETBSZ\tint *\n"
9880 msgstr ""
9881
9882 #. type: Plain text
9883 #: build/C/man2/ioctl_list.2:301
9884 msgid "// E<lt>include/linux/hdreg.hE<gt>"
9885 msgstr ""
9886
9887 #. type: tbl table
9888 #: build/C/man2/ioctl_list.2:303
9889 #, no-wrap
9890 msgid "0x00000301\tHDIO_GETGEO\tstruct hd_geometry *\n"
9891 msgstr ""
9892
9893 #. type: tbl table
9894 #: build/C/man2/ioctl_list.2:304
9895 #, no-wrap
9896 msgid "0x00000302\tHDIO_GET_UNMASKINTR\tint *\n"
9897 msgstr ""
9898
9899 #. type: tbl table
9900 #: build/C/man2/ioctl_list.2:305
9901 #, no-wrap
9902 msgid "0x00000304\tHDIO_GET_MULTCOUNT\tint *\n"
9903 msgstr ""
9904
9905 #. type: tbl table
9906 #: build/C/man2/ioctl_list.2:306
9907 #, no-wrap
9908 msgid "0x00000307\tHDIO_GET_IDENTITY\tstruct hd_driveid *\n"
9909 msgstr ""
9910
9911 #. type: tbl table
9912 #: build/C/man2/ioctl_list.2:307
9913 #, no-wrap
9914 msgid "0x00000308\tHDIO_GET_KEEPSETTINGS\tint *\n"
9915 msgstr ""
9916
9917 #. type: tbl table
9918 #: build/C/man2/ioctl_list.2:308
9919 #, no-wrap
9920 msgid "0x00000309\tHDIO_GET_CHIPSET\tint *\n"
9921 msgstr ""
9922
9923 #. type: tbl table
9924 #: build/C/man2/ioctl_list.2:309
9925 #, no-wrap
9926 msgid "0x0000030A\tHDIO_GET_NOWERR\tint *\n"
9927 msgstr ""
9928
9929 #. type: tbl table
9930 #: build/C/man2/ioctl_list.2:310
9931 #, no-wrap
9932 msgid "0x0000030B\tHDIO_GET_DMA\tint *\n"
9933 msgstr ""
9934
9935 #. type: tbl table
9936 #: build/C/man2/ioctl_list.2:311
9937 #, no-wrap
9938 msgid "0x0000031F\tHDIO_DRIVE_CMD\tint *\t// I-O\n"
9939 msgstr ""
9940
9941 #. type: tbl table
9942 #: build/C/man2/ioctl_list.2:312
9943 #, no-wrap
9944 msgid "0x00000321\tHDIO_SET_MULTCOUNT\tint\n"
9945 msgstr ""
9946
9947 #. type: tbl table
9948 #: build/C/man2/ioctl_list.2:313
9949 #, no-wrap
9950 msgid "0x00000322\tHDIO_SET_UNMASKINTR\tint\n"
9951 msgstr ""
9952
9953 #. type: tbl table
9954 #: build/C/man2/ioctl_list.2:314
9955 #, no-wrap
9956 msgid "0x00000323\tHDIO_SET_KEEPSETTINGS\tint\n"
9957 msgstr ""
9958
9959 #. type: tbl table
9960 #: build/C/man2/ioctl_list.2:315
9961 #, no-wrap
9962 msgid "0x00000324\tHDIO_SET_CHIPSET\tint\n"
9963 msgstr ""
9964
9965 #. type: tbl table
9966 #: build/C/man2/ioctl_list.2:316
9967 #, no-wrap
9968 msgid "0x00000325\tHDIO_SET_NOWERR\tint\n"
9969 msgstr ""
9970
9971 #. type: tbl table
9972 #: build/C/man2/ioctl_list.2:317
9973 #, no-wrap
9974 msgid "0x00000326\tHDIO_SET_DMA\tint\n"
9975 msgstr ""
9976
9977 #. type: Plain text
9978 #: build/C/man2/ioctl_list.2:321
9979 msgid "// E<lt>include/linux/if_eql.hE<gt>"
9980 msgstr ""
9981
9982 #. type: tbl table
9983 #: build/C/man2/ioctl_list.2:323
9984 #, no-wrap
9985 msgid "0x000089F0\tEQL_ENSLAVE\tstruct ifreq *\t// MORE // I-O\n"
9986 msgstr ""
9987
9988 #. type: tbl table
9989 #: build/C/man2/ioctl_list.2:324
9990 #, no-wrap
9991 msgid "0x000089F1\tEQL_EMANCIPATE\tstruct ifreq *\t// MORE // I-O\n"
9992 msgstr ""
9993
9994 #. type: tbl table
9995 #: build/C/man2/ioctl_list.2:325
9996 #, no-wrap
9997 msgid "0x000089F2\tEQL_GETSLAVECFG\tstruct ifreq *\t// MORE // I-O\n"
9998 msgstr ""
9999
10000 #. type: tbl table
10001 #: build/C/man2/ioctl_list.2:326
10002 #, no-wrap
10003 msgid "0x000089F3\tEQL_SETSLAVECFG\tstruct ifreq *\t// MORE // I-O\n"
10004 msgstr ""
10005
10006 #. type: tbl table
10007 #: build/C/man2/ioctl_list.2:327
10008 #, no-wrap
10009 msgid "0x000089F4\tEQL_GETMASTRCFG\tstruct ifreq *\t// MORE // I-O\n"
10010 msgstr ""
10011
10012 #. type: tbl table
10013 #: build/C/man2/ioctl_list.2:328
10014 #, no-wrap
10015 msgid "0x000089F5\tEQL_SETMASTRCFG\tstruct ifreq *\t// MORE // I-O\n"
10016 msgstr ""
10017
10018 #. type: Plain text
10019 #: build/C/man2/ioctl_list.2:332
10020 msgid "// E<lt>include/linux/if_plip.hE<gt>"
10021 msgstr ""
10022
10023 #. type: tbl table
10024 #: build/C/man2/ioctl_list.2:334
10025 #, no-wrap
10026 msgid "0x000089F0\tSIOCDEVPLIP\tstruct ifreq *\t// I-O\n"
10027 msgstr ""
10028
10029 #. type: Plain text
10030 #: build/C/man2/ioctl_list.2:338
10031 msgid "// E<lt>include/linux/if_ppp.hE<gt>"
10032 msgstr ""
10033
10034 #. type: tbl table
10035 #: build/C/man2/ioctl_list.2:340
10036 #, no-wrap
10037 msgid "0x00005490\tPPPIOCGFLAGS\tint *\n"
10038 msgstr ""
10039
10040 #. type: tbl table
10041 #: build/C/man2/ioctl_list.2:341
10042 #, no-wrap
10043 msgid "0x00005491\tPPPIOCSFLAGS\tconst int *\n"
10044 msgstr ""
10045
10046 #. type: tbl table
10047 #: build/C/man2/ioctl_list.2:342
10048 #, no-wrap
10049 msgid "0x00005492\tPPPIOCGASYNCMAP\tint *\n"
10050 msgstr ""
10051
10052 #. type: tbl table
10053 #: build/C/man2/ioctl_list.2:343
10054 #, no-wrap
10055 msgid "0x00005493\tPPPIOCSASYNCMAP\tconst int *\n"
10056 msgstr ""
10057
10058 #. type: tbl table
10059 #: build/C/man2/ioctl_list.2:344
10060 #, no-wrap
10061 msgid "0x00005494\tPPPIOCGUNIT\tint *\n"
10062 msgstr ""
10063
10064 #. type: tbl table
10065 #: build/C/man2/ioctl_list.2:345
10066 #, no-wrap
10067 msgid "0x00005495\tPPPIOCSINPSIG\tconst int *\n"
10068 msgstr ""
10069
10070 #. type: tbl table
10071 #: build/C/man2/ioctl_list.2:346
10072 #, no-wrap
10073 msgid "0x00005497\tPPPIOCSDEBUG\tconst int *\n"
10074 msgstr ""
10075
10076 #. type: tbl table
10077 #: build/C/man2/ioctl_list.2:347
10078 #, no-wrap
10079 msgid "0x00005498\tPPPIOCGDEBUG\tint *\n"
10080 msgstr ""
10081
10082 #. type: tbl table
10083 #: build/C/man2/ioctl_list.2:348
10084 #, no-wrap
10085 msgid "0x00005499\tPPPIOCGSTAT\tstruct ppp_stats *\n"
10086 msgstr ""
10087
10088 #. type: tbl table
10089 #: build/C/man2/ioctl_list.2:349
10090 #, no-wrap
10091 msgid "0x0000549A\tPPPIOCGTIME\tstruct ppp_ddinfo *\n"
10092 msgstr ""
10093
10094 #. type: tbl table
10095 #: build/C/man2/ioctl_list.2:350
10096 #, no-wrap
10097 msgid "0x0000549B\tPPPIOCGXASYNCMAP\tstruct { int [8]; } *\n"
10098 msgstr ""
10099
10100 #. type: tbl table
10101 #: build/C/man2/ioctl_list.2:351
10102 #, no-wrap
10103 msgid "0x0000549C\tPPPIOCSXASYNCMAP\tconst struct { int [8]; } *\n"
10104 msgstr ""
10105
10106 #. type: tbl table
10107 #: build/C/man2/ioctl_list.2:352
10108 #, no-wrap
10109 msgid "0x0000549D\tPPPIOCSMRU\tconst int *\n"
10110 msgstr ""
10111
10112 #. type: tbl table
10113 #: build/C/man2/ioctl_list.2:353
10114 #, no-wrap
10115 msgid "0x0000549E\tPPPIOCRASYNCMAP\tconst int *\n"
10116 msgstr ""
10117
10118 #. type: tbl table
10119 #: build/C/man2/ioctl_list.2:354
10120 #, no-wrap
10121 msgid "0x0000549F\tPPPIOCSMAXCID\tconst int *\n"
10122 msgstr ""
10123
10124 #. type: Plain text
10125 #: build/C/man2/ioctl_list.2:358
10126 msgid "// E<lt>include/linux/ipx.hE<gt>"
10127 msgstr ""
10128
10129 #. type: tbl table
10130 #: build/C/man2/ioctl_list.2:360
10131 #, no-wrap
10132 msgid "0x000089E0\tSIOCAIPXITFCRT\tconst char *\n"
10133 msgstr ""
10134
10135 #. type: tbl table
10136 #: build/C/man2/ioctl_list.2:361
10137 #, no-wrap
10138 msgid "0x000089E1\tSIOCAIPXPRISLT\tconst char *\n"
10139 msgstr ""
10140
10141 #. type: tbl table
10142 #: build/C/man2/ioctl_list.2:362
10143 #, no-wrap
10144 msgid "0x000089E2\tSIOCIPXCFGDATA\tstruct ipx_config_data *\n"
10145 msgstr ""
10146
10147 #. type: Plain text
10148 #: build/C/man2/ioctl_list.2:366
10149 msgid "// E<lt>include/linux/kd.hE<gt>"
10150 msgstr ""
10151
10152 #. type: tbl table
10153 #: build/C/man2/ioctl_list.2:368
10154 #, no-wrap
10155 msgid "0x00004B60\tGIO_FONT\tstruct { char [8192]; } *\n"
10156 msgstr ""
10157
10158 #. type: tbl table
10159 #: build/C/man2/ioctl_list.2:369
10160 #, no-wrap
10161 msgid "0x00004B61\tPIO_FONT\tconst struct { char [8192]; } *\n"
10162 msgstr ""
10163
10164 #. type: tbl table
10165 #: build/C/man2/ioctl_list.2:370
10166 #, no-wrap
10167 msgid "0x00004B6B\tGIO_FONTX\tstruct console_font_desc *\t// MORE // I-O\n"
10168 msgstr ""
10169
10170 #. type: tbl table
10171 #: build/C/man2/ioctl_list.2:371
10172 #, no-wrap
10173 msgid "0x00004B6C\tPIO_FONTX\tconst struct console_font_desc *\t//MORE\n"
10174 msgstr ""
10175
10176 #. type: tbl table
10177 #: build/C/man2/ioctl_list.2:372
10178 #, no-wrap
10179 msgid "0x00004B70\tGIO_CMAP\tstruct { char [48]; } *\n"
10180 msgstr ""
10181
10182 #. type: tbl table
10183 #: build/C/man2/ioctl_list.2:373
10184 #, no-wrap
10185 msgid "0x00004B71\tPIO_CMAP\tconst struct { char [48]; }\n"
10186 msgstr ""
10187
10188 #. type: tbl table
10189 #: build/C/man2/ioctl_list.2:374
10190 #, no-wrap
10191 msgid "0x00004B2F\tKIOCSOUND\tint\n"
10192 msgstr ""
10193
10194 #. type: tbl table
10195 #: build/C/man2/ioctl_list.2:375
10196 #, no-wrap
10197 msgid "0x00004B30\tKDMKTONE\tint\n"
10198 msgstr ""
10199
10200 #. type: tbl table
10201 #: build/C/man2/ioctl_list.2:376
10202 #, no-wrap
10203 msgid "0x00004B31\tKDGETLED\tchar *\n"
10204 msgstr ""
10205
10206 #. type: tbl table
10207 #: build/C/man2/ioctl_list.2:377
10208 #, no-wrap
10209 msgid "0x00004B32\tKDSETLED\tint\n"
10210 msgstr ""
10211
10212 #. type: tbl table
10213 #: build/C/man2/ioctl_list.2:378
10214 #, no-wrap
10215 msgid "0x00004B33\tKDGKBTYPE\tchar *\n"
10216 msgstr ""
10217
10218 #. type: tbl table
10219 #: build/C/man2/ioctl_list.2:379
10220 #, no-wrap
10221 msgid "0x00004B34\tKDADDIO\tint\t// MORE\n"
10222 msgstr ""
10223
10224 #. type: tbl table
10225 #: build/C/man2/ioctl_list.2:380
10226 #, no-wrap
10227 msgid "0x00004B35\tKDDELIO\tint\t// MORE\n"
10228 msgstr ""
10229
10230 #. type: tbl table
10231 #: build/C/man2/ioctl_list.2:381
10232 #, no-wrap
10233 msgid "0x00004B36\tKDENABIO\tvoid\t// MORE\n"
10234 msgstr ""
10235
10236 #. type: tbl table
10237 #: build/C/man2/ioctl_list.2:382
10238 #, no-wrap
10239 msgid "0x00004B37\tKDDISABIO\tvoid\t// MORE\n"
10240 msgstr ""
10241
10242 #. type: tbl table
10243 #: build/C/man2/ioctl_list.2:383
10244 #, no-wrap
10245 msgid "0x00004B3A\tKDSETMODE\tint\n"
10246 msgstr ""
10247
10248 #. type: tbl table
10249 #: build/C/man2/ioctl_list.2:384
10250 #, no-wrap
10251 msgid "0x00004B3B\tKDGETMODE\tint *\n"
10252 msgstr ""
10253
10254 #. type: tbl table
10255 #: build/C/man2/ioctl_list.2:385
10256 #, no-wrap
10257 msgid "0x00004B3C\tKDMAPDISP\tvoid\t// MORE\n"
10258 msgstr ""
10259
10260 #. type: tbl table
10261 #: build/C/man2/ioctl_list.2:386
10262 #, no-wrap
10263 msgid "0x00004B3D\tKDUNMAPDISP\tvoid\t// MORE\n"
10264 msgstr ""
10265
10266 #. type: tbl table
10267 #: build/C/man2/ioctl_list.2:387
10268 #, no-wrap
10269 msgid "0x00004B40\tGIO_SCRNMAP\tstruct { char [E_TABSZ]; } *\n"
10270 msgstr ""
10271
10272 #. type: tbl table
10273 #: build/C/man2/ioctl_list.2:388
10274 #, no-wrap
10275 msgid "0x00004B41\tPIO_SCRNMAP\tconst struct { char [E_TABSZ]; } *\n"
10276 msgstr ""
10277
10278 #. type: tbl table
10279 #: build/C/man2/ioctl_list.2:389
10280 #, no-wrap
10281 msgid "0x00004B69\tGIO_UNISCRNMAP\tstruct { short [E_TABSZ]; } *\n"
10282 msgstr ""
10283
10284 #. type: tbl table
10285 #: build/C/man2/ioctl_list.2:390
10286 #, no-wrap
10287 msgid "0x00004B6A\tPIO_UNISCRNMAP\tconst struct { short [E_TABSZ]; } *\n"
10288 msgstr ""
10289
10290 #. type: tbl table
10291 #: build/C/man2/ioctl_list.2:391
10292 #, no-wrap
10293 msgid "0x00004B66\tGIO_UNIMAP\tstruct unimapdesc *\t// MORE // I-O\n"
10294 msgstr ""
10295
10296 #. type: tbl table
10297 #: build/C/man2/ioctl_list.2:392
10298 #, no-wrap
10299 msgid "0x00004B67\tPIO_UNIMAP\tconst struct unimapdesc *\t// MORE\n"
10300 msgstr ""
10301
10302 #. type: tbl table
10303 #: build/C/man2/ioctl_list.2:393
10304 #, no-wrap
10305 msgid "0x00004B68\tPIO_UNIMAPCLR\tconst struct unimapinit *\n"
10306 msgstr ""
10307
10308 #. type: tbl table
10309 #: build/C/man2/ioctl_list.2:394
10310 #, no-wrap
10311 msgid "0x00004B44\tKDGKBMODE\tint *\n"
10312 msgstr ""
10313
10314 #. type: tbl table
10315 #: build/C/man2/ioctl_list.2:395
10316 #, no-wrap
10317 msgid "0x00004B45\tKDSKBMODE\tint\n"
10318 msgstr ""
10319
10320 #. type: tbl table
10321 #: build/C/man2/ioctl_list.2:396
10322 #, no-wrap
10323 msgid "0x00004B62\tKDGKBMETA\tint *\n"
10324 msgstr ""
10325
10326 #. type: tbl table
10327 #: build/C/man2/ioctl_list.2:397
10328 #, no-wrap
10329 msgid "0x00004B63\tKDSKBMETA\tint\n"
10330 msgstr ""
10331
10332 #. type: tbl table
10333 #: build/C/man2/ioctl_list.2:398
10334 #, no-wrap
10335 msgid "0x00004B64\tKDGKBLED\tint *\n"
10336 msgstr ""
10337
10338 #. type: tbl table
10339 #: build/C/man2/ioctl_list.2:399
10340 #, no-wrap
10341 msgid "0x00004B65\tKDSKBLED\tint\n"
10342 msgstr ""
10343
10344 #. type: tbl table
10345 #: build/C/man2/ioctl_list.2:400
10346 #, no-wrap
10347 msgid "0x00004B46\tKDGKBENT\tstruct kbentry *\t// I-O\n"
10348 msgstr ""
10349
10350 #. type: tbl table
10351 #: build/C/man2/ioctl_list.2:401
10352 #, no-wrap
10353 msgid "0x00004B47\tKDSKBENT\tconst struct kbentry *\n"
10354 msgstr ""
10355
10356 #. type: tbl table
10357 #: build/C/man2/ioctl_list.2:402
10358 #, no-wrap
10359 msgid "0x00004B48\tKDGKBSENT\tstruct kbsentry *\t// I-O\n"
10360 msgstr ""
10361
10362 #. type: tbl table
10363 #: build/C/man2/ioctl_list.2:403
10364 #, no-wrap
10365 msgid "0x00004B49\tKDSKBSENT\tconst struct kbsentry *\n"
10366 msgstr ""
10367
10368 #. type: tbl table
10369 #: build/C/man2/ioctl_list.2:404
10370 #, no-wrap
10371 msgid "0x00004B4A\tKDGKBDIACR\tstruct kbdiacrs *\n"
10372 msgstr ""
10373
10374 #. type: tbl table
10375 #: build/C/man2/ioctl_list.2:405
10376 #, no-wrap
10377 msgid "0x00004B4B\tKDSKBDIACR\tconst struct kbdiacrs *\n"
10378 msgstr ""
10379
10380 #. type: tbl table
10381 #: build/C/man2/ioctl_list.2:406
10382 #, no-wrap
10383 msgid "0x00004B4C\tKDGETKEYCODE\tstruct kbkeycode *\t// I-O\n"
10384 msgstr ""
10385
10386 #. type: tbl table
10387 #: build/C/man2/ioctl_list.2:407
10388 #, no-wrap
10389 msgid "0x00004B4D\tKDSETKEYCODE\tconst struct kbkeycode *\n"
10390 msgstr ""
10391
10392 #. type: tbl table
10393 #: build/C/man2/ioctl_list.2:408
10394 #, no-wrap
10395 msgid "0x00004B4E\tKDSIGACCEPT\tint\n"
10396 msgstr ""
10397
10398 #. type: Plain text
10399 #: build/C/man2/ioctl_list.2:412
10400 msgid "// E<lt>include/linux/lp.hE<gt>"
10401 msgstr ""
10402
10403 #. type: tbl table
10404 #: build/C/man2/ioctl_list.2:414
10405 #, no-wrap
10406 msgid "0x00000601\tLPCHAR\tint\n"
10407 msgstr ""
10408
10409 #. type: tbl table
10410 #: build/C/man2/ioctl_list.2:415
10411 #, no-wrap
10412 msgid "0x00000602\tLPTIME\tint\n"
10413 msgstr ""
10414
10415 #. type: tbl table
10416 #: build/C/man2/ioctl_list.2:416
10417 #, no-wrap
10418 msgid "0x00000604\tLPABORT\tint\n"
10419 msgstr ""
10420
10421 #. type: tbl table
10422 #: build/C/man2/ioctl_list.2:417
10423 #, no-wrap
10424 msgid "0x00000605\tLPSETIRQ\tint\n"
10425 msgstr ""
10426
10427 #. type: tbl table
10428 #: build/C/man2/ioctl_list.2:418
10429 #, no-wrap
10430 msgid "0x00000606\tLPGETIRQ\tint *\n"
10431 msgstr ""
10432
10433 #. type: tbl table
10434 #: build/C/man2/ioctl_list.2:419
10435 #, no-wrap
10436 msgid "0x00000608\tLPWAIT\tint\n"
10437 msgstr ""
10438
10439 #. type: tbl table
10440 #: build/C/man2/ioctl_list.2:420
10441 #, no-wrap
10442 msgid "0x00000609\tLPCAREFUL\tint\n"
10443 msgstr ""
10444
10445 #. type: tbl table
10446 #: build/C/man2/ioctl_list.2:421
10447 #, no-wrap
10448 msgid "0x0000060A\tLPABORTOPEN\tint\n"
10449 msgstr ""
10450
10451 #. type: tbl table
10452 #: build/C/man2/ioctl_list.2:422
10453 #, no-wrap
10454 msgid "0x0000060B\tLPGETSTATUS\tint *\n"
10455 msgstr ""
10456
10457 #. type: tbl table
10458 #: build/C/man2/ioctl_list.2:423
10459 #, no-wrap
10460 msgid "0x0000060C\tLPRESET\tvoid\n"
10461 msgstr ""
10462
10463 #. type: tbl table
10464 #: build/C/man2/ioctl_list.2:424
10465 #, no-wrap
10466 msgid "0x0000060D\tLPGETSTATS\tstruct lp_stats *\n"
10467 msgstr ""
10468
10469 #. type: Plain text
10470 #: build/C/man2/ioctl_list.2:428
10471 msgid "// E<lt>include/linux/mroute.hE<gt>"
10472 msgstr ""
10473
10474 #. type: tbl table
10475 #: build/C/man2/ioctl_list.2:430
10476 #, no-wrap
10477 msgid "0x000089E0\tSIOCGETVIFCNT\tstruct sioc_vif_req *\t// I-O\n"
10478 msgstr ""
10479
10480 #. type: tbl table
10481 #: build/C/man2/ioctl_list.2:431
10482 #, no-wrap
10483 msgid "0x000089E1\tSIOCGETSGCNT\tstruct sioc_sg_req *\t// I-O\n"
10484 msgstr ""
10485
10486 #. type: Plain text
10487 #: build/C/man2/ioctl_list.2:435
10488 msgid "// E<lt>include/linux/mtio.hE<gt>"
10489 msgstr ""
10490
10491 #. type: tbl table
10492 #: build/C/man2/ioctl_list.2:437
10493 #, no-wrap
10494 msgid "0x40086D01\tMTIOCTOP\tconst struct mtop *\n"
10495 msgstr ""
10496
10497 #. type: tbl table
10498 #: build/C/man2/ioctl_list.2:438
10499 #, no-wrap
10500 msgid "0x801C6D02\tMTIOCGET\tstruct mtget *\n"
10501 msgstr ""
10502
10503 #. type: tbl table
10504 #: build/C/man2/ioctl_list.2:439
10505 #, no-wrap
10506 msgid "0x80046D03\tMTIOCPOS\tstruct mtpos *\n"
10507 msgstr ""
10508
10509 #. type: tbl table
10510 #: build/C/man2/ioctl_list.2:440
10511 #, no-wrap
10512 msgid "0x80206D04\tMTIOCGETCONFIG\tstruct mtconfiginfo *\n"
10513 msgstr ""
10514
10515 #. type: tbl table
10516 #: build/C/man2/ioctl_list.2:441
10517 #, no-wrap
10518 msgid "0x40206D05\tMTIOCSETCONFIG\tconst struct mtconfiginfo *\n"
10519 msgstr ""
10520
10521 #. type: Plain text
10522 #: build/C/man2/ioctl_list.2:445
10523 msgid "// E<lt>include/linux/netrom.hE<gt>"
10524 msgstr ""
10525
10526 #. type: tbl table
10527 #: build/C/man2/ioctl_list.2:447
10528 #, no-wrap
10529 msgid "0x000089E0\tSIOCNRGETPARMS\tstruct nr_parms_struct *\t// I-O\n"
10530 msgstr ""
10531
10532 #. type: tbl table
10533 #: build/C/man2/ioctl_list.2:448
10534 #, no-wrap
10535 msgid "0x000089E1\tSIOCNRSETPARMS\tconst struct nr_parms_struct *\n"
10536 msgstr ""
10537
10538 #. type: tbl table
10539 #: build/C/man2/ioctl_list.2:449
10540 #, no-wrap
10541 msgid "0x000089E2\tSIOCNRDECOBS\tvoid\n"
10542 msgstr ""
10543
10544 #. type: tbl table
10545 #: build/C/man2/ioctl_list.2:450
10546 #, no-wrap
10547 msgid "0x000089E3\tSIOCNRRTCTL\tconst int *\n"
10548 msgstr ""
10549
10550 #. type: Plain text
10551 #: build/C/man2/ioctl_list.2:454
10552 msgid "// E<lt>include/linux/sbpcd.hE<gt>"
10553 msgstr ""
10554
10555 #. type: tbl table
10556 #: build/C/man2/ioctl_list.2:456
10557 #, no-wrap
10558 msgid "0x00009000\tDDIOCSDBG\tconst int *\n"
10559 msgstr ""
10560
10561 #. type: tbl table
10562 #: build/C/man2/ioctl_list.2:457
10563 #, no-wrap
10564 msgid "0x00005382\tCDROMAUDIOBUFSIZ\tint\n"
10565 msgstr ""
10566
10567 #. type: Plain text
10568 #: build/C/man2/ioctl_list.2:461
10569 msgid "// E<lt>include/linux/scc.hE<gt>"
10570 msgstr ""
10571
10572 #. type: tbl table
10573 #: build/C/man2/ioctl_list.2:463
10574 #, no-wrap
10575 msgid "0x00005470\tTIOCSCCINI\tvoid\n"
10576 msgstr ""
10577
10578 #. type: tbl table
10579 #: build/C/man2/ioctl_list.2:464
10580 #, no-wrap
10581 msgid "0x00005471\tTIOCCHANINI\tconst struct scc_modem *\n"
10582 msgstr ""
10583
10584 #. type: tbl table
10585 #: build/C/man2/ioctl_list.2:465
10586 #, no-wrap
10587 msgid "0x00005472\tTIOCGKISS\tstruct ioctl_command *\t// I-O\n"
10588 msgstr ""
10589
10590 #. type: tbl table
10591 #: build/C/man2/ioctl_list.2:466
10592 #, no-wrap
10593 msgid "0x00005473\tTIOCSKISS\tconst struct ioctl_command *\n"
10594 msgstr ""
10595
10596 #. type: tbl table
10597 #: build/C/man2/ioctl_list.2:467
10598 #, no-wrap
10599 msgid "0x00005474\tTIOCSCCSTAT\tstruct scc_stat *\n"
10600 msgstr ""
10601
10602 #. type: Plain text
10603 #: build/C/man2/ioctl_list.2:471
10604 msgid "// E<lt>include/linux/scsi.hE<gt>"
10605 msgstr ""
10606
10607 #. type: tbl table
10608 #: build/C/man2/ioctl_list.2:473
10609 #, no-wrap
10610 msgid "0x00005382\tSCSI_IOCTL_GET_IDLUN\tstruct { int [2]; } *\n"
10611 msgstr ""
10612
10613 #. type: tbl table
10614 #: build/C/man2/ioctl_list.2:474
10615 #, no-wrap
10616 msgid "0x00005383\tSCSI_IOCTL_TAGGED_ENABLE\tvoid\n"
10617 msgstr ""
10618
10619 #. type: tbl table
10620 #: build/C/man2/ioctl_list.2:475
10621 #, no-wrap
10622 msgid "0x00005384\tSCSI_IOCTL_TAGGED_DISABLE\tvoid\n"
10623 msgstr ""
10624
10625 #. type: tbl table
10626 #: build/C/man2/ioctl_list.2:476
10627 #, no-wrap
10628 msgid "0x00005385\tSCSI_IOCTL_PROBE_HOST\tconst int *\t// MORE\n"
10629 msgstr ""
10630
10631 #. type: Plain text
10632 #: build/C/man2/ioctl_list.2:480
10633 msgid "// E<lt>include/linux/smb_fs.hE<gt>"
10634 msgstr ""
10635
10636 #. type: tbl table
10637 #: build/C/man2/ioctl_list.2:482
10638 #, no-wrap
10639 msgid "0x80027501\tSMB_IOC_GETMOUNTUID\tuid_t *\n"
10640 msgstr ""
10641
10642 #. type: Plain text
10643 #: build/C/man2/ioctl_list.2:486
10644 msgid "// E<lt>include/linux/sockios.hE<gt>"
10645 msgstr ""
10646
10647 #. type: tbl table
10648 #: build/C/man2/ioctl_list.2:488
10649 #, no-wrap
10650 msgid "0x0000890B\tSIOCADDRT\tconst struct rtentry *\t// MORE\n"
10651 msgstr ""
10652
10653 #. type: tbl table
10654 #: build/C/man2/ioctl_list.2:489
10655 #, no-wrap
10656 msgid "0x0000890C\tSIOCDELRT\tconst struct rtentry *\t// MORE\n"
10657 msgstr ""
10658
10659 #. type: tbl table
10660 #: build/C/man2/ioctl_list.2:490
10661 #, no-wrap
10662 msgid "0x00008910\tSIOCGIFNAME\tchar []\n"
10663 msgstr ""
10664
10665 #. type: tbl table
10666 #: build/C/man2/ioctl_list.2:491
10667 #, no-wrap
10668 msgid "0x00008911\tSIOCSIFLINK\tvoid\n"
10669 msgstr ""
10670
10671 #. type: tbl table
10672 #: build/C/man2/ioctl_list.2:492
10673 #, no-wrap
10674 msgid "0x00008912\tSIOCGIFCONF\tstruct ifconf *\t// MORE // I-O\n"
10675 msgstr ""
10676
10677 #. type: tbl table
10678 #: build/C/man2/ioctl_list.2:493
10679 #, no-wrap
10680 msgid "0x00008913\tSIOCGIFFLAGS\tstruct ifreq *\t// I-O\n"
10681 msgstr ""
10682
10683 #. type: tbl table
10684 #: build/C/man2/ioctl_list.2:494
10685 #, no-wrap
10686 msgid "0x00008914\tSIOCSIFFLAGS\tconst struct ifreq *\n"
10687 msgstr ""
10688
10689 #. type: tbl table
10690 #: build/C/man2/ioctl_list.2:495
10691 #, no-wrap
10692 msgid "0x00008915\tSIOCGIFADDR\tstruct ifreq *\t// I-O\n"
10693 msgstr ""
10694
10695 #. type: tbl table
10696 #: build/C/man2/ioctl_list.2:496
10697 #, no-wrap
10698 msgid "0x00008916\tSIOCSIFADDR\tconst struct ifreq *\n"
10699 msgstr ""
10700
10701 #. type: tbl table
10702 #: build/C/man2/ioctl_list.2:497
10703 #, no-wrap
10704 msgid "0x00008917\tSIOCGIFDSTADDR\tstruct ifreq *\t// I-O\n"
10705 msgstr ""
10706
10707 #. type: tbl table
10708 #: build/C/man2/ioctl_list.2:498
10709 #, no-wrap
10710 msgid "0x00008918\tSIOCSIFDSTADDR\tconst struct ifreq *\n"
10711 msgstr ""
10712
10713 #. type: tbl table
10714 #: build/C/man2/ioctl_list.2:499
10715 #, no-wrap
10716 msgid "0x00008919\tSIOCGIFBRDADDR\tstruct ifreq *\t// I-O\n"
10717 msgstr ""
10718
10719 #. type: tbl table
10720 #: build/C/man2/ioctl_list.2:500
10721 #, no-wrap
10722 msgid "0x0000891A\tSIOCSIFBRDADDR\tconst struct ifreq *\n"
10723 msgstr ""
10724
10725 #. type: tbl table
10726 #: build/C/man2/ioctl_list.2:501
10727 #, no-wrap
10728 msgid "0x0000891B\tSIOCGIFNETMASK\tstruct ifreq *\t// I-O\n"
10729 msgstr ""
10730
10731 #. type: tbl table
10732 #: build/C/man2/ioctl_list.2:502
10733 #, no-wrap
10734 msgid "0x0000891C\tSIOCSIFNETMASK\tconst struct ifreq *\n"
10735 msgstr ""
10736
10737 #. type: tbl table
10738 #: build/C/man2/ioctl_list.2:503
10739 #, no-wrap
10740 msgid "0x0000891D\tSIOCGIFMETRIC\tstruct ifreq *\t// I-O\n"
10741 msgstr ""
10742
10743 #. type: tbl table
10744 #: build/C/man2/ioctl_list.2:504
10745 #, no-wrap
10746 msgid "0x0000891E\tSIOCSIFMETRIC\tconst struct ifreq *\n"
10747 msgstr ""
10748
10749 #. type: tbl table
10750 #: build/C/man2/ioctl_list.2:505
10751 #, no-wrap
10752 msgid "0x0000891F\tSIOCGIFMEM\tstruct ifreq *\t// I-O\n"
10753 msgstr ""
10754
10755 #. type: tbl table
10756 #: build/C/man2/ioctl_list.2:506
10757 #, no-wrap
10758 msgid "0x00008920\tSIOCSIFMEM\tconst struct ifreq *\n"
10759 msgstr ""
10760
10761 #. type: tbl table
10762 #: build/C/man2/ioctl_list.2:507
10763 #, no-wrap
10764 msgid "0x00008921\tSIOCGIFMTU\tstruct ifreq *\t// I-O\n"
10765 msgstr ""
10766
10767 #. type: tbl table
10768 #: build/C/man2/ioctl_list.2:508
10769 #, no-wrap
10770 msgid "0x00008922\tSIOCSIFMTU\tconst struct ifreq *\n"
10771 msgstr ""
10772
10773 #. type: tbl table
10774 #: build/C/man2/ioctl_list.2:509
10775 #, no-wrap
10776 msgid "0x00008923\tOLD_SIOCGIFHWADDR\tstruct ifreq *\t// I-O\n"
10777 msgstr ""
10778
10779 #. type: tbl table
10780 #: build/C/man2/ioctl_list.2:510
10781 #, no-wrap
10782 msgid "0x00008924\tSIOCSIFHWADDR\tconst struct ifreq *\t// MORE\n"
10783 msgstr ""
10784
10785 #. type: tbl table
10786 #: build/C/man2/ioctl_list.2:511
10787 #, no-wrap
10788 msgid "0x00008925\tSIOCGIFENCAP\tint *\n"
10789 msgstr ""
10790
10791 #. type: tbl table
10792 #: build/C/man2/ioctl_list.2:512
10793 #, no-wrap
10794 msgid "0x00008926\tSIOCSIFENCAP\tconst int *\n"
10795 msgstr ""
10796
10797 #. type: tbl table
10798 #: build/C/man2/ioctl_list.2:513
10799 #, no-wrap
10800 msgid "0x00008927\tSIOCGIFHWADDR\tstruct ifreq *\t// I-O\n"
10801 msgstr ""
10802
10803 #. type: tbl table
10804 #: build/C/man2/ioctl_list.2:514
10805 #, no-wrap
10806 msgid "0x00008929\tSIOCGIFSLAVE\tvoid\n"
10807 msgstr ""
10808
10809 #. type: tbl table
10810 #: build/C/man2/ioctl_list.2:515
10811 #, no-wrap
10812 msgid "0x00008930\tSIOCSIFSLAVE\tvoid\n"
10813 msgstr ""
10814
10815 #. type: tbl table
10816 #: build/C/man2/ioctl_list.2:516
10817 #, no-wrap
10818 msgid "0x00008931\tSIOCADDMULTI\tconst struct ifreq *\n"
10819 msgstr ""
10820
10821 #. type: tbl table
10822 #: build/C/man2/ioctl_list.2:517
10823 #, no-wrap
10824 msgid "0x00008932\tSIOCDELMULTI\tconst struct ifreq *\n"
10825 msgstr ""
10826
10827 #. type: tbl table
10828 #: build/C/man2/ioctl_list.2:518
10829 #, no-wrap
10830 msgid "0x00008940\tSIOCADDRTOLD\tvoid\n"
10831 msgstr ""
10832
10833 #. type: tbl table
10834 #: build/C/man2/ioctl_list.2:519
10835 #, no-wrap
10836 msgid "0x00008941\tSIOCDELRTOLD\tvoid\n"
10837 msgstr ""
10838
10839 #. type: tbl table
10840 #: build/C/man2/ioctl_list.2:520
10841 #, no-wrap
10842 msgid "0x00008950\tSIOCDARP\tconst struct arpreq *\n"
10843 msgstr ""
10844
10845 #. type: tbl table
10846 #: build/C/man2/ioctl_list.2:521
10847 #, no-wrap
10848 msgid "0x00008951\tSIOCGARP\tstruct arpreq *\t// I-O\n"
10849 msgstr ""
10850
10851 #. type: tbl table
10852 #: build/C/man2/ioctl_list.2:522
10853 #, no-wrap
10854 msgid "0x00008952\tSIOCSARP\tconst struct arpreq *\n"
10855 msgstr ""
10856
10857 #. type: tbl table
10858 #: build/C/man2/ioctl_list.2:523
10859 #, no-wrap
10860 msgid "0x00008960\tSIOCDRARP\tconst struct arpreq *\n"
10861 msgstr ""
10862
10863 #. type: tbl table
10864 #: build/C/man2/ioctl_list.2:524
10865 #, no-wrap
10866 msgid "0x00008961\tSIOCGRARP\tstruct arpreq *\t// I-O\n"
10867 msgstr ""
10868
10869 #. type: tbl table
10870 #: build/C/man2/ioctl_list.2:525
10871 #, no-wrap
10872 msgid "0x00008962\tSIOCSRARP\tconst struct arpreq *\n"
10873 msgstr ""
10874
10875 #. type: tbl table
10876 #: build/C/man2/ioctl_list.2:526
10877 #, no-wrap
10878 msgid "0x00008970\tSIOCGIFMAP\tstruct ifreq *\t// I-O\n"
10879 msgstr ""
10880
10881 #. type: tbl table
10882 #: build/C/man2/ioctl_list.2:527
10883 #, no-wrap
10884 msgid "0x00008971\tSIOCSIFMAP\tconst struct ifreq *\n"
10885 msgstr ""
10886
10887 #. type: Plain text
10888 #: build/C/man2/ioctl_list.2:531
10889 msgid "// E<lt>include/linux/soundcard.hE<gt>"
10890 msgstr ""
10891
10892 #. type: tbl table
10893 #: build/C/man2/ioctl_list.2:533
10894 #, no-wrap
10895 msgid "0x00005100\tSNDCTL_SEQ_RESET\tvoid\n"
10896 msgstr ""
10897
10898 #. type: tbl table
10899 #: build/C/man2/ioctl_list.2:534
10900 #, no-wrap
10901 msgid "0x00005101\tSNDCTL_SEQ_SYNC\tvoid\n"
10902 msgstr ""
10903
10904 #. type: tbl table
10905 #: build/C/man2/ioctl_list.2:535
10906 #, no-wrap
10907 msgid "0xC08C5102\tSNDCTL_SYNTH_INFO\tstruct synth_info *\t// I-O\n"
10908 msgstr ""
10909
10910 #. type: tbl table
10911 #: build/C/man2/ioctl_list.2:536
10912 #, no-wrap
10913 msgid "0xC0045103\tSNDCTL_SEQ_CTRLRATE\tint *\t// I-O\n"
10914 msgstr ""
10915
10916 #. type: tbl table
10917 #: build/C/man2/ioctl_list.2:537
10918 #, no-wrap
10919 msgid "0x80045104\tSNDCTL_SEQ_GETOUTCOUNT\tint *\n"
10920 msgstr ""
10921
10922 #. type: tbl table
10923 #: build/C/man2/ioctl_list.2:538
10924 #, no-wrap
10925 msgid "0x80045105\tSNDCTL_SEQ_GETINCOUNT\tint *\n"
10926 msgstr ""
10927
10928 #. type: tbl table
10929 #: build/C/man2/ioctl_list.2:539
10930 #, no-wrap
10931 msgid "0x40045106\tSNDCTL_SEQ_PERCMODE\tvoid\n"
10932 msgstr ""
10933
10934 #. type: tbl table
10935 #: build/C/man2/ioctl_list.2:540
10936 #, no-wrap
10937 msgid "0x40285107\tSNDCTL_FM_LOAD_INSTR\tconst struct sbi_instrument *\n"
10938 msgstr ""
10939
10940 #. type: tbl table
10941 #: build/C/man2/ioctl_list.2:541
10942 #, no-wrap
10943 msgid "0x40045108\tSNDCTL_SEQ_TESTMIDI\tconst int *\n"
10944 msgstr ""
10945
10946 #. type: tbl table
10947 #: build/C/man2/ioctl_list.2:542
10948 #, no-wrap
10949 msgid "0x40045109\tSNDCTL_SEQ_RESETSAMPLES\tconst int *\n"
10950 msgstr ""
10951
10952 #. type: tbl table
10953 #: build/C/man2/ioctl_list.2:543
10954 #, no-wrap
10955 msgid "0x8004510A\tSNDCTL_SEQ_NRSYNTHS\tint *\n"
10956 msgstr ""
10957
10958 #. type: tbl table
10959 #: build/C/man2/ioctl_list.2:544
10960 #, no-wrap
10961 msgid "0x8004510B\tSNDCTL_SEQ_NRMIDIS\tint *\n"
10962 msgstr ""
10963
10964 #. type: tbl table
10965 #: build/C/man2/ioctl_list.2:545
10966 #, no-wrap
10967 msgid "0xC074510C\tSNDCTL_MIDI_INFO\tstruct midi_info *\t// I-O\n"
10968 msgstr ""
10969
10970 #. type: tbl table
10971 #: build/C/man2/ioctl_list.2:546
10972 #, no-wrap
10973 msgid "0x4004510D\tSNDCTL_SEQ_THRESHOLD\tconst int *\n"
10974 msgstr ""
10975
10976 #. type: tbl table
10977 #: build/C/man2/ioctl_list.2:547
10978 #, no-wrap
10979 msgid "0xC004510E\tSNDCTL_SYNTH_MEMAVL\tint *\t// I-O\n"
10980 msgstr ""
10981
10982 #. type: tbl table
10983 #: build/C/man2/ioctl_list.2:548
10984 #, no-wrap
10985 msgid "0x4004510F\tSNDCTL_FM_4OP_ENABLE\tconst int *\n"
10986 msgstr ""
10987
10988 #. type: tbl table
10989 #: build/C/man2/ioctl_list.2:549
10990 #, no-wrap
10991 msgid "0xCFB85110\tSNDCTL_PMGR_ACCESS\tstruct patmgr_info *\t// I-O\n"
10992 msgstr ""
10993
10994 #. type: tbl table
10995 #: build/C/man2/ioctl_list.2:550
10996 #, no-wrap
10997 msgid "0x00005111\tSNDCTL_SEQ_PANIC\tvoid\n"
10998 msgstr ""
10999
11000 #. type: tbl table
11001 #: build/C/man2/ioctl_list.2:551
11002 #, no-wrap
11003 msgid "0x40085112\tSNDCTL_SEQ_OUTOFBAND\tconst struct seq_event_rec *\n"
11004 msgstr ""
11005
11006 #. type: tbl table
11007 #: build/C/man2/ioctl_list.2:552
11008 #, no-wrap
11009 msgid "0xC0045401\tSNDCTL_TMR_TIMEBASE\tint *\t// I-O\n"
11010 msgstr ""
11011
11012 #. type: tbl table
11013 #: build/C/man2/ioctl_list.2:553
11014 #, no-wrap
11015 msgid "0x00005402\tSNDCTL_TMR_START\tvoid\n"
11016 msgstr ""
11017
11018 #. type: tbl table
11019 #: build/C/man2/ioctl_list.2:554
11020 #, no-wrap
11021 msgid "0x00005403\tSNDCTL_TMR_STOP\tvoid\n"
11022 msgstr ""
11023
11024 #. type: tbl table
11025 #: build/C/man2/ioctl_list.2:555
11026 #, no-wrap
11027 msgid "0x00005404\tSNDCTL_TMR_CONTINUE\tvoid\n"
11028 msgstr ""
11029
11030 #. type: tbl table
11031 #: build/C/man2/ioctl_list.2:556
11032 #, no-wrap
11033 msgid "0xC0045405\tSNDCTL_TMR_TEMPO\tint *\t// I-O\n"
11034 msgstr ""
11035
11036 #. type: tbl table
11037 #: build/C/man2/ioctl_list.2:557
11038 #, no-wrap
11039 msgid "0xC0045406\tSNDCTL_TMR_SOURCE\tint *\t// I-O\n"
11040 msgstr ""
11041
11042 #. type: tbl table
11043 #: build/C/man2/ioctl_list.2:558
11044 #, no-wrap
11045 msgid "0x40045407\tSNDCTL_TMR_METRONOME\tconst int *\n"
11046 msgstr ""
11047
11048 #. type: tbl table
11049 #: build/C/man2/ioctl_list.2:559
11050 #, no-wrap
11051 msgid "0x40045408\tSNDCTL_TMR_SELECT\tint *\t// I-O\n"
11052 msgstr ""
11053
11054 #. type: tbl table
11055 #: build/C/man2/ioctl_list.2:560
11056 #, no-wrap
11057 msgid "0xCFB85001\tSNDCTL_PMGR_IFACE\tstruct patmgr_info *\t// I-O\n"
11058 msgstr ""
11059
11060 #. type: tbl table
11061 #: build/C/man2/ioctl_list.2:561
11062 #, no-wrap
11063 msgid "0xC0046D00\tSNDCTL_MIDI_PRETIME\tint *\t// I-O\n"
11064 msgstr ""
11065
11066 #. type: tbl table
11067 #: build/C/man2/ioctl_list.2:562
11068 #, no-wrap
11069 msgid "0xC0046D01\tSNDCTL_MIDI_MPUMODE\tconst int *\n"
11070 msgstr ""
11071
11072 #. type: tbl table
11073 #: build/C/man2/ioctl_list.2:563
11074 #, no-wrap
11075 msgid "0xC0216D02\tSNDCTL_MIDI_MPUCMD\tstruct mpu_command_rec *\t// I-O\n"
11076 msgstr ""
11077
11078 #. type: tbl table
11079 #: build/C/man2/ioctl_list.2:564
11080 #, no-wrap
11081 msgid "0x00005000\tSNDCTL_DSP_RESET\tvoid\n"
11082 msgstr ""
11083
11084 #. type: tbl table
11085 #: build/C/man2/ioctl_list.2:565
11086 #, no-wrap
11087 msgid "0x00005001\tSNDCTL_DSP_SYNC\tvoid\n"
11088 msgstr ""
11089
11090 #. type: tbl table
11091 #: build/C/man2/ioctl_list.2:566
11092 #, no-wrap
11093 msgid "0xC0045002\tSNDCTL_DSP_SPEED\tint *\t// I-O\n"
11094 msgstr ""
11095
11096 #. type: tbl table
11097 #: build/C/man2/ioctl_list.2:567
11098 #, no-wrap
11099 msgid "0xC0045003\tSNDCTL_DSP_STEREO\tint *\t// I-O\n"
11100 msgstr ""
11101
11102 #. type: tbl table
11103 #: build/C/man2/ioctl_list.2:568
11104 #, no-wrap
11105 msgid "0xC0045004\tSNDCTL_DSP_GETBLKSIZE\tint *\t// I-O\n"
11106 msgstr ""
11107
11108 #. type: tbl table
11109 #: build/C/man2/ioctl_list.2:569
11110 #, no-wrap
11111 msgid "0xC0045006\tSOUND_PCM_WRITE_CHANNELS\tint *\t// I-O\n"
11112 msgstr ""
11113
11114 #. type: tbl table
11115 #: build/C/man2/ioctl_list.2:570
11116 #, no-wrap
11117 msgid "0xC0045007\tSOUND_PCM_WRITE_FILTER\tint *\t// I-O\n"
11118 msgstr ""
11119
11120 #. type: tbl table
11121 #: build/C/man2/ioctl_list.2:571
11122 #, no-wrap
11123 msgid "0x00005008\tSNDCTL_DSP_POST\tvoid\n"
11124 msgstr ""
11125
11126 #. type: tbl table
11127 #: build/C/man2/ioctl_list.2:572
11128 #, no-wrap
11129 msgid "0xC0045009\tSNDCTL_DSP_SUBDIVIDE\tint *\t// I-O\n"
11130 msgstr ""
11131
11132 #. type: tbl table
11133 #: build/C/man2/ioctl_list.2:573
11134 #, no-wrap
11135 msgid "0xC004500A\tSNDCTL_DSP_SETFRAGMENT\tint *\t// I-O\n"
11136 msgstr ""
11137
11138 #. type: tbl table
11139 #: build/C/man2/ioctl_list.2:574
11140 #, no-wrap
11141 msgid "0x8004500B\tSNDCTL_DSP_GETFMTS\tint *\n"
11142 msgstr ""
11143
11144 #. type: tbl table
11145 #: build/C/man2/ioctl_list.2:575
11146 #, no-wrap
11147 msgid "0xC0045005\tSNDCTL_DSP_SETFMT\tint *\t// I-O\n"
11148 msgstr ""
11149
11150 #. type: tbl table
11151 #: build/C/man2/ioctl_list.2:576
11152 #, no-wrap
11153 msgid "0x800C500C\tSNDCTL_DSP_GETOSPACE\tstruct audio_buf_info *\n"
11154 msgstr ""
11155
11156 #. type: tbl table
11157 #: build/C/man2/ioctl_list.2:577
11158 #, no-wrap
11159 msgid "0x800C500D\tSNDCTL_DSP_GETISPACE\tstruct audio_buf_info *\n"
11160 msgstr ""
11161
11162 #. type: tbl table
11163 #: build/C/man2/ioctl_list.2:578
11164 #, no-wrap
11165 msgid "0x0000500E\tSNDCTL_DSP_NONBLOCK\tvoid\n"
11166 msgstr ""
11167
11168 #. type: tbl table
11169 #: build/C/man2/ioctl_list.2:579
11170 #, no-wrap
11171 msgid "0x80045002\tSOUND_PCM_READ_RATE\tint *\n"
11172 msgstr ""
11173
11174 #. type: tbl table
11175 #: build/C/man2/ioctl_list.2:580
11176 #, no-wrap
11177 msgid "0x80045006\tSOUND_PCM_READ_CHANNELS\tint *\n"
11178 msgstr ""
11179
11180 #. type: tbl table
11181 #: build/C/man2/ioctl_list.2:581
11182 #, no-wrap
11183 msgid "0x80045005\tSOUND_PCM_READ_BITS\tint *\n"
11184 msgstr ""
11185
11186 #. type: tbl table
11187 #: build/C/man2/ioctl_list.2:582
11188 #, no-wrap
11189 msgid "0x80045007\tSOUND_PCM_READ_FILTER\tint *\n"
11190 msgstr ""
11191
11192 #. type: tbl table
11193 #: build/C/man2/ioctl_list.2:583
11194 #, no-wrap
11195 msgid "0x00004300\tSNDCTL_COPR_RESET\tvoid\n"
11196 msgstr ""
11197
11198 #. type: tbl table
11199 #: build/C/man2/ioctl_list.2:584
11200 #, no-wrap
11201 msgid "0xCFB04301\tSNDCTL_COPR_LOAD\tconst struct copr_buffer *\n"
11202 msgstr ""
11203
11204 #. type: tbl table
11205 #: build/C/man2/ioctl_list.2:585
11206 #, no-wrap
11207 msgid "0xC0144302\tSNDCTL_COPR_RDATA\tstruct copr_debug_buf *\t// I-O\n"
11208 msgstr ""
11209
11210 #. type: tbl table
11211 #: build/C/man2/ioctl_list.2:586
11212 #, no-wrap
11213 msgid "0xC0144303\tSNDCTL_COPR_RCODE\tstruct copr_debug_buf *\t// I-O\n"
11214 msgstr ""
11215
11216 #. type: tbl table
11217 #: build/C/man2/ioctl_list.2:587
11218 #, no-wrap
11219 msgid "0x40144304\tSNDCTL_COPR_WDATA\tconst struct copr_debug_buf *\n"
11220 msgstr ""
11221
11222 #. type: tbl table
11223 #: build/C/man2/ioctl_list.2:588
11224 #, no-wrap
11225 msgid "0x40144305\tSNDCTL_COPR_WCODE\tconst struct copr_debug_buf *\n"
11226 msgstr ""
11227
11228 #. type: tbl table
11229 #: build/C/man2/ioctl_list.2:589
11230 #, no-wrap
11231 msgid "0xC0144306\tSNDCTL_COPR_RUN\tstruct copr_debug_buf *\t// I-O\n"
11232 msgstr ""
11233
11234 #. type: tbl table
11235 #: build/C/man2/ioctl_list.2:590
11236 #, no-wrap
11237 msgid "0xC0144307\tSNDCTL_COPR_HALT\tstruct copr_debug_buf *\t// I-O\n"
11238 msgstr ""
11239
11240 #. type: tbl table
11241 #: build/C/man2/ioctl_list.2:591
11242 #, no-wrap
11243 msgid "0x4FA44308\tSNDCTL_COPR_SENDMSG\tconst struct copr_msg *\n"
11244 msgstr ""
11245
11246 #. type: tbl table
11247 #: build/C/man2/ioctl_list.2:592
11248 #, no-wrap
11249 msgid "0x8FA44309\tSNDCTL_COPR_RCVMSG\tstruct copr_msg *\n"
11250 msgstr ""
11251
11252 #. type: tbl table
11253 #: build/C/man2/ioctl_list.2:593
11254 #, no-wrap
11255 msgid "0x80044D00\tSOUND_MIXER_READ_VOLUME\tint *\n"
11256 msgstr ""
11257
11258 #. type: tbl table
11259 #: build/C/man2/ioctl_list.2:594
11260 #, no-wrap
11261 msgid "0x80044D01\tSOUND_MIXER_READ_BASS\tint *\n"
11262 msgstr ""
11263
11264 #. type: tbl table
11265 #: build/C/man2/ioctl_list.2:595
11266 #, no-wrap
11267 msgid "0x80044D02\tSOUND_MIXER_READ_TREBLE\tint *\n"
11268 msgstr ""
11269
11270 #. type: tbl table
11271 #: build/C/man2/ioctl_list.2:596
11272 #, no-wrap
11273 msgid "0x80044D03\tSOUND_MIXER_READ_SYNTH\tint *\n"
11274 msgstr ""
11275
11276 #. type: tbl table
11277 #: build/C/man2/ioctl_list.2:597
11278 #, no-wrap
11279 msgid "0x80044D04\tSOUND_MIXER_READ_PCM\tint *\n"
11280 msgstr ""
11281
11282 #. type: tbl table
11283 #: build/C/man2/ioctl_list.2:598
11284 #, no-wrap
11285 msgid "0x80044D05\tSOUND_MIXER_READ_SPEAKER\tint *\n"
11286 msgstr ""
11287
11288 #. type: tbl table
11289 #: build/C/man2/ioctl_list.2:599
11290 #, no-wrap
11291 msgid "0x80044D06\tSOUND_MIXER_READ_LINE\tint *\n"
11292 msgstr ""
11293
11294 #. type: tbl table
11295 #: build/C/man2/ioctl_list.2:600
11296 #, no-wrap
11297 msgid "0x80044D07\tSOUND_MIXER_READ_MIC\tint *\n"
11298 msgstr ""
11299
11300 #. type: tbl table
11301 #: build/C/man2/ioctl_list.2:601
11302 #, no-wrap
11303 msgid "0x80044D08\tSOUND_MIXER_READ_CD\tint *\n"
11304 msgstr ""
11305
11306 #. type: tbl table
11307 #: build/C/man2/ioctl_list.2:602
11308 #, no-wrap
11309 msgid "0x80044D09\tSOUND_MIXER_READ_IMIX\tint *\n"
11310 msgstr ""
11311
11312 #. type: tbl table
11313 #: build/C/man2/ioctl_list.2:603
11314 #, no-wrap
11315 msgid "0x80044D0A\tSOUND_MIXER_READ_ALTPCM\tint *\n"
11316 msgstr ""
11317
11318 #. type: tbl table
11319 #: build/C/man2/ioctl_list.2:604
11320 #, no-wrap
11321 msgid "0x80044D0B\tSOUND_MIXER_READ_RECLEV\tint *\n"
11322 msgstr ""
11323
11324 #. type: tbl table
11325 #: build/C/man2/ioctl_list.2:605
11326 #, no-wrap
11327 msgid "0x80044D0C\tSOUND_MIXER_READ_IGAIN\tint *\n"
11328 msgstr ""
11329
11330 #. type: tbl table
11331 #: build/C/man2/ioctl_list.2:606
11332 #, no-wrap
11333 msgid "0x80044D0D\tSOUND_MIXER_READ_OGAIN\tint *\n"
11334 msgstr ""
11335
11336 #. type: tbl table
11337 #: build/C/man2/ioctl_list.2:607
11338 #, no-wrap
11339 msgid "0x80044D0E\tSOUND_MIXER_READ_LINE1\tint *\n"
11340 msgstr ""
11341
11342 #. type: tbl table
11343 #: build/C/man2/ioctl_list.2:608
11344 #, no-wrap
11345 msgid "0x80044D0F\tSOUND_MIXER_READ_LINE2\tint *\n"
11346 msgstr ""
11347
11348 #. type: tbl table
11349 #: build/C/man2/ioctl_list.2:609
11350 #, no-wrap
11351 msgid "0x80044D10\tSOUND_MIXER_READ_LINE3\tint *\n"
11352 msgstr ""
11353
11354 #. type: tbl table
11355 #: build/C/man2/ioctl_list.2:610
11356 #, no-wrap
11357 msgid "0x80044D1C\tSOUND_MIXER_READ_MUTE\tint *\n"
11358 msgstr ""
11359
11360 #. type: tbl table
11361 #: build/C/man2/ioctl_list.2:611
11362 #, no-wrap
11363 msgid "0x80044D1D\tSOUND_MIXER_READ_ENHANCE\tint *\n"
11364 msgstr ""
11365
11366 #. type: tbl table
11367 #: build/C/man2/ioctl_list.2:612
11368 #, no-wrap
11369 msgid "0x80044D1E\tSOUND_MIXER_READ_LOUD\tint *\n"
11370 msgstr ""
11371
11372 #. type: tbl table
11373 #: build/C/man2/ioctl_list.2:613
11374 #, no-wrap
11375 msgid "0x80044DFF\tSOUND_MIXER_READ_RECSRC\tint *\n"
11376 msgstr ""
11377
11378 #. type: tbl table
11379 #: build/C/man2/ioctl_list.2:614
11380 #, no-wrap
11381 msgid "0x80044DFE\tSOUND_MIXER_READ_DEVMASK\tint *\n"
11382 msgstr ""
11383
11384 #. type: tbl table
11385 #: build/C/man2/ioctl_list.2:615
11386 #, no-wrap
11387 msgid "0x80044DFD\tSOUND_MIXER_READ_RECMASK\tint *\n"
11388 msgstr ""
11389
11390 #. type: tbl table
11391 #: build/C/man2/ioctl_list.2:616
11392 #, no-wrap
11393 msgid "0x80044DFB\tSOUND_MIXER_READ_STEREODEVS\tint *\n"
11394 msgstr ""
11395
11396 #. type: tbl table
11397 #: build/C/man2/ioctl_list.2:617
11398 #, no-wrap
11399 msgid "0x80044DFC\tSOUND_MIXER_READ_CAPS\tint *\n"
11400 msgstr ""
11401
11402 #. type: tbl table
11403 #: build/C/man2/ioctl_list.2:618
11404 #, no-wrap
11405 msgid "0xC0044D00\tSOUND_MIXER_WRITE_VOLUME\tint *\t// I-O\n"
11406 msgstr ""
11407
11408 #. type: tbl table
11409 #: build/C/man2/ioctl_list.2:619
11410 #, no-wrap
11411 msgid "0xC0044D01\tSOUND_MIXER_WRITE_BASS\tint *\t// I-O\n"
11412 msgstr ""
11413
11414 #. type: tbl table
11415 #: build/C/man2/ioctl_list.2:620
11416 #, no-wrap
11417 msgid "0xC0044D02\tSOUND_MIXER_WRITE_TREBLE\tint *\t// I-O\n"
11418 msgstr ""
11419
11420 #. type: tbl table
11421 #: build/C/man2/ioctl_list.2:621
11422 #, no-wrap
11423 msgid "0xC0044D03\tSOUND_MIXER_WRITE_SYNTH\tint *\t// I-O\n"
11424 msgstr ""
11425
11426 #. type: tbl table
11427 #: build/C/man2/ioctl_list.2:622
11428 #, no-wrap
11429 msgid "0xC0044D04\tSOUND_MIXER_WRITE_PCM\tint *\t// I-O\n"
11430 msgstr ""
11431
11432 #. type: tbl table
11433 #: build/C/man2/ioctl_list.2:623
11434 #, no-wrap
11435 msgid "0xC0044D05\tSOUND_MIXER_WRITE_SPEAKER\tint *\t// I-O\n"
11436 msgstr ""
11437
11438 #. type: tbl table
11439 #: build/C/man2/ioctl_list.2:624
11440 #, no-wrap
11441 msgid "0xC0044D06\tSOUND_MIXER_WRITE_LINE\tint *\t// I-O\n"
11442 msgstr ""
11443
11444 #. type: tbl table
11445 #: build/C/man2/ioctl_list.2:625
11446 #, no-wrap
11447 msgid "0xC0044D07\tSOUND_MIXER_WRITE_MIC\tint *\t// I-O\n"
11448 msgstr ""
11449
11450 #. type: tbl table
11451 #: build/C/man2/ioctl_list.2:626
11452 #, no-wrap
11453 msgid "0xC0044D08\tSOUND_MIXER_WRITE_CD\tint *\t// I-O\n"
11454 msgstr ""
11455
11456 #. type: tbl table
11457 #: build/C/man2/ioctl_list.2:627
11458 #, no-wrap
11459 msgid "0xC0044D09\tSOUND_MIXER_WRITE_IMIX\tint *\t// I-O\n"
11460 msgstr ""
11461
11462 #. type: tbl table
11463 #: build/C/man2/ioctl_list.2:628
11464 #, no-wrap
11465 msgid "0xC0044D0A\tSOUND_MIXER_WRITE_ALTPCM\tint *\t// I-O\n"
11466 msgstr ""
11467
11468 #. type: tbl table
11469 #: build/C/man2/ioctl_list.2:629
11470 #, no-wrap
11471 msgid "0xC0044D0B\tSOUND_MIXER_WRITE_RECLEV\tint *\t// I-O\n"
11472 msgstr ""
11473
11474 #. type: tbl table
11475 #: build/C/man2/ioctl_list.2:630
11476 #, no-wrap
11477 msgid "0xC0044D0C\tSOUND_MIXER_WRITE_IGAIN\tint *\t// I-O\n"
11478 msgstr ""
11479
11480 #. type: tbl table
11481 #: build/C/man2/ioctl_list.2:631
11482 #, no-wrap
11483 msgid "0xC0044D0D\tSOUND_MIXER_WRITE_OGAIN\tint *\t// I-O\n"
11484 msgstr ""
11485
11486 #. type: tbl table
11487 #: build/C/man2/ioctl_list.2:632
11488 #, no-wrap
11489 msgid "0xC0044D0E\tSOUND_MIXER_WRITE_LINE1\tint *\t// I-O\n"
11490 msgstr ""
11491
11492 #. type: tbl table
11493 #: build/C/man2/ioctl_list.2:633
11494 #, no-wrap
11495 msgid "0xC0044D0F\tSOUND_MIXER_WRITE_LINE2\tint *\t// I-O\n"
11496 msgstr ""
11497
11498 #. type: tbl table
11499 #: build/C/man2/ioctl_list.2:634
11500 #, no-wrap
11501 msgid "0xC0044D10\tSOUND_MIXER_WRITE_LINE3\tint *\t// I-O\n"
11502 msgstr ""
11503
11504 #. type: tbl table
11505 #: build/C/man2/ioctl_list.2:635
11506 #, no-wrap
11507 msgid "0xC0044D1C\tSOUND_MIXER_WRITE_MUTE\tint *\t// I-O\n"
11508 msgstr ""
11509
11510 #. type: tbl table
11511 #: build/C/man2/ioctl_list.2:636
11512 #, no-wrap
11513 msgid "0xC0044D1D\tSOUND_MIXER_WRITE_ENHANCE\tint *\t// I-O\n"
11514 msgstr ""
11515
11516 #. type: tbl table
11517 #: build/C/man2/ioctl_list.2:637
11518 #, no-wrap
11519 msgid "0xC0044D1E\tSOUND_MIXER_WRITE_LOUD\tint *\t// I-O\n"
11520 msgstr ""
11521
11522 #. type: tbl table
11523 #: build/C/man2/ioctl_list.2:638
11524 #, no-wrap
11525 msgid "0xC0044DFF\tSOUND_MIXER_WRITE_RECSRC\tint *\t// I-O\n"
11526 msgstr ""
11527
11528 #. type: Plain text
11529 #: build/C/man2/ioctl_list.2:642
11530 msgid "// E<lt>include/linux/umsdos_fs.hE<gt>"
11531 msgstr ""
11532
11533 #. type: tbl table
11534 #: build/C/man2/ioctl_list.2:644
11535 #, no-wrap
11536 msgid "0x000004D2\tUMSDOS_READDIR_DOS\tstruct umsdos_ioctl *\t// I-O\n"
11537 msgstr ""
11538
11539 #. type: tbl table
11540 #: build/C/man2/ioctl_list.2:645
11541 #, no-wrap
11542 msgid "0x000004D3\tUMSDOS_UNLINK_DOS\tconst struct umsdos_ioctl *\n"
11543 msgstr ""
11544
11545 #. type: tbl table
11546 #: build/C/man2/ioctl_list.2:646
11547 #, no-wrap
11548 msgid "0x000004D4\tUMSDOS_RMDIR_DOS\tconst struct umsdos_ioctl *\n"
11549 msgstr ""
11550
11551 #. type: tbl table
11552 #: build/C/man2/ioctl_list.2:647
11553 #, no-wrap
11554 msgid "0x000004D5\tUMSDOS_STAT_DOS\tstruct umsdos_ioctl *\t// I-O\n"
11555 msgstr ""
11556
11557 #. type: tbl table
11558 #: build/C/man2/ioctl_list.2:648
11559 #, no-wrap
11560 msgid "0x000004D6\tUMSDOS_CREAT_EMD\tconst struct umsdos_ioctl *\n"
11561 msgstr ""
11562
11563 #. type: tbl table
11564 #: build/C/man2/ioctl_list.2:649
11565 #, no-wrap
11566 msgid "0x000004D7\tUMSDOS_UNLINK_EMD\tconst struct umsdos_ioctl *\n"
11567 msgstr ""
11568
11569 #. type: tbl table
11570 #: build/C/man2/ioctl_list.2:650
11571 #, no-wrap
11572 msgid "0x000004D8\tUMSDOS_READDIR_EMD\tstruct umsdos_ioctl *\t// I-O\n"
11573 msgstr ""
11574
11575 #. type: tbl table
11576 #: build/C/man2/ioctl_list.2:651
11577 #, no-wrap
11578 msgid "0x000004D9\tUMSDOS_GETVERSION\tstruct umsdos_ioctl *\n"
11579 msgstr ""
11580
11581 #. type: tbl table
11582 #: build/C/man2/ioctl_list.2:652
11583 #, no-wrap
11584 msgid "0x000004DA\tUMSDOS_INIT_EMD\tvoid\n"
11585 msgstr ""
11586
11587 #. type: tbl table
11588 #: build/C/man2/ioctl_list.2:653
11589 #, no-wrap
11590 msgid "0x000004DB\tUMSDOS_DOS_SETUP\tconst struct umsdos_ioctl *\n"
11591 msgstr ""
11592
11593 #. type: tbl table
11594 #: build/C/man2/ioctl_list.2:654
11595 #, no-wrap
11596 msgid "0x000004DC\tUMSDOS_RENAME_DOS\tconst struct umsdos_ioctl *\n"
11597 msgstr ""
11598
11599 #. type: Plain text
11600 #: build/C/man2/ioctl_list.2:658
11601 msgid "// E<lt>include/linux/vt.hE<gt>"
11602 msgstr ""
11603
11604 #. type: tbl table
11605 #: build/C/man2/ioctl_list.2:660
11606 #, no-wrap
11607 msgid "0x00005600\tVT_OPENQRY\tint *\n"
11608 msgstr ""
11609
11610 #. type: tbl table
11611 #: build/C/man2/ioctl_list.2:661
11612 #, no-wrap
11613 msgid "0x00005601\tVT_GETMODE\tstruct vt_mode *\n"
11614 msgstr ""
11615
11616 #. type: tbl table
11617 #: build/C/man2/ioctl_list.2:662
11618 #, no-wrap
11619 msgid "0x00005602\tVT_SETMODE\tconst struct vt_mode *\n"
11620 msgstr ""
11621
11622 #. type: tbl table
11623 #: build/C/man2/ioctl_list.2:663
11624 #, no-wrap
11625 msgid "0x00005603\tVT_GETSTATE\tstruct vt_stat *\n"
11626 msgstr ""
11627
11628 #. type: tbl table
11629 #: build/C/man2/ioctl_list.2:664
11630 #, no-wrap
11631 msgid "0x00005604\tVT_SENDSIG\tvoid\n"
11632 msgstr ""
11633
11634 #. type: tbl table
11635 #: build/C/man2/ioctl_list.2:665
11636 #, no-wrap
11637 msgid "0x00005605\tVT_RELDISP\tint\n"
11638 msgstr ""
11639
11640 #. type: tbl table
11641 #: build/C/man2/ioctl_list.2:666
11642 #, no-wrap
11643 msgid "0x00005606\tVT_ACTIVATE\tint\n"
11644 msgstr ""
11645
11646 #. type: tbl table
11647 #: build/C/man2/ioctl_list.2:667
11648 #, no-wrap
11649 msgid "0x00005607\tVT_WAITACTIVE\tint\n"
11650 msgstr ""
11651
11652 #. type: tbl table
11653 #: build/C/man2/ioctl_list.2:668
11654 #, no-wrap
11655 msgid "0x00005608\tVT_DISALLOCATE\tint\n"
11656 msgstr ""
11657
11658 #. type: tbl table
11659 #: build/C/man2/ioctl_list.2:669
11660 #, no-wrap
11661 msgid "0x00005609\tVT_RESIZE\tconst struct vt_sizes *\n"
11662 msgstr ""
11663
11664 #. type: tbl table
11665 #: build/C/man2/ioctl_list.2:670
11666 #, no-wrap
11667 msgid "0x0000560A\tVT_RESIZEX\tconst struct vt_consize *\n"
11668 msgstr ""
11669
11670 #. type: Plain text
11671 #: build/C/man2/ioctl_list.2:677
11672 msgid ""
11673 "// More arguments.  Some ioctl's take a pointer to a structure which "
11674 "contains additional pointers.  These are documented here in alphabetical "
11675 "order."
11676 msgstr ""
11677
11678 #. type: Plain text
11679 #: build/C/man2/ioctl_list.2:685
11680 msgid ""
11681 "B<CDROMREADAUDIO> takes an input pointer I<const struct cdrom_read_audio "
11682 "*>.  The I<buf> field points to an output buffer of length I<nframes * "
11683 "CD_FRAMESIZE_RAW>."
11684 msgstr ""
11685
11686 #. type: Plain text
11687 #: build/C/man2/ioctl_list.2:701
11688 msgid ""
11689 "B<CDROMREADCOOKED>, B<CDROMREADMODE1>, B<CDROMREADMODE2>, and "
11690 "B<CDROMREADRAW> take an input pointer I<const struct cdrom_msf *>.  They use "
11691 "the same pointer as an output pointer to I<char []>.  The length varies by "
11692 "request.  For B<CDROMREADMODE1>, most drivers use CD_FRAMESIZE, but the "
11693 "Optics Storage driver uses OPT_BLOCKSIZE instead (both have the numerical "
11694 "value 2048)."
11695 msgstr ""
11696
11697 #. type: Plain text
11698 #: build/C/man2/ioctl_list.2:707
11699 #, no-wrap
11700 msgid ""
11701 "    CDROMREADCOOKED    char [CD_FRAMESIZE]\n"
11702 "    CDROMREADMODE1     char [CD_FRAMESIZE or OPT_BLOCKSIZE]\n"
11703 "    CDROMREADMODE2     char [CD_FRAMESIZE_RAW0]\n"
11704 "    CDROMREADRAW       char [CD_FRAMESIZE_RAW]\n"
11705 msgstr ""
11706
11707 #. type: Plain text
11708 #: build/C/man2/ioctl_list.2:721
11709 msgid ""
11710 "B<EQL_ENSLAVE>, B<EQL_EMANCIPATE>, B<EQL_GETSLAVECFG>, B<EQL_SETSLAVECFG>, "
11711 "B<EQL_GETMASTERCFG>, and B<EQL_SETMASTERCFG> take a I<struct ifreq *>.  The "
11712 "I<ifr_data> field is a pointer to another structure as follows:"
11713 msgstr ""
11714
11715 #. type: Plain text
11716 #: build/C/man2/ioctl_list.2:729
11717 #, no-wrap
11718 msgid ""
11719 "    EQL_ENSLAVE         const struct slaving_request *\n"
11720 "    EQL_EMANCIPATE      const struct slaving_request *\n"
11721 "    EQL_GETSLAVECFG     struct slave_config *           // I-O\n"
11722 "    EQL_SETSLAVECFG     const struct slave_config *\n"
11723 "    EQL_GETMASTERCFG    struct master_config *\n"
11724 "    EQL_SETMASTERCFG    const struct master_config *\n"
11725 msgstr ""
11726
11727 #. type: Plain text
11728 #: build/C/man2/ioctl_list.2:746
11729 msgid ""
11730 "B<FDRAWCMD> takes a I<struct floppy raw_cmd *>.  If I<flags & FD_RAW_WRITE> "
11731 "is nonzero, then I<data> points to an input buffer of length I<length>.  If "
11732 "I<flags & FD_RAW_READ> is nonzero, then I<data> points to an output buffer "
11733 "of length I<length>."
11734 msgstr ""
11735
11736 #. type: Plain text
11737 #: build/C/man2/ioctl_list.2:762
11738 msgid ""
11739 "B<GIO_FONTX> and B<PIO_FONTX> take a I<struct console_font_desc *> or a "
11740 "I<const struct console_font_desc *>, respectively.  I<chardata> points to a "
11741 "buffer of I<char [charcount]>.  This is an output buffer for B<GIO_FONTX> "
11742 "and an input buffer for B<PIO_FONTX>."
11743 msgstr ""
11744
11745 #. type: Plain text
11746 #: build/C/man2/ioctl_list.2:778
11747 msgid ""
11748 "B<GIO_UNIMAP> and B<PIO_UNIMAP> take a I<struct unimapdesc *> or a I<const "
11749 "struct unimapdesc *>, respectively.  I<entries> points to a buffer of "
11750 "I<struct unipair [entry_ct]>.  This is an output buffer for B<GIO_UNIMAP> "
11751 "and an input buffer for B<PIO_UNIMAP>."
11752 msgstr ""
11753
11754 #. type: Plain text
11755 #: build/C/man2/ioctl_list.2:782
11756 msgid ""
11757 "KDADDIO, KDDELIO, KDDISABIO, and KDENABIO enable or disable access to I/O "
11758 "ports.  They are essentially alternate interfaces to 'ioperm'."
11759 msgstr ""
11760
11761 #. type: Plain text
11762 #: build/C/man2/ioctl_list.2:788
11763 msgid ""
11764 "B<KDMAPDISP> and B<KDUNMAPDISP> enable or disable memory mappings or I/O "
11765 "port access.  They are not implemented in the kernel."
11766 msgstr ""
11767
11768 #. type: Plain text
11769 #: build/C/man2/ioctl_list.2:796
11770 msgid ""
11771 "B<SCSI_IOCTL_PROBE_HOST> takes an input pointer I<const int *>, which is a "
11772 "length.  It uses the same pointer as an output pointer to a I<char []> "
11773 "buffer of this length."
11774 msgstr ""
11775
11776 #. type: Plain text
11777 #: build/C/man2/ioctl_list.2:802
11778 msgid ""
11779 "B<SIOCADDRT> and B<SIOCDELRT> take an input pointer whose type depends on "
11780 "the protocol:"
11781 msgstr ""
11782
11783 #. type: Plain text
11784 #: build/C/man2/ioctl_list.2:807
11785 #, no-wrap
11786 msgid ""
11787 "    Most protocols      const struct rtentry *\n"
11788 "    AX.25               const struct ax25_route *\n"
11789 "    NET/ROM             const struct nr_route_struct *\n"
11790 msgstr ""
11791
11792 #. type: Plain text
11793 #: build/C/man2/ioctl_list.2:818
11794 msgid ""
11795 "B<SIOCGIFCONF> takes a I<struct ifconf *>.  The I<ifc_buf> field points to a "
11796 "buffer of length I<ifc_len> bytes, into which the kernel writes a list of "
11797 "type I<struct ifreq []>."
11798 msgstr ""
11799
11800 #. type: Plain text
11801 #: build/C/man2/ioctl_list.2:821
11802 msgid "B<SIOCSIFHWADDR> takes an input pointer whose type depends on the protocol:"
11803 msgstr ""
11804
11805 #. type: Plain text
11806 #: build/C/man2/ioctl_list.2:825
11807 #, no-wrap
11808 msgid ""
11809 "    Most protocols      const struct ifreq *\n"
11810 "    AX.25               const char [AX25_ADDR_LEN]\n"
11811 msgstr ""
11812
11813 #. type: Plain text
11814 #: build/C/man2/ioctl_list.2:840
11815 msgid ""
11816 "B<TIOCLINUX> takes a I<const char *>.  It uses this to distinguish several "
11817 "independent subcases.  In the table below, I<N + foo> means I<foo> after an "
11818 "N-byte pad.  I<struct selection> is implicitly defined in "
11819 "I<drivers/char/selection.c>"
11820 msgstr ""
11821
11822 #. type: Plain text
11823 #: build/C/man2/ioctl_list.2:849
11824 #, no-wrap
11825 msgid ""
11826 "    TIOCLINUX-2         1 + const struct selection *\n"
11827 "    TIOCLINUX-3         void\n"
11828 "    TIOCLINUX-4         void\n"
11829 "    TIOCLINUX-5         4 + const struct { long [8]; } *\n"
11830 "    TIOCLINUX-6         char *\n"
11831 "    TIOCLINUX-7         char *\n"
11832 "    TIOCLINUX-10        1 + const char *\n"
11833 msgstr ""
11834
11835 #. type: Plain text
11836 #: build/C/man2/ioctl_list.2:852
11837 msgid "// Duplicate ioctls"
11838 msgstr ""
11839
11840 #. type: Plain text
11841 #: build/C/man2/ioctl_list.2:857
11842 msgid ""
11843 "This list does not include ioctls in the range B<SIOCDEVPRIVATE> and "
11844 "B<SIOCPROTOPRIVATE>."
11845 msgstr ""
11846
11847 #. type: tbl table
11848 #: build/C/man2/ioctl_list.2:859
11849 #, no-wrap
11850 msgid "0x00000001\tFDSETPRM\tFIBMAP\n"
11851 msgstr ""
11852
11853 #. type: tbl table
11854 #: build/C/man2/ioctl_list.2:860
11855 #, no-wrap
11856 msgid "0x00000002\tFDDEFPRM\tFIGETBSZ\n"
11857 msgstr ""
11858
11859 #. type: tbl table
11860 #: build/C/man2/ioctl_list.2:861
11861 #, no-wrap
11862 msgid "0x00005382\tCDROMAUDIOBUFSIZ\tSCSI_IOCTL_GET_IDLUN\n"
11863 msgstr ""
11864
11865 #. type: tbl table
11866 #: build/C/man2/ioctl_list.2:862
11867 #, no-wrap
11868 msgid "0x00005402\tSNDCTL_TMR_START\tTCSETS\n"
11869 msgstr ""
11870
11871 #. type: tbl table
11872 #: build/C/man2/ioctl_list.2:863
11873 #, no-wrap
11874 msgid "0x00005403\tSNDCTL_TMR_STOP\tTCSETSW\n"
11875 msgstr ""
11876
11877 #. type: tbl table
11878 #: build/C/man2/ioctl_list.2:864
11879 #, no-wrap
11880 msgid "0x00005404\tSNDCTL_TMR_CONTINUE\tTCSETSF\n"
11881 msgstr ""
11882
11883 #. type: Plain text
11884 #: build/C/man2/ioctl_list.2:868
11885 msgid "B<ioctl>(2)"
11886 msgstr ""
11887
11888 #. type: TH
11889 #: build/C/man2/ioperm.2:35
11890 #, no-wrap
11891 msgid "IOPERM"
11892 msgstr ""
11893
11894 #. type: TH
11895 #: build/C/man2/ioperm.2:35
11896 #, no-wrap
11897 msgid "2007-06-15"
11898 msgstr ""
11899
11900 #. type: Plain text
11901 #: build/C/man2/ioperm.2:38
11902 msgid "ioperm - set port input/output permissions"
11903 msgstr ""
11904
11905 #. type: Plain text
11906 #: build/C/man2/ioperm.2:41
11907 msgid "B<#include E<lt>unistd.hE<gt>> /* for libc5 */"
11908 msgstr ""
11909
11910 #. type: Plain text
11911 #: build/C/man2/ioperm.2:44
11912 msgid "B<#include E<lt>sys/io.hE<gt>> /* for glibc */"
11913 msgstr ""
11914
11915 #. type: Plain text
11916 #: build/C/man2/ioperm.2:46
11917 msgid ""
11918 "B<int ioperm(unsigned long >I<from>B<, unsigned long >I<num>B<, int "
11919 ">I<turn_on>B<);>"
11920 msgstr ""
11921
11922 #. type: Plain text
11923 #: build/C/man2/ioperm.2:53
11924 msgid ""
11925 "B<ioperm>()  sets the port access permission bits for the calling process "
11926 "for I<num> bytes starting from port address I<from> to the value "
11927 "I<turn_on>.  If I<turn_on> is nonzero, the calling process must be "
11928 "privileged (B<CAP_SYS_RAWIO>)."
11929 msgstr ""
11930
11931 #.  FIXME is the following ("Only the first 0x3ff I/O ports can be
11932 #.  specified in this manner") still true?  Looking at changes in
11933 #.  include/asm-i386/processor.h between 2.4 and 2.6 suggests
11934 #.  that the limit is different in 2.6.
11935 #. type: Plain text
11936 #: build/C/man2/ioperm.2:62
11937 msgid ""
11938 "Only the first 0x3ff I/O ports can be specified in this manner.  For more "
11939 "ports, the B<iopl>(2)  system call must be used."
11940 msgstr ""
11941
11942 #. type: Plain text
11943 #: build/C/man2/ioperm.2:69
11944 msgid ""
11945 "Permissions are not inherited by the child created by B<fork>(2).  "
11946 "Permissions are preserved across B<execve>(2); this is useful for giving "
11947 "port access permissions to unprivileged programs."
11948 msgstr ""
11949
11950 #. type: Plain text
11951 #: build/C/man2/ioperm.2:73
11952 msgid ""
11953 "This call is mostly for the i386 architecture.  On many other architectures "
11954 "it does not exist or will always return an error."
11955 msgstr ""
11956
11957 #. type: Plain text
11958 #: build/C/man2/ioperm.2:85
11959 msgid "Invalid values for I<from> or I<num>."
11960 msgstr ""
11961
11962 #. type: Plain text
11963 #: build/C/man2/ioperm.2:88
11964 msgid "(on PowerPC) This call is not supported."
11965 msgstr ""
11966
11967 #.  Could not allocate I/O bitmap.
11968 #. type: Plain text
11969 #: build/C/man2/ioperm.2:92
11970 msgid "Out of memory."
11971 msgstr ""
11972
11973 #. type: Plain text
11974 #: build/C/man2/ioperm.2:95
11975 msgid "The calling process has insufficient privilege."
11976 msgstr ""
11977
11978 #. type: Plain text
11979 #: build/C/man2/ioperm.2:99
11980 msgid ""
11981 "B<ioperm>()  is Linux-specific and should not be used in programs intended "
11982 "to be portable."
11983 msgstr ""
11984
11985 #. type: Plain text
11986 #: build/C/man2/ioperm.2:108
11987 msgid ""
11988 "Libc5 treats it as a system call and has a prototype in "
11989 "I<E<lt>unistd.hE<gt>>.  Glibc1 does not have a prototype.  Glibc2 has a "
11990 "prototype both in I<E<lt>sys/io.hE<gt>> and in I<E<lt>sys/perm.hE<gt>>.  "
11991 "Avoid the latter, it is available on i386 only."
11992 msgstr ""
11993
11994 #. type: Plain text
11995 #: build/C/man2/ioperm.2:111
11996 msgid "B<iopl>(2), B<capabilities>(7)"
11997 msgstr ""
11998
11999 #. type: TH
12000 #: build/C/man3/lockf.3:22
12001 #, no-wrap
12002 msgid "LOCKF"
12003 msgstr ""
12004
12005 #. type: TH
12006 #: build/C/man3/lockf.3:22
12007 #, no-wrap
12008 msgid "2011-09-11"
12009 msgstr ""
12010
12011 #. type: Plain text
12012 #: build/C/man3/lockf.3:25
12013 msgid "lockf - apply, test or remove a POSIX lock on an open file"
12014 msgstr ""
12015
12016 #. type: Plain text
12017 #: build/C/man3/lockf.3:29
12018 msgid "B<int lockf(int >I<fd>B<, int >I<cmd>B<, off_t >I<len>B<);>"
12019 msgstr ""
12020
12021 #. type: Plain text
12022 #: build/C/man3/lockf.3:36
12023 msgid "B<lockf>():"
12024 msgstr ""
12025
12026 #. type: Plain text
12027 #: build/C/man3/lockf.3:40
12028 msgid ""
12029 "_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
12030 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
12031 msgstr ""
12032
12033 #. type: Plain text
12034 #: build/C/man3/lockf.3:63
12035 msgid ""
12036 "Apply, test or remove a POSIX lock on a section of an open file.  The file "
12037 "is specified by I<fd>, a file descriptor open for writing, the action by "
12038 "I<cmd>, and the section consists of byte positions I<pos>..I<pos>+I<len>-1 "
12039 "if I<len> is positive, and I<pos>-I<len>..I<pos>-1 if I<len> is negative, "
12040 "where I<pos> is the current file position, and if I<len> is zero, the "
12041 "section extends from the current file position to infinity, encompassing the "
12042 "present and future end-of-file positions.  In all cases, the section may "
12043 "extend past current end-of-file."
12044 msgstr ""
12045
12046 #. type: Plain text
12047 #: build/C/man3/lockf.3:78
12048 msgid ""
12049 "On Linux, B<lockf>()  is just an interface on top of B<fcntl>(2)  locking.  "
12050 "Many other systems implement B<lockf>()  in this way, but note that "
12051 "POSIX.1-2001 leaves the relationship between B<lockf>()  and B<fcntl>(2)  "
12052 "locks unspecified.  A portable application should probably avoid mixing "
12053 "calls to these interfaces."
12054 msgstr ""
12055
12056 #. type: Plain text
12057 #: build/C/man3/lockf.3:80
12058 msgid "Valid operations are given below:"
12059 msgstr ""
12060
12061 #. type: TP
12062 #: build/C/man3/lockf.3:80
12063 #, no-wrap
12064 msgid "B<F_LOCK>"
12065 msgstr ""
12066
12067 #. type: Plain text
12068 #: build/C/man3/lockf.3:90
12069 msgid ""
12070 "Set an exclusive lock on the specified section of the file.  If (part of) "
12071 "this section is already locked, the call blocks until the previous lock is "
12072 "released.  If this section overlaps an earlier locked section, both are "
12073 "merged.  File locks are released as soon as the process holding the locks "
12074 "closes some file descriptor for the file.  A child process does not inherit "
12075 "these locks."
12076 msgstr ""
12077
12078 #. type: TP
12079 #: build/C/man3/lockf.3:90
12080 #, no-wrap
12081 msgid "B<F_TLOCK>"
12082 msgstr ""
12083
12084 #. type: Plain text
12085 #: build/C/man3/lockf.3:96
12086 msgid ""
12087 "Same as B<F_LOCK> but the call never blocks and returns an error instead if "
12088 "the file is already locked."
12089 msgstr ""
12090
12091 #. type: TP
12092 #: build/C/man3/lockf.3:96
12093 #, no-wrap
12094 msgid "B<F_ULOCK>"
12095 msgstr ""
12096
12097 #. type: Plain text
12098 #: build/C/man3/lockf.3:100
12099 msgid ""
12100 "Unlock the indicated section of the file.  This may cause a locked section "
12101 "to be split into two locked sections."
12102 msgstr ""
12103
12104 #. type: TP
12105 #: build/C/man3/lockf.3:100
12106 #, no-wrap
12107 msgid "B<F_TEST>"
12108 msgstr ""
12109
12110 #. type: Plain text
12111 #: build/C/man3/lockf.3:110
12112 msgid ""
12113 "Test the lock: return 0 if the specified section is unlocked or locked by "
12114 "this process; return -1, set I<errno> to B<EAGAIN> (B<EACCES> on some other "
12115 "systems), if another process holds a lock."
12116 msgstr ""
12117
12118 #. type: Plain text
12119 #: build/C/man3/lockf.3:124
12120 msgid ""
12121 "The file is locked and B<F_TLOCK> or B<F_TEST> was specified, or the "
12122 "operation is prohibited because the file has been memory-mapped by another "
12123 "process."
12124 msgstr ""
12125
12126 #. type: Plain text
12127 #: build/C/man3/lockf.3:136
12128 msgid ""
12129 "I<fd> is not an open file descriptor; or I<cmd> is B<F_LOCK> or B<F_TLOCK> "
12130 "and I<fd> is not a writable file descriptor."
12131 msgstr ""
12132
12133 #. type: Plain text
12134 #: build/C/man3/lockf.3:141
12135 msgid "The command was B<T_LOCK> and this lock operation would cause a deadlock."
12136 msgstr ""
12137
12138 #. type: Plain text
12139 #: build/C/man3/lockf.3:145
12140 msgid "An invalid operation was specified in I<fd>."
12141 msgstr ""
12142
12143 #. type: Plain text
12144 #: build/C/man3/lockf.3:148
12145 msgid "Too many segment locks open, lock table is full."
12146 msgstr ""
12147
12148 #. type: Plain text
12149 #: build/C/man3/lockf.3:150
12150 msgid "SVr4, POSIX.1-2001."
12151 msgstr ""
12152
12153 #. type: Plain text
12154 #: build/C/man3/lockf.3:153
12155 msgid "B<fcntl>(2), B<flock>(2)"
12156 msgstr ""
12157
12158 #. type: Plain text
12159 #: build/C/man3/lockf.3:166
12160 msgid ""
12161 "There are also I<locks.txt> and I<mandatory-locking.txt> in the kernel "
12162 "source directory I<Documentation/filesystems>.  (On older kernels, these "
12163 "files are directly under the I<Documentation/> directory, and "
12164 "I<mandatory-locking.txt> is called I<mandatory.txt>.)"
12165 msgstr ""
12166
12167 #. type: TH
12168 #: build/C/man2/mincore.2:34
12169 #, no-wrap
12170 msgid "MINCORE"
12171 msgstr ""
12172
12173 #. type: TH
12174 #: build/C/man2/mincore.2:34
12175 #, no-wrap
12176 msgid "2008-04-22"
12177 msgstr ""
12178
12179 #. type: Plain text
12180 #: build/C/man2/mincore.2:37
12181 msgid "mincore - determine whether pages are resident in memory"
12182 msgstr ""
12183
12184 #. type: Plain text
12185 #: build/C/man2/mincore.2:41
12186 msgid "B<#include E<lt>sys/mman.hE<gt>>"
12187 msgstr ""
12188
12189 #. type: Plain text
12190 #: build/C/man2/mincore.2:43
12191 msgid ""
12192 "B<int mincore(void *>I<addr>B<, size_t >I<length>B<, unsigned char "
12193 "*>I<vec>B<);>"
12194 msgstr ""
12195
12196 #. type: Plain text
12197 #: build/C/man2/mincore.2:51
12198 msgid "B<mincore>(): _BSD_SOURCE || _SVID_SOURCE"
12199 msgstr ""
12200
12201 #. type: Plain text
12202 #: build/C/man2/mincore.2:62
12203 msgid ""
12204 "B<mincore>()  returns a vector that indicates whether pages of the calling "
12205 "process's virtual memory are resident in core (RAM), and so will not cause a "
12206 "disk access (page fault) if referenced.  The kernel returns residency "
12207 "information about the pages starting at the address I<addr>, and continuing "
12208 "for I<length> bytes."
12209 msgstr ""
12210
12211 #. type: Plain text
12212 #: build/C/man2/mincore.2:76
12213 msgid ""
12214 "The I<addr> argument must be a multiple of the system page size.  The "
12215 "I<length> argument need not be a multiple of the page size, but since "
12216 "residency information is returned for whole pages, I<length> is effectively "
12217 "rounded up to the next multiple of the page size.  One may obtain the page "
12218 "size (B<PAGE_SIZE>)  using I<sysconf(_SC_PAGESIZE)>."
12219 msgstr ""
12220
12221 #. type: Plain text
12222 #: build/C/man2/mincore.2:94
12223 msgid ""
12224 "The I<vec> argument must point to an array containing at least "
12225 "I<(length+PAGE_SIZE-1) / PAGE_SIZE> bytes.  On return, the least significant "
12226 "bit of each byte will be set if the corresponding page is currently resident "
12227 "in memory, and be clear otherwise.  (The settings of the other bits in each "
12228 "byte are undefined; these bits are reserved for possible later use.)  Of "
12229 "course the information returned in I<vec> is only a snapshot: pages that are "
12230 "not locked in memory can come and go at any moment, and the contents of "
12231 "I<vec> may already be stale by the time this call returns."
12232 msgstr ""
12233
12234 #. type: Plain text
12235 #: build/C/man2/mincore.2:101
12236 msgid ""
12237 "On success, B<mincore>()  returns zero.  On error, -1 is returned, and "
12238 "I<errno> is set appropriately."
12239 msgstr ""
12240
12241 #. type: Plain text
12242 #: build/C/man2/mincore.2:104
12243 msgid "B<EAGAIN> kernel is temporarily out of resources."
12244 msgstr ""
12245
12246 #. type: Plain text
12247 #: build/C/man2/mincore.2:108
12248 msgid "I<vec> points to an invalid address."
12249 msgstr ""
12250
12251 #. type: Plain text
12252 #: build/C/man2/mincore.2:112
12253 msgid "I<addr> is not a multiple of the page size."
12254 msgstr ""
12255
12256 #. type: Plain text
12257 #: build/C/man2/mincore.2:124
12258 msgid ""
12259 "I<length> is greater than (I<TASK_SIZE> - I<addr>).  (This could occur if a "
12260 "negative value is specified for I<length>, since that value will be "
12261 "interpreted as a large unsigned integer.)  In Linux 2.6.11 and earlier, the "
12262 "error B<EINVAL> was returned for this condition."
12263 msgstr ""
12264
12265 #. type: Plain text
12266 #: build/C/man2/mincore.2:132
12267 msgid "I<addr> to I<addr> + I<length> contained unmapped memory."
12268 msgstr ""
12269
12270 #. type: Plain text
12271 #: build/C/man2/mincore.2:134
12272 msgid "Available since Linux 2.3.99pre1 and glibc 2.2."
12273 msgstr ""
12274
12275 #.  It is on at least NetBSD, FreeBSD, OpenBSD, Solaris 8,
12276 #.  AIX 5.1, SunOS 4.1
12277 #.  .SH HISTORY
12278 #.  The
12279 #.  .BR mincore ()
12280 #.  function first appeared in 4.4BSD.
12281 #. type: Plain text
12282 #: build/C/man2/mincore.2:144
12283 msgid ""
12284 "B<mincore>()  is not specified in POSIX.1-2001, and it is not available on "
12285 "all UNIX implementations."
12286 msgstr ""
12287
12288 #.  Linux (up to now, 2.6.5),
12289 #.  .B mincore
12290 #.  does not return correct information for MAP_PRIVATE mappings:
12291 #.  for a MAP_PRIVATE file mapping,
12292 #.  .B mincore
12293 #.  returns the residency of the file pages, rather than any
12294 #.  modified process-private pages that have been copied on write;
12295 #.  for a MAP_PRIVATE mapping of
12296 #.  .IR /dev/zero ,
12297 #.  .B mincore
12298 #.  always reports pages as nonresident;
12299 #.  and for a MAP_PRIVATE, MAP_ANONYMOUS mapping,
12300 #.  .B mincore
12301 #.  always fails with the error
12302 #.  .BR ENOMEM .
12303 #. type: Plain text
12304 #: build/C/man2/mincore.2:166
12305 msgid ""
12306 "Before kernel 2.6.21, B<mincore>()  did not return correct information for "
12307 "B<MAP_PRIVATE> mappings, or for nonlinear mappings (established using "
12308 "B<remap_file_pages>(2))."
12309 msgstr ""
12310
12311 #. type: Plain text
12312 #: build/C/man2/mincore.2:169
12313 msgid "B<mlock>(2), B<mmap>(2)"
12314 msgstr ""
12315
12316 #. type: TH
12317 #: build/C/man2/mkdir.2:9
12318 #, no-wrap
12319 msgid "MKDIR"
12320 msgstr ""
12321
12322 #. type: TH
12323 #: build/C/man2/mkdir.2:9
12324 #, no-wrap
12325 msgid "2010-06-26"
12326 msgstr ""
12327
12328 #. type: Plain text
12329 #: build/C/man2/mkdir.2:12
12330 msgid "mkdir - create a directory"
12331 msgstr ""
12332
12333 #.  .B #include <unistd.h>
12334 #. type: Plain text
12335 #: build/C/man2/mkdir.2:17
12336 #, no-wrap
12337 msgid ""
12338 "B<#include E<lt>sys/stat.hE<gt>>\n"
12339 "B<#include E<lt>sys/types.hE<gt>>\n"
12340 msgstr ""
12341
12342 #. type: Plain text
12343 #: build/C/man2/mkdir.2:19
12344 #, no-wrap
12345 msgid "B<int mkdir(const char *>I<pathname>B<, mode_t >I<mode>B<);>\n"
12346 msgstr ""
12347
12348 #. type: Plain text
12349 #: build/C/man2/mkdir.2:24
12350 msgid "B<mkdir>()  attempts to create a directory named I<pathname>."
12351 msgstr ""
12352
12353 #. type: Plain text
12354 #: build/C/man2/mkdir.2:34
12355 msgid ""
12356 "The argument I<mode> specifies the permissions to use.  It is modified by "
12357 "the process's I<umask> in the usual way: the permissions of the created "
12358 "directory are (I<mode> & ~I<umask> & 0777).  Other mode bits of the created "
12359 "directory depend on the operating system.  For Linux, see below."
12360 msgstr ""
12361
12362 #. type: Plain text
12363 #: build/C/man2/mkdir.2:44
12364 msgid ""
12365 "The newly created directory will be owned by the effective user ID of the "
12366 "process.  If the directory containing the file has the set-group-ID bit set, "
12367 "or if the file system is mounted with BSD group semantics (I<mount -o "
12368 "bsdgroups> or, synonymously I<mount -o grpid>), the new directory will "
12369 "inherit the group ownership from its parent; otherwise it will be owned by "
12370 "the effective group ID of the process."
12371 msgstr ""
12372
12373 #. type: Plain text
12374 #: build/C/man2/mkdir.2:47
12375 msgid ""
12376 "If the parent directory has the set-group-ID bit set then so will the newly "
12377 "created directory."
12378 msgstr ""
12379
12380 #. type: Plain text
12381 #: build/C/man2/mkdir.2:52
12382 msgid ""
12383 "B<mkdir>()  returns zero on success, or -1 if an error occurred (in which "
12384 "case, I<errno> is set appropriately)."
12385 msgstr ""
12386
12387 #. type: Plain text
12388 #: build/C/man2/mkdir.2:61
12389 msgid ""
12390 "The parent directory does not allow write permission to the process, or one "
12391 "of the directories in I<pathname> did not allow search permission.  (See "
12392 "also B<path_resolution>(7).)"
12393 msgstr ""
12394
12395 #. type: TP
12396 #: build/C/man2/mkdir.2:61
12397 #, no-wrap
12398 msgid "B<EEXIST>"
12399 msgstr ""
12400
12401 #. type: Plain text
12402 #: build/C/man2/mkdir.2:68
12403 msgid ""
12404 "I<pathname> already exists (not necessarily as a directory).  This includes "
12405 "the case where I<pathname> is a symbolic link, dangling or not."
12406 msgstr ""
12407
12408 #. type: TP
12409 #: build/C/man2/mkdir.2:75
12410 #, no-wrap
12411 msgid "B<EMLINK>"
12412 msgstr ""
12413
12414 #. type: Plain text
12415 #: build/C/man2/mkdir.2:79
12416 msgid "The number of links to the parent directory would exceed B<LINK_MAX>."
12417 msgstr ""
12418
12419 #. type: Plain text
12420 #: build/C/man2/mkdir.2:82
12421 msgid "I<pathname> was too long."
12422 msgstr ""
12423
12424 #. type: Plain text
12425 #: build/C/man2/mkdir.2:87
12426 msgid ""
12427 "A directory component in I<pathname> does not exist or is a dangling "
12428 "symbolic link."
12429 msgstr ""
12430
12431 #. type: TP
12432 #: build/C/man2/mkdir.2:90 build/C/man2/mkdir.2:95
12433 #, no-wrap
12434 msgid "B<ENOSPC>"
12435 msgstr ""
12436
12437 #. type: Plain text
12438 #: build/C/man2/mkdir.2:95
12439 msgid "The device containing I<pathname> has no room for the new directory."
12440 msgstr ""
12441
12442 #. type: Plain text
12443 #: build/C/man2/mkdir.2:99
12444 msgid ""
12445 "The new directory cannot be created because the user's disk quota is "
12446 "exhausted."
12447 msgstr ""
12448
12449 #. type: Plain text
12450 #: build/C/man2/mkdir.2:109
12451 msgid ""
12452 "The file system containing I<pathname> does not support the creation of "
12453 "directories."
12454 msgstr ""
12455
12456 #. type: Plain text
12457 #: build/C/man2/mkdir.2:113
12458 msgid "I<pathname> refers to a file on a read-only file system."
12459 msgstr ""
12460
12461 #.  SVr4 documents additional EIO, EMULTIHOP
12462 #. type: Plain text
12463 #: build/C/man2/mkdir.2:116
12464 msgid "SVr4, BSD, POSIX.1-2001."
12465 msgstr ""
12466
12467 #. type: Plain text
12468 #: build/C/man2/mkdir.2:124
12469 msgid ""
12470 "Under Linux apart from the permission bits, only the B<S_ISVTX> mode bit is "
12471 "honored.  That is, under Linux the created directory actually gets mode "
12472 "(I<mode> & ~I<umask> & 01777).  See also B<stat>(2)."
12473 msgstr ""
12474
12475 #. type: Plain text
12476 #: build/C/man2/mkdir.2:128
12477 msgid ""
12478 "There are many infelicities in the protocol underlying NFS.  Some of these "
12479 "affect B<mkdir>()."
12480 msgstr ""
12481
12482 #. type: Plain text
12483 #: build/C/man2/mkdir.2:140
12484 msgid ""
12485 "B<mkdir>(1), B<chmod>(2), B<chown>(2), B<mkdirat>(2), B<mknod>(2), "
12486 "B<mount>(2), B<rmdir>(2), B<stat>(2), B<umask>(2), B<unlink>(2), "
12487 "B<path_resolution>(7)"
12488 msgstr ""
12489
12490 #. type: TH
12491 #: build/C/man2/nice.2:31
12492 #, no-wrap
12493 msgid "NICE"
12494 msgstr ""
12495
12496 #. type: Plain text
12497 #: build/C/man2/nice.2:34
12498 msgid "nice - change process priority"
12499 msgstr ""
12500
12501 #. type: Plain text
12502 #: build/C/man2/nice.2:38
12503 msgid "B<int nice(int >I<inc>B<);>"
12504 msgstr ""
12505
12506 #. type: Plain text
12507 #: build/C/man2/nice.2:46
12508 msgid "B<nice>(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE"
12509 msgstr ""
12510
12511 #. type: Plain text
12512 #: build/C/man2/nice.2:56
12513 msgid ""
12514 "B<nice>()  adds I<inc> to the nice value for the calling process.  (A higher "
12515 "nice value means a low priority.)  Only the super\\%user may specify a "
12516 "negative increment, or priority increase.  The range for nice values is "
12517 "described in B<getpriority>(2)."
12518 msgstr ""
12519
12520 #. type: Plain text
12521 #: build/C/man2/nice.2:61
12522 msgid ""
12523 "On success, the new nice value is returned (but see NOTES below).  On error, "
12524 "-1 is returned, and I<errno> is set appropriately."
12525 msgstr ""
12526
12527 #. type: Plain text
12528 #: build/C/man2/nice.2:75
12529 msgid ""
12530 "The calling process attempted to increase its priority by supplying a "
12531 "negative I<inc> but has insufficient privileges.  Under Linux the "
12532 "B<CAP_SYS_NICE> capability is required.  (But see the discussion of the "
12533 "B<RLIMIT_NICE> resource limit in B<setrlimit>(2).)"
12534 msgstr ""
12535
12536 #. type: Plain text
12537 #: build/C/man2/nice.2:82
12538 msgid ""
12539 "SVr4, 4.3BSD, POSIX.1-2001.  However, the Linux and (g)libc (earlier than "
12540 "glibc 2.2.4) return value is nonstandard, see below.  SVr4 documents an "
12541 "additional B<EINVAL> error code."
12542 msgstr ""
12543
12544 #. type: Plain text
12545 #: build/C/man2/nice.2:92
12546 msgid ""
12547 "SUSv2 and POSIX.1-2001 specify that B<nice>()  should return the new nice "
12548 "value.  However, the Linux syscall and the B<nice>()  library function "
12549 "provided in older versions of (g)libc (earlier than glibc 2.2.4) return 0 on "
12550 "success.  The new nice value can be found using B<getpriority>(2)."
12551 msgstr ""
12552
12553 #. type: Plain text
12554 #: build/C/man2/nice.2:105
12555 msgid ""
12556 "Since glibc 2.2.4, B<nice>()  is implemented as a library function that "
12557 "calls B<getpriority>(2)  to obtain the new nice value to be returned to the "
12558 "caller.  With this implementation, a successful call can legitimately return "
12559 "-1.  To reliably detect an error, set I<errno> to 0 before the call, and "
12560 "check its value when B<nice>()  returns -1."
12561 msgstr ""
12562
12563 #. type: Plain text
12564 #: build/C/man2/nice.2:112
12565 msgid ""
12566 "B<nice>(1), B<renice>(1), B<fork>(2), B<getpriority>(2), B<setpriority>(2), "
12567 "B<capabilities>(7)"
12568 msgstr ""
12569
12570 #. type: TH
12571 #: build/C/man2/pread.2:23
12572 #, no-wrap
12573 msgid "PREAD"
12574 msgstr ""
12575
12576 #. type: TH
12577 #: build/C/man2/pread.2:23
12578 #, no-wrap
12579 msgid "2010-11-21"
12580 msgstr ""
12581
12582 #. type: Plain text
12583 #: build/C/man2/pread.2:26
12584 msgid "pread, pwrite - read from or write to a file descriptor at a given offset"
12585 msgstr ""
12586
12587 #. type: Plain text
12588 #: build/C/man2/pread.2:31
12589 msgid ""
12590 "B<ssize_t pread(int >I<fd>B<, void *>I<buf>B<, size_t >I<count>B<, off_t "
12591 ">I<offset>B<);>"
12592 msgstr ""
12593
12594 #. type: Plain text
12595 #: build/C/man2/pread.2:34
12596 msgid ""
12597 "B<ssize_t pwrite(int >I<fd>B<, const void *>I<buf>B<, size_t >I<count>B<, "
12598 "off_t >I<offset>B<);>"
12599 msgstr ""
12600
12601 #. type: Plain text
12602 #: build/C/man2/pread.2:44
12603 msgid "B<pread>(), B<pwrite>():"
12604 msgstr ""
12605
12606 #. type: Plain text
12607 #: build/C/man2/pread.2:46
12608 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 500"
12609 msgstr ""
12610
12611 #. type: Plain text
12612 #: build/C/man2/pread.2:62
12613 msgid ""
12614 "B<pread>()  reads up to I<count> bytes from file descriptor I<fd> at offset "
12615 "I<offset> (from the start of the file) into the buffer starting at I<buf>.  "
12616 "The file offset is not changed."
12617 msgstr ""
12618
12619 #. type: Plain text
12620 #: build/C/man2/pread.2:73
12621 msgid ""
12622 "B<pwrite>()  writes up to I<count> bytes from the buffer starting at I<buf> "
12623 "to the file descriptor I<fd> at offset I<offset>.  The file offset is not "
12624 "changed."
12625 msgstr ""
12626
12627 #. type: Plain text
12628 #: build/C/man2/pread.2:77
12629 msgid "The file referenced by I<fd> must be capable of seeking."
12630 msgstr ""
12631
12632 #. type: Plain text
12633 #: build/C/man2/pread.2:87
12634 msgid ""
12635 "On success, the number of bytes read or written is returned (zero indicates "
12636 "that nothing was written, in the case of B<pwrite>(), or end of file, in the "
12637 "case of B<pread>()), or -1 on error, in which case I<errno> is set to "
12638 "indicate the error."
12639 msgstr ""
12640
12641 #. type: Plain text
12642 #: build/C/man2/pread.2:102
12643 msgid ""
12644 "B<pread>()  can fail and set I<errno> to any error specified for B<read>(2)  "
12645 "or B<lseek>(2).  B<pwrite>()  can fail and set I<errno> to any error "
12646 "specified for B<write>(2)  or B<lseek>(2)."
12647 msgstr ""
12648
12649 #. type: Plain text
12650 #: build/C/man2/pread.2:113
12651 msgid ""
12652 "The B<pread>()  and B<pwrite>()  system calls were added to Linux in version "
12653 "2.1.60; the entries in the i386 system call table were added in 2.1.69.  C "
12654 "library support (including emulation using B<lseek>(2)  on older kernels "
12655 "without the system calls) was added in glibc 2.1."
12656 msgstr ""
12657
12658 #. type: Plain text
12659 #: build/C/man2/pread.2:131
12660 msgid ""
12661 "On Linux, the underlying system calls were renamed in kernel 2.6: B<pread>()  "
12662 "became B<pread64>(), and B<pwrite>()  became B<pwrite64>().  The system call "
12663 "numbers remained the same.  The glibc B<pread>()  and B<pwrite>()  wrapper "
12664 "functions transparently deal with the change."
12665 msgstr ""
12666
12667 #. type: Plain text
12668 #: build/C/man2/pread.2:136
12669 msgid "B<lseek>(2), B<read>(2), B<readv>(2), B<write>(2)"
12670 msgstr ""
12671
12672 #. type: TH
12673 #: build/C/man2/set_thread_area.2:7
12674 #, no-wrap
12675 msgid "SET_THREAD_AREA"
12676 msgstr ""
12677
12678 #. type: Plain text
12679 #: build/C/man2/set_thread_area.2:10
12680 msgid "set_thread_area - Set a Thread Local Storage (TLS) area"
12681 msgstr ""
12682
12683 #. type: Plain text
12684 #: build/C/man2/set_thread_area.2:16
12685 msgid "B<int set_thread_area(struct user_desc *>I<u_info>B<);>"
12686 msgstr ""
12687
12688 #. type: Plain text
12689 #: build/C/man2/set_thread_area.2:29
12690 msgid ""
12691 "B<set_thread_area>()  sets an entry in the current thread's Thread Local "
12692 "Storage (TLS) array.  The TLS array entry set by B<set_thread_area>()  "
12693 "corresponds to the value of I<u_info-E<gt>entry_number> passed in by the "
12694 "user.  If this value is in bounds, B<set_thread_area>()  copies the TLS "
12695 "descriptor pointed to by I<u_info> into the thread's TLS array."
12696 msgstr ""
12697
12698 #. type: Plain text
12699 #: build/C/man2/set_thread_area.2:40
12700 msgid ""
12701 "When B<set_thread_area>()  is passed an I<entry_number> of -1, it uses a "
12702 "free TLS entry.  If B<set_thread_area>()  finds a free TLS entry, the value "
12703 "of I<u_info-E<gt>entry_number> is set upon return to show which entry was "
12704 "changed."
12705 msgstr ""
12706
12707 #. type: Plain text
12708 #: build/C/man2/set_thread_area.2:45
12709 msgid ""
12710 "B<set_thread_area>()  returns 0 on success, and -1 on failure, with I<errno> "
12711 "set appropriately."
12712 msgstr ""
12713
12714 #. type: TP
12715 #: build/C/man2/set_thread_area.2:52
12716 #, no-wrap
12717 msgid "B<ESRCH>"
12718 msgstr ""
12719
12720 #. type: Plain text
12721 #: build/C/man2/set_thread_area.2:55
12722 msgid "A free TLS entry could not be located."
12723 msgstr ""
12724
12725 #. type: Plain text
12726 #: build/C/man2/set_thread_area.2:59
12727 msgid "A version of B<set_thread_area>()  first appeared in Linux 2.5.29."
12728 msgstr ""
12729
12730 #. type: Plain text
12731 #: build/C/man2/set_thread_area.2:63
12732 msgid ""
12733 "B<set_thread_area>()  is Linux-specific and should not be used in programs "
12734 "that are intended to be portable."
12735 msgstr ""
12736
12737 #. type: Plain text
12738 #: build/C/man2/set_thread_area.2:69
12739 msgid "B<get_thread_area>(2)"
12740 msgstr ""
12741
12742 #. type: TH
12743 #: build/C/man2/setup.2:34
12744 #, no-wrap
12745 msgid "SETUP"
12746 msgstr ""
12747
12748 #. type: TH
12749 #: build/C/man2/setup.2:34 build/C/man2/uname.2:25
12750 #, no-wrap
12751 msgid "2008-12-03"
12752 msgstr ""
12753
12754 #. type: Plain text
12755 #: build/C/man2/setup.2:37
12756 msgid "setup - setup devices and file systems, mount root file system"
12757 msgstr ""
12758
12759 #. type: Plain text
12760 #: build/C/man2/setup.2:41
12761 msgid "B<int setup(void);>"
12762 msgstr ""
12763
12764 #. type: Plain text
12765 #: build/C/man2/setup.2:47
12766 msgid ""
12767 "B<setup>()  is called once from within I<linux/init/main.c>.  It calls "
12768 "initialization functions for devices and file systems configured into the "
12769 "kernel and then mounts the root file system."
12770 msgstr ""
12771
12772 #. type: Plain text
12773 #: build/C/man2/setup.2:53
12774 msgid ""
12775 "No user process may call B<setup>().  Any user process, even a process with "
12776 "superuser permission, will receive B<EPERM>."
12777 msgstr ""
12778
12779 #. type: Plain text
12780 #: build/C/man2/setup.2:56
12781 msgid "B<setup>()  always returns -1 for a user process."
12782 msgstr ""
12783
12784 #. type: Plain text
12785 #: build/C/man2/setup.2:62
12786 msgid "Since Linux 2.1.121, no such function exists anymore."
12787 msgstr ""
12788
12789 #. type: Plain text
12790 #: build/C/man2/setup.2:65
12791 msgid ""
12792 "This function is Linux-specific, and should not be used in programs intended "
12793 "to be portable, or indeed in any programs at all."
12794 msgstr ""
12795
12796 #. type: Plain text
12797 #: build/C/man2/setup.2:72
12798 msgid ""
12799 "The calling sequence varied: at some times I<setup ()> has had a single "
12800 "argument I<void *BIOS> and at other times a single argument I<int magic>."
12801 msgstr ""
12802
12803 #. type: TH
12804 #: build/C/man5/shells.5:27
12805 #, no-wrap
12806 msgid "SHELLS"
12807 msgstr ""
12808
12809 #. type: TH
12810 #: build/C/man5/shells.5:27
12811 #, no-wrap
12812 msgid "1993-11-21"
12813 msgstr ""
12814
12815 #. type: Plain text
12816 #: build/C/man5/shells.5:30
12817 msgid "shells - pathnames of valid login shells"
12818 msgstr ""
12819
12820 #. type: Plain text
12821 #: build/C/man5/shells.5:36
12822 msgid ""
12823 "I</etc/shells> is a text file which contains the full pathnames of valid "
12824 "login shells.  This file is consulted by B<chsh>(1)  and available to be "
12825 "queried by other programs."
12826 msgstr ""
12827
12828 #. type: Plain text
12829 #: build/C/man5/shells.5:41
12830 msgid ""
12831 "Be aware that there are programs which consult this file to find out if a "
12832 "user is a normal user.  E.g.: ftp daemons traditionally disallow access to "
12833 "users with shells not included in this file."
12834 msgstr ""
12835
12836 #. type: Plain text
12837 #: build/C/man5/shells.5:43
12838 msgid "I</etc/shells>"
12839 msgstr ""
12840
12841 #. type: Plain text
12842 #: build/C/man5/shells.5:46
12843 msgid "I</etc/shells> may contain the following paths:"
12844 msgstr ""
12845
12846 #. type: Plain text
12847 #: build/C/man5/shells.5:49
12848 msgid "I</bin/sh>"
12849 msgstr ""
12850
12851 #. type: Plain text
12852 #: build/C/man5/shells.5:51
12853 msgid "I</bin/csh>"
12854 msgstr ""
12855
12856 #. type: Plain text
12857 #: build/C/man5/shells.5:55
12858 msgid "B<chsh>(1), B<getusershell>(3)"
12859 msgstr ""
12860
12861 #. type: TH
12862 #: build/C/man3/sleep.3:24
12863 #, no-wrap
12864 msgid "SLEEP"
12865 msgstr ""
12866
12867 #. type: Plain text
12868 #: build/C/man3/sleep.3:27
12869 msgid "sleep - Sleep for the specified number of seconds"
12870 msgstr ""
12871
12872 #. type: Plain text
12873 #: build/C/man3/sleep.3:32
12874 #, no-wrap
12875 msgid "B<unsigned int sleep(unsigned int >I<seconds>B<);>\n"
12876 msgstr ""
12877
12878 #. type: Plain text
12879 #: build/C/man3/sleep.3:38
12880 msgid ""
12881 "B<sleep>()  makes the calling thread sleep until I<seconds> seconds have "
12882 "elapsed or a signal arrives which is not ignored."
12883 msgstr ""
12884
12885 #. type: Plain text
12886 #: build/C/man3/sleep.3:42
12887 msgid ""
12888 "Zero if the requested time has elapsed, or the number of seconds left to "
12889 "sleep, if the call was interrupted by a signal handler."
12890 msgstr ""
12891
12892 #. type: Plain text
12893 #: build/C/man3/sleep.3:53
12894 msgid ""
12895 "B<sleep>()  may be implemented using B<SIGALRM>; mixing calls to B<alarm>(2)  "
12896 "and B<sleep>()  is a bad idea."
12897 msgstr ""
12898
12899 #. type: Plain text
12900 #: build/C/man3/sleep.3:59
12901 msgid ""
12902 "Using B<longjmp>(3)  from a signal handler or modifying the handling of "
12903 "B<SIGALRM> while sleeping will cause undefined results."
12904 msgstr ""
12905
12906 #. type: Plain text
12907 #: build/C/man3/sleep.3:64
12908 msgid "B<alarm>(2), B<nanosleep>(2), B<signal>(2), B<signal>(7)"
12909 msgstr ""
12910
12911 #. type: TH
12912 #: build/C/man3/swab.3:29
12913 #, no-wrap
12914 msgid "SWAB"
12915 msgstr ""
12916
12917 #. type: TH
12918 #: build/C/man3/swab.3:29
12919 #, no-wrap
12920 msgid "2001-12-15"
12921 msgstr ""
12922
12923 #. type: Plain text
12924 #: build/C/man3/swab.3:32
12925 msgid "swab - swap adjacent bytes"
12926 msgstr ""
12927
12928 #. type: Plain text
12929 #: build/C/man3/swab.3:36
12930 #, no-wrap
12931 msgid ""
12932 "B<#define _XOPEN_SOURCE>       /* See feature_test_macros(7) */\n"
12933 "B<#include E<lt>unistd.hE<gt>>\n"
12934 msgstr ""
12935
12936 #. type: Plain text
12937 #: build/C/man3/swab.3:38
12938 #, no-wrap
12939 msgid "B<void swab(const void *>I<from>B<, void *>I<to>B<, ssize_t >I<n>B<);>\n"
12940 msgstr ""
12941
12942 #. type: Plain text
12943 #: build/C/man3/swab.3:47
12944 msgid ""
12945 "The B<swab>()  function copies I<n> bytes from the array pointed to by "
12946 "I<from> to the array pointed to by I<to>, exchanging adjacent even and odd "
12947 "bytes.  This function is used to exchange data between machines that have "
12948 "different low/high byte ordering."
12949 msgstr ""
12950
12951 #. type: Plain text
12952 #: build/C/man3/swab.3:52
12953 msgid ""
12954 "This function does nothing when I<n> is negative.  When I<n> is positive and "
12955 "odd, it handles I<n-1> bytes as above, and does something unspecified with "
12956 "the last byte.  (In other words, I<n> should be even.)"
12957 msgstr ""
12958
12959 #. type: Plain text
12960 #: build/C/man3/swab.3:56
12961 msgid "The B<swab>()  function returns no value."
12962 msgstr ""
12963
12964 #. type: Plain text
12965 #: build/C/man3/swab.3:60
12966 msgid "B<bstring>(3)"
12967 msgstr ""
12968
12969 #. type: TH
12970 #: build/C/man2/swapon.2:37
12971 #, no-wrap
12972 msgid "SWAPON"
12973 msgstr ""
12974
12975 #. type: TH
12976 #: build/C/man2/swapon.2:37
12977 #, no-wrap
12978 msgid "2010-11-15"
12979 msgstr ""
12980
12981 #. type: Plain text
12982 #: build/C/man2/swapon.2:40
12983 msgid "swapon, swapoff - start/stop swapping to file/device"
12984 msgstr ""
12985
12986 #. type: Plain text
12987 #: build/C/man2/swapon.2:44
12988 msgid "B<#include E<lt>asm/page.hE<gt> /* to find PAGE_SIZE */>"
12989 msgstr ""
12990
12991 #. type: Plain text
12992 #: build/C/man2/swapon.2:46
12993 msgid "B<#include E<lt>sys/swap.hE<gt>>"
12994 msgstr ""
12995
12996 #. type: Plain text
12997 #: build/C/man2/swapon.2:48
12998 msgid "B<int swapon(const char *>I<path>B<, int >I<swapflags>B<);>"
12999 msgstr ""
13000
13001 #. type: Plain text
13002 #: build/C/man2/swapon.2:50
13003 msgid "B<int swapoff(const char *>I<path>B<);>"
13004 msgstr ""
13005
13006 #. type: Plain text
13007 #: build/C/man2/swapon.2:57
13008 msgid ""
13009 "B<swapon>()  sets the swap area to the file or block device specified by "
13010 "I<path>.  B<swapoff>()  stops swapping to the file or block device specified "
13011 "by I<path>."
13012 msgstr ""
13013
13014 #. type: Plain text
13015 #: build/C/man2/swapon.2:67
13016 msgid ""
13017 "If the B<SWAP_FLAG_PREFER> flag is specified in the B<swapon>()  "
13018 "I<swapflags> argument, the new swap area will have a higher priority than "
13019 "default.  The priority is encoded within I<swapflags> as:"
13020 msgstr ""
13021
13022 #. type: Plain text
13023 #: build/C/man2/swapon.2:70
13024 msgid "I<(prio E<lt>E<lt> SWAP_FLAG_PRIO_SHIFT) & SWAP_FLAG_PRIO_MASK>"
13025 msgstr ""
13026
13027 #. type: Plain text
13028 #: build/C/man2/swapon.2:82
13029 msgid ""
13030 "If the B<SWAP_FLAG_DISCARD> flag is specified in the B<swapon>()  "
13031 "I<swapflags> argument, freed swap pages will be discarded before they are "
13032 "reused, if the swap device supports the discard or trim operation.  (This "
13033 "may improve performance on some Solid State Devices, but often it does not.)  "
13034 "See also NOTES."
13035 msgstr ""
13036
13037 #. type: Plain text
13038 #: build/C/man2/swapon.2:86
13039 msgid ""
13040 "These functions may only be used by a privileged process (one having the "
13041 "B<CAP_SYS_ADMIN> capability)."
13042 msgstr ""
13043
13044 #. type: SS
13045 #: build/C/man2/swapon.2:86
13046 #, no-wrap
13047 msgid "Priority"
13048 msgstr ""
13049
13050 #. type: Plain text
13051 #: build/C/man2/swapon.2:91
13052 msgid ""
13053 "Each swap area has a priority, either high or low.  The default priority is "
13054 "low.  Within the low-priority areas, newer areas are even lower priority "
13055 "than older areas."
13056 msgstr ""
13057
13058 #. type: Plain text
13059 #: build/C/man2/swapon.2:97
13060 msgid ""
13061 "All priorities set with I<swapflags> are high-priority, higher than "
13062 "default.  They may have any nonnegative value chosen by the caller.  Higher "
13063 "numbers mean higher priority."
13064 msgstr ""
13065
13066 #. type: Plain text
13067 #: build/C/man2/swapon.2:105
13068 msgid ""
13069 "Swap pages are allocated from areas in priority order, highest priority "
13070 "first.  For areas with different priorities, a higher-priority area is "
13071 "exhausted before using a lower-priority area.  If two or more areas have the "
13072 "same priority, and it is the highest priority available, pages are allocated "
13073 "on a round-robin basis between them."
13074 msgstr ""
13075
13076 #. type: Plain text
13077 #: build/C/man2/swapon.2:108
13078 msgid ""
13079 "As of Linux 1.3.6, the kernel usually follows these rules, but there are "
13080 "exceptions."
13081 msgstr ""
13082
13083 #. type: Plain text
13084 #: build/C/man2/swapon.2:121
13085 msgid ""
13086 "(for B<swapon>())  The specified I<path> is already being used as a swap "
13087 "area."
13088 msgstr ""
13089
13090 #. type: Plain text
13091 #: build/C/man2/swapon.2:133
13092 msgid ""
13093 "The file I<path> exists, but refers neither to a regular file nor to a block "
13094 "device; or, for B<swapon>(), the indicated path does not contain a valid "
13095 "swap signature or resides on an in-memory file system like tmpfs; or, for "
13096 "B<swapoff>(), I<path> is not currently a swap area."
13097 msgstr ""
13098
13099 #. type: Plain text
13100 #: build/C/man2/swapon.2:141
13101 msgid "The file I<path> does not exist."
13102 msgstr ""
13103
13104 #. type: Plain text
13105 #: build/C/man2/swapon.2:144
13106 msgid "The system has insufficient memory to start swapping."
13107 msgstr ""
13108
13109 #. type: Plain text
13110 #: build/C/man2/swapon.2:151
13111 msgid ""
13112 "The caller does not have the B<CAP_SYS_ADMIN> capability.  Alternatively, "
13113 "the maximum number of swap files are already in use; see NOTES below."
13114 msgstr ""
13115
13116 #. type: Plain text
13117 #: build/C/man2/swapon.2:157
13118 msgid ""
13119 "These functions are Linux-specific and should not be used in programs "
13120 "intended to be portable.  The second I<swapflags> argument was introduced in "
13121 "Linux 1.3.2."
13122 msgstr ""
13123
13124 #. type: Plain text
13125 #: build/C/man2/swapon.2:160
13126 msgid "The partition or path must be prepared with B<mkswap>(8)."
13127 msgstr ""
13128
13129 #. type: Plain text
13130 #: build/C/man2/swapon.2:180
13131 msgid ""
13132 "There is an upper limit on the number of swap files that may be used, "
13133 "defined by the kernel constant B<MAX_SWAPFILES>.  Before kernel 2.4.10, "
13134 "B<MAX_SWAPFILES> has the value 8; since kernel 2.4.10, it has the value 32.  "
13135 "Since kernel 2.6.18, the limit is decreased by 2 (thus: 30)  if the kernel "
13136 "is built with the B<CONFIG_MIGRATION> option (which reserves two swap table "
13137 "entries for the page migration features of B<mbind>(2)  and "
13138 "B<migrate_pages>(2)).  Since kernel 2.6.32, the limit is further decreased "
13139 "by 1 if the kernel is built with the B<CONFIG_MEMORY_FAILURE> option."
13140 msgstr ""
13141
13142 #.  To be precise: 2.6.35.5
13143 #. type: Plain text
13144 #: build/C/man2/swapon.2:191
13145 msgid ""
13146 "Discard of swap pages was introduced in kernel 2.6.29, then made conditional "
13147 "on the B<SWAP_FLAG_DISCARD> flag in kernel 2.6.36, which still discards the "
13148 "entire swap area when B<swapon>()  is called, even if that flag bit is not "
13149 "set."
13150 msgstr ""
13151
13152 #. type: Plain text
13153 #: build/C/man2/swapon.2:195
13154 msgid "B<mkswap>(8), B<swapoff>(8), B<swapon>(8)"
13155 msgstr ""
13156
13157 #. type: TH
13158 #: build/C/man2/syscall.2:38
13159 #, no-wrap
13160 msgid "SYSCALL"
13161 msgstr ""
13162
13163 #. type: Plain text
13164 #: build/C/man2/syscall.2:41
13165 msgid "syscall - indirect system call"
13166 msgstr ""
13167
13168 #. type: Plain text
13169 #: build/C/man2/syscall.2:46
13170 #, no-wrap
13171 msgid ""
13172 "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
13173 "B<#include E<lt>unistd.hE<gt>>\n"
13174 "B<#include E<lt>sys/syscall.hE<gt>   >/* For SYS_xxx definitions */\n"
13175 msgstr ""
13176
13177 #. type: Plain text
13178 #: build/C/man2/syscall.2:48
13179 #, no-wrap
13180 msgid "B<int syscall(int >I<number>B<, ...);>\n"
13181 msgstr ""
13182
13183 #. type: Plain text
13184 #: build/C/man2/syscall.2:57
13185 msgid ""
13186 "B<syscall>()  performs the system call whose assembly language interface has "
13187 "the specified I<number> with the specified arguments.  Symbolic constants "
13188 "for system calls can be found in the header file I<E<lt>sys/syscall.hE<gt>>."
13189 msgstr ""
13190
13191 #. type: Plain text
13192 #: build/C/man2/syscall.2:63
13193 msgid ""
13194 "The return value is defined by the system call being invoked.  In general, a "
13195 "0 return value indicates success.  A -1 return value indicates an error, and "
13196 "an error code is stored in I<errno>."
13197 msgstr ""
13198
13199 #. type: Plain text
13200 #: build/C/man2/syscall.2:67
13201 msgid "B<syscall>()  first appeared in 4BSD."
13202 msgstr ""
13203
13204 #. type: Plain text
13205 #: build/C/man2/syscall.2:73
13206 #, no-wrap
13207 msgid ""
13208 "#define _GNU_SOURCE\n"
13209 "#include E<lt>unistd.hE<gt>\n"
13210 "#include E<lt>sys/syscall.hE<gt>\n"
13211 "#include E<lt>sys/types.hE<gt>\n"
13212 msgstr ""
13213
13214 #. type: Plain text
13215 #: build/C/man2/syscall.2:78
13216 #, no-wrap
13217 msgid ""
13218 "int\n"
13219 "main(int argc, char *argv[])\n"
13220 "{\n"
13221 "    pid_t tid;\n"
13222 msgstr ""
13223
13224 #. type: Plain text
13225 #: build/C/man2/syscall.2:81
13226 #, no-wrap
13227 msgid ""
13228 "    tid = syscall(SYS_gettid);\n"
13229 "}\n"
13230 msgstr ""
13231
13232 #. type: Plain text
13233 #: build/C/man2/syscall.2:86
13234 msgid "B<_syscall>(2), B<intro>(2), B<syscalls>(2)"
13235 msgstr ""
13236
13237 #. type: TH
13238 #: build/C/man2/syscalls.2:29
13239 #, no-wrap
13240 msgid "SYSCALLS"
13241 msgstr ""
13242
13243 #. type: TH
13244 #: build/C/man2/syscalls.2:29
13245 #, no-wrap
13246 msgid "2012-03-05"
13247 msgstr ""
13248
13249 #. type: Plain text
13250 #: build/C/man2/syscalls.2:32
13251 msgid "syscalls - Linux system calls"
13252 msgstr ""
13253
13254 #. type: Plain text
13255 #: build/C/man2/syscalls.2:34
13256 msgid "Linux system calls."
13257 msgstr ""
13258
13259 #. type: Plain text
13260 #: build/C/man2/syscalls.2:37
13261 msgid ""
13262 "The system call is the fundamental interface between an application and the "
13263 "Linux kernel."
13264 msgstr ""
13265
13266 #. type: SS
13267 #: build/C/man2/syscalls.2:37
13268 #, no-wrap
13269 msgid "System calls and library wrapper functions"
13270 msgstr ""
13271
13272 #. type: Plain text
13273 #: build/C/man2/syscalls.2:47
13274 msgid ""
13275 "System calls are generally not invoked directly, but rather via wrapper "
13276 "functions in glibc (or perhaps some other library).  For details of direct "
13277 "invocation of a system call, see B<intro>(2).  Often, but not always, the "
13278 "name of the wrapper function is the same as the name of the system call that "
13279 "it invokes.  For example, glibc contains a function B<truncate>()  which "
13280 "invokes the underlying \"truncate\" system call."
13281 msgstr ""
13282
13283 #. type: Plain text
13284 #: build/C/man2/syscalls.2:65
13285 msgid ""
13286 "Often the glibc wrapper function is quite thin, doing little work other than "
13287 "copying arguments to the right registers before invoking the system call, "
13288 "and then setting I<errno> appropriately after the system call has returned.  "
13289 "(These are the same steps that are performed by B<syscall>(2), which can be "
13290 "used to invoke system calls for which no wrapper function is provided.)  "
13291 "Note: system calls indicate a failure by returning a negative error number "
13292 "to the caller; when this happens, the wrapper function negates the returned "
13293 "error number (to make it positive), copies it to I<errno>, and returns -1 to "
13294 "the caller of the wrapper."
13295 msgstr ""
13296
13297 #. type: Plain text
13298 #: build/C/man2/syscalls.2:77
13299 msgid ""
13300 "Sometimes, however, the wrapper function does some extra work before "
13301 "invoking the system call.  For example, nowadays there are (for reasons "
13302 "described below) two related system calls, B<truncate>(2)  and "
13303 "B<truncate64>(2), and the glibc B<truncate>()  wrapper function checks which "
13304 "of those system calls are provided by the kernel and determines which should "
13305 "be employed."
13306 msgstr ""
13307
13308 #. type: SS
13309 #: build/C/man2/syscalls.2:77
13310 #, no-wrap
13311 msgid "System call list"
13312 msgstr ""
13313
13314 #. type: Plain text
13315 #: build/C/man2/syscalls.2:85
13316 msgid ""
13317 "Below is a list of those system calls that are common to most platforms.  In "
13318 "the list, the I<Kernel> column indicates the kernel version for those system "
13319 "calls that were new in Linux 2.2, or have appeared since that kernel "
13320 "version.  Note the following points:"
13321 msgstr ""
13322
13323 #. type: Plain text
13324 #: build/C/man2/syscalls.2:88
13325 msgid ""
13326 "Where no kernel version is indicated, the system call appeared in kernel 1.0 "
13327 "or earlier."
13328 msgstr ""
13329
13330 #. type: Plain text
13331 #: build/C/man2/syscalls.2:94
13332 msgid ""
13333 "Where a system call is marked \"1.2\" this means the system call probably "
13334 "appeared in a 1.1.x kernel version, and first appeared in a stable kernel "
13335 "with 1.2.  (Development of the 1.2 kernel was initiated from a branch of "
13336 "kernel 1.0.6 via the 1.1.x unstable kernel series.)"
13337 msgstr ""
13338
13339 #.  Was kernel 2.0 started from a branch of 1.2.10?
13340 #.  At least from the timestamps of the tarballs of
13341 #.  of 1.2.10 and 1.3.0, that's how it looks, but in
13342 #.  fact the diff doesn't seem very clear, the
13343 #.  1.3.0 .tar.bz is much bigger (2.0 MB) than the
13344 #.  1.2.10 .tar.bz2 (1.8 MB), and AEB points out the
13345 #.  timestamps of some files in 1.3.0 seem to be older
13346 #.  than those in 1.2.10.  All of this suggests
13347 #.  that there might not have been a clean branch point.
13348 #. type: Plain text
13349 #: build/C/man2/syscalls.2:110
13350 msgid ""
13351 "Where a system call is marked \"2.0\" this means the system call probably "
13352 "appeared in a 1.3.x kernel version, and first appeared in a stable kernel "
13353 "with 2.0.  (Development of the 2.0 kernel was initiated from a branch of "
13354 "kernel 1.2.x, somewhere around 1.2.10, via the 1.3.x unstable kernel "
13355 "series.)"
13356 msgstr ""
13357
13358 #. type: Plain text
13359 #: build/C/man2/syscalls.2:116
13360 msgid ""
13361 "Where a system call is marked \"2.2\" this means the system call probably "
13362 "appeared in a 2.1.x kernel version, and first appeared in a stable kernel "
13363 "with 2.2.0.  (Development of the 2.2 kernel was initiated from a branch of "
13364 "kernel 2.0.21 via the 2.1.x unstable kernel series.)"
13365 msgstr ""
13366
13367 #. type: Plain text
13368 #: build/C/man2/syscalls.2:122
13369 msgid ""
13370 "Where a system call is marked \"2.4\" this means the system call probably "
13371 "appeared in a 2.3.x kernel version, and first appeared in a stable kernel "
13372 "with 2.4.0.  (Development of the 2.4 kernel was initiated from a branch of "
13373 "kernel 2.2.8 via the 2.3.x unstable kernel series.)"
13374 msgstr ""
13375
13376 #. type: Plain text
13377 #: build/C/man2/syscalls.2:128
13378 msgid ""
13379 "Where a system call is marked \"2.6\" this means the system call probably "
13380 "appeared in a 2.5.x kernel version, and first appeared in a stable kernel "
13381 "with 2.6.0.  (Development of kernel 2.6 was initiated from a branch of "
13382 "kernel 2.4.15 via the 2.5.x unstable kernel series.)"
13383 msgstr ""
13384
13385 #. type: Plain text
13386 #: build/C/man2/syscalls.2:135
13387 msgid ""
13388 "Starting with kernel 2.6.0, the development model changed, and new system "
13389 "calls may appear in each 2.6.x release.  In this case, the exact version "
13390 "number where the system call appeared is shown.  This convention continues "
13391 "with the 3.x kernel series, which followed on from kernel 2.6.39."
13392 msgstr ""
13393
13394 #. type: Plain text
13395 #: build/C/man2/syscalls.2:143
13396 msgid ""
13397 "In some cases, a system call was added to a stable kernel series after it "
13398 "branched from the previous stable kernel series, and then backported into "
13399 "the earlier stable kernel series.  For example some system calls that "
13400 "appeared in 2.6.x were also backported into a 2.4.x release after 2.4.15.  "
13401 "When this is so, the version where the system call appeared in both of the "
13402 "major kernel series is listed."
13403 msgstr ""
13404
13405 #
13406 #.  Looking at scripts/checksyscalls.sh in the kernel source is
13407 #.  instructive about i386 specifics.
13408 #. type: Plain text
13409 #: build/C/man2/syscalls.2:150
13410 msgid ""
13411 "The list of system calls that are available as at kernel 3.1 (or in a few "
13412 "cases only on older kernels) is as follows:"
13413 msgstr ""
13414
13415 #. type: tbl table
13416 #: build/C/man2/syscalls.2:154
13417 #, no-wrap
13418 msgid "B<System call>\tB<Kernel>\tB<Notes>\n"
13419 msgstr ""
13420
13421 #. type: tbl table
13422 #: build/C/man2/syscalls.2:156
13423 #, no-wrap
13424 msgid "B<_llseek>(2)\t1.2\n"
13425 msgstr ""
13426
13427 #. type: tbl table
13428 #: build/C/man2/syscalls.2:157
13429 #, no-wrap
13430 msgid "B<_newselect>(2)\n"
13431 msgstr ""
13432
13433 #. type: tbl table
13434 #: build/C/man2/syscalls.2:158
13435 #, no-wrap
13436 msgid "B<_sysctl>(2)\n"
13437 msgstr ""
13438
13439 #. type: tbl table
13440 #: build/C/man2/syscalls.2:159
13441 #, no-wrap
13442 msgid "B<accept>(2)\n"
13443 msgstr ""
13444
13445 #. type: tbl table
13446 #: build/C/man2/syscalls.2:160
13447 #, no-wrap
13448 msgid "B<accept4>(2)\t2.6.28\n"
13449 msgstr ""
13450
13451 #. type: tbl table
13452 #: build/C/man2/syscalls.2:161
13453 #, no-wrap
13454 msgid "B<access>(2)\n"
13455 msgstr ""
13456
13457 #. type: tbl table
13458 #: build/C/man2/syscalls.2:162
13459 #, no-wrap
13460 msgid "B<acct>(2)\n"
13461 msgstr ""
13462
13463 #. type: tbl table
13464 #: build/C/man2/syscalls.2:163
13465 #, no-wrap
13466 msgid "B<add_key>(2)\t2.6.11\n"
13467 msgstr ""
13468
13469 #. type: tbl table
13470 #: build/C/man2/syscalls.2:164
13471 #, no-wrap
13472 msgid "B<adjtimex>(2)\n"
13473 msgstr ""
13474
13475 #. type: tbl table
13476 #: build/C/man2/syscalls.2:165
13477 #, no-wrap
13478 msgid "B<afs_syscall>(2)\t\tNot implemented\n"
13479 msgstr ""
13480
13481 #. type: tbl table
13482 #: build/C/man2/syscalls.2:166
13483 #, no-wrap
13484 msgid "B<alarm>(2)\n"
13485 msgstr ""
13486
13487 #. type: tbl table
13488 #: build/C/man2/syscalls.2:167
13489 #, no-wrap
13490 msgid "B<alloc_hugepages>(2)\t2.5.36\tRemoved in 2.5.44\n"
13491 msgstr ""
13492
13493 #. type: tbl table
13494 #: build/C/man2/syscalls.2:168
13495 #, no-wrap
13496 msgid "B<bdflush>(2)\t\tDeprecated (does nothing)\n"
13497 msgstr ""
13498
13499 #. type: tbl table
13500 #: build/C/man2/syscalls.2:169
13501 #, no-wrap
13502 msgid "\t\tsince 2.6\n"
13503 msgstr ""
13504
13505 #. type: tbl table
13506 #: build/C/man2/syscalls.2:170
13507 #, no-wrap
13508 msgid "B<bind>(2)\n"
13509 msgstr ""
13510
13511 #. type: tbl table
13512 #: build/C/man2/syscalls.2:171
13513 #, no-wrap
13514 msgid "B<break>(2)\t\tNot implemented\n"
13515 msgstr ""
13516
13517 #. type: tbl table
13518 #: build/C/man2/syscalls.2:172
13519 #, no-wrap
13520 msgid "B<brk>(2)\n"
13521 msgstr ""
13522
13523 #. type: tbl table
13524 #: build/C/man2/syscalls.2:173
13525 #, no-wrap
13526 msgid "B<cacheflush>(2)\t1.2\tNot on i386\n"
13527 msgstr ""
13528
13529 #. type: tbl table
13530 #: build/C/man2/syscalls.2:174
13531 #, no-wrap
13532 msgid "B<capget>(2)\t2.2\n"
13533 msgstr ""
13534
13535 #. type: tbl table
13536 #: build/C/man2/syscalls.2:175
13537 #, no-wrap
13538 msgid "B<capset>(2)\t2.2\n"
13539 msgstr ""
13540
13541 #. type: tbl table
13542 #: build/C/man2/syscalls.2:176
13543 #, no-wrap
13544 msgid "B<chdir>(2)\n"
13545 msgstr ""
13546
13547 #. type: tbl table
13548 #: build/C/man2/syscalls.2:177
13549 #, no-wrap
13550 msgid "B<chmod>(2)\n"
13551 msgstr ""
13552
13553 #. type: tbl table
13554 #: build/C/man2/syscalls.2:178
13555 #, no-wrap
13556 msgid "B<chown>(2)\n"
13557 msgstr ""
13558
13559 #. type: tbl table
13560 #: build/C/man2/syscalls.2:179
13561 #, no-wrap
13562 msgid "B<chown32>(2)\t2.4\n"
13563 msgstr ""
13564
13565 #. type: tbl table
13566 #: build/C/man2/syscalls.2:180
13567 #, no-wrap
13568 msgid "B<chroot>(2)\n"
13569 msgstr ""
13570
13571 #. type: tbl table
13572 #: build/C/man2/syscalls.2:181
13573 #, no-wrap
13574 msgid "B<clock_adjtime>(2)\t2.6.39\n"
13575 msgstr ""
13576
13577 #. type: tbl table
13578 #: build/C/man2/syscalls.2:182
13579 #, no-wrap
13580 msgid "B<clock_getres>(2)\t2.6\n"
13581 msgstr ""
13582
13583 #. type: tbl table
13584 #: build/C/man2/syscalls.2:183
13585 #, no-wrap
13586 msgid "B<clock_gettime>(2)\t2.6\n"
13587 msgstr ""
13588
13589 #. type: tbl table
13590 #: build/C/man2/syscalls.2:184
13591 #, no-wrap
13592 msgid "B<clock_nanosleep>(2)\t2.6\n"
13593 msgstr ""
13594
13595 #. type: tbl table
13596 #: build/C/man2/syscalls.2:185
13597 #, no-wrap
13598 msgid "B<clock_settime>(2)\t2.6\n"
13599 msgstr ""
13600
13601 #. type: tbl table
13602 #: build/C/man2/syscalls.2:186
13603 #, no-wrap
13604 msgid "B<clone>(2)\n"
13605 msgstr ""
13606
13607 #. type: tbl table
13608 #: build/C/man2/syscalls.2:187
13609 #, no-wrap
13610 msgid "B<close>(2)\n"
13611 msgstr ""
13612
13613 #. type: tbl table
13614 #: build/C/man2/syscalls.2:188
13615 #, no-wrap
13616 msgid "B<connect>(2)\n"
13617 msgstr ""
13618
13619 #. type: tbl table
13620 #: build/C/man2/syscalls.2:189
13621 #, no-wrap
13622 msgid "B<creat>(2)\n"
13623 msgstr ""
13624
13625 #. type: tbl table
13626 #: build/C/man2/syscalls.2:190
13627 #, no-wrap
13628 msgid "B<create_module>(2)\n"
13629 msgstr ""
13630
13631 #. type: tbl table
13632 #: build/C/man2/syscalls.2:191
13633 #, no-wrap
13634 msgid "B<delete_module>(2)\n"
13635 msgstr ""
13636
13637 #. type: tbl table
13638 #: build/C/man2/syscalls.2:192
13639 #, no-wrap
13640 msgid "B<dup>(2)\n"
13641 msgstr ""
13642
13643 #. type: tbl table
13644 #: build/C/man2/syscalls.2:193
13645 #, no-wrap
13646 msgid "B<dup2>(2)\n"
13647 msgstr ""
13648
13649 #. type: tbl table
13650 #: build/C/man2/syscalls.2:194
13651 #, no-wrap
13652 msgid "B<dup3>(2)\t2.6.27\n"
13653 msgstr ""
13654
13655 #. type: tbl table
13656 #: build/C/man2/syscalls.2:195
13657 #, no-wrap
13658 msgid "B<epoll_create>(2)\t2.6\n"
13659 msgstr ""
13660
13661 #. type: tbl table
13662 #: build/C/man2/syscalls.2:196
13663 #, no-wrap
13664 msgid "B<epoll_create1>(2)\t2.6.27\n"
13665 msgstr ""
13666
13667 #. type: tbl table
13668 #: build/C/man2/syscalls.2:197
13669 #, no-wrap
13670 msgid "B<epoll_ctl>(2)\t2.6\n"
13671 msgstr ""
13672
13673 #. type: tbl table
13674 #: build/C/man2/syscalls.2:198
13675 #, no-wrap
13676 msgid "B<epoll_pwait>(2)\t2.6.19\n"
13677 msgstr ""
13678
13679 #. type: tbl table
13680 #: build/C/man2/syscalls.2:199
13681 #, no-wrap
13682 msgid "B<epoll_wait>(2)\t2.6\n"
13683 msgstr ""
13684
13685 #. type: tbl table
13686 #: build/C/man2/syscalls.2:200
13687 #, no-wrap
13688 msgid "B<eventfd>(2)\t2.6.22\n"
13689 msgstr ""
13690
13691 #. type: tbl table
13692 #: build/C/man2/syscalls.2:201
13693 #, no-wrap
13694 msgid "B<eventfd2>(2)\t2.6.27\n"
13695 msgstr ""
13696
13697 #. type: tbl table
13698 #: build/C/man2/syscalls.2:202
13699 #, no-wrap
13700 msgid "B<execve>(2)\n"
13701 msgstr ""
13702
13703 #. type: tbl table
13704 #: build/C/man2/syscalls.2:203
13705 #, no-wrap
13706 msgid "B<exit>(2)\n"
13707 msgstr ""
13708
13709 #. type: tbl table
13710 #: build/C/man2/syscalls.2:204
13711 #, no-wrap
13712 msgid "B<exit_group>(2)\t2.6\n"
13713 msgstr ""
13714
13715 #. type: tbl table
13716 #: build/C/man2/syscalls.2:205
13717 #, no-wrap
13718 msgid "B<faccessat>(2)\t2.6.16\n"
13719 msgstr ""
13720
13721 #. type: tbl table
13722 #: build/C/man2/syscalls.2:206
13723 #, no-wrap
13724 msgid "B<fadvise64>(2)\t2.6\n"
13725 msgstr ""
13726
13727 #.  Implements \fBposix_fadvise\fP(2)
13728 #. type: tbl table
13729 #: build/C/man2/syscalls.2:208
13730 #, no-wrap
13731 msgid "B<fadvise64_64>(2)\t2.6\n"
13732 msgstr ""
13733
13734 #. type: tbl table
13735 #: build/C/man2/syscalls.2:209
13736 #, no-wrap
13737 msgid "B<fallocate>(2)\t2.6.23\n"
13738 msgstr ""
13739
13740 #. type: tbl table
13741 #: build/C/man2/syscalls.2:210
13742 #, no-wrap
13743 msgid "B<fanotify_init>(2)\t2.6.37\n"
13744 msgstr ""
13745
13746 #. type: tbl table
13747 #: build/C/man2/syscalls.2:211
13748 #, no-wrap
13749 msgid "B<fanotify_mark>(2)\t2.6.37\n"
13750 msgstr ""
13751
13752 #.  The fanotify calls were added in Linux 2.6.36,
13753 #.  but disabled while the API was finalized.
13754 #. type: tbl table
13755 #: build/C/man2/syscalls.2:214
13756 #, no-wrap
13757 msgid "B<fchdir>(2)\n"
13758 msgstr ""
13759
13760 #. type: tbl table
13761 #: build/C/man2/syscalls.2:215
13762 #, no-wrap
13763 msgid "B<fchmod>(2)\n"
13764 msgstr ""
13765
13766 #. type: tbl table
13767 #: build/C/man2/syscalls.2:216
13768 #, no-wrap
13769 msgid "B<fchmodat>(2)\t2.6.16\n"
13770 msgstr ""
13771
13772 #. type: tbl table
13773 #: build/C/man2/syscalls.2:217
13774 #, no-wrap
13775 msgid "B<fchown>(2)\n"
13776 msgstr ""
13777
13778 #. type: tbl table
13779 #: build/C/man2/syscalls.2:218
13780 #, no-wrap
13781 msgid "B<fchown32>(2)\t2.4\n"
13782 msgstr ""
13783
13784 #. type: tbl table
13785 #: build/C/man2/syscalls.2:219
13786 #, no-wrap
13787 msgid "B<fchownat>(2)\t2.6.16\n"
13788 msgstr ""
13789
13790 #. type: tbl table
13791 #: build/C/man2/syscalls.2:220
13792 #, no-wrap
13793 msgid "B<fcntl>(2)\n"
13794 msgstr ""
13795
13796 #. type: tbl table
13797 #: build/C/man2/syscalls.2:221
13798 #, no-wrap
13799 msgid "B<fcntl64>(2)\t2.4\n"
13800 msgstr ""
13801
13802 #. type: tbl table
13803 #: build/C/man2/syscalls.2:222
13804 #, no-wrap
13805 msgid "B<fdatasync>(2)\n"
13806 msgstr ""
13807
13808 #. type: tbl table
13809 #: build/C/man2/syscalls.2:223
13810 #, no-wrap
13811 msgid "B<fgetxattr>(2)\t2.6; 2.4.18\n"
13812 msgstr ""
13813
13814 #. type: tbl table
13815 #: build/C/man2/syscalls.2:224
13816 #, no-wrap
13817 msgid "B<flistxattr>(2)\t2.6; 2.4.18\n"
13818 msgstr ""
13819
13820 #. type: tbl table
13821 #: build/C/man2/syscalls.2:225
13822 #, no-wrap
13823 msgid "B<flock>(2)\t2.0\n"
13824 msgstr ""
13825
13826 #. type: tbl table
13827 #: build/C/man2/syscalls.2:226
13828 #, no-wrap
13829 msgid "B<fork>(2)\n"
13830 msgstr ""
13831
13832 #. type: tbl table
13833 #: build/C/man2/syscalls.2:227
13834 #, no-wrap
13835 msgid "B<free_hugepages>(2)\t2.5.36\tRemoved in 2.5.44\n"
13836 msgstr ""
13837
13838 #. type: tbl table
13839 #: build/C/man2/syscalls.2:228
13840 #, no-wrap
13841 msgid "B<fremovexattr>(2)\t2.6; 2.4.18\n"
13842 msgstr ""
13843
13844 #. type: tbl table
13845 #: build/C/man2/syscalls.2:229
13846 #, no-wrap
13847 msgid "B<fsetxattr>(2)\t2.6; 2.4.18\n"
13848 msgstr ""
13849
13850 #. type: tbl table
13851 #: build/C/man2/syscalls.2:230
13852 #, no-wrap
13853 msgid "B<fstat>(2)\n"
13854 msgstr ""
13855
13856 #. type: tbl table
13857 #: build/C/man2/syscalls.2:231
13858 #, no-wrap
13859 msgid "B<fstat64>(2)\t2.4\n"
13860 msgstr ""
13861
13862 #. type: tbl table
13863 #: build/C/man2/syscalls.2:232
13864 #, no-wrap
13865 msgid "B<fstatat64>(2)\t2.6.16\n"
13866 msgstr ""
13867
13868 #. type: tbl table
13869 #: build/C/man2/syscalls.2:233
13870 #, no-wrap
13871 msgid "B<fstatfs>(2)\n"
13872 msgstr ""
13873
13874 #. type: tbl table
13875 #: build/C/man2/syscalls.2:234
13876 #, no-wrap
13877 msgid "B<fstatfs64>(2)\t2.6\n"
13878 msgstr ""
13879
13880 #. type: tbl table
13881 #: build/C/man2/syscalls.2:235
13882 #, no-wrap
13883 msgid "B<fsync>(2)\n"
13884 msgstr ""
13885
13886 #. type: tbl table
13887 #: build/C/man2/syscalls.2:236
13888 #, no-wrap
13889 msgid "B<ftime>(2)\t\tNot implemented\n"
13890 msgstr ""
13891
13892 #.  Implemented in glibc; see \fBftime\fP(3)
13893 #. type: tbl table
13894 #: build/C/man2/syscalls.2:238
13895 #, no-wrap
13896 msgid "B<ftruncate>(2)\n"
13897 msgstr ""
13898
13899 #. type: tbl table
13900 #: build/C/man2/syscalls.2:239
13901 #, no-wrap
13902 msgid "B<ftruncate64>(2)\t2.4\n"
13903 msgstr ""
13904
13905 #. type: tbl table
13906 #: build/C/man2/syscalls.2:240
13907 #, no-wrap
13908 msgid "B<futex>(2)\t2.6\n"
13909 msgstr ""
13910
13911 #. type: tbl table
13912 #: build/C/man2/syscalls.2:241
13913 #, no-wrap
13914 msgid "B<futimesat>(2)\t2.6.16\n"
13915 msgstr ""
13916
13917 #. type: tbl table
13918 #: build/C/man2/syscalls.2:242
13919 #, no-wrap
13920 msgid "B<get_kernel_syms>(2)\n"
13921 msgstr ""
13922
13923 #. type: tbl table
13924 #: build/C/man2/syscalls.2:243
13925 #, no-wrap
13926 msgid "B<get_mempolicy>(2)\t2.6.6\n"
13927 msgstr ""
13928
13929 #. type: tbl table
13930 #: build/C/man2/syscalls.2:244
13931 #, no-wrap
13932 msgid "B<get_robust_list>(2)\t2.6.17\n"
13933 msgstr ""
13934
13935 #. type: tbl table
13936 #: build/C/man2/syscalls.2:245
13937 #, no-wrap
13938 msgid "B<get_thread_area>(2)\t2.6\n"
13939 msgstr ""
13940
13941 #. type: tbl table
13942 #: build/C/man2/syscalls.2:246
13943 #, no-wrap
13944 msgid "B<getcpu>(2)\t2.6.19\n"
13945 msgstr ""
13946
13947 #. type: tbl table
13948 #: build/C/man2/syscalls.2:247
13949 #, no-wrap
13950 msgid "B<getcwd>(2)\t2.2\n"
13951 msgstr ""
13952
13953 #. type: tbl table
13954 #: build/C/man2/syscalls.2:248
13955 #, no-wrap
13956 msgid "B<getdents>(2)\t2.0\n"
13957 msgstr ""
13958
13959 #. type: tbl table
13960 #: build/C/man2/syscalls.2:249
13961 #, no-wrap
13962 msgid "B<getdents64>(2)\t2.4\n"
13963 msgstr ""
13964
13965 #. type: tbl table
13966 #: build/C/man2/syscalls.2:250
13967 #, no-wrap
13968 msgid "B<getegid>(2)\n"
13969 msgstr ""
13970
13971 #. type: tbl table
13972 #: build/C/man2/syscalls.2:251
13973 #, no-wrap
13974 msgid "B<getegid32>(2)\t2.4\n"
13975 msgstr ""
13976
13977 #. type: tbl table
13978 #: build/C/man2/syscalls.2:252
13979 #, no-wrap
13980 msgid "B<geteuid>(2)\n"
13981 msgstr ""
13982
13983 #. type: tbl table
13984 #: build/C/man2/syscalls.2:253
13985 #, no-wrap
13986 msgid "B<geteuid32>(2)\t2.4\n"
13987 msgstr ""
13988
13989 #. type: tbl table
13990 #: build/C/man2/syscalls.2:254
13991 #, no-wrap
13992 msgid "B<getgid>(2)\n"
13993 msgstr ""
13994
13995 #. type: tbl table
13996 #: build/C/man2/syscalls.2:255
13997 #, no-wrap
13998 msgid "B<getgid32>(2)\t2.4\n"
13999 msgstr ""
14000
14001 #. type: tbl table
14002 #: build/C/man2/syscalls.2:256
14003 #, no-wrap
14004 msgid "B<getgroups>(2)\n"
14005 msgstr ""
14006
14007 #. type: tbl table
14008 #: build/C/man2/syscalls.2:257
14009 #, no-wrap
14010 msgid "B<getgroups32>(2)\t2.4\n"
14011 msgstr ""
14012
14013 #. type: tbl table
14014 #: build/C/man2/syscalls.2:258
14015 #, no-wrap
14016 msgid "B<getitimer>(2)\n"
14017 msgstr ""
14018
14019 #. type: tbl table
14020 #: build/C/man2/syscalls.2:259
14021 #, no-wrap
14022 msgid "B<getpeername>(2)\n"
14023 msgstr ""
14024
14025 #. type: tbl table
14026 #: build/C/man2/syscalls.2:260
14027 #, no-wrap
14028 msgid "B<getpagesize>(2)\t2.0\tNot on i386\n"
14029 msgstr ""
14030
14031 #. type: tbl table
14032 #: build/C/man2/syscalls.2:261
14033 #, no-wrap
14034 msgid "B<getpgid>(2)\n"
14035 msgstr ""
14036
14037 #. type: tbl table
14038 #: build/C/man2/syscalls.2:262
14039 #, no-wrap
14040 msgid "B<getpgrp>(2)\n"
14041 msgstr ""
14042
14043 #. type: tbl table
14044 #: build/C/man2/syscalls.2:263
14045 #, no-wrap
14046 msgid "B<getpid>(2)\n"
14047 msgstr ""
14048
14049 #. type: tbl table
14050 #: build/C/man2/syscalls.2:264
14051 #, no-wrap
14052 msgid "B<getpmsg>(2)\t\tNot implemented\n"
14053 msgstr ""
14054
14055 #.  Reserved for STREAMS support
14056 #. type: tbl table
14057 #: build/C/man2/syscalls.2:266
14058 #, no-wrap
14059 msgid "B<getppid>(2)\n"
14060 msgstr ""
14061
14062 #. type: tbl table
14063 #: build/C/man2/syscalls.2:267
14064 #, no-wrap
14065 msgid "B<getpriority>(2)\n"
14066 msgstr ""
14067
14068 #. type: tbl table
14069 #: build/C/man2/syscalls.2:268
14070 #, no-wrap
14071 msgid "B<getresgid>(2)\t2.2\n"
14072 msgstr ""
14073
14074 #. type: tbl table
14075 #: build/C/man2/syscalls.2:269
14076 #, no-wrap
14077 msgid "B<getresgid32>(2)\t2.4\n"
14078 msgstr ""
14079
14080 #. type: tbl table
14081 #: build/C/man2/syscalls.2:270
14082 #, no-wrap
14083 msgid "B<getresuid>(2)\t2.2\n"
14084 msgstr ""
14085
14086 #. type: tbl table
14087 #: build/C/man2/syscalls.2:271
14088 #, no-wrap
14089 msgid "B<getresuid32>(2)\t2.4\n"
14090 msgstr ""
14091
14092 #. type: tbl table
14093 #: build/C/man2/syscalls.2:272
14094 #, no-wrap
14095 msgid "B<getrlimit>(2)\n"
14096 msgstr ""
14097
14098 #. type: tbl table
14099 #: build/C/man2/syscalls.2:273
14100 #, no-wrap
14101 msgid "B<getrusage>(2)\n"
14102 msgstr ""
14103
14104 #. type: tbl table
14105 #: build/C/man2/syscalls.2:274
14106 #, no-wrap
14107 msgid "B<getsid>(2)\t2.0\n"
14108 msgstr ""
14109
14110 #. type: tbl table
14111 #: build/C/man2/syscalls.2:275
14112 #, no-wrap
14113 msgid "B<getsockname>(2)\n"
14114 msgstr ""
14115
14116 #. type: tbl table
14117 #: build/C/man2/syscalls.2:276
14118 #, no-wrap
14119 msgid "B<getsockopt>(2)\n"
14120 msgstr ""
14121
14122 #. type: tbl table
14123 #: build/C/man2/syscalls.2:277
14124 #, no-wrap
14125 msgid "B<gettid>(2)\t2.4.11\n"
14126 msgstr ""
14127
14128 #. type: tbl table
14129 #: build/C/man2/syscalls.2:278
14130 #, no-wrap
14131 msgid "B<gettimeofday>(2)\n"
14132 msgstr ""
14133
14134 #. type: tbl table
14135 #: build/C/man2/syscalls.2:279
14136 #, no-wrap
14137 msgid "B<getuid>(2)\n"
14138 msgstr ""
14139
14140 #. type: tbl table
14141 #: build/C/man2/syscalls.2:280
14142 #, no-wrap
14143 msgid "B<getuid32>(2)\t2.4\n"
14144 msgstr ""
14145
14146 #.  \fBgetunwind\fP(2)  2.4.8   ia64; DEPRECATED
14147 #. type: tbl table
14148 #: build/C/man2/syscalls.2:282
14149 #, no-wrap
14150 msgid "B<getxattr>(2)\t2.6; 2.4.18\n"
14151 msgstr ""
14152
14153 #. type: tbl table
14154 #: build/C/man2/syscalls.2:283
14155 #, no-wrap
14156 msgid "B<gtty>(2)\t\tNot implemented\n"
14157 msgstr ""
14158
14159 #. type: tbl table
14160 #: build/C/man2/syscalls.2:284
14161 #, no-wrap
14162 msgid "B<idle>(2)\t\tNot implemented\n"
14163 msgstr ""
14164
14165 #. type: tbl table
14166 #: build/C/man2/syscalls.2:285
14167 #, no-wrap
14168 msgid "B<init_module>(2)\n"
14169 msgstr ""
14170
14171 #. type: tbl table
14172 #: build/C/man2/syscalls.2:286
14173 #, no-wrap
14174 msgid "B<inotify_add_watch>(2)\t2.6.13\n"
14175 msgstr ""
14176
14177 #. type: tbl table
14178 #: build/C/man2/syscalls.2:287
14179 #, no-wrap
14180 msgid "B<inotify_init>(2)\t2.6.13\n"
14181 msgstr ""
14182
14183 #. type: tbl table
14184 #: build/C/man2/syscalls.2:288
14185 #, no-wrap
14186 msgid "B<inotify_init1>(2)\t2.6.27\n"
14187 msgstr ""
14188
14189 #. type: tbl table
14190 #: build/C/man2/syscalls.2:289
14191 #, no-wrap
14192 msgid "B<inotify_rm_watch>(2)\t2.6.13\n"
14193 msgstr ""
14194
14195 #. type: tbl table
14196 #: build/C/man2/syscalls.2:290
14197 #, no-wrap
14198 msgid "B<io_cancel>(2)\t2.6\n"
14199 msgstr ""
14200
14201 #. type: tbl table
14202 #: build/C/man2/syscalls.2:291
14203 #, no-wrap
14204 msgid "B<io_destroy>(2)\t2.6\n"
14205 msgstr ""
14206
14207 #. type: tbl table
14208 #: build/C/man2/syscalls.2:292
14209 #, no-wrap
14210 msgid "B<io_getevents>(2)\t2.6\n"
14211 msgstr ""
14212
14213 #. type: tbl table
14214 #: build/C/man2/syscalls.2:293
14215 #, no-wrap
14216 msgid "B<io_setup>(2)\t2.6\n"
14217 msgstr ""
14218
14219 #. type: tbl table
14220 #: build/C/man2/syscalls.2:294
14221 #, no-wrap
14222 msgid "B<io_submit>(2)\t2.6\n"
14223 msgstr ""
14224
14225 #. type: tbl table
14226 #: build/C/man2/syscalls.2:295
14227 #, no-wrap
14228 msgid "B<ioctl>(2)\n"
14229 msgstr ""
14230
14231 #. type: tbl table
14232 #: build/C/man2/syscalls.2:296
14233 #, no-wrap
14234 msgid "B<ioperm>(2)\n"
14235 msgstr ""
14236
14237 #. type: tbl table
14238 #: build/C/man2/syscalls.2:297
14239 #, no-wrap
14240 msgid "B<iopl>(2)\n"
14241 msgstr ""
14242
14243 #. type: tbl table
14244 #: build/C/man2/syscalls.2:298
14245 #, no-wrap
14246 msgid "B<ioprio_get>(2)\t2.6.13\n"
14247 msgstr ""
14248
14249 #. type: tbl table
14250 #: build/C/man2/syscalls.2:299
14251 #, no-wrap
14252 msgid "B<ioprio_set>(2)\t2.6.13\n"
14253 msgstr ""
14254
14255 #. type: tbl table
14256 #: build/C/man2/syscalls.2:300
14257 #, no-wrap
14258 msgid "B<ipc>(2)\n"
14259 msgstr ""
14260
14261 #.  Implements System V IPC calls
14262 #. type: tbl table
14263 #: build/C/man2/syscalls.2:302
14264 #, no-wrap
14265 msgid "B<kexec_load>(2)\t2.6.13\n"
14266 msgstr ""
14267
14268 #.  The entry in the syscall table was reserved starting in 2.6.7
14269 #.  Was named sys_kexec_load() from 2.6.7 to 2.6.16
14270 #. type: tbl table
14271 #: build/C/man2/syscalls.2:305
14272 #, no-wrap
14273 msgid "B<keyctl>(2)\t2.6.11\n"
14274 msgstr ""
14275
14276 #. type: tbl table
14277 #: build/C/man2/syscalls.2:306
14278 #, no-wrap
14279 msgid "B<kill>(2)\n"
14280 msgstr ""
14281
14282 #. type: tbl table
14283 #: build/C/man2/syscalls.2:307
14284 #, no-wrap
14285 msgid "B<lchown>(2)\t2.2\n"
14286 msgstr ""
14287
14288 #. type: tbl table
14289 #: build/C/man2/syscalls.2:308
14290 #, no-wrap
14291 msgid "B<lchown32>(2)\t2.4\n"
14292 msgstr ""
14293
14294 #. type: tbl table
14295 #: build/C/man2/syscalls.2:309
14296 #, no-wrap
14297 msgid "B<lgetxattr>(2)\t2.6; 2.4.18\n"
14298 msgstr ""
14299
14300 #. type: tbl table
14301 #: build/C/man2/syscalls.2:310
14302 #, no-wrap
14303 msgid "B<link>(2)\n"
14304 msgstr ""
14305
14306 #. type: tbl table
14307 #: build/C/man2/syscalls.2:311
14308 #, no-wrap
14309 msgid "B<linkat>(2)\t2.6.16\n"
14310 msgstr ""
14311
14312 #. type: tbl table
14313 #: build/C/man2/syscalls.2:312
14314 #, no-wrap
14315 msgid "B<listen>(2)\n"
14316 msgstr ""
14317
14318 #. type: tbl table
14319 #: build/C/man2/syscalls.2:313
14320 #, no-wrap
14321 msgid "B<listxattr>(2)\t2.6; 2.4.18\n"
14322 msgstr ""
14323
14324 #. type: tbl table
14325 #: build/C/man2/syscalls.2:314
14326 #, no-wrap
14327 msgid "B<llistxattr>(2)\t2.6; 2.4.18\n"
14328 msgstr ""
14329
14330 #. type: tbl table
14331 #: build/C/man2/syscalls.2:315
14332 #, no-wrap
14333 msgid "B<lock>(2)\t\tNot implemented\n"
14334 msgstr ""
14335
14336 #. type: tbl table
14337 #: build/C/man2/syscalls.2:316
14338 #, no-wrap
14339 msgid "B<lookup_dcookie>(2)\t2.6\n"
14340 msgstr ""
14341
14342 #. type: tbl table
14343 #: build/C/man2/syscalls.2:317
14344 #, no-wrap
14345 msgid "B<lremovexattr>(2)\t2.6; 2.4.18\n"
14346 msgstr ""
14347
14348 #. type: tbl table
14349 #: build/C/man2/syscalls.2:318
14350 #, no-wrap
14351 msgid "B<lseek>(2)\n"
14352 msgstr ""
14353
14354 #. type: tbl table
14355 #: build/C/man2/syscalls.2:319
14356 #, no-wrap
14357 msgid "B<lsetxattr>(2)\t2.6; 2.4.18\n"
14358 msgstr ""
14359
14360 #. type: tbl table
14361 #: build/C/man2/syscalls.2:320
14362 #, no-wrap
14363 msgid "B<lstat>(2)\n"
14364 msgstr ""
14365
14366 #. type: tbl table
14367 #: build/C/man2/syscalls.2:321
14368 #, no-wrap
14369 msgid "B<lstat64>(2)\t2.4\n"
14370 msgstr ""
14371
14372 #. type: tbl table
14373 #: build/C/man2/syscalls.2:322
14374 #, no-wrap
14375 msgid "B<madvise>(2)\t2.4\n"
14376 msgstr ""
14377
14378 #. type: tbl table
14379 #: build/C/man2/syscalls.2:323
14380 #, no-wrap
14381 msgid "B<madvise1>(2)\t2.4\n"
14382 msgstr ""
14383
14384 #. type: tbl table
14385 #: build/C/man2/syscalls.2:324
14386 #, no-wrap
14387 msgid "B<mbind>(2)\t2.6.6\n"
14388 msgstr ""
14389
14390 #.  \fBmemory_ordering\fP(2)    ???     Sparc64
14391 #. type: tbl table
14392 #: build/C/man2/syscalls.2:326
14393 #, no-wrap
14394 msgid "B<migrate_pages>(2)\t2.6.16\n"
14395 msgstr ""
14396
14397 #. type: tbl table
14398 #: build/C/man2/syscalls.2:327
14399 #, no-wrap
14400 msgid "B<mincore>(2)\t2.4\n"
14401 msgstr ""
14402
14403 #. type: tbl table
14404 #: build/C/man2/syscalls.2:328
14405 #, no-wrap
14406 msgid "B<mkdir>(2)\n"
14407 msgstr ""
14408
14409 #. type: tbl table
14410 #: build/C/man2/syscalls.2:329
14411 #, no-wrap
14412 msgid "B<mkdirat>(2)\t2.6.16\n"
14413 msgstr ""
14414
14415 #. type: tbl table
14416 #: build/C/man2/syscalls.2:330
14417 #, no-wrap
14418 msgid "B<mknod>(2)\n"
14419 msgstr ""
14420
14421 #. type: tbl table
14422 #: build/C/man2/syscalls.2:331
14423 #, no-wrap
14424 msgid "B<mknodat>(2)\t2.6.16\n"
14425 msgstr ""
14426
14427 #. type: tbl table
14428 #: build/C/man2/syscalls.2:332
14429 #, no-wrap
14430 msgid "B<mlock>(2)\n"
14431 msgstr ""
14432
14433 #. type: tbl table
14434 #: build/C/man2/syscalls.2:333
14435 #, no-wrap
14436 msgid "B<mlockall>(2)\n"
14437 msgstr ""
14438
14439 #. type: tbl table
14440 #: build/C/man2/syscalls.2:334
14441 #, no-wrap
14442 msgid "B<mmap>(2)\n"
14443 msgstr ""
14444
14445 #. type: tbl table
14446 #: build/C/man2/syscalls.2:335
14447 #, no-wrap
14448 msgid "B<mmap2>(2)\t2.4\n"
14449 msgstr ""
14450
14451 #. type: tbl table
14452 #: build/C/man2/syscalls.2:336
14453 #, no-wrap
14454 msgid "B<modify_ldt>(2)\n"
14455 msgstr ""
14456
14457 #. type: tbl table
14458 #: build/C/man2/syscalls.2:337
14459 #, no-wrap
14460 msgid "B<mount>(2)\n"
14461 msgstr ""
14462
14463 #. type: tbl table
14464 #: build/C/man2/syscalls.2:338
14465 #, no-wrap
14466 msgid "B<move_pages>(2)\t2.6.18\n"
14467 msgstr ""
14468
14469 #. type: tbl table
14470 #: build/C/man2/syscalls.2:339
14471 #, no-wrap
14472 msgid "B<mprotect>(2)\n"
14473 msgstr ""
14474
14475 #. type: tbl table
14476 #: build/C/man2/syscalls.2:340
14477 #, no-wrap
14478 msgid "B<mpx>(2)\t\tNot implemented\n"
14479 msgstr ""
14480
14481 #. type: tbl table
14482 #: build/C/man2/syscalls.2:341
14483 #, no-wrap
14484 msgid "B<mq_getsetattr>(2)\t2.6.6\n"
14485 msgstr ""
14486
14487 #.  Implements \fBmq_getattr\fP(3) and \fBmq_setattr\fP(3)
14488 #. type: tbl table
14489 #: build/C/man2/syscalls.2:343
14490 #, no-wrap
14491 msgid "B<mq_notify>(2)\t2.6.6\n"
14492 msgstr ""
14493
14494 #. type: tbl table
14495 #: build/C/man2/syscalls.2:344
14496 #, no-wrap
14497 msgid "B<mq_open>(2)\t2.6.6\n"
14498 msgstr ""
14499
14500 #. type: tbl table
14501 #: build/C/man2/syscalls.2:345
14502 #, no-wrap
14503 msgid "B<mq_timedreceive>(2)\t2.6.6\n"
14504 msgstr ""
14505
14506 #. type: tbl table
14507 #: build/C/man2/syscalls.2:346
14508 #, no-wrap
14509 msgid "B<mq_timedsend>(2)\t2.6.6\n"
14510 msgstr ""
14511
14512 #. type: tbl table
14513 #: build/C/man2/syscalls.2:347
14514 #, no-wrap
14515 msgid "B<mq_unlink>(2)\n"
14516 msgstr ""
14517
14518 #. type: tbl table
14519 #: build/C/man2/syscalls.2:348
14520 #, no-wrap
14521 msgid "B<mremap>(2)\t2.0\n"
14522 msgstr ""
14523
14524 #. type: tbl table
14525 #: build/C/man2/syscalls.2:349
14526 #, no-wrap
14527 msgid "B<msgctl>(2)\n"
14528 msgstr ""
14529
14530 #. type: tbl table
14531 #: build/C/man2/syscalls.2:350
14532 #, no-wrap
14533 msgid "B<msgget>(2)\n"
14534 msgstr ""
14535
14536 #. type: tbl table
14537 #: build/C/man2/syscalls.2:351
14538 #, no-wrap
14539 msgid "B<msgrcv>(2)\n"
14540 msgstr ""
14541
14542 #. type: tbl table
14543 #: build/C/man2/syscalls.2:352
14544 #, no-wrap
14545 msgid "B<msgsnd>(2)\n"
14546 msgstr ""
14547
14548 #. type: tbl table
14549 #: build/C/man2/syscalls.2:353
14550 #, no-wrap
14551 msgid "B<msync>(2)\t2.0\n"
14552 msgstr ""
14553
14554 #.  \fBmultiplexer\fP(2)        ??      __NR_multiplexer reserved on
14555 #.              PowerPC, but unimplemented?
14556 #. type: tbl table
14557 #: build/C/man2/syscalls.2:356
14558 #, no-wrap
14559 msgid "B<munlock>(2)\n"
14560 msgstr ""
14561
14562 #. type: tbl table
14563 #: build/C/man2/syscalls.2:357
14564 #, no-wrap
14565 msgid "B<munlockall>(2)\n"
14566 msgstr ""
14567
14568 #. type: tbl table
14569 #: build/C/man2/syscalls.2:358
14570 #, no-wrap
14571 msgid "B<munmap>(2)\n"
14572 msgstr ""
14573
14574 #. type: tbl table
14575 #: build/C/man2/syscalls.2:359
14576 #, no-wrap
14577 msgid "B<name_to_handle_at>(2)\t2.6.39\n"
14578 msgstr ""
14579
14580 #. type: tbl table
14581 #: build/C/man2/syscalls.2:360
14582 #, no-wrap
14583 msgid "B<nanosleep>(2)\t2.0\n"
14584 msgstr ""
14585
14586 #. type: tbl table
14587 #: build/C/man2/syscalls.2:361
14588 #, no-wrap
14589 msgid "B<nfsservctl>(2)\t2.2\tRemoved in 3.1\n"
14590 msgstr ""
14591
14592 #. type: tbl table
14593 #: build/C/man2/syscalls.2:362
14594 #, no-wrap
14595 msgid "B<nice>(2)\n"
14596 msgstr ""
14597
14598 #. type: tbl table
14599 #: build/C/man2/syscalls.2:363
14600 #, no-wrap
14601 msgid "B<oldfstat>(2)\n"
14602 msgstr ""
14603
14604 #. type: tbl table
14605 #: build/C/man2/syscalls.2:364
14606 #, no-wrap
14607 msgid "B<oldlstat>(2)\n"
14608 msgstr ""
14609
14610 #. type: tbl table
14611 #: build/C/man2/syscalls.2:365
14612 #, no-wrap
14613 msgid "B<oldolduname>(2)\n"
14614 msgstr ""
14615
14616 #. type: tbl table
14617 #: build/C/man2/syscalls.2:366
14618 #, no-wrap
14619 msgid "B<oldstat>(2)\n"
14620 msgstr ""
14621
14622 #. type: tbl table
14623 #: build/C/man2/syscalls.2:367
14624 #, no-wrap
14625 msgid "B<olduname>(2)\n"
14626 msgstr ""
14627
14628 #. type: tbl table
14629 #: build/C/man2/syscalls.2:368
14630 #, no-wrap
14631 msgid "B<open>(2)\n"
14632 msgstr ""
14633
14634 #. type: tbl table
14635 #: build/C/man2/syscalls.2:369
14636 #, no-wrap
14637 msgid "B<open_by_handle_at>(2)\t2.6.39\n"
14638 msgstr ""
14639
14640 #. type: tbl table
14641 #: build/C/man2/syscalls.2:370
14642 #, no-wrap
14643 msgid "B<openat>(2)\t2.6.16\n"
14644 msgstr ""
14645
14646 #. type: tbl table
14647 #: build/C/man2/syscalls.2:371
14648 #, no-wrap
14649 msgid "B<pause>(2)\n"
14650 msgstr ""
14651
14652 #. type: tbl table
14653 #: build/C/man2/syscalls.2:372
14654 #, no-wrap
14655 msgid "B<pciconfig_iobase>(2)\t2.2.15; 2.4\tNot on i386\n"
14656 msgstr ""
14657
14658 #.  Alpha, PowerPC, ARM; not i386
14659 #. type: tbl table
14660 #: build/C/man2/syscalls.2:374
14661 #, no-wrap
14662 msgid "B<pciconfig_read>(2)\t2.0.26; 2.2\tNot on i386\n"
14663 msgstr ""
14664
14665 #.  , PowerPC, ARM; not i386
14666 #. type: tbl table
14667 #: build/C/man2/syscalls.2:376
14668 #, no-wrap
14669 msgid "B<pciconfig_write>(2)\t2.0.26; 2.2\tNot on i386\n"
14670 msgstr ""
14671
14672 #.  , PowerPC, ARM; not i386
14673 #. type: tbl table
14674 #: build/C/man2/syscalls.2:378
14675 #, no-wrap
14676 msgid "B<perf_event_open>(2)\t2.6.31\tWas called perf_counter_open()\n"
14677 msgstr ""
14678
14679 #. type: tbl table
14680 #: build/C/man2/syscalls.2:379
14681 #, no-wrap
14682 msgid "\t\tin 2.6.31; renamed in 2.6.32\n"
14683 msgstr ""
14684
14685 #. type: tbl table
14686 #: build/C/man2/syscalls.2:380
14687 #, no-wrap
14688 msgid "B<personality>(2)\t1.2\n"
14689 msgstr ""
14690
14691 #.  \fBperfctr\fP(2)    ???     Sparc32, Sparc64
14692 #.  \fBperfmonctl\fP(2) ???     ia64
14693 #. type: tbl table
14694 #: build/C/man2/syscalls.2:383
14695 #, no-wrap
14696 msgid "B<phys>(2)\t\tNot implemented\n"
14697 msgstr ""
14698
14699 #.  Unimplemented (no slot since 2.1.116)
14700 #. type: tbl table
14701 #: build/C/man2/syscalls.2:385
14702 #, no-wrap
14703 msgid "B<pipe>(2)\n"
14704 msgstr ""
14705
14706 #. type: tbl table
14707 #: build/C/man2/syscalls.2:386
14708 #, no-wrap
14709 msgid "B<pipe2>(2)\t2.6.27\n"
14710 msgstr ""
14711
14712 #. type: tbl table
14713 #: build/C/man2/syscalls.2:387
14714 #, no-wrap
14715 msgid "B<pivot_root>(2)\t2.4\n"
14716 msgstr ""
14717
14718 #. type: tbl table
14719 #: build/C/man2/syscalls.2:388
14720 #, no-wrap
14721 msgid "B<poll>(2)\t2.2\n"
14722 msgstr ""
14723
14724 #. type: tbl table
14725 #: build/C/man2/syscalls.2:389
14726 #, no-wrap
14727 msgid "B<ppoll>(2)\t2.6.16\n"
14728 msgstr ""
14729
14730 #. type: tbl table
14731 #: build/C/man2/syscalls.2:390
14732 #, no-wrap
14733 msgid "B<prctl>(2)\t2.2\n"
14734 msgstr ""
14735
14736 #. type: tbl table
14737 #: build/C/man2/syscalls.2:391
14738 #, no-wrap
14739 msgid "B<pread64>(2)\t\tAdded as \"pread\" in 2.2;\n"
14740 msgstr ""
14741
14742 #. type: tbl table
14743 #: build/C/man2/syscalls.2:392
14744 #, no-wrap
14745 msgid "\t\trenamed \"pread64\" in 2.6\n"
14746 msgstr ""
14747
14748 #. type: tbl table
14749 #: build/C/man2/syscalls.2:393
14750 #, no-wrap
14751 msgid "B<preadv>(2)\t2.6.30\n"
14752 msgstr ""
14753
14754 #. type: tbl table
14755 #: build/C/man2/syscalls.2:394
14756 #, no-wrap
14757 msgid "B<prlimit>(2)\t2.6.36\n"
14758 msgstr ""
14759
14760 #. type: tbl table
14761 #: build/C/man2/syscalls.2:395
14762 #, no-wrap
14763 msgid "B<prof>(2)\t\tNot implemented\n"
14764 msgstr ""
14765
14766 #. type: tbl table
14767 #: build/C/man2/syscalls.2:396
14768 #, no-wrap
14769 msgid "B<profil>(2)\t\tNot implemented\n"
14770 msgstr ""
14771
14772 #.  Implemented in glibc; see \fBprofil\fP(3)
14773 #. type: tbl table
14774 #: build/C/man2/syscalls.2:398
14775 #, no-wrap
14776 msgid "B<pselect6>(2)\t2.6.16\n"
14777 msgstr ""
14778
14779 #.  Implements \fBpselect\fP(2)
14780 #. type: tbl table
14781 #: build/C/man2/syscalls.2:400
14782 #, no-wrap
14783 msgid "B<ptrace>(2)\n"
14784 msgstr ""
14785
14786 #. type: tbl table
14787 #: build/C/man2/syscalls.2:401
14788 #, no-wrap
14789 msgid "B<putpmsg>(2)\t\tNot implemented\n"
14790 msgstr ""
14791
14792 #.  Reserved for STREAMS support
14793 #. type: tbl table
14794 #: build/C/man2/syscalls.2:403
14795 #, no-wrap
14796 msgid "B<pwrite64>(2)\t\tAdded as \"pwrite\" in 2.2;\n"
14797 msgstr ""
14798
14799 #. type: tbl table
14800 #: build/C/man2/syscalls.2:404
14801 #, no-wrap
14802 msgid "\t\trenamed \"pwrite64\" in 2.6\n"
14803 msgstr ""
14804
14805 #. type: tbl table
14806 #: build/C/man2/syscalls.2:405
14807 #, no-wrap
14808 msgid "B<pwritev>(2)\t2.6.30\n"
14809 msgstr ""
14810
14811 #. type: tbl table
14812 #: build/C/man2/syscalls.2:406
14813 #, no-wrap
14814 msgid "B<query_module>(2)\t2.2\n"
14815 msgstr ""
14816
14817 #. type: tbl table
14818 #: build/C/man2/syscalls.2:407
14819 #, no-wrap
14820 msgid "B<quotactl>(2)\n"
14821 msgstr ""
14822
14823 #. type: tbl table
14824 #: build/C/man2/syscalls.2:408
14825 #, no-wrap
14826 msgid "B<read>(2)\n"
14827 msgstr ""
14828
14829 #. type: tbl table
14830 #: build/C/man2/syscalls.2:409
14831 #, no-wrap
14832 msgid "B<readahead>(2)\t2.4.13\n"
14833 msgstr ""
14834
14835 #. type: tbl table
14836 #: build/C/man2/syscalls.2:410
14837 #, no-wrap
14838 msgid "B<readdir>(2)\n"
14839 msgstr ""
14840
14841 #.  Supersedes \fBgetdents\fP(2)
14842 #. type: tbl table
14843 #: build/C/man2/syscalls.2:412
14844 #, no-wrap
14845 msgid "B<readlink>(2)\n"
14846 msgstr ""
14847
14848 #. type: tbl table
14849 #: build/C/man2/syscalls.2:413
14850 #, no-wrap
14851 msgid "B<readlinkat>(2)\t2.6.16\n"
14852 msgstr ""
14853
14854 #. type: tbl table
14855 #: build/C/man2/syscalls.2:414
14856 #, no-wrap
14857 msgid "B<readv>(2)\t2.0\n"
14858 msgstr ""
14859
14860 #. type: tbl table
14861 #: build/C/man2/syscalls.2:415
14862 #, no-wrap
14863 msgid "B<reboot>(2)\n"
14864 msgstr ""
14865
14866 #. type: tbl table
14867 #: build/C/man2/syscalls.2:416
14868 #, no-wrap
14869 msgid "B<recv>(2)\n"
14870 msgstr ""
14871
14872 #. type: tbl table
14873 #: build/C/man2/syscalls.2:417
14874 #, no-wrap
14875 msgid "B<recvfrom>(2)\n"
14876 msgstr ""
14877
14878 #. type: tbl table
14879 #: build/C/man2/syscalls.2:418
14880 #, no-wrap
14881 msgid "B<recvmsg>(2)\n"
14882 msgstr ""
14883
14884 #. type: tbl table
14885 #: build/C/man2/syscalls.2:419
14886 #, no-wrap
14887 msgid "B<recvmmsg>(2)\t2.6.33\n"
14888 msgstr ""
14889
14890 #. type: tbl table
14891 #: build/C/man2/syscalls.2:420
14892 #, no-wrap
14893 msgid "B<remap_file_pages>(2)\t2.6\n"
14894 msgstr ""
14895
14896 #. type: tbl table
14897 #: build/C/man2/syscalls.2:421
14898 #, no-wrap
14899 msgid "B<removexattr>(2)\t2.6; 2.4.18\n"
14900 msgstr ""
14901
14902 #. type: tbl table
14903 #: build/C/man2/syscalls.2:422
14904 #, no-wrap
14905 msgid "B<rename>(2)\n"
14906 msgstr ""
14907
14908 #. type: tbl table
14909 #: build/C/man2/syscalls.2:423
14910 #, no-wrap
14911 msgid "B<renameat>(2)\t2.6.16\n"
14912 msgstr ""
14913
14914 #. type: tbl table
14915 #: build/C/man2/syscalls.2:424
14916 #, no-wrap
14917 msgid "B<request_key>(2)\t2.6.11\n"
14918 msgstr ""
14919
14920 #. type: tbl table
14921 #: build/C/man2/syscalls.2:425
14922 #, no-wrap
14923 msgid "B<restart_syscall>(2)\t2.6\n"
14924 msgstr ""
14925
14926 #. type: tbl table
14927 #: build/C/man2/syscalls.2:426
14928 #, no-wrap
14929 msgid "B<rmdir>(2)\n"
14930 msgstr ""
14931
14932 #. type: tbl table
14933 #: build/C/man2/syscalls.2:427
14934 #, no-wrap
14935 msgid "B<rt_sigaction>(2)\t2.2\n"
14936 msgstr ""
14937
14938 #. type: tbl table
14939 #: build/C/man2/syscalls.2:428
14940 #, no-wrap
14941 msgid "B<rt_sigpending>(2)\t2.2\n"
14942 msgstr ""
14943
14944 #. type: tbl table
14945 #: build/C/man2/syscalls.2:429
14946 #, no-wrap
14947 msgid "B<rt_sigprocmask>(2)\t2.2\n"
14948 msgstr ""
14949
14950 #. type: tbl table
14951 #: build/C/man2/syscalls.2:430
14952 #, no-wrap
14953 msgid "B<rt_sigqueueinfo>(2)\t2.2\n"
14954 msgstr ""
14955
14956 #. type: tbl table
14957 #: build/C/man2/syscalls.2:431
14958 #, no-wrap
14959 msgid "B<rt_sigreturn>(2)\t2.2\n"
14960 msgstr ""
14961
14962 #. type: tbl table
14963 #: build/C/man2/syscalls.2:432
14964 #, no-wrap
14965 msgid "B<rt_sigsuspend>(2)\t2.2\n"
14966 msgstr ""
14967
14968 #. type: tbl table
14969 #: build/C/man2/syscalls.2:433
14970 #, no-wrap
14971 msgid "B<rt_sigtimedwait>(2)\t2.2\n"
14972 msgstr ""
14973
14974 #. type: tbl table
14975 #: build/C/man2/syscalls.2:434
14976 #, no-wrap
14977 msgid "B<rt_tgsigqueueinfo>(2)\t2.6.31\n"
14978 msgstr ""
14979
14980 #. type: tbl table
14981 #: build/C/man2/syscalls.2:435
14982 #, no-wrap
14983 msgid "B<sched_get_priority_max>(2)\t2.0\n"
14984 msgstr ""
14985
14986 #. type: tbl table
14987 #: build/C/man2/syscalls.2:436
14988 #, no-wrap
14989 msgid "B<sched_get_priority_min>(2)\t2.0\n"
14990 msgstr ""
14991
14992 #. type: tbl table
14993 #: build/C/man2/syscalls.2:437
14994 #, no-wrap
14995 msgid "B<sched_getaffinity>(2)\t2.6\n"
14996 msgstr ""
14997
14998 #. type: tbl table
14999 #: build/C/man2/syscalls.2:438
15000 #, no-wrap
15001 msgid "B<sched_getparam>(2)\t2.0\n"
15002 msgstr ""
15003
15004 #. type: tbl table
15005 #: build/C/man2/syscalls.2:439
15006 #, no-wrap
15007 msgid "B<sched_getscheduler>(2)\t2.0\n"
15008 msgstr ""
15009
15010 #. type: tbl table
15011 #: build/C/man2/syscalls.2:440
15012 #, no-wrap
15013 msgid "B<sched_rr_get_interval>(2)\t2.0\n"
15014 msgstr ""
15015
15016 #. type: tbl table
15017 #: build/C/man2/syscalls.2:441
15018 #, no-wrap
15019 msgid "B<sched_setaffinity>(2)\t2.6\n"
15020 msgstr ""
15021
15022 #. type: tbl table
15023 #: build/C/man2/syscalls.2:442
15024 #, no-wrap
15025 msgid "B<sched_setparam>(2)\t2.0\n"
15026 msgstr ""
15027
15028 #. type: tbl table
15029 #: build/C/man2/syscalls.2:443
15030 #, no-wrap
15031 msgid "B<sched_setscheduler>(2)\t2.0\n"
15032 msgstr ""
15033
15034 #. type: tbl table
15035 #: build/C/man2/syscalls.2:444
15036 #, no-wrap
15037 msgid "B<sched_yield>(2)\t2.0\n"
15038 msgstr ""
15039
15040 #. type: tbl table
15041 #: build/C/man2/syscalls.2:445
15042 #, no-wrap
15043 msgid "B<security>(2)\t\tNot implemented\n"
15044 msgstr ""
15045
15046 #. type: tbl table
15047 #: build/C/man2/syscalls.2:446
15048 #, no-wrap
15049 msgid "B<select>(2)\n"
15050 msgstr ""
15051
15052 #. type: tbl table
15053 #: build/C/man2/syscalls.2:447
15054 #, no-wrap
15055 msgid "B<semctl>(2)\n"
15056 msgstr ""
15057
15058 #. type: tbl table
15059 #: build/C/man2/syscalls.2:448
15060 #, no-wrap
15061 msgid "B<semget>(2)\n"
15062 msgstr ""
15063
15064 #. type: tbl table
15065 #: build/C/man2/syscalls.2:449
15066 #, no-wrap
15067 msgid "B<semop>(2)\n"
15068 msgstr ""
15069
15070 #. type: tbl table
15071 #: build/C/man2/syscalls.2:450
15072 #, no-wrap
15073 msgid "B<semtimedop>(2)\t2.6; 2.4.22\n"
15074 msgstr ""
15075
15076 #. type: tbl table
15077 #: build/C/man2/syscalls.2:451
15078 #, no-wrap
15079 msgid "B<send>(2)\n"
15080 msgstr ""
15081
15082 #. type: tbl table
15083 #: build/C/man2/syscalls.2:452
15084 #, no-wrap
15085 msgid "B<sendfile>(2)\t2.2\n"
15086 msgstr ""
15087
15088 #. type: tbl table
15089 #: build/C/man2/syscalls.2:453
15090 #, no-wrap
15091 msgid "B<sendfile64>(2)\t2.6; 2.4.19\n"
15092 msgstr ""
15093
15094 #. type: tbl table
15095 #: build/C/man2/syscalls.2:454
15096 #, no-wrap
15097 msgid "B<sendmmsg>(2)\t3.0\n"
15098 msgstr ""
15099
15100 #. type: tbl table
15101 #: build/C/man2/syscalls.2:455
15102 #, no-wrap
15103 msgid "B<sendmsg>(2)\n"
15104 msgstr ""
15105
15106 #. type: tbl table
15107 #: build/C/man2/syscalls.2:456
15108 #, no-wrap
15109 msgid "B<sendto>(2)\n"
15110 msgstr ""
15111
15112 #. type: tbl table
15113 #: build/C/man2/syscalls.2:457
15114 #, no-wrap
15115 msgid "B<set_mempolicy>(2)\t2.6.6\n"
15116 msgstr ""
15117
15118 #. type: tbl table
15119 #: build/C/man2/syscalls.2:458
15120 #, no-wrap
15121 msgid "B<set_robust_list>(2)\t2.6.17\n"
15122 msgstr ""
15123
15124 #. type: tbl table
15125 #: build/C/man2/syscalls.2:459
15126 #, no-wrap
15127 msgid "B<set_thread_area>(2)\t2.6\n"
15128 msgstr ""
15129
15130 #. type: tbl table
15131 #: build/C/man2/syscalls.2:460
15132 #, no-wrap
15133 msgid "B<set_tid_address>(2)\t2.6\n"
15134 msgstr ""
15135
15136 #. type: tbl table
15137 #: build/C/man2/syscalls.2:461
15138 #, no-wrap
15139 msgid "B<set_zone_reclaim>(2)\t2.6.13\tRemoved in 2.6.16 (was never\n"
15140 msgstr ""
15141
15142 #. type: tbl table
15143 #: build/C/man2/syscalls.2:462
15144 #, no-wrap
15145 msgid "\t\tavailable to userspace)\n"
15146 msgstr ""
15147
15148 #.  See http://lkml.org/lkml/2005/8/1/83
15149 #.  "[PATCH] remove sys_set_zone_reclaim()"
15150 #. type: tbl table
15151 #: build/C/man2/syscalls.2:465
15152 #, no-wrap
15153 msgid "B<setdomainname>(2)\n"
15154 msgstr ""
15155
15156 #. type: tbl table
15157 #: build/C/man2/syscalls.2:466
15158 #, no-wrap
15159 msgid "B<setfsgid>(2)\t1.2\n"
15160 msgstr ""
15161
15162 #. type: tbl table
15163 #: build/C/man2/syscalls.2:467
15164 #, no-wrap
15165 msgid "B<setfsgid32>(2)\t2.4\n"
15166 msgstr ""
15167
15168 #. type: tbl table
15169 #: build/C/man2/syscalls.2:468
15170 #, no-wrap
15171 msgid "B<setfsuid>(2)\t1.2\n"
15172 msgstr ""
15173
15174 #. type: tbl table
15175 #: build/C/man2/syscalls.2:469
15176 #, no-wrap
15177 msgid "B<setfsuid32>(2)\t2.4\n"
15178 msgstr ""
15179
15180 #. type: tbl table
15181 #: build/C/man2/syscalls.2:470
15182 #, no-wrap
15183 msgid "B<setgid>(2)\n"
15184 msgstr ""
15185
15186 #. type: tbl table
15187 #: build/C/man2/syscalls.2:471
15188 #, no-wrap
15189 msgid "B<setgid32>(2)\t2.4\n"
15190 msgstr ""
15191
15192 #. type: tbl table
15193 #: build/C/man2/syscalls.2:472
15194 #, no-wrap
15195 msgid "B<setgroups>(2)\n"
15196 msgstr ""
15197
15198 #. type: tbl table
15199 #: build/C/man2/syscalls.2:473
15200 #, no-wrap
15201 msgid "B<setgroups32>(2)\t2.4\n"
15202 msgstr ""
15203
15204 #. type: tbl table
15205 #: build/C/man2/syscalls.2:474
15206 #, no-wrap
15207 msgid "B<sethostname>(2)\n"
15208 msgstr ""
15209
15210 #. type: tbl table
15211 #: build/C/man2/syscalls.2:475
15212 #, no-wrap
15213 msgid "B<setitimer>(2)\n"
15214 msgstr ""
15215
15216 #. type: tbl table
15217 #: build/C/man2/syscalls.2:476
15218 #, no-wrap
15219 msgid "B<setns>(2)\t3.0\n"
15220 msgstr ""
15221
15222 #. type: tbl table
15223 #: build/C/man2/syscalls.2:477
15224 #, no-wrap
15225 msgid "B<setpgid>(2)\n"
15226 msgstr ""
15227
15228 #. type: tbl table
15229 #: build/C/man2/syscalls.2:478
15230 #, no-wrap
15231 msgid "B<setpriority>(2)\n"
15232 msgstr ""
15233
15234 #. type: tbl table
15235 #: build/C/man2/syscalls.2:479
15236 #, no-wrap
15237 msgid "B<setregid>(2)\n"
15238 msgstr ""
15239
15240 #. type: tbl table
15241 #: build/C/man2/syscalls.2:480
15242 #, no-wrap
15243 msgid "B<setregid32>(2)\t2.4\n"
15244 msgstr ""
15245
15246 #. type: tbl table
15247 #: build/C/man2/syscalls.2:481
15248 #, no-wrap
15249 msgid "B<setresgid>(2)\t2.2\n"
15250 msgstr ""
15251
15252 #. type: tbl table
15253 #: build/C/man2/syscalls.2:482
15254 #, no-wrap
15255 msgid "B<setresgid32>(2)\t2.4\n"
15256 msgstr ""
15257
15258 #. type: tbl table
15259 #: build/C/man2/syscalls.2:483
15260 #, no-wrap
15261 msgid "B<setresuid>(2)\t2.2\n"
15262 msgstr ""
15263
15264 #. type: tbl table
15265 #: build/C/man2/syscalls.2:484
15266 #, no-wrap
15267 msgid "B<setresuid32>(2)\t2.4\n"
15268 msgstr ""
15269
15270 #. type: tbl table
15271 #: build/C/man2/syscalls.2:485
15272 #, no-wrap
15273 msgid "B<setreuid>(2)\n"
15274 msgstr ""
15275
15276 #. type: tbl table
15277 #: build/C/man2/syscalls.2:486
15278 #, no-wrap
15279 msgid "B<setreuid32>(2)\t2.4\n"
15280 msgstr ""
15281
15282 #. type: tbl table
15283 #: build/C/man2/syscalls.2:487
15284 #, no-wrap
15285 msgid "B<setrlimit>(2)\n"
15286 msgstr ""
15287
15288 #. type: tbl table
15289 #: build/C/man2/syscalls.2:488
15290 #, no-wrap
15291 msgid "B<setsid>(2)\n"
15292 msgstr ""
15293
15294 #. type: tbl table
15295 #: build/C/man2/syscalls.2:489
15296 #, no-wrap
15297 msgid "B<setsockopt>(2)\n"
15298 msgstr ""
15299
15300 #. type: tbl table
15301 #: build/C/man2/syscalls.2:490
15302 #, no-wrap
15303 msgid "B<settimeofday>(2)\n"
15304 msgstr ""
15305
15306 #. type: tbl table
15307 #: build/C/man2/syscalls.2:491
15308 #, no-wrap
15309 msgid "B<setuid>(2)\n"
15310 msgstr ""
15311
15312 #. type: tbl table
15313 #: build/C/man2/syscalls.2:492
15314 #, no-wrap
15315 msgid "B<setuid32>(2)\t2.4\n"
15316 msgstr ""
15317
15318 #. type: tbl table
15319 #: build/C/man2/syscalls.2:493
15320 #, no-wrap
15321 msgid "B<setup>(2)\t\tRemoved in 2.2\n"
15322 msgstr ""
15323
15324 #. type: tbl table
15325 #: build/C/man2/syscalls.2:494
15326 #, no-wrap
15327 msgid "B<setxattr>(2)\t2.6; 2.4.18\n"
15328 msgstr ""
15329
15330 #. type: tbl table
15331 #: build/C/man2/syscalls.2:495
15332 #, no-wrap
15333 msgid "B<sgetmask>(2)\n"
15334 msgstr ""
15335
15336 #. type: tbl table
15337 #: build/C/man2/syscalls.2:496
15338 #, no-wrap
15339 msgid "B<shmat>(2)\n"
15340 msgstr ""
15341
15342 #. type: tbl table
15343 #: build/C/man2/syscalls.2:497
15344 #, no-wrap
15345 msgid "B<shmctl>(2)\n"
15346 msgstr ""
15347
15348 #. type: tbl table
15349 #: build/C/man2/syscalls.2:498
15350 #, no-wrap
15351 msgid "B<shmdt>(2)\n"
15352 msgstr ""
15353
15354 #. type: tbl table
15355 #: build/C/man2/syscalls.2:499
15356 #, no-wrap
15357 msgid "B<shmget>(2)\n"
15358 msgstr ""
15359
15360 #. type: tbl table
15361 #: build/C/man2/syscalls.2:500
15362 #, no-wrap
15363 msgid "B<shutdown>(2)\n"
15364 msgstr ""
15365
15366 #. type: tbl table
15367 #: build/C/man2/syscalls.2:501
15368 #, no-wrap
15369 msgid "B<sigaction>(2)\n"
15370 msgstr ""
15371
15372 #. type: tbl table
15373 #: build/C/man2/syscalls.2:502
15374 #, no-wrap
15375 msgid "B<sigaltstack>(2)\t2.2\n"
15376 msgstr ""
15377
15378 #. type: tbl table
15379 #: build/C/man2/syscalls.2:503
15380 #, no-wrap
15381 msgid "B<signal>(2)\n"
15382 msgstr ""
15383
15384 #. type: tbl table
15385 #: build/C/man2/syscalls.2:504
15386 #, no-wrap
15387 msgid "B<signalfd>(2)\t2.6.22\n"
15388 msgstr ""
15389
15390 #. type: tbl table
15391 #: build/C/man2/syscalls.2:505
15392 #, no-wrap
15393 msgid "B<signalfd4>(2)\t2.6.27\n"
15394 msgstr ""
15395
15396 #. type: tbl table
15397 #: build/C/man2/syscalls.2:506
15398 #, no-wrap
15399 msgid "B<sigpending>(2)\n"
15400 msgstr ""
15401
15402 #. type: tbl table
15403 #: build/C/man2/syscalls.2:507
15404 #, no-wrap
15405 msgid "B<sigprocmask>(2)\n"
15406 msgstr ""
15407
15408 #. type: tbl table
15409 #: build/C/man2/syscalls.2:508
15410 #, no-wrap
15411 msgid "B<sigreturn>(2)\n"
15412 msgstr ""
15413
15414 #. type: tbl table
15415 #: build/C/man2/syscalls.2:509
15416 #, no-wrap
15417 msgid "B<sigsuspend>(2)\n"
15418 msgstr ""
15419
15420 #. type: tbl table
15421 #: build/C/man2/syscalls.2:510
15422 #, no-wrap
15423 msgid "B<socket>(2)\n"
15424 msgstr ""
15425
15426 #. type: tbl table
15427 #: build/C/man2/syscalls.2:511
15428 #, no-wrap
15429 msgid "B<socketcall>(2)\n"
15430 msgstr ""
15431
15432 #.  Implements BSD socket calls
15433 #. type: tbl table
15434 #: build/C/man2/syscalls.2:513
15435 #, no-wrap
15436 msgid "B<socketpair>(2)\n"
15437 msgstr ""
15438
15439 #. type: tbl table
15440 #: build/C/man2/syscalls.2:514
15441 #, no-wrap
15442 msgid "B<splice>(2)\t2.6.17\n"
15443 msgstr ""
15444
15445 #. type: tbl table
15446 #: build/C/man2/syscalls.2:515
15447 #, no-wrap
15448 msgid "B<spu_create>(2)\t2.6.16\tPowerPC only\n"
15449 msgstr ""
15450
15451 #. type: tbl table
15452 #: build/C/man2/syscalls.2:516
15453 #, no-wrap
15454 msgid "B<spu_run>(2)\t2.6.16\tPowerPC only\n"
15455 msgstr ""
15456
15457 #. type: tbl table
15458 #: build/C/man2/syscalls.2:517
15459 #, no-wrap
15460 msgid "B<ssetmask>(2)\n"
15461 msgstr ""
15462
15463 #. type: tbl table
15464 #: build/C/man2/syscalls.2:518
15465 #, no-wrap
15466 msgid "B<stat>(2)\n"
15467 msgstr ""
15468
15469 #. type: tbl table
15470 #: build/C/man2/syscalls.2:519
15471 #, no-wrap
15472 msgid "B<stat64>(2)\t2.4\n"
15473 msgstr ""
15474
15475 #. type: tbl table
15476 #: build/C/man2/syscalls.2:520
15477 #, no-wrap
15478 msgid "B<statfs>(2)\n"
15479 msgstr ""
15480
15481 #. type: tbl table
15482 #: build/C/man2/syscalls.2:521
15483 #, no-wrap
15484 msgid "B<statfs64>(2)\t2.6\n"
15485 msgstr ""
15486
15487 #. type: tbl table
15488 #: build/C/man2/syscalls.2:522
15489 #, no-wrap
15490 msgid "B<stime>(2)\n"
15491 msgstr ""
15492
15493 #. type: tbl table
15494 #: build/C/man2/syscalls.2:523
15495 #, no-wrap
15496 msgid "B<stty>(2)\t\tNot implemented\n"
15497 msgstr ""
15498
15499 #. type: tbl table
15500 #: build/C/man2/syscalls.2:524
15501 #, no-wrap
15502 msgid "B<subpage_prot>(2)\t2.6.25\tPowerPC if CONFIG_PPC_64K_PAGES\n"
15503 msgstr ""
15504
15505 #. type: tbl table
15506 #: build/C/man2/syscalls.2:525
15507 #, no-wrap
15508 msgid "B<swapoff>(2)\n"
15509 msgstr ""
15510
15511 #. type: tbl table
15512 #: build/C/man2/syscalls.2:526
15513 #, no-wrap
15514 msgid "B<swapon>(2)\n"
15515 msgstr ""
15516
15517 #. type: tbl table
15518 #: build/C/man2/syscalls.2:527
15519 #, no-wrap
15520 msgid "B<symlink>(2)\n"
15521 msgstr ""
15522
15523 #. type: tbl table
15524 #: build/C/man2/syscalls.2:528
15525 #, no-wrap
15526 msgid "B<symlinkat>(2)\t2.6.16\n"
15527 msgstr ""
15528
15529 #. type: tbl table
15530 #: build/C/man2/syscalls.2:529
15531 #, no-wrap
15532 msgid "B<sync>(2)\n"
15533 msgstr ""
15534
15535 #. type: tbl table
15536 #: build/C/man2/syscalls.2:530
15537 #, no-wrap
15538 msgid "B<sync_file_range>(2)\t2.6.17\n"
15539 msgstr ""
15540
15541 #. type: tbl table
15542 #: build/C/man2/syscalls.2:531
15543 #, no-wrap
15544 msgid "B<sync_file_range2>(2)\t2.6.22\tArchitecture-specific variant\n"
15545 msgstr ""
15546
15547 #.  PowerPC, ARM, tile
15548 #.  First appeared on ARM, as arm_sync_file_range(), but later renamed
15549 #. type: tbl table
15550 #: build/C/man2/syscalls.2:534
15551 #, no-wrap
15552 msgid "\t\tof B<sync_file_range>(2)\n"
15553 msgstr ""
15554
15555 #.  \fBsys_debug_setcontext\fP(2)       ???     PowerPC if CONFIG_PPC32
15556 #. type: tbl table
15557 #: build/C/man2/syscalls.2:536
15558 #, no-wrap
15559 msgid "B<syncfs>(2)\t2.6.39\n"
15560 msgstr ""
15561
15562 #. type: tbl table
15563 #: build/C/man2/syscalls.2:537
15564 #, no-wrap
15565 msgid "B<sysfs>(2)\t1.2\n"
15566 msgstr ""
15567
15568 #. type: tbl table
15569 #: build/C/man2/syscalls.2:538
15570 #, no-wrap
15571 msgid "B<sysinfo>(2)\n"
15572 msgstr ""
15573
15574 #. type: tbl table
15575 #: build/C/man2/syscalls.2:539
15576 #, no-wrap
15577 msgid "B<syslog>(2)\n"
15578 msgstr ""
15579
15580 #.  glibc interface is \fBklogctl\fP(3)
15581 #. type: tbl table
15582 #: build/C/man2/syscalls.2:541
15583 #, no-wrap
15584 msgid "B<tee>(2)\t2.6.17\n"
15585 msgstr ""
15586
15587 #. type: tbl table
15588 #: build/C/man2/syscalls.2:542
15589 #, no-wrap
15590 msgid "B<tgkill>(2)\t2.6\n"
15591 msgstr ""
15592
15593 #. type: tbl table
15594 #: build/C/man2/syscalls.2:543
15595 #, no-wrap
15596 msgid "B<time>(2)\n"
15597 msgstr ""
15598
15599 #. type: tbl table
15600 #: build/C/man2/syscalls.2:544
15601 #, no-wrap
15602 msgid "B<timer_create>(2)\t2.6\n"
15603 msgstr ""
15604
15605 #. type: tbl table
15606 #: build/C/man2/syscalls.2:545
15607 #, no-wrap
15608 msgid "B<timer_delete>(2)\t2.6\n"
15609 msgstr ""
15610
15611 #. type: tbl table
15612 #: build/C/man2/syscalls.2:546
15613 #, no-wrap
15614 msgid "B<timer_getoverrun>(2)\t2.6\n"
15615 msgstr ""
15616
15617 #. type: tbl table
15618 #: build/C/man2/syscalls.2:547
15619 #, no-wrap
15620 msgid "B<timer_gettime>(2)\t2.6\n"
15621 msgstr ""
15622
15623 #. type: tbl table
15624 #: build/C/man2/syscalls.2:548
15625 #, no-wrap
15626 msgid "B<timer_settime>(2)\t2.6\n"
15627 msgstr ""
15628
15629 #. type: tbl table
15630 #: build/C/man2/syscalls.2:549
15631 #, no-wrap
15632 msgid "B<timerfd_create>(2)\t2.6.25\n"
15633 msgstr ""
15634
15635 #. type: tbl table
15636 #: build/C/man2/syscalls.2:550
15637 #, no-wrap
15638 msgid "B<timerfd_gettime>(2)\t2.6.25\n"
15639 msgstr ""
15640
15641 #. type: tbl table
15642 #: build/C/man2/syscalls.2:551
15643 #, no-wrap
15644 msgid "B<timerfd_settime>(2)\t2.6.25\n"
15645 msgstr ""
15646
15647 #. type: tbl table
15648 #: build/C/man2/syscalls.2:552
15649 #, no-wrap
15650 msgid "B<times>(2)\n"
15651 msgstr ""
15652
15653 #. type: tbl table
15654 #: build/C/man2/syscalls.2:553
15655 #, no-wrap
15656 msgid "B<tkill>(2)\t2.6; 2.4.22\n"
15657 msgstr ""
15658
15659 #. type: tbl table
15660 #: build/C/man2/syscalls.2:554
15661 #, no-wrap
15662 msgid "B<truncate>(2)\n"
15663 msgstr ""
15664
15665 #. type: tbl table
15666 #: build/C/man2/syscalls.2:555
15667 #, no-wrap
15668 msgid "B<truncate64>(2)\t2.4\n"
15669 msgstr ""
15670
15671 #. type: tbl table
15672 #: build/C/man2/syscalls.2:556
15673 #, no-wrap
15674 msgid "B<tuxcall>(2)\t\tNot implemented\n"
15675 msgstr ""
15676
15677 #.  Unimplemented; no slot on i386
15678 #.  As at 2.6.22, tuxcall has a slot on PowerPC, x86_64, and alpha
15679 #. type: tbl table
15680 #: build/C/man2/syscalls.2:559
15681 #, no-wrap
15682 msgid "B<ugetrlimit>(2)\t2.4\n"
15683 msgstr ""
15684
15685 #. type: tbl table
15686 #: build/C/man2/syscalls.2:560
15687 #, no-wrap
15688 msgid "B<ulimit>(2)\t\tNot implemented\n"
15689 msgstr ""
15690
15691 #.  Implemented in glibc; see \fBulimit\fP(3)
15692 #. type: tbl table
15693 #: build/C/man2/syscalls.2:562
15694 #, no-wrap
15695 msgid "B<umask>(2)\n"
15696 msgstr ""
15697
15698 #. type: tbl table
15699 #: build/C/man2/syscalls.2:563
15700 #, no-wrap
15701 msgid "B<umount>(2)\n"
15702 msgstr ""
15703
15704 #.  sys_oldumount() -- __NR_umount
15705 #. type: tbl table
15706 #: build/C/man2/syscalls.2:565
15707 #, no-wrap
15708 msgid "B<umount2>(2)\t2.2\n"
15709 msgstr ""
15710
15711 #.  sys_umount() -- __NR_umount2
15712 #. type: tbl table
15713 #: build/C/man2/syscalls.2:567
15714 #, no-wrap
15715 msgid "B<uname>(2)\n"
15716 msgstr ""
15717
15718 #. type: tbl table
15719 #: build/C/man2/syscalls.2:568
15720 #, no-wrap
15721 msgid "B<unlink>(2)\n"
15722 msgstr ""
15723
15724 #. type: tbl table
15725 #: build/C/man2/syscalls.2:569
15726 #, no-wrap
15727 msgid "B<unlinkat>(2)\t2.6.16\n"
15728 msgstr ""
15729
15730 #. type: tbl table
15731 #: build/C/man2/syscalls.2:570
15732 #, no-wrap
15733 msgid "B<unshare>(2)\t2.6.16\n"
15734 msgstr ""
15735
15736 #. type: tbl table
15737 #: build/C/man2/syscalls.2:571
15738 #, no-wrap
15739 msgid "B<uselib>(2)\n"
15740 msgstr ""
15741
15742 #. type: tbl table
15743 #: build/C/man2/syscalls.2:572
15744 #, no-wrap
15745 msgid "B<ustat>(2)\n"
15746 msgstr ""
15747
15748 #. type: tbl table
15749 #: build/C/man2/syscalls.2:573
15750 #, no-wrap
15751 msgid "B<utime>(2)\n"
15752 msgstr ""
15753
15754 #. type: tbl table
15755 #: build/C/man2/syscalls.2:574
15756 #, no-wrap
15757 msgid "B<utimensat>(2)\t2.6.22\n"
15758 msgstr ""
15759
15760 #. type: tbl table
15761 #: build/C/man2/syscalls.2:575
15762 #, no-wrap
15763 msgid "B<utimes>(2)\t2.2\n"
15764 msgstr ""
15765
15766 #. type: tbl table
15767 #: build/C/man2/syscalls.2:576
15768 #, no-wrap
15769 msgid "B<vfork>(2)\n"
15770 msgstr ""
15771
15772 #. type: tbl table
15773 #: build/C/man2/syscalls.2:577
15774 #, no-wrap
15775 msgid "B<vhangup>(2)\n"
15776 msgstr ""
15777
15778 #. type: tbl table
15779 #: build/C/man2/syscalls.2:578
15780 #, no-wrap
15781 msgid "B<vm86old>(2)\n"
15782 msgstr ""
15783
15784 #.  Superseded by \fBvm86\fP(2)
15785 #. type: tbl table
15786 #: build/C/man2/syscalls.2:580
15787 #, no-wrap
15788 msgid "B<vmsplice>(2)\t2.6.17\n"
15789 msgstr ""
15790
15791 #. type: tbl table
15792 #: build/C/man2/syscalls.2:581
15793 #, no-wrap
15794 msgid "B<vserver>(2)\t\tNot implemented\n"
15795 msgstr ""
15796
15797 #. type: tbl table
15798 #: build/C/man2/syscalls.2:582
15799 #, no-wrap
15800 msgid "B<wait4>(2)\n"
15801 msgstr ""
15802
15803 #. type: tbl table
15804 #: build/C/man2/syscalls.2:583
15805 #, no-wrap
15806 msgid "B<waitid>(2)\t2.6.10\n"
15807 msgstr ""
15808
15809 #. type: tbl table
15810 #: build/C/man2/syscalls.2:584
15811 #, no-wrap
15812 msgid "B<waitpid>(2)\n"
15813 msgstr ""
15814
15815 #. type: tbl table
15816 #: build/C/man2/syscalls.2:585
15817 #, no-wrap
15818 msgid "B<write>(2)\n"
15819 msgstr ""
15820
15821 #. type: tbl table
15822 #: build/C/man2/syscalls.2:586
15823 #, no-wrap
15824 msgid "B<writev>(2)\t2.0\n"
15825 msgstr ""
15826
15827 #. type: Plain text
15828 #: build/C/man2/syscalls.2:594
15829 msgid ""
15830 "On many platforms, including i386, socket calls are all multiplexed (via "
15831 "glibc wrapper functions) through B<socketcall>(2)  and similarly System V "
15832 "IPC calls are multiplexed through B<ipc>(2)."
15833 msgstr ""
15834
15835 #. type: Plain text
15836 #: build/C/man2/syscalls.2:596
15837 msgid "Note the following points:"
15838 msgstr ""
15839
15840 #.  __NR_afs_syscall is 53 on Linux 2.6.22/i386
15841 #.  __NR_break is 17 on Linux 2.6.22/i386
15842 #.  __NR_ftime is 35 on Linux 2.6.22/i386
15843 #.  __NR_getpmsg is 188 on Linux 2.6.22/i386
15844 #.  __NR_gtty is 32 on Linux 2.6.22/i386
15845 #.  __NR_idle is 112 on Linux 2.6.22/i386
15846 #.  __NR_lock is 53 on Linux 2.6.22/i386
15847 #.  __NR_madvise1 is 219 on Linux 2.6.22/i386
15848 #.  __NR_mpx is 66 on Linux 2.6.22/i386
15849 #.  Slot has been reused
15850 #.  __NR_prof is 44 on Linux 2.6.22/i386
15851 #.  __NR_profil is 98 on Linux 2.6.22/i386
15852 #.  __NR_putpmsg is 189 on Linux 2.6.22/i386
15853 #.  __NR_security is 223 on Linux 2.4/i386
15854 #.  __NR_security is 223 on Linux 2.4/i386; absent on 2.6/i386, present
15855 #.  on a couple of 2.6 architectures
15856 #.  __NR_stty is 31 on Linux 2.6.22/i386
15857 #.  __NR_tuxcall is 184 on x86_64, also on PPC and alpha
15858 #.  __NR_ulimit is 58 on Linux 2.6.22/i386
15859 #.  __NR_vserver is 273 on Linux 2.6.22/i386
15860 #. type: Plain text
15861 #: build/C/man2/syscalls.2:634
15862 msgid ""
15863 "Although slots are reserved for them in the system call table, the following "
15864 "system calls are not implemented in the standard kernel: B<afs_syscall>(2), "
15865 "B<break>(2), B<ftime>(2), B<getpmsg>(2), B<gtty>(2), B<idle>(2), B<lock>(2), "
15866 "B<madvise1>(2), B<mpx>(2), B<phys>(2), B<prof>(2), B<profil>(2), "
15867 "B<putpmsg>(2), B<security>(2), B<stty>(2), B<tuxcall>(2), B<ulimit>(2), and "
15868 "B<vserver>(2)  (see also B<unimplemented>(2)).  However, B<ftime>(3), "
15869 "B<profil>(3)  and B<ulimit>(3)  exist as library routines.  The slot for "
15870 "B<phys>(2)  is in use since kernel 2.1.116 for B<umount>(2); B<phys>(2)  "
15871 "will never be implemented."
15872 msgstr ""
15873
15874 #.  The security call is for future use.
15875 #. type: Plain text
15876 #: build/C/man2/syscalls.2:642
15877 msgid ""
15878 "The B<getpmsg>(2)  and B<putpmsg>(2)  calls are for kernels patched to "
15879 "support STREAMS, and may never be in the standard kernel."
15880 msgstr ""
15881
15882 #. type: Plain text
15883 #: build/C/man2/syscalls.2:657
15884 msgid ""
15885 "Roughly speaking, the code belonging to the system call with number __NR_xxx "
15886 "defined in I</usr/include/asm/unistd.h> can be found in the kernel source in "
15887 "the routine I<sys_xxx>().  (The dispatch table for i386 can be found in "
15888 "I</usr/src/linux/arch/i386/kernel/entry.S>.)  There are many exceptions, "
15889 "however, mostly because older system calls were superseded by newer ones, "
15890 "and this has been treated somewhat unsystematically.  On platforms with "
15891 "proprietary OS emulation, such as parisc, sparc, sparc64 and alpha, there "
15892 "are many additional system calls; mips64 also contains a full set of 32-bit "
15893 "system calls."
15894 msgstr ""
15895
15896 #. type: Plain text
15897 #: build/C/man2/syscalls.2:676
15898 msgid ""
15899 "Over time, changes to the interfaces of some system calls have been "
15900 "necessary.  One reason for such changes was the need to increase the size of "
15901 "structures or scalar values passed to the system call.  Because of these "
15902 "changes, there are now various groups of related system calls (e.g., "
15903 "B<truncate>(2)  and B<truncate64>(2))  which perform similar tasks, but "
15904 "which vary in details such as the size of their arguments.  (As noted "
15905 "earlier, applications are generally unaware of this: the glibc wrapper "
15906 "functions do some work to ensure that the right system call is invoked, and "
15907 "that ABI compatibility is preserved for old binaries.)  Examples of systems "
15908 "calls that exist in multiple versions are the following:"
15909 msgstr ""
15910
15911 #.  e.g., on 2.6.22/i386: __NR_oldstat 18, __NR_stat 106, __NR_stat64 195
15912 #.  The stat system calls deal with three different data structures,
15913 #.  defined in include/asm-i386/stat.h: __old_kernel_stat, stat, stat64
15914 #. type: Plain text
15915 #: build/C/man2/syscalls.2:697
15916 msgid ""
15917 "By now there are three different versions of B<stat>(2): I<sys_stat>()  "
15918 "(slot I<__NR_oldstat>), I<sys_newstat>()  (slot I<__NR_stat>), and "
15919 "I<sys_stat64>()  (slot I<__NR_stat64>), with the last being the most "
15920 "current.  A similar story applies for B<lstat>(2)  and B<fstat>(2)."
15921 msgstr ""
15922
15923 #. type: Plain text
15924 #: build/C/man2/syscalls.2:708
15925 msgid ""
15926 "Similarly, the defines I<__NR_oldolduname>, I<__NR_olduname>, and "
15927 "I<__NR_uname> refer to the routines I<sys_olduname>(), I<sys_uname>()  and "
15928 "I<sys_newuname>()."
15929 msgstr ""
15930
15931 #. type: Plain text
15932 #: build/C/man2/syscalls.2:715
15933 msgid ""
15934 "In Linux 2.0, a new version of B<vm86>(2)  appeared, with the old and the "
15935 "new kernel routines being named I<sys_vm86old>()  and I<sys_vm86>()."
15936 msgstr ""
15937
15938 #. type: Plain text
15939 #: build/C/man2/syscalls.2:726
15940 msgid ""
15941 "In Linux 2.4, a new version of B<getrlimit>(2)  appeared, with the old and "
15942 "the new kernel routines being named I<sys_old_getrlimit>()  (slot "
15943 "I<__NR_getrlimit>)  and I<sys_getrlimit>()  (slot I<__NR_ugetrlimit>)."
15944 msgstr ""
15945
15946 #.  64-bit off_t changes: ftruncate64, *stat64,
15947 #.  fcntl64 (because of the flock structure), getdents64, *statfs64
15948 #. type: Plain text
15949 #: build/C/man2/syscalls.2:738
15950 msgid ""
15951 "Linux 2.4 increased the size of user and group IDs from 16 to 32 bits.  To "
15952 "support this change, a range of system calls were added (e.g., "
15953 "B<chown32>(2), B<getuid32>(2), B<getgroups32>(2), B<setresuid32>(2)), "
15954 "superseding earlier calls of the same name without the \"32\" suffix."
15955 msgstr ""
15956
15957 #. type: Plain text
15958 #: build/C/man2/syscalls.2:755
15959 msgid ""
15960 "Linux 2.4 added support for applications on 32-bit architectures to access "
15961 "large files (i.e., files for which the sizes and file offsets can't be "
15962 "represented in 32 bits.)  To support this change, replacements were required "
15963 "for system calls that deal with file offsets and sizes.  Thus the following "
15964 "system calls were added: B<fcntl64>(2), B<ftruncate64>(2), B<getdents64>(2), "
15965 "B<stat64>(2), B<statfs64>(2), and their analogs that work with file "
15966 "descriptors or symbolic links.  These system calls supersede the older "
15967 "system calls which, except in the case of the \"stat\" calls, have the same "
15968 "name without the \"64\" suffix."
15969 msgstr ""
15970
15971 #. type: Plain text
15972 #: build/C/man2/syscalls.2:759
15973 msgid ""
15974 "On newer platforms that only have 64-bit file access and 32-bit uids (e.g., "
15975 "alpha, ia64, s390x) there are no *64 or *32 calls.  Where the *64 and *32 "
15976 "calls exist, the other versions are obsolete."
15977 msgstr ""
15978
15979 #. type: Plain text
15980 #: build/C/man2/syscalls.2:767
15981 msgid ""
15982 "The I<rt_sig*> calls were added in kernel 2.2 to support the addition of "
15983 "real-time signals (see B<signal>(7)).  These system calls supersede the "
15984 "older system calls of the same name without the \"rt_\" prefix."
15985 msgstr ""
15986
15987 #.  (used by libc 6)
15988 #.  .PP
15989 #.  Two system call numbers,
15990 #.  .IR __NR__llseek
15991 #.  and
15992 #.  .IR __NR__sysctl
15993 #.  have an additional underscore absent in
15994 #.  .IR sys_llseek ()
15995 #.  and
15996 #.  .IR sys_sysctl ().
15997 #
15998 #.  In kernel 2.1.81,
15999 #.  .BR lchown (2)
16000 #.  and
16001 #.  .BR chown (2)
16002 #.  were swapped; that is,
16003 #.  .BR lchown (2)
16004 #.  was added with the semantics that were then current for
16005 #.  .BR chown (2),
16006 #.  and the semantics of the latter call were changed to what
16007 #.  they are today.
16008 #. type: Plain text
16009 #: build/C/man2/syscalls.2:817
16010 msgid ""
16011 "The B<select>(2)  and B<mmap>(2)  system calls use five or more arguments, "
16012 "which caused problems the way argument passing on the i386 used to be set "
16013 "up.  Thus, while other architectures have I<sys_select>()  and I<sys_mmap>()  "
16014 "corresponding to I<__NR_select> and I<__NR_mmap>, on i386 one finds "
16015 "I<old_select>()  and I<old_mmap>()  (routines that use a pointer to a "
16016 "argument block) instead.  These days passing five arguments is not a problem "
16017 "any more, and there is a I<__NR__newselect> that corresponds directly to "
16018 "I<sys_select>()  and similarly I<__NR_mmap2>."
16019 msgstr ""
16020
16021 #. type: Plain text
16022 #: build/C/man2/syscalls.2:821
16023 msgid "B<syscall>(2), B<unimplemented>(2), B<libc>(7)"
16024 msgstr ""
16025
16026 #. type: TH
16027 #: build/C/man3/sysconf.3:25
16028 #, no-wrap
16029 msgid "SYSCONF"
16030 msgstr ""
16031
16032 #. type: TH
16033 #: build/C/man3/sysconf.3:25
16034 #, no-wrap
16035 msgid "2007-12-12"
16036 msgstr ""
16037
16038 #. type: Plain text
16039 #: build/C/man3/sysconf.3:28
16040 msgid "sysconf - Get configuration information at runtime"
16041 msgstr ""
16042
16043 #. type: Plain text
16044 #: build/C/man3/sysconf.3:33
16045 #, no-wrap
16046 msgid "B<long sysconf(int >I<name>B<);>\n"
16047 msgstr ""
16048
16049 #. type: Plain text
16050 #: build/C/man3/sysconf.3:38
16051 msgid ""
16052 "POSIX allows an application to test at compile or run time whether certain "
16053 "options are supported, or what the value is of certain configurable "
16054 "constants or limits."
16055 msgstr ""
16056
16057 #. type: Plain text
16058 #: build/C/man3/sysconf.3:44
16059 msgid ""
16060 "At compile time this is done by including I<E<lt>unistd.hE<gt>> and/or "
16061 "I<E<lt>limits.hE<gt>> and testing the value of certain macros."
16062 msgstr ""
16063
16064 #. type: Plain text
16065 #: build/C/man3/sysconf.3:54
16066 msgid ""
16067 "At run time, one can ask for numerical values using the present function "
16068 "B<sysconf>().  One can ask for numerical values that may depend on the file "
16069 "system a file is in using the calls B<fpathconf>(3)  and B<pathconf>(3).  "
16070 "One can ask for string values using B<confstr>(3)."
16071 msgstr ""
16072
16073 #.  except that sysconf(_SC_OPEN_MAX) may change answer after a call
16074 #.  to setrlimit( ) which changes the RLIMIT_NOFILE soft limit
16075 #. type: Plain text
16076 #: build/C/man3/sysconf.3:59
16077 msgid ""
16078 "The values obtained from these functions are system configuration "
16079 "constants.  They do not change during the lifetime of a process."
16080 msgstr ""
16081
16082 #.  and 999 to indicate support for options no longer present in the latest
16083 #.  standard. (?)
16084 #. type: Plain text
16085 #: build/C/man3/sysconf.3:82
16086 msgid ""
16087 "For options, typically, there is a constant B<_POSIX_FOO> that may be "
16088 "defined in I<E<lt>unistd.hE<gt>>.  If it is undefined, one should ask at run "
16089 "time.  If it is defined to -1, then the option is not supported.  If it is "
16090 "defined to 0, then relevant functions and headers exist, but one has to ask "
16091 "at runtime what degree of support is available.  If it is defined to a value "
16092 "other than -1 or 0, then the option is supported.  Usually the value (such "
16093 "as 200112L) indicates the year and month of the POSIX revision describing "
16094 "the option.  Glibc uses the value 1 to indicate support as long as the POSIX "
16095 "revision has not been published yet.  The B<sysconf>()  argument will be "
16096 "B<_SC_FOO>.  For a list of options, see B<posixoptions>(7)."
16097 msgstr ""
16098
16099 #. type: Plain text
16100 #: build/C/man3/sysconf.3:102
16101 msgid ""
16102 "For variables or limits, typically, there is a constant B<_FOO>, maybe "
16103 "defined in I<E<lt>limits.hE<gt>>, or B<_POSIX_FOO>, maybe defined in "
16104 "I<E<lt>unistd.hE<gt>>.  The constant will not be defined if the limit is "
16105 "unspecified.  If the constant is defined, it gives a guaranteed value, and a "
16106 "greater value might actually be supported.  If an application wants to take "
16107 "advantage of values which may change between systems, a call to B<sysconf>()  "
16108 "can be made.  The B<sysconf>()  argument will be B<_SC_FOO>."
16109 msgstr ""
16110
16111 #. type: SS
16112 #: build/C/man3/sysconf.3:102
16113 #, no-wrap
16114 msgid "POSIX.1 Variables"
16115 msgstr ""
16116
16117 #. type: Plain text
16118 #: build/C/man3/sysconf.3:107
16119 msgid ""
16120 "We give the name of the variable, the name of the B<sysconf>()  argument "
16121 "used to inquire about its value, and a short description."
16122 msgstr ""
16123
16124 #.  [for the moment: only the things that are unconditionally present]
16125 #.  .TP
16126 #.  .BR AIO_LISTIO_MAX " - " _SC_AIO_LISTIO_MAX
16127 #.  (if _POSIX_ASYNCHRONOUS_IO)
16128 #.  Maximum number of I/O operations in a single list I/O call.
16129 #.  Must not be less than _POSIX_AIO_LISTIO_MAX.
16130 #.  .TP
16131 #.  .BR AIO_MAX " - " _SC_AIO_MAX
16132 #.  (if _POSIX_ASYNCHRONOUS_IO)
16133 #.  Maximum number of outstanding asynchronous I/O operations.
16134 #.  Must not be less than _POSIX_AIO_MAX.
16135 #.  .TP
16136 #.  .BR AIO_PRIO_DELTA_MAX " - " _SC_AIO_PRIO_DELTA_MAX
16137 #.  (if _POSIX_ASYNCHRONOUS_IO)
16138 #.  The maximum amount by which a process can decrease its
16139 #.  asynchronous I/O priority level from its own scheduling priority.
16140 #.  Must be nonnegative.
16141 #. type: Plain text
16142 #: build/C/man3/sysconf.3:126
16143 msgid "First, the POSIX.1 compatible values."
16144 msgstr ""
16145
16146 #. type: TP
16147 #: build/C/man3/sysconf.3:126
16148 #, no-wrap
16149 msgid "B<ARG_MAX> - B<_SC_ARG_MAX>"
16150 msgstr ""
16151
16152 #. type: Plain text
16153 #: build/C/man3/sysconf.3:134
16154 msgid ""
16155 "The maximum length of the arguments to the B<exec>(3)  family of functions.  "
16156 "Must not be less than B<_POSIX_ARG_MAX> (4096)."
16157 msgstr ""
16158
16159 #. type: TP
16160 #: build/C/man3/sysconf.3:134
16161 #, no-wrap
16162 msgid "B<CHILD_MAX> - B<_SC_CHILD_MAX>"
16163 msgstr ""
16164
16165 #. type: Plain text
16166 #: build/C/man3/sysconf.3:140
16167 msgid ""
16168 "The max number of simultaneous processes per user ID.  Must not be less than "
16169 "B<_POSIX_CHILD_MAX> (25)."
16170 msgstr ""
16171
16172 #. type: TP
16173 #: build/C/man3/sysconf.3:140
16174 #, no-wrap
16175 msgid "B<HOST_NAME_MAX> - B<_SC_HOST_NAME_MAX>"
16176 msgstr ""
16177
16178 #. type: Plain text
16179 #: build/C/man3/sysconf.3:148
16180 msgid ""
16181 "Max length of a hostname, not including the terminating null byte, as "
16182 "returned by B<gethostname>(2).  Must not be less than "
16183 "B<_POSIX_HOST_NAME_MAX> (255)."
16184 msgstr ""
16185
16186 #. type: TP
16187 #: build/C/man3/sysconf.3:148
16188 #, no-wrap
16189 msgid "B<LOGIN_NAME_MAX> - B<_SC_LOGIN_NAME_MAX>"
16190 msgstr ""
16191
16192 #. type: Plain text
16193 #: build/C/man3/sysconf.3:154
16194 msgid ""
16195 "Maximum length of a login name, including the terminating null byte.  Must "
16196 "not be less than B<_POSIX_LOGIN_NAME_MAX> (9)."
16197 msgstr ""
16198
16199 #. type: TP
16200 #: build/C/man3/sysconf.3:154
16201 #, no-wrap
16202 msgid "clock ticks - B<_SC_CLK_TCK>"
16203 msgstr ""
16204
16205 #. type: Plain text
16206 #: build/C/man3/sysconf.3:163
16207 msgid ""
16208 "The number of clock ticks per second.  The corresponding variable is "
16209 "obsolete.  It was of course called B<CLK_TCK>.  (Note: the macro "
16210 "B<CLOCKS_PER_SEC> does not give information: it must equal 1000000.)"
16211 msgstr ""
16212
16213 #. type: TP
16214 #: build/C/man3/sysconf.3:163
16215 #, no-wrap
16216 msgid "B<OPEN_MAX> - B<_SC_OPEN_MAX>"
16217 msgstr ""
16218
16219 #. type: Plain text
16220 #: build/C/man3/sysconf.3:169
16221 msgid ""
16222 "The maximum number of files that a process can have open at any time.  Must "
16223 "not be less than B<_POSIX_OPEN_MAX> (20)."
16224 msgstr ""
16225
16226 #. type: TP
16227 #: build/C/man3/sysconf.3:169
16228 #, no-wrap
16229 msgid "B<PAGESIZE> - B<_SC_PAGESIZE>"
16230 msgstr ""
16231
16232 #. type: Plain text
16233 #: build/C/man3/sysconf.3:174
16234 msgid ""
16235 "Size of a page in bytes.  Must not be less than 1.  (Some systems use "
16236 "PAGE_SIZE instead.)"
16237 msgstr ""
16238
16239 #. type: TP
16240 #: build/C/man3/sysconf.3:174 build/C/man3/sysconf.3:261
16241 #, no-wrap
16242 msgid "B<RE_DUP_MAX> - B<_SC_RE_DUP_MAX>"
16243 msgstr ""
16244
16245 #. type: Plain text
16246 #: build/C/man3/sysconf.3:183
16247 msgid ""
16248 "The number of repeated occurrences of a BRE permitted by B<regexec>(3)  and "
16249 "B<regcomp>(3).  Must not be less than B<_POSIX2_RE_DUP_MAX> (255)."
16250 msgstr ""
16251
16252 #. type: TP
16253 #: build/C/man3/sysconf.3:183
16254 #, no-wrap
16255 msgid "B<STREAM_MAX> - B<_SC_STREAM_MAX>"
16256 msgstr ""
16257
16258 #. type: Plain text
16259 #: build/C/man3/sysconf.3:192
16260 msgid ""
16261 "The maximum number of streams that a process can have open at any time.  If "
16262 "defined, it has the same value as the standard C macro B<FOPEN_MAX>.  Must "
16263 "not be less than B<_POSIX_STREAM_MAX> (8)."
16264 msgstr ""
16265
16266 #. type: TP
16267 #: build/C/man3/sysconf.3:192
16268 #, no-wrap
16269 msgid "B<SYMLOOP_MAX>"
16270 msgstr ""
16271
16272 #. type: Plain text
16273 #: build/C/man3/sysconf.3:200
16274 msgid ""
16275 "The maximum number of symbolic links seen in a pathname before resolution "
16276 "returns B<ELOOP>.  Must not be less than B<_POSIX_SYMLOOP_MAX> (8)."
16277 msgstr ""
16278
16279 #. type: TP
16280 #: build/C/man3/sysconf.3:200
16281 #, no-wrap
16282 msgid "B<TTY_NAME_MAX> - B<_SC_TTY_NAME_MAX>"
16283 msgstr ""
16284
16285 #. type: Plain text
16286 #: build/C/man3/sysconf.3:207
16287 msgid ""
16288 "The maximum length of terminal device name, including the terminating null "
16289 "byte.  Must not be less than B<_POSIX_TTY_NAME_MAX> (9)."
16290 msgstr ""
16291
16292 #. type: TP
16293 #: build/C/man3/sysconf.3:207
16294 #, no-wrap
16295 msgid "B<TZNAME_MAX> - B<_SC_TZNAME_MAX>"
16296 msgstr ""
16297
16298 #. type: Plain text
16299 #: build/C/man3/sysconf.3:213
16300 msgid ""
16301 "The maximum number of bytes in a timezone name.  Must not be less than "
16302 "B<_POSIX_TZNAME_MAX> (6)."
16303 msgstr ""
16304
16305 #. type: TP
16306 #: build/C/man3/sysconf.3:213
16307 #, no-wrap
16308 msgid "B<_POSIX_VERSION> - B<_SC_VERSION>"
16309 msgstr ""
16310
16311 #. type: Plain text
16312 #: build/C/man3/sysconf.3:221
16313 msgid ""
16314 "indicates the year and month the POSIX.1 standard was approved in the format "
16315 "B<YYYYMML>; the value B<199009L> indicates the Sept. 1990 revision."
16316 msgstr ""
16317
16318 #. type: SS
16319 #: build/C/man3/sysconf.3:221
16320 #, no-wrap
16321 msgid "POSIX.2 Variables"
16322 msgstr ""
16323
16324 #. type: Plain text
16325 #: build/C/man3/sysconf.3:223
16326 msgid "Next, the POSIX.2 values, giving limits for utilities."
16327 msgstr ""
16328
16329 #. type: TP
16330 #: build/C/man3/sysconf.3:223
16331 #, no-wrap
16332 msgid "B<BC_BASE_MAX> - B<_SC_BC_BASE_MAX>"
16333 msgstr ""
16334
16335 #. type: Plain text
16336 #: build/C/man3/sysconf.3:230
16337 msgid "indicates the maximum I<obase> value accepted by the B<bc>(1)  utility."
16338 msgstr ""
16339
16340 #. type: TP
16341 #: build/C/man3/sysconf.3:230
16342 #, no-wrap
16343 msgid "B<BC_DIM_MAX> - B<_SC_BC_DIM_MAX>"
16344 msgstr ""
16345
16346 #. type: Plain text
16347 #: build/C/man3/sysconf.3:234
16348 msgid "indicates the maximum value of elements permitted in an array by B<bc>(1)."
16349 msgstr ""
16350
16351 #. type: TP
16352 #: build/C/man3/sysconf.3:234
16353 #, no-wrap
16354 msgid "B<BC_SCALE_MAX> - B<_SC_BC_SCALE_MAX>"
16355 msgstr ""
16356
16357 #. type: Plain text
16358 #: build/C/man3/sysconf.3:240
16359 msgid "indicates the maximum I<scale> value allowed by B<bc>(1)."
16360 msgstr ""
16361
16362 #. type: TP
16363 #: build/C/man3/sysconf.3:240
16364 #, no-wrap
16365 msgid "B<BC_STRING_MAX> - B<_SC_BC_STRING_MAX>"
16366 msgstr ""
16367
16368 #. type: Plain text
16369 #: build/C/man3/sysconf.3:244
16370 msgid "indicates the maximum length of a string accepted by B<bc>(1)."
16371 msgstr ""
16372
16373 #. type: TP
16374 #: build/C/man3/sysconf.3:244
16375 #, no-wrap
16376 msgid "B<COLL_WEIGHTS_MAX> - B<_SC_COLL_WEIGHTS_MAX>"
16377 msgstr ""
16378
16379 #. type: Plain text
16380 #: build/C/man3/sysconf.3:250
16381 msgid ""
16382 "indicates the maximum numbers of weights that can be assigned to an entry of "
16383 "the B<LC_COLLATE order> keyword in the locale definition file,"
16384 msgstr ""
16385
16386 #. type: TP
16387 #: build/C/man3/sysconf.3:250
16388 #, no-wrap
16389 msgid "B<EXPR_NEST_MAX> - B<_SC_EXPR_NEST_MAX>"
16390 msgstr ""
16391
16392 #. type: Plain text
16393 #: build/C/man3/sysconf.3:255
16394 msgid ""
16395 "is the maximum number of expressions which can be nested within parentheses "
16396 "by B<expr>(1)."
16397 msgstr ""
16398
16399 #. type: TP
16400 #: build/C/man3/sysconf.3:255
16401 #, no-wrap
16402 msgid "B<LINE_MAX> - B<_SC_LINE_MAX>"
16403 msgstr ""
16404
16405 #. type: Plain text
16406 #: build/C/man3/sysconf.3:261
16407 msgid ""
16408 "The maximum length of a utility's input line, either from standard input or "
16409 "from a file.  This includes space for a trailing newline."
16410 msgstr ""
16411
16412 #. type: Plain text
16413 #: build/C/man3/sysconf.3:267
16414 msgid ""
16415 "The maximum number of repeated occurrences of a regular expression when the "
16416 "interval notation B<\\e{m,n\\e}> is used."
16417 msgstr ""
16418
16419 #. type: TP
16420 #: build/C/man3/sysconf.3:267
16421 #, no-wrap
16422 msgid "B<POSIX2_VERSION> - B<_SC_2_VERSION>"
16423 msgstr ""
16424
16425 #. type: Plain text
16426 #: build/C/man3/sysconf.3:271
16427 msgid "indicates the version of the POSIX.2 standard in the format of YYYYMML."
16428 msgstr ""
16429
16430 #. type: TP
16431 #: build/C/man3/sysconf.3:271
16432 #, no-wrap
16433 msgid "B<POSIX2_C_DEV> - B<_SC_2_C_DEV>"
16434 msgstr ""
16435
16436 #. type: Plain text
16437 #: build/C/man3/sysconf.3:275
16438 msgid ""
16439 "indicates whether the POSIX.2 C language development facilities are "
16440 "supported."
16441 msgstr ""
16442
16443 #. type: TP
16444 #: build/C/man3/sysconf.3:275
16445 #, no-wrap
16446 msgid "B<POSIX2_FORT_DEV> - B<_SC_2_FORT_DEV>"
16447 msgstr ""
16448
16449 #. type: Plain text
16450 #: build/C/man3/sysconf.3:279
16451 msgid "indicates whether the POSIX.2 FORTRAN development utilities are supported."
16452 msgstr ""
16453
16454 #. type: TP
16455 #: build/C/man3/sysconf.3:279
16456 #, no-wrap
16457 msgid "B<POSIX2_FORT_RUN> - B<_SC_2_FORT_RUN>"
16458 msgstr ""
16459
16460 #. type: Plain text
16461 #: build/C/man3/sysconf.3:282
16462 msgid "indicates whether the POSIX.2 FORTRAN runtime utilities are supported."
16463 msgstr ""
16464
16465 #. type: TP
16466 #: build/C/man3/sysconf.3:282
16467 #, no-wrap
16468 msgid "B<_POSIX2_LOCALEDEF> - B<_SC_2_LOCALEDEF>"
16469 msgstr ""
16470
16471 #. type: Plain text
16472 #: build/C/man3/sysconf.3:287
16473 msgid ""
16474 "indicates whether the POSIX.2 creation of locates via B<localedef>(1)  is "
16475 "supported."
16476 msgstr ""
16477
16478 #. type: TP
16479 #: build/C/man3/sysconf.3:287
16480 #, no-wrap
16481 msgid "B<POSIX2_SW_DEV> - B<_SC_2_SW_DEV>"
16482 msgstr ""
16483
16484 #. type: Plain text
16485 #: build/C/man3/sysconf.3:291
16486 msgid ""
16487 "indicates whether the POSIX.2 software development utilities option is "
16488 "supported."
16489 msgstr ""
16490
16491 #. type: Plain text
16492 #: build/C/man3/sysconf.3:293
16493 msgid "These values also exist, but may not be standard."
16494 msgstr ""
16495
16496 #. type: TP
16497 #: build/C/man3/sysconf.3:293
16498 #, no-wrap
16499 msgid " - B<_SC_PHYS_PAGES>"
16500 msgstr ""
16501
16502 #. type: Plain text
16503 #: build/C/man3/sysconf.3:300
16504 msgid ""
16505 "The number of pages of physical memory.  Note that it is possible for the "
16506 "product of this value and the value of B<_SC_PAGE_SIZE> to overflow."
16507 msgstr ""
16508
16509 #. type: TP
16510 #: build/C/man3/sysconf.3:300
16511 #, no-wrap
16512 msgid " - B<_SC_AVPHYS_PAGES>"
16513 msgstr ""
16514
16515 #. type: Plain text
16516 #: build/C/man3/sysconf.3:303
16517 msgid "The number of currently available pages of physical memory."
16518 msgstr ""
16519
16520 #. type: TP
16521 #: build/C/man3/sysconf.3:303
16522 #, no-wrap
16523 msgid " - B<_SC_NPROCESSORS_CONF>"
16524 msgstr ""
16525
16526 #. type: Plain text
16527 #: build/C/man3/sysconf.3:306
16528 msgid "The number of processors configured."
16529 msgstr ""
16530
16531 #. type: TP
16532 #: build/C/man3/sysconf.3:306
16533 #, no-wrap
16534 msgid " - B<_SC_NPROCESSORS_ONLN>"
16535 msgstr ""
16536
16537 #. type: Plain text
16538 #: build/C/man3/sysconf.3:309
16539 msgid "The number of processors currently online (available)."
16540 msgstr ""
16541
16542 #. type: Plain text
16543 #: build/C/man3/sysconf.3:322
16544 msgid ""
16545 "If I<name> is invalid, -1 is returned, and I<errno> is set to B<EINVAL>.  "
16546 "Otherwise, the value returned is the value of the system resource and "
16547 "I<errno> is not changed.  In the case of options, a positive value is "
16548 "returned if a queried option is available, and -1 if it is not.  In the case "
16549 "of limits, -1 means that there is no definite limit."
16550 msgstr ""
16551
16552 #. type: Plain text
16553 #: build/C/man3/sysconf.3:330
16554 msgid ""
16555 "It is difficult to use B<ARG_MAX> because it is not specified how much of "
16556 "the argument space for B<exec>(3)  is consumed by the user's environment "
16557 "variables."
16558 msgstr ""
16559
16560 #. type: Plain text
16561 #: build/C/man3/sysconf.3:341
16562 msgid ""
16563 "B<bc>(1), B<expr>(1), B<getconf>(1), B<locale>(1), B<fpathconf>(3), "
16564 "B<pathconf>(3), B<posixoptions>(7)"
16565 msgstr ""
16566
16567 #. type: TH
16568 #: build/C/man2/sysctl.2:28
16569 #, no-wrap
16570 msgid "SYSCTL"
16571 msgstr ""
16572
16573 #. type: TH
16574 #: build/C/man2/sysctl.2:28
16575 #, no-wrap
16576 msgid "2008-11-20"
16577 msgstr ""
16578
16579 #. type: Plain text
16580 #: build/C/man2/sysctl.2:31
16581 msgid "sysctl - read/write system parameters"
16582 msgstr ""
16583
16584 #. type: Plain text
16585 #: build/C/man2/sysctl.2:36
16586 #, no-wrap
16587 msgid "B<#include E<lt>linux/sysctl.hE<gt>>\n"
16588 msgstr ""
16589
16590 #. type: Plain text
16591 #: build/C/man2/sysctl.2:38
16592 #, no-wrap
16593 msgid "B<int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
16594 msgstr ""
16595
16596 #. type: Plain text
16597 #: build/C/man2/sysctl.2:42
16598 msgid "B<Do not use this system call!> See NOTES."
16599 msgstr ""
16600
16601 #. type: Plain text
16602 #: build/C/man2/sysctl.2:49
16603 msgid ""
16604 "The B<_sysctl>()  call reads and/or writes kernel parameters.  For example, "
16605 "the hostname, or the maximum number of open files.  The argument has the "
16606 "form"
16607 msgstr ""
16608
16609 #. type: Plain text
16610 #: build/C/man2/sysctl.2:61
16611 #, no-wrap
16612 msgid ""
16613 "struct __sysctl_args {\n"
16614 "    int    *name;    /* integer vector describing variable */\n"
16615 "    int     nlen;    /* length of this vector */\n"
16616 "    void   *oldval;  /* 0 or address where to store old value */\n"
16617 "    size_t *oldlenp; /* available room for old value,\n"
16618 "                        overwritten by actual size of old value */\n"
16619 "    void   *newval;  /* 0 or address of new value */\n"
16620 "    size_t  newlen;  /* size of new value */\n"
16621 "};\n"
16622 msgstr ""
16623
16624 #. type: Plain text
16625 #: build/C/man2/sysctl.2:69
16626 msgid ""
16627 "This call does a search in a tree structure, possibly resembling a directory "
16628 "tree under I</proc/sys>, and if the requested item is found calls some "
16629 "appropriate routine to read or modify the value."
16630 msgstr ""
16631
16632 #. type: Plain text
16633 #: build/C/man2/sysctl.2:76
16634 msgid ""
16635 "Upon successful completion, B<_sysctl>()  returns 0.  Otherwise, a value of "
16636 "-1 is returned and I<errno> is set to indicate the error."
16637 msgstr ""
16638
16639 #. type: Plain text
16640 #: build/C/man2/sysctl.2:83
16641 msgid ""
16642 "The invocation asked for the previous value by setting I<oldval> non-NULL, "
16643 "but allowed zero room in I<oldlenp>."
16644 msgstr ""
16645
16646 #. type: Plain text
16647 #: build/C/man2/sysctl.2:87
16648 msgid "I<name> was not found."
16649 msgstr ""
16650
16651 #. type: Plain text
16652 #: build/C/man2/sysctl.2:95
16653 msgid ""
16654 "No search permission for one of the encountered \"directories\", or no read "
16655 "permission where I<oldval> was nonzero, or no write permission where "
16656 "I<newval> was nonzero."
16657 msgstr ""
16658
16659 #. type: Plain text
16660 #: build/C/man2/sysctl.2:109
16661 msgid ""
16662 "This call is Linux-specific, and should not be used in programs intended to "
16663 "be portable.  A B<sysctl>()  call has been present in Linux since version "
16664 "1.3.57.  It originated in 4.4BSD.  Only Linux has the I</proc/sys> mirror, "
16665 "and the object naming schemes differ between Linux and 4.4BSD, but the "
16666 "declaration of the B<sysctl>()  function is the same in both."
16667 msgstr ""
16668
16669 #.  See http://lwn.net/Articles/247243/
16670 #. type: Plain text
16671 #: build/C/man2/sysctl.2:121
16672 msgid ""
16673 "Or rather... don't call it: use of this system call has long been "
16674 "discouraged, and it is so unloved that B<it is likely to disappear in a "
16675 "future kernel version>.  Remove it from your programs now; use the "
16676 "I</proc/sys> interface instead."
16677 msgstr ""
16678
16679 #. type: Plain text
16680 #: build/C/man2/sysctl.2:124
16681 msgid ""
16682 "The object names vary between kernel versions, making this system call "
16683 "worthless for applications."
16684 msgstr ""
16685
16686 #. type: Plain text
16687 #: build/C/man2/sysctl.2:126
16688 msgid "Not all available objects are properly documented."
16689 msgstr ""
16690
16691 #. type: Plain text
16692 #: build/C/man2/sysctl.2:129
16693 msgid ""
16694 "It is not yet possible to change operating system by writing to "
16695 "I</proc/sys/kernel/ostype>."
16696 msgstr ""
16697
16698 #. type: Plain text
16699 #: build/C/man2/sysctl.2:138
16700 #, no-wrap
16701 msgid ""
16702 "#define _GNU_SOURCE\n"
16703 "#include E<lt>unistd.hE<gt>\n"
16704 "#include E<lt>sys/syscall.hE<gt>\n"
16705 "#include E<lt>string.hE<gt>\n"
16706 "#include E<lt>stdio.hE<gt>\n"
16707 "#include E<lt>stdlib.hE<gt>\n"
16708 "#include E<lt>linux/sysctl.hE<gt>\n"
16709 msgstr ""
16710
16711 #. type: Plain text
16712 #: build/C/man2/sysctl.2:140
16713 #, no-wrap
16714 msgid "int _sysctl(struct __sysctl_args *args );\n"
16715 msgstr ""
16716
16717 #. type: Plain text
16718 #: build/C/man2/sysctl.2:142
16719 #, no-wrap
16720 msgid "#define OSNAMESZ 100\n"
16721 msgstr ""
16722
16723 #. type: Plain text
16724 #: build/C/man2/sysctl.2:150
16725 #, no-wrap
16726 msgid ""
16727 "int\n"
16728 "main(void)\n"
16729 "{\n"
16730 "    struct __sysctl_args args;\n"
16731 "    char osname[OSNAMESZ];\n"
16732 "    size_t osnamelth;\n"
16733 "    int name[] = { CTL_KERN, KERN_OSTYPE };\n"
16734 msgstr ""
16735
16736 #. type: Plain text
16737 #: build/C/man2/sysctl.2:156
16738 #, no-wrap
16739 msgid ""
16740 "    memset(&args, 0, sizeof(struct __sysctl_args));\n"
16741 "    args.name = name;\n"
16742 "    args.nlen = sizeof(name)/sizeof(name[0]);\n"
16743 "    args.oldval = osname;\n"
16744 "    args.oldlenp = &osnamelth;\n"
16745 msgstr ""
16746
16747 #. type: Plain text
16748 #: build/C/man2/sysctl.2:158
16749 #, no-wrap
16750 msgid "    osnamelth = sizeof(osname);\n"
16751 msgstr ""
16752
16753 #. type: Plain text
16754 #: build/C/man2/sysctl.2:166
16755 #, no-wrap
16756 msgid ""
16757 "    if (syscall(SYS__sysctl, &args) == -1) {\n"
16758 "        perror(\"_sysctl\");\n"
16759 "        exit(EXIT_FAILURE);\n"
16760 "    }\n"
16761 "    printf(\"This machine is running %*s\\en\", osnamelth, osname);\n"
16762 "    exit(EXIT_SUCCESS);\n"
16763 "}\n"
16764 msgstr ""
16765
16766 #. type: Plain text
16767 #: build/C/man2/sysctl.2:169 build/C/man2/sysinfo.2:96
16768 msgid "B<proc>(5)"
16769 msgstr ""
16770
16771 #. type: TH
16772 #: build/C/man2/sysinfo.2:14
16773 #, no-wrap
16774 msgid "SYSINFO"
16775 msgstr ""
16776
16777 #. type: TH
16778 #: build/C/man2/sysinfo.2:14
16779 #, no-wrap
16780 msgid "2007-11-15"
16781 msgstr ""
16782
16783 #. type: Plain text
16784 #: build/C/man2/sysinfo.2:17
16785 msgid "sysinfo - returns information on overall system statistics"
16786 msgstr ""
16787
16788 #. type: Plain text
16789 #: build/C/man2/sysinfo.2:19
16790 msgid "B<#include E<lt>sys/sysinfo.hE<gt>>"
16791 msgstr ""
16792
16793 #. type: Plain text
16794 #: build/C/man2/sysinfo.2:21
16795 msgid "B<int sysinfo(struct sysinfo *>I<info>B<);>"
16796 msgstr ""
16797
16798 #. type: Plain text
16799 #: build/C/man2/sysinfo.2:25
16800 msgid ""
16801 "Until Linux 2.3.16, B<sysinfo>()  used to return information in the "
16802 "following structure:"
16803 msgstr ""
16804
16805 #. type: Plain text
16806 #: build/C/man2/sysinfo.2:40
16807 #, no-wrap
16808 msgid ""
16809 "struct sysinfo {\n"
16810 "    long uptime;             /* Seconds since boot */\n"
16811 "    unsigned long loads[3];  /* 1, 5, and 15 minute load averages */\n"
16812 "    unsigned long totalram;  /* Total usable main memory size */\n"
16813 "    unsigned long freeram;   /* Available memory size */\n"
16814 "    unsigned long sharedram; /* Amount of shared memory */\n"
16815 "    unsigned long bufferram; /* Memory used by buffers */\n"
16816 "    unsigned long totalswap; /* Total swap space size */\n"
16817 "    unsigned long freeswap;  /* swap space still available */\n"
16818 "    unsigned short procs;    /* Number of current processes */\n"
16819 "    char _f[22];             /* Pads structure to 64 bytes */\n"
16820 "};\n"
16821 msgstr ""
16822
16823 #. type: Plain text
16824 #: build/C/man2/sysinfo.2:44
16825 msgid "and the sizes were given in bytes."
16826 msgstr ""
16827
16828 #. type: Plain text
16829 #: build/C/man2/sysinfo.2:47
16830 msgid "Since Linux 2.3.23 (i386), 2.3.48 (all architectures) the structure is:"
16831 msgstr ""
16832
16833 #. type: Plain text
16834 #: build/C/man2/sysinfo.2:65
16835 #, no-wrap
16836 msgid ""
16837 "struct sysinfo {\n"
16838 "    long uptime;             /* Seconds since boot */\n"
16839 "    unsigned long loads[3];  /* 1, 5, and 15 minute load averages */\n"
16840 "    unsigned long totalram;  /* Total usable main memory size */\n"
16841 "    unsigned long freeram;   /* Available memory size */\n"
16842 "    unsigned long sharedram; /* Amount of shared memory */\n"
16843 "    unsigned long bufferram; /* Memory used by buffers */\n"
16844 "    unsigned long totalswap; /* Total swap space size */\n"
16845 "    unsigned long freeswap;  /* swap space still available */\n"
16846 "    unsigned short procs;    /* Number of current processes */\n"
16847 "    unsigned long totalhigh; /* Total high memory size */\n"
16848 "    unsigned long freehigh;  /* Available high memory size */\n"
16849 "    unsigned int mem_unit;   /* Memory unit size in bytes */\n"
16850 "    char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding for libc5 */\n"
16851 "};\n"
16852 msgstr ""
16853
16854 #. type: Plain text
16855 #: build/C/man2/sysinfo.2:69
16856 msgid "and the sizes are given as multiples of I<mem_unit> bytes."
16857 msgstr ""
16858
16859 #. type: Plain text
16860 #: build/C/man2/sysinfo.2:74
16861 msgid ""
16862 "B<sysinfo>()  provides a simple way of getting overall system statistics.  "
16863 "This is more portable than reading I</dev/kmem>."
16864 msgstr ""
16865
16866 #. type: Plain text
16867 #: build/C/man2/sysinfo.2:83
16868 msgid "pointer to I<struct\\ sysinfo> is invalid"
16869 msgstr ""
16870
16871 #. type: Plain text
16872 #: build/C/man2/sysinfo.2:94
16873 msgid ""
16874 "The Linux kernel has a B<sysinfo>()  system call since 0.98.pl6.  Linux libc "
16875 "contains a B<sysinfo>()  routine since 5.3.5, and glibc has one since 1.90."
16876 msgstr ""
16877
16878 #. type: TH
16879 #: build/C/man3/tcgetpgrp.3:23
16880 #, no-wrap
16881 msgid "TCGETPGRP"
16882 msgstr ""
16883
16884 #. type: TH
16885 #: build/C/man3/tcgetpgrp.3:23
16886 #, no-wrap
16887 msgid "2003-01-28"
16888 msgstr ""
16889
16890 #. type: Plain text
16891 #: build/C/man3/tcgetpgrp.3:26
16892 msgid "tcgetpgrp, tcsetpgrp - get and set terminal foreground process group"
16893 msgstr ""
16894
16895 #. type: Plain text
16896 #: build/C/man3/tcgetpgrp.3:30
16897 msgid "B<pid_t tcgetpgrp(int >I<fd>B<);>"
16898 msgstr ""
16899
16900 #. type: Plain text
16901 #: build/C/man3/tcgetpgrp.3:32
16902 msgid "B<int tcsetpgrp(int >I<fd>B<, pid_t >I<pgrp>B<);>"
16903 msgstr ""
16904
16905 #.  The process itself may be a background process.
16906 #. type: Plain text
16907 #: build/C/man3/tcgetpgrp.3:40
16908 msgid ""
16909 "The function B<tcgetpgrp>()  returns the process group ID of the foreground "
16910 "process group on the terminal associated to I<fd>, which must be the "
16911 "controlling terminal of the calling process."
16912 msgstr ""
16913
16914 #. type: Plain text
16915 #: build/C/man3/tcgetpgrp.3:50
16916 msgid ""
16917 "The function B<tcsetpgrp>()  makes the process group with process group ID "
16918 "I<pgrp> the foreground process group on the terminal associated to I<fd>, "
16919 "which must be the controlling terminal of the calling process, and still be "
16920 "associated with its session.  Moreover, I<pgrp> must be a (nonempty) process "
16921 "group belonging to the same session as the calling process."
16922 msgstr ""
16923
16924 #. type: Plain text
16925 #: build/C/man3/tcgetpgrp.3:59
16926 msgid ""
16927 "If B<tcsetpgrp>()  is called by a member of a background process group in "
16928 "its session, and the calling process is not blocking or ignoring B<SIGTTOU>, "
16929 "a B<SIGTTOU> signal is sent to all members of this background process group."
16930 msgstr ""
16931
16932 #. type: Plain text
16933 #: build/C/man3/tcgetpgrp.3:74
16934 msgid ""
16935 "When I<fd> refers to the controlling terminal of the calling process, the "
16936 "function B<tcgetpgrp>()  will return the foreground process group ID of that "
16937 "terminal if there is one, and some value larger than 1 that is not presently "
16938 "a process group ID otherwise.  When I<fd> does not refer to the controlling "
16939 "terminal of the calling process, -1 is returned, and I<errno> is set "
16940 "appropriately."
16941 msgstr ""
16942
16943 #. type: Plain text
16944 #: build/C/man3/tcgetpgrp.3:81
16945 msgid ""
16946 "When successful, B<tcsetpgrp>()  returns 0.  Otherwise, it returns -1, and "
16947 "I<errno> is set appropriately."
16948 msgstr ""
16949
16950 #. type: Plain text
16951 #: build/C/man3/tcgetpgrp.3:90
16952 msgid "I<pgrp> has an unsupported value."
16953 msgstr ""
16954
16955 #. type: Plain text
16956 #: build/C/man3/tcgetpgrp.3:99
16957 msgid ""
16958 "The calling process does not have a controlling terminal, or it has one but "
16959 "it is not described by I<fd>, or, for B<tcsetpgrp>(), this controlling "
16960 "terminal is no longer associated with the session of the calling process."
16961 msgstr ""
16962
16963 #. type: Plain text
16964 #: build/C/man3/tcgetpgrp.3:104
16965 msgid ""
16966 "I<pgrp> has a supported value, but is not the process group ID of a process "
16967 "in the same session as the calling process."
16968 msgstr ""
16969
16970 #. type: Plain text
16971 #: build/C/man3/tcgetpgrp.3:112
16972 msgid ""
16973 "These functions are implemented via the B<TIOCGPGRP> and B<TIOCSPGRP> "
16974 "ioctls."
16975 msgstr ""
16976
16977 #. type: SS
16978 #: build/C/man3/tcgetpgrp.3:112 build/C/man2/vfork.2:233
16979 #, no-wrap
16980 msgid "History"
16981 msgstr ""
16982
16983 #. type: Plain text
16984 #: build/C/man3/tcgetpgrp.3:115
16985 msgid "The ioctls appeared in 4.2BSD.  The functions are POSIX inventions."
16986 msgstr ""
16987
16988 #. type: Plain text
16989 #: build/C/man3/tcgetpgrp.3:119
16990 msgid "B<setpgid>(2), B<setsid>(2), B<credentials>(7)"
16991 msgstr ""
16992
16993 #. type: TH
16994 #: build/C/man2/truncate.2:41
16995 #, no-wrap
16996 msgid "TRUNCATE"
16997 msgstr ""
16998
16999 #. type: TH
17000 #: build/C/man2/truncate.2:41
17001 #, no-wrap
17002 msgid "2011-09-08"
17003 msgstr ""
17004
17005 #. type: Plain text
17006 #: build/C/man2/truncate.2:44
17007 msgid "truncate, ftruncate - truncate a file to a specified length"
17008 msgstr ""
17009
17010 #. type: Plain text
17011 #: build/C/man2/truncate.2:50
17012 msgid "B<int truncate(const char *>I<path>B<, off_t >I<length>B<);>"
17013 msgstr ""
17014
17015 #. type: Plain text
17016 #: build/C/man2/truncate.2:52
17017 msgid "B<int ftruncate(int >I<fd>B<, off_t >I<length>B<);>"
17018 msgstr ""
17019
17020 #. type: Plain text
17021 #: build/C/man2/truncate.2:61
17022 msgid "B<truncate>():"
17023 msgstr ""
17024
17025 #. type: Plain text
17026 #: build/C/man2/truncate.2:69
17027 msgid "B<ftruncate>():"
17028 msgstr ""
17029
17030 #. type: Plain text
17031 #: build/C/man2/truncate.2:74
17032 msgid "|| /* Since glibc 2.3.5: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L"
17033 msgstr ""
17034
17035 #. type: Plain text
17036 #: build/C/man2/truncate.2:89
17037 msgid ""
17038 "The B<truncate>()  and B<ftruncate>()  functions cause the regular file "
17039 "named by I<path> or referenced by I<fd> to be truncated to a size of "
17040 "precisely I<length> bytes."
17041 msgstr ""
17042
17043 #. type: Plain text
17044 #: build/C/man2/truncate.2:93
17045 msgid ""
17046 "If the file previously was larger than this size, the extra data is lost.  "
17047 "If the file previously was shorter, it is extended, and the extended part "
17048 "reads as null bytes (\\(aq\\e0\\(aq)."
17049 msgstr ""
17050
17051 #. type: Plain text
17052 #: build/C/man2/truncate.2:95
17053 msgid "The file offset is not changed."
17054 msgstr ""
17055
17056 #. type: Plain text
17057 #: build/C/man2/truncate.2:102
17058 msgid ""
17059 "If the size changed, then the st_ctime and st_mtime fields (respectively, "
17060 "time of last status change and time of last modification; see B<stat>(2))  "
17061 "for the file are updated, and the set-user-ID and set-group-ID permission "
17062 "bits may be cleared."
17063 msgstr ""
17064
17065 #. type: Plain text
17066 #: build/C/man2/truncate.2:108
17067 msgid ""
17068 "With B<ftruncate>(), the file must be open for writing; with B<truncate>(), "
17069 "the file must be writable."
17070 msgstr ""
17071
17072 #. type: Plain text
17073 #: build/C/man2/truncate.2:116
17074 msgid "For B<truncate>():"
17075 msgstr ""
17076
17077 #. type: Plain text
17078 #: build/C/man2/truncate.2:122
17079 msgid ""
17080 "Search permission is denied for a component of the path prefix, or the named "
17081 "file is not writable by the user.  (See also B<path_resolution>(7).)"
17082 msgstr ""
17083
17084 #. type: Plain text
17085 #: build/C/man2/truncate.2:126
17086 msgid "I<Path> points outside the process's allocated address space."
17087 msgstr ""
17088
17089 #. type: TP
17090 #: build/C/man2/truncate.2:126
17091 #, no-wrap
17092 msgid "B<EFBIG>"
17093 msgstr ""
17094
17095 #. type: Plain text
17096 #: build/C/man2/truncate.2:131
17097 msgid "The argument I<length> is larger than the maximum file size. (XSI)"
17098 msgstr ""
17099
17100 #. type: Plain text
17101 #: build/C/man2/truncate.2:138
17102 msgid ""
17103 "While blocked waiting to complete, the call was interrupted by a signal "
17104 "handler; see B<fcntl>(2)  and B<signal>(7)."
17105 msgstr ""
17106
17107 #. type: Plain text
17108 #: build/C/man2/truncate.2:143
17109 msgid "The argument I<length> is negative or larger than the maximum file size."
17110 msgstr ""
17111
17112 #. type: Plain text
17113 #: build/C/man2/truncate.2:146
17114 msgid "An I/O error occurred updating the inode."
17115 msgstr ""
17116
17117 #. type: Plain text
17118 #: build/C/man2/truncate.2:149
17119 msgid "The named file is a directory."
17120 msgstr ""
17121
17122 #. type: Plain text
17123 #: build/C/man2/truncate.2:152
17124 msgid "Too many symbolic links were encountered in translating the pathname."
17125 msgstr ""
17126
17127 #. type: Plain text
17128 #: build/C/man2/truncate.2:156
17129 msgid ""
17130 "A component of a pathname exceeded 255 characters, or an entire pathname "
17131 "exceeded 1023 characters."
17132 msgstr ""
17133
17134 #. type: Plain text
17135 #: build/C/man2/truncate.2:159
17136 msgid "The named file does not exist."
17137 msgstr ""
17138
17139 #.  This happens for at least MSDOS and VFAT file systems
17140 #.  on kernel 2.6.13
17141 #. type: Plain text
17142 #: build/C/man2/truncate.2:168
17143 msgid ""
17144 "The underlying file system does not support extending a file beyond its "
17145 "current size."
17146 msgstr ""
17147
17148 #. type: Plain text
17149 #: build/C/man2/truncate.2:174
17150 msgid "The file is a pure procedure (shared text) file that is being executed."
17151 msgstr ""
17152
17153 #. type: Plain text
17154 #: build/C/man2/truncate.2:181
17155 msgid ""
17156 "For B<ftruncate>()  the same errors apply, but instead of things that can be "
17157 "wrong with I<path>, we now have things that can be wrong with the file "
17158 "descriptor, I<fd>:"
17159 msgstr ""
17160
17161 #. type: Plain text
17162 #: build/C/man2/truncate.2:185
17163 msgid "I<fd> is not a valid descriptor."
17164 msgstr ""
17165
17166 #. type: TP
17167 #: build/C/man2/truncate.2:185
17168 #, no-wrap
17169 msgid "B<EBADF> or B<EINVAL>"
17170 msgstr ""
17171
17172 #. type: Plain text
17173 #: build/C/man2/truncate.2:189
17174 msgid "I<fd> is not open for writing."
17175 msgstr ""
17176
17177 #. type: Plain text
17178 #: build/C/man2/truncate.2:193
17179 msgid "I<fd> does not reference a regular file."
17180 msgstr ""
17181
17182 #.  POSIX.1-1996 has
17183 #.  .BR ftruncate ().
17184 #.  POSIX.1-2001 also has
17185 #.  .BR truncate (),
17186 #.  as an XSI extension.
17187 #.  .LP
17188 #.  SVr4 documents additional
17189 #.  .BR truncate ()
17190 #.  error conditions EMFILE, EMULTIHP, ENFILE, ENOLINK.  SVr4 documents for
17191 #.  .BR ftruncate ()
17192 #.  an additional EAGAIN error condition.
17193 #. type: Plain text
17194 #: build/C/man2/truncate.2:206
17195 msgid "4.4BSD, SVr4, POSIX.1-2001 (these calls first appeared in 4.2BSD)."
17196 msgstr ""
17197
17198 #.  At the very least: OSF/1, Solaris 7, and FreeBSD conform, mtk, Jan 2002
17199 #. type: Plain text
17200 #: build/C/man2/truncate.2:227
17201 msgid ""
17202 "The details in DESCRIPTION are for XSI-compliant systems.  For "
17203 "non-XSI-compliant systems, the POSIX standard allows two behaviors for "
17204 "B<ftruncate>()  when I<length> exceeds the file length (note that "
17205 "B<truncate>()  is not specified at all in such an environment): either "
17206 "returning an error, or extending the file.  Like most UNIX implementations, "
17207 "Linux follows the XSI requirement when dealing with native file systems.  "
17208 "However, some nonnative file systems do not permit B<truncate>()  and "
17209 "B<ftruncate>()  to be used to extend a file beyond its current length: a "
17210 "notable example on Linux is VFAT."
17211 msgstr ""
17212
17213 #. type: Plain text
17214 #: build/C/man2/truncate.2:241
17215 msgid ""
17216 "The original Linux B<truncate>()  and B<ftruncate>()  system calls were not "
17217 "designed to handle large file offsets.  Consequently, Linux 2.4 added "
17218 "B<truncate64>()  and B<ftruncate64>()  system calls that handle large "
17219 "files.  However, these details can be ignored by applications using glibc, "
17220 "whose wrapper functions transparently employ the more recent system calls "
17221 "where they are available."
17222 msgstr ""
17223
17224 #.  http://sourceware.org/bugzilla/show_bug.cgi?id=12037
17225 #. type: Plain text
17226 #: build/C/man2/truncate.2:249
17227 msgid ""
17228 "A header file bug in glibc 2.12 meant that the minimum value of "
17229 "B<_POSIX_C_SOURCE> required to expose the declaration of B<ftruncate>()  was "
17230 "200809L instead of 200112L.  This has been fixed in later glibc versions."
17231 msgstr ""
17232
17233 #. type: Plain text
17234 #: build/C/man2/truncate.2:253
17235 msgid "B<open>(2), B<stat>(2), B<path_resolution>(7)"
17236 msgstr ""
17237
17238 #. type: TH
17239 #: build/C/man3/ualarm.3:23
17240 #, no-wrap
17241 msgid "UALARM"
17242 msgstr ""
17243
17244 #. type: Plain text
17245 #: build/C/man3/ualarm.3:26
17246 msgid "ualarm - schedule signal after given number of microseconds"
17247 msgstr ""
17248
17249 #. type: Plain text
17250 #: build/C/man3/ualarm.3:31
17251 #, no-wrap
17252 msgid "B<useconds_t ualarm(useconds_t >I<usecs>B<, useconds_t >I<interval>B<);>\n"
17253 msgstr ""
17254
17255 #. type: Plain text
17256 #: build/C/man3/ualarm.3:39
17257 msgid "B<ualarm>():"
17258 msgstr ""
17259
17260 #. type: Plain text
17261 #: build/C/man3/ualarm.3:68
17262 msgid ""
17263 "The B<ualarm>()  function causes the signal B<SIGALRM> to be sent to the "
17264 "invoking process after (not less than)  I<usecs> microseconds.  The delay "
17265 "may be lengthened slightly by any system activity or by the time spent "
17266 "processing the call or by the granularity of system timers."
17267 msgstr ""
17268
17269 #. type: Plain text
17270 #: build/C/man3/ualarm.3:72
17271 msgid "Unless caught or ignored, the B<SIGALRM> signal will terminate the process."
17272 msgstr ""
17273
17274 #. type: Plain text
17275 #: build/C/man3/ualarm.3:80
17276 msgid ""
17277 "If the I<interval> argument is nonzero, further B<SIGALRM> signals will be "
17278 "sent every I<interval> microseconds after the first."
17279 msgstr ""
17280
17281 #. type: Plain text
17282 #: build/C/man3/ualarm.3:83
17283 msgid ""
17284 "This function returns the number of microseconds remaining for any alarm "
17285 "that was previously set, or 0 if no alarm was pending."
17286 msgstr ""
17287
17288 #. type: Plain text
17289 #: build/C/man3/ualarm.3:87
17290 msgid "Interrupted by a signal."
17291 msgstr ""
17292
17293 #. type: Plain text
17294 #: build/C/man3/ualarm.3:91
17295 msgid ""
17296 "I<usecs> or I<interval> is not smaller than 1000000.  (On systems where that "
17297 "is considered an error.)"
17298 msgstr ""
17299
17300 #. type: Plain text
17301 #: build/C/man3/ualarm.3:99
17302 msgid ""
17303 "4.3BSD, POSIX.1-2001.  POSIX.1-2001 marks B<ualarm>()  as obsolete.  "
17304 "POSIX.1-2008 removes the specification of B<ualarm>().  4.3BSD, SUSv2, and "
17305 "POSIX do not define any errors."
17306 msgstr ""
17307
17308 #. type: Plain text
17309 #: build/C/man3/ualarm.3:112
17310 msgid ""
17311 "The type I<useconds_t> is an unsigned integer type capable of holding "
17312 "integers in the range [0,1000000].  On the original BSD implementation, and "
17313 "in glibc before version 2.1, the arguments to B<ualarm>()  were instead "
17314 "typed as I<unsigned int>.  Programs will be more portable if they never "
17315 "mention I<useconds_t> explicitly."
17316 msgstr ""
17317
17318 #. type: Plain text
17319 #: build/C/man3/ualarm.3:126
17320 msgid ""
17321 "The interaction of this function with other timer functions such as "
17322 "B<alarm>(2), B<sleep>(3), B<nanosleep>(2), B<setitimer>(2), "
17323 "B<timer_create>(2), B<timer_delete>(2), B<timer_getoverrun>(2), "
17324 "B<timer_gettime>(2), B<timer_settime>(2), B<usleep>(3)  is unspecified."
17325 msgstr ""
17326
17327 #. type: Plain text
17328 #: build/C/man3/ualarm.3:134
17329 msgid ""
17330 "This function is obsolete.  Use B<setitimer>(2)  or POSIX interval timers "
17331 "(B<timer_create>(2), etc.)  instead."
17332 msgstr ""
17333
17334 #. type: Plain text
17335 #: build/C/man3/ualarm.3:142
17336 msgid ""
17337 "B<alarm>(2), B<getitimer>(2), B<nanosleep>(2), B<select>(2), "
17338 "B<setitimer>(2), B<usleep>(3), B<time>(7)"
17339 msgstr ""
17340
17341 #. type: TH
17342 #: build/C/man2/umask.2:34
17343 #, no-wrap
17344 msgid "UMASK"
17345 msgstr ""
17346
17347 #. type: TH
17348 #: build/C/man2/umask.2:34
17349 #, no-wrap
17350 msgid "2008-01-09"
17351 msgstr ""
17352
17353 #. type: Plain text
17354 #: build/C/man2/umask.2:37
17355 msgid "umask - set file mode creation mask"
17356 msgstr ""
17357
17358 #. type: Plain text
17359 #: build/C/man2/umask.2:43
17360 msgid "B<mode_t umask(mode_t >I<mask>B<);>"
17361 msgstr ""
17362
17363 #. type: Plain text
17364 #: build/C/man2/umask.2:50
17365 msgid ""
17366 "B<umask>()  sets the calling process's file mode creation mask (umask) to "
17367 "I<mask> & 0777 (i.e., only the file permission bits of I<mask> are used), "
17368 "and returns the previous value of the mask."
17369 msgstr ""
17370
17371 #.  e.g., mkfifo(), creat(), mknod(), sem_open(), mq_open(), shm_open()
17372 #.  but NOT the System V IPC *get() calls
17373 #. type: Plain text
17374 #: build/C/man2/umask.2:63
17375 msgid ""
17376 "The umask is used by B<open>(2), B<mkdir>(2), and other system calls that "
17377 "create files to modify the permissions placed on newly created files or "
17378 "directories.  Specifically, permissions in the umask are turned off from the "
17379 "I<mode> argument to B<open>(2)  and B<mkdir>(2)."
17380 msgstr ""
17381
17382 #. type: Plain text
17383 #: build/C/man2/umask.2:68
17384 msgid ""
17385 "The constants that should be used to specify I<mask> are described under "
17386 "B<stat>(2)."
17387 msgstr ""
17388
17389 #. type: Plain text
17390 #: build/C/man2/umask.2:77
17391 msgid ""
17392 "The typical default value for the process umask is I<S_IWGRP\\ |\\ S_IWOTH> "
17393 "(octal 022).  In the usual case where the I<mode> argument to B<open>(2)  is "
17394 "specified as:"
17395 msgstr ""
17396
17397 #. type: Plain text
17398 #: build/C/man2/umask.2:80
17399 #, no-wrap
17400 msgid "    S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH\n"
17401 msgstr ""
17402
17403 #. type: Plain text
17404 #: build/C/man2/umask.2:84
17405 msgid ""
17406 "(octal 0666) when creating a new file, the permissions on the resulting file "
17407 "will be:"
17408 msgstr ""
17409
17410 #. type: Plain text
17411 #: build/C/man2/umask.2:87
17412 #, no-wrap
17413 msgid "    S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH\n"
17414 msgstr ""
17415
17416 #. type: Plain text
17417 #: build/C/man2/umask.2:90
17418 msgid "(because 0666 & ~022 = 0644; i.e., rw-r--r--)."
17419 msgstr ""
17420
17421 #. type: Plain text
17422 #: build/C/man2/umask.2:93
17423 msgid ""
17424 "This system call always succeeds and the previous value of the mask is "
17425 "returned."
17426 msgstr ""
17427
17428 #. type: Plain text
17429 #: build/C/man2/umask.2:101
17430 msgid ""
17431 "A child process created via B<fork>(2)  inherits its parent's umask.  The "
17432 "umask is left unchanged by B<execve>(2)."
17433 msgstr ""
17434
17435 #. type: Plain text
17436 #: build/C/man2/umask.2:116
17437 msgid ""
17438 "The umask setting also affects the permissions assigned to POSIX IPC objects "
17439 "(B<mq_open>(3), B<sem_open>(3), B<shm_open>(3)), FIFOs (B<mkfifo>(3)), and "
17440 "UNIX domain sockets (B<unix>(7))  created by the process.  The umask does "
17441 "not affect the permissions assigned to System V IPC objects created by the "
17442 "process (using B<msgget>(2), B<semget>(2), B<shmget>(2))."
17443 msgstr ""
17444
17445 #.  FIXME . eventually: .BR acl (5)
17446 #. type: Plain text
17447 #: build/C/man2/umask.2:122
17448 msgid "B<chmod>(2), B<mkdir>(2), B<open>(2), B<stat>(2)"
17449 msgstr ""
17450
17451 #. type: TH
17452 #: build/C/man2/uname.2:25
17453 #, no-wrap
17454 msgid "UNAME"
17455 msgstr ""
17456
17457 #. type: Plain text
17458 #: build/C/man2/uname.2:28
17459 msgid "uname - get name and information about current kernel"
17460 msgstr ""
17461
17462 #. type: Plain text
17463 #: build/C/man2/uname.2:30
17464 msgid "B<#include E<lt>sys/utsname.hE<gt>>"
17465 msgstr ""
17466
17467 #. type: Plain text
17468 #: build/C/man2/uname.2:32
17469 msgid "B<int uname(struct utsname *>I<buf>B<);>"
17470 msgstr ""
17471
17472 #. type: Plain text
17473 #: build/C/man2/uname.2:40
17474 msgid ""
17475 "B<uname>()  returns system information in the structure pointed to by "
17476 "I<buf>.  The I<utsname> struct is defined in I<E<lt>sys/utsname.hE<gt>>:"
17477 msgstr ""
17478
17479 #. type: Plain text
17480 #: build/C/man2/uname.2:54
17481 #, no-wrap
17482 msgid ""
17483 "struct utsname {\n"
17484 "    char sysname[];    /* Operating system name (e.g., \"Linux\") */\n"
17485 "    char nodename[];   /* Name within \"some implementation-defined\n"
17486 "                          network\" */\n"
17487 "    char release[];    /* OS release (e.g., \"2.6.28\") */\n"
17488 "    char version[];    /* OS version */\n"
17489 "    char machine[];    /* Hardware identifier */\n"
17490 "#ifdef _GNU_SOURCE\n"
17491 "    char domainname[]; /* NIS or YP domain name */\n"
17492 "#endif\n"
17493 "};\n"
17494 msgstr ""
17495
17496 #. type: Plain text
17497 #: build/C/man2/uname.2:61
17498 msgid ""
17499 "The length of the arrays in a I<struct utsname> is unspecified (see NOTES); "
17500 "the fields are terminated by a null byte (\\(aq\\e0\\(aq)."
17501 msgstr ""
17502
17503 #. type: Plain text
17504 #: build/C/man2/uname.2:71
17505 msgid "I<buf> is not valid."
17506 msgstr ""
17507
17508 #. type: Plain text
17509 #: build/C/man2/uname.2:76
17510 msgid "SVr4, POSIX.1-2001.  There is no B<uname>()  call in 4.3BSD."
17511 msgstr ""
17512
17513 #. type: Plain text
17514 #: build/C/man2/uname.2:80
17515 msgid "The I<domainname> member (the NIS or YP domain name) is a GNU extension."
17516 msgstr ""
17517
17518 #. type: Plain text
17519 #: build/C/man2/uname.2:92
17520 msgid ""
17521 "This is a system call, and the operating system presumably knows its name, "
17522 "release and version.  It also knows what hardware it runs on.  So, four of "
17523 "the fields of the struct are meaningful.  On the other hand, the field "
17524 "I<nodename> is meaningless: it gives the name of the present machine in some "
17525 "undefined network, but typically machines are in more than one network and "
17526 "have several names.  Moreover, the kernel has no way of knowing about such "
17527 "things, so it has to be told what to answer here.  The same holds for the "
17528 "additional I<domainname> field."
17529 msgstr ""
17530
17531 #. type: Plain text
17532 #: build/C/man2/uname.2:106
17533 msgid ""
17534 "To this end Linux uses the system calls B<sethostname>(2)  and "
17535 "B<setdomainname>(2).  Note that there is no standard that says that the "
17536 "hostname set by B<sethostname>(2)  is the same string as the I<nodename> "
17537 "field of the struct returned by B<uname>()  (indeed, some systems allow a "
17538 "256-byte hostname and an 8-byte nodename), but this is true on Linux.  The "
17539 "same holds for B<setdomainname>(2)  and the I<domainname> field."
17540 msgstr ""
17541
17542 #. type: Plain text
17543 #: build/C/man2/uname.2:121
17544 msgid ""
17545 "The length of the fields in the struct varies.  Some operating systems or "
17546 "libraries use a hardcoded 9 or 33 or 65 or 257.  Other systems use "
17547 "B<SYS_NMLN> or B<_SYS_NMLN> or B<UTSLEN> or B<_UTSNAME_LENGTH>.  Clearly, it "
17548 "is a bad idea to use any of these constants; just use sizeof(...).  Often "
17549 "257 is chosen in order to have room for an internet hostname."
17550 msgstr ""
17551
17552 #. type: Plain text
17553 #: build/C/man2/uname.2:128
17554 msgid ""
17555 "Part of the utsname information is also accessible via "
17556 "I</proc/sys/kernel/>{I<ostype>, I<hostname>, I<osrelease>, I<version>, "
17557 "I<domainname>}."
17558 msgstr ""
17559
17560 #. type: SS
17561 #: build/C/man2/uname.2:128
17562 #, no-wrap
17563 msgid "Underlying kernel interface"
17564 msgstr ""
17565
17566 #.  That was back before Linux 1.0
17567 #.  That was also back before Linux 1.0
17568 #. type: Plain text
17569 #: build/C/man2/uname.2:155
17570 msgid ""
17571 "Over time, increases in the size of the I<utsname> structure have led to "
17572 "three successive versions of B<uname>(): I<sys_olduname>()  (slot "
17573 "I<__NR_oldolduname>), I<sys_uname>()  (slot I<__NR_olduname>), and "
17574 "I<sys_newuname>()  (slot I<__NR_uname)>.  The first one used length 9 for "
17575 "all fields; the second used 65; the third also uses 65 but adds the "
17576 "I<domainname> field.  The glibc B<uname>()  wrapper function hides these "
17577 "details from applications, invoking the most recent version of the system "
17578 "call provided by the kernel."
17579 msgstr ""
17580
17581 #. type: Plain text
17582 #: build/C/man2/uname.2:159
17583 msgid "B<uname>(1), B<getdomainname>(2), B<gethostname>(2)"
17584 msgstr ""
17585
17586 #. type: TH
17587 #: build/C/man2/uselib.2:31
17588 #, no-wrap
17589 msgid "USELIB"
17590 msgstr ""
17591
17592 #. type: TH
17593 #: build/C/man2/uselib.2:31
17594 #, no-wrap
17595 msgid "2005-01-09"
17596 msgstr ""
17597
17598 #. type: Plain text
17599 #: build/C/man2/uselib.2:34
17600 msgid "uselib - load shared library"
17601 msgstr ""
17602
17603 #. type: Plain text
17604 #: build/C/man2/uselib.2:38
17605 msgid "B<int uselib(const char *>I<library>B<);>"
17606 msgstr ""
17607
17608 #. type: Plain text
17609 #: build/C/man2/uselib.2:48
17610 msgid ""
17611 "The system call B<uselib>()  serves to load a shared library to be used by "
17612 "the calling process.  It is given a pathname.  The address where to load is "
17613 "found in the library itself.  The library can have any recognized binary "
17614 "format."
17615 msgstr ""
17616
17617 #. type: Plain text
17618 #: build/C/man2/uselib.2:59
17619 msgid ""
17620 "In addition to all of the error codes returned by B<open>(2)  and "
17621 "B<mmap>(2), the following may also be returned:"
17622 msgstr ""
17623
17624 #. type: Plain text
17625 #: build/C/man2/uselib.2:67
17626 msgid ""
17627 "The library specified by I<library> does not have read or execute "
17628 "permission, or the caller does not have search permission for one of the "
17629 "directories in the path prefix.  (See also B<path_resolution>(7).)"
17630 msgstr ""
17631
17632 #. type: Plain text
17633 #: build/C/man2/uselib.2:76
17634 msgid ""
17635 "The file specified by I<library> is not an executable of known type, e.g., "
17636 "does not have the correct magic numbers."
17637 msgstr ""
17638
17639 #. type: Plain text
17640 #: build/C/man2/uselib.2:80
17641 msgid ""
17642 "B<uselib>()  is Linux-specific, and should not be used in programs intended "
17643 "to be portable."
17644 msgstr ""
17645
17646 #. type: Plain text
17647 #: build/C/man2/uselib.2:85
17648 msgid ""
17649 "B<uselib>()  was used by early libc startup code to load the shared "
17650 "libraries with names found in an array of names in the binary."
17651 msgstr ""
17652
17653 #.  libc 4.3.1f - changelog 1993-03-02
17654 #.  libc 4.3.4 - changelog 1993-04-21
17655 #. type: Plain text
17656 #: build/C/man2/uselib.2:95
17657 msgid ""
17658 "Since libc 4.3.2, startup code tries to prefix these names with "
17659 "\"/usr/lib\", \"/lib\" and \"\" before giving up.  In libc 4.3.4 and later "
17660 "these names are looked for in the directories found in B<LD_LIBRARY_PATH>, "
17661 "and if not found there, prefixes \"/usr/lib\", \"/lib\" and \"/\" are tried."
17662 msgstr ""
17663
17664 #. type: Plain text
17665 #: build/C/man2/uselib.2:100
17666 msgid ""
17667 "From libc 4.4.4 on only the library \"/lib/ld.so\" is loaded, so that this "
17668 "dynamic library can load the remaining libraries needed (again using this "
17669 "call).  This is also the state of affairs in libc5."
17670 msgstr ""
17671
17672 #. type: Plain text
17673 #: build/C/man2/uselib.2:102
17674 msgid "glibc2 does not use this call."
17675 msgstr ""
17676
17677 #. type: Plain text
17678 #: build/C/man2/uselib.2:112
17679 msgid ""
17680 "B<ar>(1), B<gcc>(1), B<ld>(1), B<ldd>(1), B<mmap>(2), B<open>(2), "
17681 "B<dlopen>(3), B<capabilities>(7), B<ld.so>(8)"
17682 msgstr ""
17683
17684 #. type: TH
17685 #: build/C/man3/usleep.3:31
17686 #, no-wrap
17687 msgid "USLEEP"
17688 msgstr ""
17689
17690 #. type: TH
17691 #: build/C/man3/usleep.3:31
17692 #, no-wrap
17693 msgid "2010-12-03"
17694 msgstr ""
17695
17696 #. type: Plain text
17697 #: build/C/man3/usleep.3:34
17698 msgid "usleep - suspend execution for microsecond intervals"
17699 msgstr ""
17700
17701 #. type: Plain text
17702 #: build/C/man3/usleep.3:39
17703 #, no-wrap
17704 msgid "B<int usleep(useconds_t >I<usec>B<);>\n"
17705 msgstr ""
17706
17707 #. type: Plain text
17708 #: build/C/man3/usleep.3:47
17709 msgid "B<usleep>():"
17710 msgstr ""
17711
17712 #. type: Plain text
17713 #: build/C/man3/usleep.3:73
17714 msgid ""
17715 "The B<usleep>()  function suspends execution of the calling thread for (at "
17716 "least) I<usec> microseconds.  The sleep may be lengthened slightly by any "
17717 "system activity or by the time spent processing the call or by the "
17718 "granularity of system timers."
17719 msgstr ""
17720
17721 #. type: Plain text
17722 #: build/C/man3/usleep.3:75
17723 msgid "0 on success, -1 on error."
17724 msgstr ""
17725
17726 #. type: Plain text
17727 #: build/C/man3/usleep.3:80
17728 msgid "Interrupted by a signal; see B<signal>(7)."
17729 msgstr ""
17730
17731 #. type: Plain text
17732 #: build/C/man3/usleep.3:84
17733 msgid ""
17734 "I<usec> is not smaller than 1000000.  (On systems where that is considered "
17735 "an error.)"
17736 msgstr ""
17737
17738 #. type: Plain text
17739 #: build/C/man3/usleep.3:91
17740 msgid ""
17741 "4.3BSD, POSIX.1-2001.  POSIX.1-2001 declares this function obsolete; use "
17742 "B<nanosleep>(2)  instead.  POSIX.1-2008 removes the specification of "
17743 "B<usleep>()."
17744 msgstr ""
17745
17746 #. type: Plain text
17747 #: build/C/man3/usleep.3:98
17748 msgid ""
17749 "On the original BSD implementation, and in glibc before version 2.2.2, the "
17750 "return type of this function is I<void>.  The POSIX version returns I<int>, "
17751 "and this is also the prototype used since glibc 2.2.2."
17752 msgstr ""
17753
17754 #. type: Plain text
17755 #: build/C/man3/usleep.3:102
17756 msgid "Only the B<EINVAL> error return is documented by SUSv2 and POSIX.1-2001."
17757 msgstr ""
17758
17759 #. type: Plain text
17760 #: build/C/man3/usleep.3:110
17761 msgid ""
17762 "The type I<useconds_t> is an unsigned integer type capable of holding "
17763 "integers in the range [0,1000000].  Programs will be more portable if they "
17764 "never mention this type explicitly.  Use"
17765 msgstr ""
17766
17767 #. type: Plain text
17768 #: build/C/man3/usleep.3:118
17769 #, no-wrap
17770 msgid ""
17771 "#include E<lt>unistd.hE<gt>\n"
17772 "\\&...\n"
17773 "    unsigned int usecs;\n"
17774 "\\&...\n"
17775 "    usleep(usecs);\n"
17776 msgstr ""
17777
17778 #. type: Plain text
17779 #: build/C/man3/usleep.3:135
17780 msgid ""
17781 "The interaction of this function with the B<SIGALRM> signal, and with other "
17782 "timer functions such as B<alarm>(2), B<sleep>(3), B<nanosleep>(2), "
17783 "B<setitimer>(2), B<timer_create>(2), B<timer_delete>(2), "
17784 "B<timer_getoverrun>(2), B<timer_gettime>(2), B<timer_settime>(2), "
17785 "B<ualarm>(3)  is unspecified."
17786 msgstr ""
17787
17788 #. type: Plain text
17789 #: build/C/man3/usleep.3:144
17790 msgid ""
17791 "B<alarm>(2), B<getitimer>(2), B<nanosleep>(2), B<select>(2), "
17792 "B<setitimer>(2), B<sleep>(3), B<ualarm>(3), B<time>(7)"
17793 msgstr ""
17794
17795 #. type: TH
17796 #: build/C/man2/vfork.2:26
17797 #, no-wrap
17798 msgid "VFORK"
17799 msgstr ""
17800
17801 #. type: TH
17802 #: build/C/man2/vfork.2:26
17803 #, no-wrap
17804 msgid "2012-02-08"
17805 msgstr ""
17806
17807 #. type: Plain text
17808 #: build/C/man2/vfork.2:29
17809 msgid "vfork - create a child process and block parent"
17810 msgstr ""
17811
17812 #. type: Plain text
17813 #: build/C/man2/vfork.2:35
17814 msgid "B<pid_t vfork(void);>"
17815 msgstr ""
17816
17817 #. type: Plain text
17818 #: build/C/man2/vfork.2:42
17819 msgid "B<vfork>():"
17820 msgstr ""
17821
17822 #. type: SS
17823 #: build/C/man2/vfork.2:61
17824 #, no-wrap
17825 msgid "Standard Description"
17826 msgstr ""
17827
17828 #. type: Plain text
17829 #: build/C/man2/vfork.2:80
17830 msgid ""
17831 "(From POSIX.1)  The B<vfork>()  function has the same effect as B<fork>(2), "
17832 "except that the behavior is undefined if the process created by B<vfork>()  "
17833 "either modifies any data other than a variable of type I<pid_t> used to "
17834 "store the return value from B<vfork>(), or returns from the function in "
17835 "which B<vfork>()  was called, or calls any other function before "
17836 "successfully calling B<_exit>(2)  or one of the B<exec>(3)  family of "
17837 "functions."
17838 msgstr ""
17839
17840 #. type: SS
17841 #: build/C/man2/vfork.2:80
17842 #, no-wrap
17843 msgid "Linux Description"
17844 msgstr ""
17845
17846 #. type: Plain text
17847 #: build/C/man2/vfork.2:87
17848 msgid ""
17849 "B<vfork>(), just like B<fork>(2), creates a child process of the calling "
17850 "process.  For details and return value and errors, see B<fork>(2)."
17851 msgstr ""
17852
17853 #. type: Plain text
17854 #: build/C/man2/vfork.2:96
17855 msgid ""
17856 "B<vfork>()  is a special case of B<clone>(2).  It is used to create new "
17857 "processes without copying the page tables of the parent process.  It may be "
17858 "useful in performance-sensitive applications where a child is created which "
17859 "then immediately issues an B<execve>(2)."
17860 msgstr ""
17861
17862 #. type: Plain text
17863 #: build/C/man2/vfork.2:113
17864 msgid ""
17865 "B<vfork>()  differs from B<fork>(2)  in that the calling thread is suspended "
17866 "until the child terminates (either normally, by calling B<_exit>(2), or "
17867 "abnormally, after delivery of a fatal signal), or it makes a call to "
17868 "B<execve>(2).  Until that point, the child shares all memory with its "
17869 "parent, including the stack.  The child must not return from the current "
17870 "function or call B<exit>(3), but may call B<_exit>(2)."
17871 msgstr ""
17872
17873 #. type: Plain text
17874 #: build/C/man2/vfork.2:124
17875 msgid ""
17876 "As with B<fork>(2), the child process created by B<vfork>()  inherits copies "
17877 "of various of the caller's process attributes (e.g., file descriptors, "
17878 "signal dispositions, and current working directory); the B<vfork>()  call "
17879 "differs only in the treatment of the virtual address space, as described "
17880 "above."
17881 msgstr ""
17882
17883 #. type: Plain text
17884 #: build/C/man2/vfork.2:130
17885 msgid ""
17886 "Signals sent to the parent arrive after the child releases the parent's "
17887 "memory (i.e., after the child terminates or calls B<execve>(2))."
17888 msgstr ""
17889
17890 #. type: SS
17891 #: build/C/man2/vfork.2:130
17892 #, no-wrap
17893 msgid "Historic Description"
17894 msgstr ""
17895
17896 #. type: Plain text
17897 #: build/C/man2/vfork.2:157
17898 msgid ""
17899 "Under Linux, B<fork>(2)  is implemented using copy-on-write pages, so the "
17900 "only penalty incurred by B<fork>(2)  is the time and memory required to "
17901 "duplicate the parent's page tables, and to create a unique task structure "
17902 "for the child.  However, in the bad old days a B<fork>(2)  would require "
17903 "making a complete copy of the caller's data space, often needlessly, since "
17904 "usually immediately afterward an B<exec>(3)  is done.  Thus, for greater "
17905 "efficiency, BSD introduced the B<vfork>()  system call, which did not fully "
17906 "copy the address space of the parent process, but borrowed the parent's "
17907 "memory and thread of control until a call to B<execve>(2)  or an exit "
17908 "occurred.  The parent process was suspended while the child was using its "
17909 "resources.  The use of B<vfork>()  was tricky: for example, not modifying "
17910 "data in the parent process depended on knowing which variables were held in "
17911 "a register."
17912 msgstr ""
17913
17914 #. type: Plain text
17915 #: build/C/man2/vfork.2:161
17916 msgid ""
17917 "4.3BSD; POSIX.1-2001 (but marked OBSOLETE).  POSIX.1-2008 removes the "
17918 "specification of B<vfork>()."
17919 msgstr ""
17920
17921 #.  In AIXv3.1 vfork is equivalent to fork.
17922 #. type: Plain text
17923 #: build/C/man2/vfork.2:172
17924 msgid ""
17925 "The requirements put on B<vfork>()  by the standards are weaker than those "
17926 "put on B<fork>(2), so an implementation where the two are synonymous is "
17927 "compliant.  In particular, the programmer cannot rely on the parent "
17928 "remaining blocked until the child either terminates or calls B<execve>(2), "
17929 "and cannot rely on any specific behavior with respect to shared memory."
17930 msgstr ""
17931
17932 #. type: Plain text
17933 #: build/C/man2/vfork.2:191
17934 msgid ""
17935 "Some consider the semantics of B<vfork>()  to be an architectural blemish, "
17936 "and the 4.2BSD man page stated: \"This system call will be eliminated when "
17937 "proper system sharing mechanisms are implemented.  Users should not depend "
17938 "on the memory sharing semantics of B<vfork>()  as it will, in that case, be "
17939 "made synonymous to B<fork>(2).\" However, even though modern memory "
17940 "management hardware has decreased the performance difference between "
17941 "B<fork>()  and B<vfork>(2), there are various reasons why Linux and other "
17942 "systems have retained B<vfork>():"
17943 msgstr ""
17944
17945 #. type: Plain text
17946 #: build/C/man2/vfork.2:195
17947 msgid ""
17948 "Some performance-critical applications require the small performance "
17949 "advantage conferred by B<vfork>()."
17950 msgstr ""
17951
17952 #.  http://stackoverflow.com/questions/4259629/what-is-the-difference-between-fork-and-vfork
17953 #.  http://developers.sun.com/solaris/articles/subprocess/subprocess.html
17954 #.  http://mailman.uclinux.org/pipermail/uclinux-dev/2009-April/000684.html
17955 #. type: Plain text
17956 #: build/C/man2/vfork.2:211
17957 msgid ""
17958 "B<vfork>(2)  can be implemented on systems that lack a memory-management "
17959 "unit (MMU), but B<fork>(2)  can't be implemented on such systems.  "
17960 "(POSIX.1-2008 removed B<vfork>()  from the standard; the POSIX rationale for "
17961 "the B<posix_spawn>(3)  function notes that that function, which provides "
17962 "functionality equivalent to B<fork>(2)+B<exec>(3), is designed to be "
17963 "implementable on systems that lack an MMU.)"
17964 msgstr ""
17965
17966 #. type: Plain text
17967 #: build/C/man2/vfork.2:222
17968 msgid ""
17969 "Fork handlers established using B<pthread_atfork>(3)  are not called when a "
17970 "multithreaded program employing the NPTL threading library calls "
17971 "B<vfork>().  Fork handlers are called in this case in a program using the "
17972 "LinuxThreads threading library.  (See B<pthreads>(7)  for a description of "
17973 "Linux threading libraries.)"
17974 msgstr ""
17975
17976 #. type: Plain text
17977 #: build/C/man2/vfork.2:230
17978 msgid ""
17979 "A call to B<vfork>()  is equivalent to calling B<clone>(2)  with I<flags> "
17980 "specified as:"
17981 msgstr ""
17982
17983 #. type: Plain text
17984 #: build/C/man2/vfork.2:232
17985 #, no-wrap
17986 msgid "     CLONE_VM | CLONE_VFORK | SIGCHLD\n"
17987 msgstr ""
17988
17989 #.  In the release notes for 4.2BSD Sam Leffler wrote: `vfork: Is still
17990 #.  present, but definitely on its way out'.
17991 #. type: Plain text
17992 #: build/C/man2/vfork.2:249
17993 msgid ""
17994 "The B<vfork>()  system call appeared in 3.0BSD.  In 4.4BSD it was made "
17995 "synonymous to B<fork>(2)  but NetBSD introduced it again, "
17996 "cf. http://www.netbsd.org/Documentation/kernel/vfork.html .  In Linux, it "
17997 "has been equivalent to B<fork>(2)  until 2.2.0-pre6 or so.  Since 2.2.0-pre9 "
17998 "(on i386, somewhat later on other architectures) it is an independent system "
17999 "call.  Support was added in glibc 2.0.112."
18000 msgstr ""
18001
18002 #
18003 #.  As far as I can tell, the following is not true in 2.6.19:
18004 #.  Currently (Linux 2.3.25),
18005 #.  .BR strace (1)
18006 #.  cannot follow
18007 #.  .BR vfork ()
18008 #.  and requires a kernel patch.
18009 #. type: Plain text
18010 #: build/C/man2/vfork.2:270
18011 msgid ""
18012 "Details of the signal handling are obscure and differ between systems.  The "
18013 "BSD man page states: \"To avoid a possible deadlock situation, processes "
18014 "that are children in the middle of a B<vfork>()  are never sent B<SIGTTOU> "
18015 "or B<SIGTTIN> signals; rather, output or I<ioctl>s are allowed and input "
18016 "attempts result in an end-of-file indication.\""
18017 msgstr ""
18018
18019 #. type: Plain text
18020 #: build/C/man2/vfork.2:276
18021 msgid "B<clone>(2), B<execve>(2), B<fork>(2), B<unshare>(2), B<wait>(2)"
18022 msgstr ""
18023
18024 #. type: TH
18025 #: build/C/man2/vhangup.2:27
18026 #, no-wrap
18027 msgid "VHANGUP"
18028 msgstr ""
18029
18030 #. type: Plain text
18031 #: build/C/man2/vhangup.2:30
18032 msgid "vhangup - virtually hangup the current tty"
18033 msgstr ""
18034
18035 #. type: Plain text
18036 #: build/C/man2/vhangup.2:34
18037 msgid "B<int vhangup(void);>"
18038 msgstr ""
18039
18040 #. type: Plain text
18041 #: build/C/man2/vhangup.2:43
18042 msgid "B<vhangup>(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\\ E<lt>\\ 500)"
18043 msgstr ""
18044
18045 #. type: Plain text
18046 #: build/C/man2/vhangup.2:49
18047 msgid ""
18048 "B<vhangup>()  simulates a hangup on the current terminal.  This call "
18049 "arranges for other users to have a ``clean'' tty at login time."
18050 msgstr ""
18051
18052 #. type: Plain text
18053 #: build/C/man2/vhangup.2:62
18054 msgid ""
18055 "The calling process has insufficient privilege to call B<vhangup>(); the "
18056 "B<CAP_SYS_TTY_CONFIG> capability is required."
18057 msgstr ""
18058
18059 #. type: Plain text
18060 #: build/C/man2/vhangup.2:65
18061 msgid ""
18062 "This call is Linux-specific, and should not be used in programs intended to "
18063 "be portable."
18064 msgstr ""
18065
18066 #. type: Plain text
18067 #: build/C/man2/vhangup.2:68
18068 msgid "B<capabilities>(7), B<init>(8)"
18069 msgstr ""