OSDN Git Service

(split) LDP: Update POT and ja.po to LDP v3.38.
[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-04-23 07:55+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:58 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:219 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:616 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:221 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:792 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:228 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:796 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:235 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:803 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.38 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:153 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:158 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:163 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:175 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:179 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:183 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:189 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:198 build/C/man2/chmod.2:216 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:168 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:172 build/C/man2/chmod.2:210 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:175 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:186 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:189 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:158 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:172 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:179 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:183 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:186 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:205 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:61
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:61 build/C/man2/chmod.2:66 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:651 build/C/man2/syscalls.2:672 build/C/man2/syscalls.2:683 build/C/man2/syscalls.2:690 build/C/man2/syscalls.2:701 build/C/man2/syscalls.2:713 build/C/man2/syscalls.2:734 build/C/man2/syscalls.2:742 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:66
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:70
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:75
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:75
1110 #, no-wrap
1111 msgid "B<S_ISUID>  (04000)"
1112 msgstr ""
1113
1114 #. type: Plain text
1115 #: build/C/man2/chmod.2:79
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:79
1121 #, no-wrap
1122 msgid "B<S_ISGID>  (02000)"
1123 msgstr ""
1124
1125 #. type: Plain text
1126 #: build/C/man2/chmod.2:89
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:89
1135 #, no-wrap
1136 msgid "B<S_ISVTX>  (01000)"
1137 msgstr ""
1138
1139 #. type: Plain text
1140 #: build/C/man2/chmod.2:93
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:93
1146 #, no-wrap
1147 msgid "B<S_IRUSR>  (00400)"
1148 msgstr ""
1149
1150 #. type: Plain text
1151 #: build/C/man2/chmod.2:96
1152 msgid "read by owner"
1153 msgstr ""
1154
1155 #. type: TP
1156 #: build/C/man2/chmod.2:96
1157 #, no-wrap
1158 msgid "B<S_IWUSR>  (00200)"
1159 msgstr ""
1160
1161 #. type: Plain text
1162 #: build/C/man2/chmod.2:99
1163 msgid "write by owner"
1164 msgstr ""
1165
1166 #. type: TP
1167 #: build/C/man2/chmod.2:99
1168 #, no-wrap
1169 msgid "B<S_IXUSR>  (00100)"
1170 msgstr ""
1171
1172 #. type: Plain text
1173 #: build/C/man2/chmod.2:103
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:103
1181 #, no-wrap
1182 msgid "B<S_IRGRP>  (00040)"
1183 msgstr ""
1184
1185 #. type: Plain text
1186 #: build/C/man2/chmod.2:106
1187 msgid "read by group"
1188 msgstr ""
1189
1190 #. type: TP
1191 #: build/C/man2/chmod.2:106
1192 #, no-wrap
1193 msgid "B<S_IWGRP>  (00020)"
1194 msgstr ""
1195
1196 #. type: Plain text
1197 #: build/C/man2/chmod.2:109
1198 msgid "write by group"
1199 msgstr ""
1200
1201 #. type: TP
1202 #: build/C/man2/chmod.2:109
1203 #, no-wrap
1204 msgid "B<S_IXGRP>  (00010)"
1205 msgstr ""
1206
1207 #. type: Plain text
1208 #: build/C/man2/chmod.2:112
1209 msgid "execute/search by group"
1210 msgstr ""
1211
1212 #. type: TP
1213 #: build/C/man2/chmod.2:112
1214 #, no-wrap
1215 msgid "B<S_IROTH>  (00004)"
1216 msgstr ""
1217
1218 #. type: Plain text
1219 #: build/C/man2/chmod.2:115
1220 msgid "read by others"
1221 msgstr ""
1222
1223 #. type: TP
1224 #: build/C/man2/chmod.2:115
1225 #, no-wrap
1226 msgid "B<S_IWOTH>  (00002)"
1227 msgstr ""
1228
1229 #. type: Plain text
1230 #: build/C/man2/chmod.2:118
1231 msgid "write by others"
1232 msgstr ""
1233
1234 #. type: TP
1235 #: build/C/man2/chmod.2:118
1236 #, no-wrap
1237 msgid "B<S_IXOTH>  (00001)"
1238 msgstr ""
1239
1240 #. type: Plain text
1241 #: build/C/man2/chmod.2:121
1242 msgid "execute/search by others"
1243 msgstr ""
1244
1245 #. type: Plain text
1246 #: build/C/man2/chmod.2:126
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:135
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:147
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:153
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:163
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:168 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:192 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:192 build/C/man2/chmod.2:213 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:198
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:201 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:205
1324 msgid "The general errors for B<fchmod>()  are listed below:"
1325 msgstr ""
1326
1327 #. type: Plain text
1328 #: build/C/man2/chmod.2:210
1329 msgid "The file descriptor I<fd> is not valid."
1330 msgstr ""
1331
1332 #. type: Plain text
1333 #: build/C/man2/chmod.2:213 build/C/man2/chmod.2:216 build/C/man2/chmod.2:219 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:221 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:228
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
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: TH
4477 #: build/C/man2/fcntl.2:61
4478 #, no-wrap
4479 msgid "2012-03-25"
4480 msgstr ""
4481
4482 #. type: Plain text
4483 #: build/C/man2/fcntl.2:64
4484 msgid "fcntl - manipulate file descriptor"
4485 msgstr ""
4486
4487 #. type: Plain text
4488 #: build/C/man2/fcntl.2:68
4489 #, no-wrap
4490 msgid ""
4491 "B<#include E<lt>unistd.hE<gt>>\n"
4492 "B<#include E<lt>fcntl.hE<gt>>\n"
4493 msgstr ""
4494
4495 #. type: Plain text
4496 #: build/C/man2/fcntl.2:70
4497 #, no-wrap
4498 msgid "B<int fcntl(int >I<fd>B<, int >I<cmd>B<, ... /* >I<arg>B< */ );>\n"
4499 msgstr ""
4500
4501 #. type: Plain text
4502 #: build/C/man2/fcntl.2:77
4503 msgid ""
4504 "B<fcntl>()  performs one of the operations described below on the open file "
4505 "descriptor I<fd>.  The operation is determined by I<cmd>."
4506 msgstr ""
4507
4508 #. type: Plain text
4509 #: build/C/man2/fcntl.2:91
4510 msgid ""
4511 "B<fcntl>()  can take an optional third argument.  Whether or not this "
4512 "argument is required is determined by I<cmd>.  The required argument type is "
4513 "indicated in parentheses after each I<cmd> name (in most cases, the required "
4514 "type is I<long>, and we identify the argument using the name I<arg>), or "
4515 "I<void> is specified if the argument is not required."
4516 msgstr ""
4517
4518 #. type: SS
4519 #: build/C/man2/fcntl.2:91
4520 #, no-wrap
4521 msgid "Duplicating a file descriptor"
4522 msgstr ""
4523
4524 #. type: TP
4525 #: build/C/man2/fcntl.2:92
4526 #, no-wrap
4527 msgid "B<F_DUPFD> (I<long>)"
4528 msgstr ""
4529
4530 #. type: Plain text
4531 #: build/C/man2/fcntl.2:102
4532 msgid ""
4533 "Find the lowest numbered available file descriptor greater than or equal to "
4534 "I<arg> and make it be a copy of I<fd>.  This is different from B<dup2>(2), "
4535 "which uses exactly the descriptor specified."
4536 msgstr ""
4537
4538 #. type: Plain text
4539 #: build/C/man2/fcntl.2:104
4540 msgid "On success, the new descriptor is returned."
4541 msgstr ""
4542
4543 #. type: Plain text
4544 #: build/C/man2/fcntl.2:108
4545 msgid "See B<dup>(2)  for further details."
4546 msgstr ""
4547
4548 #. type: TP
4549 #: build/C/man2/fcntl.2:108
4550 #, no-wrap
4551 msgid "B<F_DUPFD_CLOEXEC> (I<long>; since Linux 2.6.24)"
4552 msgstr ""
4553
4554 #. type: Plain text
4555 #: build/C/man2/fcntl.2:125
4556 msgid ""
4557 "As for B<F_DUPFD>, but additionally set the close-on-exec flag for the "
4558 "duplicate descriptor.  Specifying this flag permits a program to avoid an "
4559 "additional B<fcntl>()  B<F_SETFD> operation to set the B<FD_CLOEXEC> flag.  "
4560 "For an explanation of why this flag is useful, see the description of "
4561 "B<O_CLOEXEC> in B<open>(2)."
4562 msgstr ""
4563
4564 #. type: SS
4565 #: build/C/man2/fcntl.2:125
4566 #, no-wrap
4567 msgid "File descriptor flags"
4568 msgstr ""
4569
4570 #. type: Plain text
4571 #: build/C/man2/fcntl.2:136
4572 msgid ""
4573 "The following commands manipulate the flags associated with a file "
4574 "descriptor.  Currently, only one such flag is defined: B<FD_CLOEXEC>, the "
4575 "close-on-exec flag.  If the B<FD_CLOEXEC> bit is 0, the file descriptor will "
4576 "remain open across an B<execve>(2), otherwise it will be closed."
4577 msgstr ""
4578
4579 #. type: TP
4580 #: build/C/man2/fcntl.2:136
4581 #, no-wrap
4582 msgid "B<F_GETFD> (I<void>)"
4583 msgstr ""
4584
4585 #. type: Plain text
4586 #: build/C/man2/fcntl.2:141
4587 msgid "Read the file descriptor flags; I<arg> is ignored."
4588 msgstr ""
4589
4590 #. type: TP
4591 #: build/C/man2/fcntl.2:141
4592 #, no-wrap
4593 msgid "B<F_SETFD> (I<long>)"
4594 msgstr ""
4595
4596 #. type: Plain text
4597 #: build/C/man2/fcntl.2:145
4598 msgid "Set the file descriptor flags to the value specified by I<arg>."
4599 msgstr ""
4600
4601 #. type: SS
4602 #: build/C/man2/fcntl.2:145
4603 #, no-wrap
4604 msgid "File status flags"
4605 msgstr ""
4606
4607 #.  or
4608 #.  .BR creat (2),
4609 #. type: Plain text
4610 #: build/C/man2/fcntl.2:160
4611 msgid ""
4612 "Each open file description has certain associated status flags, initialized "
4613 "by B<open>(2)  and possibly modified by B<fcntl>().  Duplicated file "
4614 "descriptors (made with B<dup>(2), B<fcntl>(F_DUPFD), B<fork>(2), etc.) refer "
4615 "to the same open file description, and thus share the same file status "
4616 "flags."
4617 msgstr ""
4618
4619 #. type: Plain text
4620 #: build/C/man2/fcntl.2:163
4621 msgid "The file status flags and their semantics are described in B<open>(2)."
4622 msgstr ""
4623
4624 #. type: TP
4625 #: build/C/man2/fcntl.2:163
4626 #, no-wrap
4627 msgid "B<F_GETFL> (I<void>)"
4628 msgstr ""
4629
4630 #. type: Plain text
4631 #: build/C/man2/fcntl.2:168
4632 msgid "Get the file access mode and the file status flags; I<arg> is ignored."
4633 msgstr ""
4634
4635 #. type: TP
4636 #: build/C/man2/fcntl.2:168
4637 #, no-wrap
4638 msgid "B<F_SETFL> (I<long>)"
4639 msgstr ""
4640
4641 #.  FIXME . According to POSIX.1-2001, O_SYNC should also be modifiable
4642 #.  via fcntl(2), but currently Linux does not permit this
4643 #.  See http://bugzilla.kernel.org/show_bug.cgi?id=5994
4644 #. type: Plain text
4645 #: build/C/man2/fcntl.2:191
4646 msgid ""
4647 "Set the file status flags to the value specified by I<arg>.  File access "
4648 "mode (B<O_RDONLY>, B<O_WRONLY>, B<O_RDWR>)  and file creation flags (i.e., "
4649 "B<O_CREAT>, B<O_EXCL>, B<O_NOCTTY>, B<O_TRUNC>)  in I<arg> are ignored.  On "
4650 "Linux this command can change only the B<O_APPEND>, B<O_ASYNC>, B<O_DIRECT>, "
4651 "B<O_NOATIME>, and B<O_NONBLOCK> flags."
4652 msgstr ""
4653
4654 #. type: SS
4655 #: build/C/man2/fcntl.2:191
4656 #, no-wrap
4657 msgid "Advisory locking"
4658 msgstr ""
4659
4660 #. type: Plain text
4661 #: build/C/man2/fcntl.2:199
4662 msgid ""
4663 "B<F_GETLK>, B<F_SETLK> and B<F_SETLKW> are used to acquire, release, and "
4664 "test for the existence of record locks (also known as file-segment or "
4665 "file-region locks).  The third argument, I<lock>, is a pointer to a "
4666 "structure that has at least the following fields (in unspecified order)."
4667 msgstr ""
4668
4669 #. type: Plain text
4670 #: build/C/man2/fcntl.2:214
4671 #, no-wrap
4672 msgid ""
4673 "struct flock {\n"
4674 "    ...\n"
4675 "    short l_type;    /* Type of lock: F_RDLCK,\n"
4676 "                        F_WRLCK, F_UNLCK */\n"
4677 "    short l_whence;  /* How to interpret l_start:\n"
4678 "                        SEEK_SET, SEEK_CUR, SEEK_END */\n"
4679 "    off_t l_start;   /* Starting offset for lock */\n"
4680 "    off_t l_len;     /* Number of bytes to lock */\n"
4681 "    pid_t l_pid;     /* PID of process blocking our lock\n"
4682 "                        (F_GETLK only) */\n"
4683 "    ...\n"
4684 "};\n"
4685 msgstr ""
4686
4687 #. type: Plain text
4688 #: build/C/man2/fcntl.2:222
4689 msgid ""
4690 "The I<l_whence>, I<l_start>, and I<l_len> fields of this structure specify "
4691 "the range of bytes we wish to lock.  Bytes past the end of the file may be "
4692 "locked, but not bytes before the start of the file."
4693 msgstr ""
4694
4695 #. type: Plain text
4696 #: build/C/man2/fcntl.2:242
4697 msgid ""
4698 "I<l_start> is the starting offset for the lock, and is interpreted relative "
4699 "to either: the start of the file (if I<l_whence> is B<SEEK_SET>); the "
4700 "current file offset (if I<l_whence> is B<SEEK_CUR>); or the end of the file "
4701 "(if I<l_whence> is B<SEEK_END>).  In the final two cases, I<l_start> can be "
4702 "a negative number provided the offset does not lie before the start of the "
4703 "file."
4704 msgstr ""
4705
4706 #. type: Plain text
4707 #: build/C/man2/fcntl.2:257
4708 msgid ""
4709 "I<l_len> specifies the number of bytes to be locked.  If I<l_len> is "
4710 "positive, then the range to be locked covers bytes I<l_start> up to and "
4711 "including I<l_start>+I<l_len>-I<1>.  Specifying 0 for I<l_len> has the "
4712 "special meaning: lock all bytes starting at the location specified by "
4713 "I<l_whence> and I<l_start> through to the end of file, no matter how large "
4714 "the file grows."
4715 msgstr ""
4716
4717 #. type: Plain text
4718 #: build/C/man2/fcntl.2:270
4719 msgid ""
4720 "POSIX.1-2001 allows (but does not require)  an implementation to support a "
4721 "negative I<l_len> value; if I<l_len> is negative, the interval described by "
4722 "I<lock> covers bytes I<l_start>+I<l_len> up to and including I<l_start>-1.  "
4723 "This is supported by Linux since kernel versions 2.4.21 and 2.5.49."
4724 msgstr ""
4725
4726 #. type: Plain text
4727 #: build/C/man2/fcntl.2:289
4728 msgid ""
4729 "The I<l_type> field can be used to place a read (B<F_RDLCK>)  or a write "
4730 "(B<F_WRLCK>)  lock on a file.  Any number of processes may hold a read lock "
4731 "(shared lock)  on a file region, but only one process may hold a write lock "
4732 "(exclusive lock).  An exclusive lock excludes all other locks, both shared "
4733 "and exclusive.  A single process can hold only one type of lock on a file "
4734 "region; if a new lock is applied to an already-locked region, then the "
4735 "existing lock is converted to the new lock type.  (Such conversions may "
4736 "involve splitting, shrinking, or coalescing with an existing lock if the "
4737 "byte range specified by the new lock does not precisely coincide with the "
4738 "range of the existing lock.)"
4739 msgstr ""
4740
4741 #. type: TP
4742 #: build/C/man2/fcntl.2:289
4743 #, no-wrap
4744 msgid "B<F_SETLK> (I<struct flock *>)"
4745 msgstr ""
4746
4747 #. type: Plain text
4748 #: build/C/man2/fcntl.2:312
4749 msgid ""
4750 "Acquire a lock (when I<l_type> is B<F_RDLCK> or B<F_WRLCK>)  or release a "
4751 "lock (when I<l_type> is B<F_UNLCK>)  on the bytes specified by the "
4752 "I<l_whence>, I<l_start>, and I<l_len> fields of I<lock>.  If a conflicting "
4753 "lock is held by another process, this call returns -1 and sets I<errno> to "
4754 "B<EACCES> or B<EAGAIN>."
4755 msgstr ""
4756
4757 #. type: TP
4758 #: build/C/man2/fcntl.2:312
4759 #, no-wrap
4760 msgid "B<F_SETLKW> (I<struct flock *>)"
4761 msgstr ""
4762
4763 #. type: Plain text
4764 #: build/C/man2/fcntl.2:326
4765 msgid ""
4766 "As for B<F_SETLK>, but if a conflicting lock is held on the file, then wait "
4767 "for that lock to be released.  If a signal is caught while waiting, then the "
4768 "call is interrupted and (after the signal handler has returned)  returns "
4769 "immediately (with return value -1 and I<errno> set to B<EINTR>; see "
4770 "B<signal>(7))."
4771 msgstr ""
4772
4773 #. type: TP
4774 #: build/C/man2/fcntl.2:326
4775 #, no-wrap
4776 msgid "B<F_GETLK> (I<struct flock *>)"
4777 msgstr ""
4778
4779 #. type: Plain text
4780 #: build/C/man2/fcntl.2:350
4781 msgid ""
4782 "On input to this call, I<lock> describes a lock we would like to place on "
4783 "the file.  If the lock could be placed, B<fcntl>()  does not actually place "
4784 "it, but returns B<F_UNLCK> in the I<l_type> field of I<lock> and leaves the "
4785 "other fields of the structure unchanged.  If one or more incompatible locks "
4786 "would prevent this lock being placed, then B<fcntl>()  returns details about "
4787 "one of these locks in the I<l_type>, I<l_whence>, I<l_start>, and I<l_len> "
4788 "fields of I<lock> and sets I<l_pid> to be the PID of the process holding "
4789 "that lock."
4790 msgstr ""
4791
4792 #. type: Plain text
4793 #: build/C/man2/fcntl.2:358
4794 msgid ""
4795 "In order to place a read lock, I<fd> must be open for reading.  In order to "
4796 "place a write lock, I<fd> must be open for writing.  To place both types of "
4797 "lock, open a file read-write."
4798 msgstr ""
4799
4800 #.  (Additional file descriptors referring to the same file
4801 #.  may have been obtained by calls to
4802 #.  .BR open "(2), " dup "(2), " dup2 "(2), or " fcntl ().)
4803 #. type: Plain text
4804 #: build/C/man2/fcntl.2:375
4805 msgid ""
4806 "As well as being removed by an explicit B<F_UNLCK>, record locks are "
4807 "automatically released when the process terminates or if it closes I<any> "
4808 "file descriptor referring to a file on which locks are held.  This is bad: "
4809 "it means that a process can lose the locks on a file like I</etc/passwd> or "
4810 "I</etc/mtab> when for some reason a library function decides to open, read "
4811 "and close it."
4812 msgstr ""
4813
4814 #. type: Plain text
4815 #: build/C/man2/fcntl.2:380
4816 msgid ""
4817 "Record locks are not inherited by a child created via B<fork>(2), but are "
4818 "preserved across an B<execve>(2)."
4819 msgstr ""
4820
4821 #. type: Plain text
4822 #: build/C/man2/fcntl.2:389
4823 msgid ""
4824 "Because of the buffering performed by the B<stdio>(3)  library, the use of "
4825 "record locking with routines in that package should be avoided; use "
4826 "B<read>(2)  and B<write>(2)  instead."
4827 msgstr ""
4828
4829 #. type: SS
4830 #: build/C/man2/fcntl.2:389
4831 #, no-wrap
4832 msgid "Mandatory locking"
4833 msgstr ""
4834
4835 #. type: Plain text
4836 #: build/C/man2/fcntl.2:393
4837 msgid ""
4838 "(Non-POSIX.)  The above record locks may be either advisory or mandatory, "
4839 "and are advisory by default."
4840 msgstr ""
4841
4842 #. type: Plain text
4843 #: build/C/man2/fcntl.2:396
4844 msgid ""
4845 "Advisory locks are not enforced and are useful only between cooperating "
4846 "processes."
4847 msgstr ""
4848
4849 #. type: Plain text
4850 #: build/C/man2/fcntl.2:415
4851 msgid ""
4852 "Mandatory locks are enforced for all processes.  If a process tries to "
4853 "perform an incompatible access (e.g., B<read>(2)  or B<write>(2))  on a file "
4854 "region that has an incompatible mandatory lock, then the result depends upon "
4855 "whether the B<O_NONBLOCK> flag is enabled for its open file description.  If "
4856 "the B<O_NONBLOCK> flag is not enabled, then system call is blocked until the "
4857 "lock is removed or converted to a mode that is compatible with the access.  "
4858 "If the B<O_NONBLOCK> flag is enabled, then the system call fails with the "
4859 "error B<EAGAIN>."
4860 msgstr ""
4861
4862 #. type: Plain text
4863 #: build/C/man2/fcntl.2:432
4864 msgid ""
4865 "To make use of mandatory locks, mandatory locking must be enabled both on "
4866 "the file system that contains the file to be locked, and on the file "
4867 "itself.  Mandatory locking is enabled on a file system using the \"-o mand\" "
4868 "option to B<mount>(8), or the B<MS_MANDLOCK> flag for B<mount>(2).  "
4869 "Mandatory locking is enabled on a file by disabling group execute permission "
4870 "on the file and enabling the set-group-ID permission bit (see B<chmod>(1)  "
4871 "and B<chmod>(2))."
4872 msgstr ""
4873
4874 #. type: Plain text
4875 #: build/C/man2/fcntl.2:435
4876 msgid ""
4877 "The Linux implementation of mandatory locking is unreliable.  See BUGS "
4878 "below."
4879 msgstr ""
4880
4881 #. type: SS
4882 #: build/C/man2/fcntl.2:435
4883 #, no-wrap
4884 msgid "Managing signals"
4885 msgstr ""
4886
4887 #. type: Plain text
4888 #: build/C/man2/fcntl.2:444
4889 msgid ""
4890 "B<F_GETOWN>, B<F_SETOWN>, B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG> and "
4891 "B<F_SETSIG> are used to manage I/O availability signals:"
4892 msgstr ""
4893
4894 #. type: TP
4895 #: build/C/man2/fcntl.2:444
4896 #, no-wrap
4897 msgid "B<F_GETOWN> (I<void>)"
4898 msgstr ""
4899
4900 #. type: Plain text
4901 #: build/C/man2/fcntl.2:457
4902 msgid ""
4903 "Return (as the function result)  the process ID or process group currently "
4904 "receiving B<SIGIO> and B<SIGURG> signals for events on file descriptor "
4905 "I<fd>.  Process IDs are returned as positive values; process group IDs are "
4906 "returned as negative values (but see BUGS below).  I<arg> is ignored."
4907 msgstr ""
4908
4909 #. type: TP
4910 #: build/C/man2/fcntl.2:457
4911 #, no-wrap
4912 msgid "B<F_SETOWN> (I<long>)"
4913 msgstr ""
4914
4915 #. type: Plain text
4916 #: build/C/man2/fcntl.2:474
4917 msgid ""
4918 "Set the process ID or process group ID that will receive B<SIGIO> and "
4919 "B<SIGURG> signals for events on file descriptor I<fd> to the ID given in "
4920 "I<arg>.  A process ID is specified as a positive value; a process group ID "
4921 "is specified as a negative value.  Most commonly, the calling process "
4922 "specifies itself as the owner (that is, I<arg> is specified as "
4923 "B<getpid>(2))."
4924 msgstr ""
4925
4926 #.  From glibc.info:
4927 #. type: Plain text
4928 #: build/C/man2/fcntl.2:491
4929 msgid ""
4930 "If you set the B<O_ASYNC> status flag on a file descriptor by using the "
4931 "B<F_SETFL> command of B<fcntl>(), a B<SIGIO> signal is sent whenever input "
4932 "or output becomes possible on that file descriptor.  B<F_SETSIG> can be used "
4933 "to obtain delivery of a signal other than B<SIGIO>.  If this permission "
4934 "check fails, then the signal is silently discarded."
4935 msgstr ""
4936
4937 #. type: Plain text
4938 #: build/C/man2/fcntl.2:499
4939 msgid ""
4940 "Sending a signal to the owner process (group) specified by B<F_SETOWN> is "
4941 "subject to the same permissions checks as are described for B<kill>(2), "
4942 "where the sending process is the one that employs B<F_SETOWN> (but see BUGS "
4943 "below)."
4944 msgstr ""
4945
4946 #.  The following appears to be rubbish.  It doesn't seem to
4947 #.  be true according to the kernel source, and I can write
4948 #.  a program that gets a terminal-generated SIGIO even though
4949 #.  it is not the foreground process group of the terminal.
4950 #.  -- MTK, 8 Apr 05
4951 #
4952 #.  If the file descriptor
4953 #.  .I fd
4954 #.  refers to a terminal device, then SIGIO
4955 #.  signals are sent to the foreground process group of the terminal.
4956 #. type: Plain text
4957 #: build/C/man2/fcntl.2:523
4958 msgid ""
4959 "If the file descriptor I<fd> refers to a socket, B<F_SETOWN> also selects "
4960 "the recipient of B<SIGURG> signals that are delivered when out-of-band data "
4961 "arrives on that socket.  (B<SIGURG> is sent in any situation where "
4962 "B<select>(2)  would report the socket as having an \"exceptional "
4963 "condition\".)"
4964 msgstr ""
4965
4966 #. type: Plain text
4967 #: build/C/man2/fcntl.2:526
4968 msgid "The following was true in 2.6.x kernels up to and including kernel 2.6.11:"
4969 msgstr ""
4970
4971 #.  The relevant place in the (2.6) kernel source is the
4972 #.  'switch' in fs/fcntl.c::send_sigio_to_task() -- MTK, Apr 2005
4973 #.  send_sigurg()/send_sigurg_to_task() bypasses
4974 #.  kill_fasync()/send_sigio()/send_sigio_to_task()
4975 #.  to directly call send_group_sig_info()
4976 #.      -- MTK, Apr 2005 (kernel 2.6.11)
4977 #. type: Plain text
4978 #: build/C/man2/fcntl.2:566
4979 msgid ""
4980 "If a nonzero value is given to B<F_SETSIG> in a multithreaded process "
4981 "running with a threading library that supports thread groups (e.g., NPTL), "
4982 "then a positive value given to B<F_SETOWN> has a different meaning: instead "
4983 "of being a process ID identifying a whole process, it is a thread ID "
4984 "identifying a specific thread within a process.  Consequently, it may be "
4985 "necessary to pass B<F_SETOWN> the result of B<gettid>(2)  instead of "
4986 "B<getpid>(2)  to get sensible results when B<F_SETSIG> is used.  (In current "
4987 "Linux threading implementations, a main thread's thread ID is the same as "
4988 "its process ID.  This means that a single-threaded program can equally use "
4989 "B<gettid>(2)  or B<getpid>(2)  in this scenario.)  Note, however, that the "
4990 "statements in this paragraph do not apply to the B<SIGURG> signal generated "
4991 "for out-of-band data on a socket: this signal is always sent to either a "
4992 "process or a process group, depending on the value given to B<F_SETOWN>."
4993 msgstr ""
4994
4995 #. type: Plain text
4996 #: build/C/man2/fcntl.2:577
4997 msgid ""
4998 "The above behavior was accidentally dropped in Linux 2.6.12, and won't be "
4999 "restored.  From Linux 2.6.32 onward, use B<F_SETOWN_EX> to target B<SIGIO> "
5000 "and B<SIGURG> signals at a particular thread."
5001 msgstr ""
5002
5003 #. type: TP
5004 #: build/C/man2/fcntl.2:577
5005 #, no-wrap
5006 msgid "B<F_GETOWN_EX> (struct f_owner_ex *) (since Linux 2.6.32)"
5007 msgstr ""
5008
5009 #. type: Plain text
5010 #: build/C/man2/fcntl.2:586
5011 msgid ""
5012 "Return the current file descriptor owner settings as defined by a previous "
5013 "B<F_SETOWN_EX> operation.  The information is returned in the structure "
5014 "pointed to by I<arg>, which has the following form:"
5015 msgstr ""
5016
5017 #. type: Plain text
5018 #: build/C/man2/fcntl.2:593
5019 #, no-wrap
5020 msgid ""
5021 "struct f_owner_ex {\n"
5022 "    int   type;\n"
5023 "    pid_t pid;\n"
5024 "};\n"
5025 msgstr ""
5026
5027 #. type: Plain text
5028 #: build/C/man2/fcntl.2:610
5029 msgid ""
5030 "The I<type> field will have one of the values B<F_OWNER_TID>, "
5031 "B<F_OWNER_PID>, or B<F_OWNER_PGRP>.  The I<pid> field is a positive integer "
5032 "representing a thread ID, process ID, or process group ID.  See "
5033 "B<F_SETOWN_EX> for more details."
5034 msgstr ""
5035
5036 #. type: TP
5037 #: build/C/man2/fcntl.2:610
5038 #, no-wrap
5039 msgid "B<F_SETOWN_EX> (struct f_owner_ex *) (since Linux 2.6.32)"
5040 msgstr ""
5041
5042 #. type: Plain text
5043 #: build/C/man2/fcntl.2:626
5044 msgid ""
5045 "This operation performs a similar task to B<F_SETOWN>.  It allows the caller "
5046 "to direct I/O availability signals to a specific thread, process, or process "
5047 "group.  The caller specifies the target of signals via I<arg>, which is a "
5048 "pointer to a I<f_owner_ex> structure.  The I<type> field has one of the "
5049 "following values, which define how I<pid> is interpreted:"
5050 msgstr ""
5051
5052 #. type: TP
5053 #: build/C/man2/fcntl.2:627
5054 #, no-wrap
5055 msgid "B<F_OWNER_TID>"
5056 msgstr ""
5057
5058 #. type: Plain text
5059 #: build/C/man2/fcntl.2:636
5060 msgid ""
5061 "Send the signal to the thread whose thread ID (the value returned by a call "
5062 "to B<clone>(2)  or B<gettid>(2))  is specified in I<pid>."
5063 msgstr ""
5064
5065 #. type: TP
5066 #: build/C/man2/fcntl.2:636
5067 #, no-wrap
5068 msgid "B<F_OWNER_PID>"
5069 msgstr ""
5070
5071 #. type: Plain text
5072 #: build/C/man2/fcntl.2:641
5073 msgid "Send the signal to the process whose ID is specified in I<pid>."
5074 msgstr ""
5075
5076 #. type: TP
5077 #: build/C/man2/fcntl.2:641
5078 #, no-wrap
5079 msgid "B<F_OWNER_PGRP>"
5080 msgstr ""
5081
5082 #. type: Plain text
5083 #: build/C/man2/fcntl.2:649
5084 msgid ""
5085 "Send the signal to the process group whose ID is specified in I<pid>.  (Note "
5086 "that, unlike with B<F_SETOWN>, a process group ID is specified as a positive "
5087 "value here.)"
5088 msgstr ""
5089
5090 #. type: TP
5091 #: build/C/man2/fcntl.2:650
5092 #, no-wrap
5093 msgid "B<F_GETSIG> (I<void>)"
5094 msgstr ""
5095
5096 #. type: Plain text
5097 #: build/C/man2/fcntl.2:665
5098 msgid ""
5099 "Return (as the function result)  the signal sent when input or output "
5100 "becomes possible.  A value of zero means B<SIGIO> is sent.  Any other value "
5101 "(including B<SIGIO>)  is the signal sent instead, and in this case "
5102 "additional info is available to the signal handler if installed with "
5103 "B<SA_SIGINFO>.  I<arg> is ignored."
5104 msgstr ""
5105
5106 #. type: TP
5107 #: build/C/man2/fcntl.2:665
5108 #, no-wrap
5109 msgid "B<F_SETSIG> (I<long>)"
5110 msgstr ""
5111
5112 #
5113 #.  The following was true only up until 2.6.11:
5114 #
5115 #.  Additionally, passing a nonzero value to
5116 #.  .B F_SETSIG
5117 #.  changes the signal recipient from a whole process to a specific thread
5118 #.  within a process.
5119 #.  See the description of
5120 #.  .B F_SETOWN
5121 #.  for more details.
5122 #. type: Plain text
5123 #: build/C/man2/fcntl.2:688
5124 msgid ""
5125 "Set the signal sent when input or output becomes possible to the value given "
5126 "in I<arg>.  A value of zero means to send the default B<SIGIO> signal.  Any "
5127 "other value (including B<SIGIO>)  is the signal to send instead, and in this "
5128 "case additional info is available to the signal handler if installed with "
5129 "B<SA_SIGINFO>."
5130 msgstr ""
5131
5132 #. type: Plain text
5133 #: build/C/man2/fcntl.2:716
5134 msgid ""
5135 "By using B<F_SETSIG> with a nonzero value, and setting B<SA_SIGINFO> for the "
5136 "signal handler (see B<sigaction>(2)), extra information about I/O events is "
5137 "passed to the handler in a I<siginfo_t> structure.  If the I<si_code> field "
5138 "indicates the source is B<SI_SIGIO>, the I<si_fd> field gives the file "
5139 "descriptor associated with the event.  Otherwise, there is no indication "
5140 "which file descriptors are pending, and you should use the usual mechanisms "
5141 "(B<select>(2), B<poll>(2), B<read>(2)  with B<O_NONBLOCK> set etc.) to "
5142 "determine which file descriptors are available for I/O."
5143 msgstr ""
5144
5145 #. type: Plain text
5146 #: build/C/man2/fcntl.2:725
5147 msgid ""
5148 "By selecting a real time signal (value E<gt>= B<SIGRTMIN>), multiple I/O "
5149 "events may be queued using the same signal numbers.  (Queuing is dependent "
5150 "on available memory).  Extra information is available if B<SA_SIGINFO> is "
5151 "set for the signal handler, as above."
5152 msgstr ""
5153
5154 #.  See fs/fcntl.c::send_sigio_to_task() (2.4/2.6) sources -- MTK, Apr 05
5155 #. type: Plain text
5156 #: build/C/man2/fcntl.2:738
5157 msgid ""
5158 "Note that Linux imposes a limit on the number of real-time signals that may "
5159 "be queued to a process (see B<getrlimit>(2)  and B<signal>(7))  and if this "
5160 "limit is reached, then the kernel reverts to delivering B<SIGIO>, and this "
5161 "signal is delivered to the entire process rather than to a specific thread."
5162 msgstr ""
5163
5164 #. type: Plain text
5165 #: build/C/man2/fcntl.2:745
5166 msgid ""
5167 "Using these mechanisms, a program can implement fully asynchronous I/O "
5168 "without using B<select>(2)  or B<poll>(2)  most of the time."
5169 msgstr ""
5170
5171 #. type: Plain text
5172 #: build/C/man2/fcntl.2:761
5173 msgid ""
5174 "The use of B<O_ASYNC>, B<F_GETOWN>, B<F_SETOWN> is specific to BSD and "
5175 "Linux.  B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_GETSIG>, and B<F_SETSIG> are "
5176 "Linux-specific.  POSIX has asynchronous I/O and the I<aio_sigevent> "
5177 "structure to achieve similar things; these are also available in Linux as "
5178 "part of the GNU C Library (Glibc)."
5179 msgstr ""
5180
5181 #. type: SS
5182 #: build/C/man2/fcntl.2:761
5183 #, no-wrap
5184 msgid "Leases"
5185 msgstr ""
5186
5187 #. type: Plain text
5188 #: build/C/man2/fcntl.2:776
5189 msgid ""
5190 "B<F_SETLEASE> and B<F_GETLEASE> (Linux 2.4 onward) are used (respectively) "
5191 "to establish a new lease, and retrieve the current lease, on the open file "
5192 "description referred to by the file descriptor I<fd>.  A file lease provides "
5193 "a mechanism whereby the process holding the lease (the \"lease holder\") is "
5194 "notified (via delivery of a signal)  when a process (the \"lease breaker\") "
5195 "tries to B<open>(2)  or B<truncate>(2)  the file referred to by that file "
5196 "descriptor."
5197 msgstr ""
5198
5199 #. type: TP
5200 #: build/C/man2/fcntl.2:776
5201 #, no-wrap
5202 msgid "B<F_SETLEASE> (I<long>)"
5203 msgstr ""
5204
5205 #. type: Plain text
5206 #: build/C/man2/fcntl.2:781
5207 msgid ""
5208 "Set or remove a file lease according to which of the following values is "
5209 "specified in the integer I<arg>:"
5210 msgstr ""
5211
5212 #. type: TP
5213 #: build/C/man2/fcntl.2:782
5214 #, no-wrap
5215 msgid "B<F_RDLCK>"
5216 msgstr ""
5217
5218 #.  The following became true in kernel 2.6.10:
5219 #.  See the man-pages-2.09 Changelog for further info.
5220 #. type: Plain text
5221 #: build/C/man2/fcntl.2:791
5222 msgid ""
5223 "Take out a read lease.  This will cause the calling process to be notified "
5224 "when the file is opened for writing or is truncated.  A read lease can only "
5225 "be placed on a file descriptor that is opened read-only."
5226 msgstr ""
5227
5228 #. type: TP
5229 #: build/C/man2/fcntl.2:791
5230 #, no-wrap
5231 msgid "B<F_WRLCK>"
5232 msgstr ""
5233
5234 #. type: Plain text
5235 #: build/C/man2/fcntl.2:798
5236 msgid ""
5237 "Take out a write lease.  This will cause the caller to be notified when the "
5238 "file is opened for reading or writing or is truncated.  A write lease may be "
5239 "placed on a file only if there are no other open file descriptors for the "
5240 "file."
5241 msgstr ""
5242
5243 #. type: TP
5244 #: build/C/man2/fcntl.2:798
5245 #, no-wrap
5246 msgid "B<F_UNLCK>"
5247 msgstr ""
5248
5249 #. type: Plain text
5250 #: build/C/man2/fcntl.2:801
5251 msgid "Remove our lease from the file."
5252 msgstr ""
5253
5254 #. type: Plain text
5255 #: build/C/man2/fcntl.2:815
5256 msgid ""
5257 "Leases are associated with an open file description (see B<open>(2)).  This "
5258 "means that duplicate file descriptors (created by, for example, B<fork>(2)  "
5259 "or B<dup>(2))  refer to the same lease, and this lease may be modified or "
5260 "released using any of these descriptors.  Furthermore, the lease is released "
5261 "by either an explicit B<F_UNLCK> operation on any of these duplicate "
5262 "descriptors, or when all such descriptors have been closed."
5263 msgstr ""
5264
5265 #. type: Plain text
5266 #: build/C/man2/fcntl.2:822
5267 msgid ""
5268 "Leases may only be taken out on regular files.  An unprivileged process may "
5269 "only take out a lease on a file whose UID (owner) matches the file system "
5270 "UID of the process.  A process with the B<CAP_LEASE> capability may take out "
5271 "leases on arbitrary files."
5272 msgstr ""
5273
5274 #. type: TP
5275 #: build/C/man2/fcntl.2:822
5276 #, no-wrap
5277 msgid "B<F_GETLEASE> (I<void>)"
5278 msgstr ""
5279
5280 #. type: Plain text
5281 #: build/C/man2/fcntl.2:831
5282 msgid ""
5283 "Indicates what type of lease is associated with the file descriptor I<fd> by "
5284 "returning either B<F_RDLCK>, B<F_WRLCK>, or B<F_UNLCK>, indicating, "
5285 "respectively, a read lease , a write lease, or no lease.  I<arg> is ignored."
5286 msgstr ""
5287
5288 #. type: Plain text
5289 #: build/C/man2/fcntl.2:862
5290 msgid ""
5291 "When a process (the \"lease breaker\") performs an B<open>(2)  or "
5292 "B<truncate>(2)  that conflicts with a lease established via B<F_SETLEASE>, "
5293 "the system call is blocked by the kernel and the kernel notifies the lease "
5294 "holder by sending it a signal (B<SIGIO> by default).  The lease holder "
5295 "should respond to receipt of this signal by doing whatever cleanup is "
5296 "required in preparation for the file to be accessed by another process "
5297 "(e.g., flushing cached buffers) and then either remove or downgrade its "
5298 "lease.  A lease is removed by performing an B<F_SETLEASE> command specifying "
5299 "I<arg> as B<F_UNLCK>.  If the lease holder currently holds a write lease on "
5300 "the file, and the lease breaker is opening the file for reading, then it is "
5301 "sufficient for the lease holder to downgrade the lease to a read lease.  "
5302 "This is done by performing an B<F_SETLEASE> command specifying I<arg> as "
5303 "B<F_RDLCK>."
5304 msgstr ""
5305
5306 #. type: Plain text
5307 #: build/C/man2/fcntl.2:867
5308 msgid ""
5309 "If the lease holder fails to downgrade or remove the lease within the number "
5310 "of seconds specified in I</proc/sys/fs/lease-break-time> then the kernel "
5311 "forcibly removes or downgrades the lease holder's lease."
5312 msgstr ""
5313
5314 #. type: Plain text
5315 #: build/C/man2/fcntl.2:871
5316 msgid ""
5317 "Once the lease has been voluntarily or forcibly removed or downgraded, and "
5318 "assuming the lease breaker has not unblocked its system call, the kernel "
5319 "permits the lease breaker's system call to proceed."
5320 msgstr ""
5321
5322 #. type: Plain text
5323 #: build/C/man2/fcntl.2:892
5324 msgid ""
5325 "If the lease breaker's blocked B<open>(2)  or B<truncate>(2)  is interrupted "
5326 "by a signal handler, then the system call fails with the error B<EINTR>, but "
5327 "the other steps still occur as described above.  If the lease breaker is "
5328 "killed by a signal while blocked in B<open>(2)  or B<truncate>(2), then the "
5329 "other steps still occur as described above.  If the lease breaker specifies "
5330 "the B<O_NONBLOCK> flag when calling B<open>(2), then the call immediately "
5331 "fails with the error B<EWOULDBLOCK>, but the other steps still occur as "
5332 "described above."
5333 msgstr ""
5334
5335 #. type: Plain text
5336 #: build/C/man2/fcntl.2:913
5337 msgid ""
5338 "The default signal used to notify the lease holder is B<SIGIO>, but this can "
5339 "be changed using the B<F_SETSIG> command to B<fcntl>().  If a B<F_SETSIG> "
5340 "command is performed (even one specifying B<SIGIO>), and the signal handler "
5341 "is established using B<SA_SIGINFO>, then the handler will receive a "
5342 "I<siginfo_t> structure as its second argument, and the I<si_fd> field of "
5343 "this argument will hold the descriptor of the leased file that has been "
5344 "accessed by another process.  (This is useful if the caller holds leases "
5345 "against multiple files)."
5346 msgstr ""
5347
5348 #. type: SS
5349 #: build/C/man2/fcntl.2:913
5350 #, no-wrap
5351 msgid "File and directory change notification (dnotify)"
5352 msgstr ""
5353
5354 #. type: TP
5355 #: build/C/man2/fcntl.2:914
5356 #, no-wrap
5357 msgid "B<F_NOTIFY> (I<long>)"
5358 msgstr ""
5359
5360 #. type: Plain text
5361 #: build/C/man2/fcntl.2:924
5362 msgid ""
5363 "(Linux 2.4 onward)  Provide notification when the directory referred to by "
5364 "I<fd> or any of the files that it contains is changed.  The events to be "
5365 "notified are specified in I<arg>, which is a bit mask specified by ORing "
5366 "together zero or more of the following bits:"
5367 msgstr ""
5368
5369 #. type: TP
5370 #: build/C/man2/fcntl.2:927
5371 #, no-wrap
5372 msgid "B<DN_ACCESS>"
5373 msgstr ""
5374
5375 #. type: Plain text
5376 #: build/C/man2/fcntl.2:930
5377 msgid "A file was accessed (read, pread, readv)"
5378 msgstr ""
5379
5380 #. type: TP
5381 #: build/C/man2/fcntl.2:930
5382 #, no-wrap
5383 msgid "B<DN_MODIFY>"
5384 msgstr ""
5385
5386 #. type: Plain text
5387 #: build/C/man2/fcntl.2:933
5388 msgid "A file was modified (write, pwrite, writev, truncate, ftruncate)."
5389 msgstr ""
5390
5391 #. type: TP
5392 #: build/C/man2/fcntl.2:933
5393 #, no-wrap
5394 msgid "B<DN_CREATE>"
5395 msgstr ""
5396
5397 #. type: Plain text
5398 #: build/C/man2/fcntl.2:936
5399 msgid "A file was created (open, creat, mknod, mkdir, link, symlink, rename)."
5400 msgstr ""
5401
5402 #. type: TP
5403 #: build/C/man2/fcntl.2:936
5404 #, no-wrap
5405 msgid "B<DN_DELETE>"
5406 msgstr ""
5407
5408 #. type: Plain text
5409 #: build/C/man2/fcntl.2:939
5410 msgid "A file was unlinked (unlink, rename to another directory, rmdir)."
5411 msgstr ""
5412
5413 #. type: TP
5414 #: build/C/man2/fcntl.2:939
5415 #, no-wrap
5416 msgid "B<DN_RENAME>"
5417 msgstr ""
5418
5419 #. type: Plain text
5420 #: build/C/man2/fcntl.2:942
5421 msgid "A file was renamed within this directory (rename)."
5422 msgstr ""
5423
5424 #. type: TP
5425 #: build/C/man2/fcntl.2:942
5426 #, no-wrap
5427 msgid "B<DN_ATTRIB>"
5428 msgstr ""
5429
5430 #. type: Plain text
5431 #: build/C/man2/fcntl.2:945
5432 msgid "The attributes of a file were changed (chown, chmod, utime[s])."
5433 msgstr ""
5434
5435 #. type: Plain text
5436 #: build/C/man2/fcntl.2:953
5437 msgid ""
5438 "(In order to obtain these definitions, the B<_GNU_SOURCE> feature test macro "
5439 "must be defined before including I<any> header files.)"
5440 msgstr ""
5441
5442 #. type: Plain text
5443 #: build/C/man2/fcntl.2:961
5444 msgid ""
5445 "Directory notifications are normally \"one-shot\", and the application must "
5446 "reregister to receive further notifications.  Alternatively, if "
5447 "B<DN_MULTISHOT> is included in I<arg>, then notification will remain in "
5448 "effect until explicitly removed."
5449 msgstr ""
5450
5451 #.  The following does seem a poor API-design choice...
5452 #. type: Plain text
5453 #: build/C/man2/fcntl.2:973
5454 msgid ""
5455 "A series of B<F_NOTIFY> requests is cumulative, with the events in I<arg> "
5456 "being added to the set already monitored.  To disable notification of all "
5457 "events, make an B<F_NOTIFY> call specifying I<arg> as 0."
5458 msgstr ""
5459
5460 #. type: Plain text
5461 #: build/C/man2/fcntl.2:991
5462 msgid ""
5463 "Notification occurs via delivery of a signal.  The default signal is "
5464 "B<SIGIO>, but this can be changed using the B<F_SETSIG> command to "
5465 "B<fcntl>().  In the latter case, the signal handler receives a I<siginfo_t> "
5466 "structure as its second argument (if the handler was established using "
5467 "B<SA_SIGINFO>)  and the I<si_fd> field of this structure contains the file "
5468 "descriptor which generated the notification (useful when establishing "
5469 "notification on multiple directories)."
5470 msgstr ""
5471
5472 #. type: Plain text
5473 #: build/C/man2/fcntl.2:996
5474 msgid ""
5475 "Especially when using B<DN_MULTISHOT>, a real time signal should be used for "
5476 "notification, so that multiple notifications can be queued."
5477 msgstr ""
5478
5479 #. type: Plain text
5480 #: build/C/man2/fcntl.2:1005
5481 msgid ""
5482 "B<NOTE:> New applications should use the I<inotify> interface (available "
5483 "since kernel 2.6.13), which provides a much superior interface for obtaining "
5484 "notifications of file system events.  See B<inotify>(7)."
5485 msgstr ""
5486
5487 #. type: SS
5488 #: build/C/man2/fcntl.2:1005
5489 #, no-wrap
5490 msgid "Changing the capacity of a pipe"
5491 msgstr ""
5492
5493 #. type: TP
5494 #: build/C/man2/fcntl.2:1006
5495 #, no-wrap
5496 msgid "B<F_SETPIPE_SZ> (I<long>; since Linux 2.6.35)"
5497 msgstr ""
5498
5499 #. type: Plain text
5500 #: build/C/man2/fcntl.2:1037
5501 msgid ""
5502 "Change the capacity of the pipe referred to by I<fd> to be at least I<arg> "
5503 "bytes.  An unprivileged process can adjust the pipe capacity to any value "
5504 "between the system page size and the limit defined in "
5505 "I</proc/sys/fs/pipe-max-size> (see B<proc>(5)).  Attempts to set the pipe "
5506 "capacity below the page size are silently rounded up to the page size.  "
5507 "Attempts by an unprivileged process to set the pipe capacity above the limit "
5508 "in I</proc/sys/fs/pipe-max-size> yield the error B<EPERM>; a privileged "
5509 "process (B<CAP_SYS_RESOURCE>)  can override the limit.  When allocating the "
5510 "buffer for the pipe, the kernel may use a capacity larger than I<arg>, if "
5511 "that is convenient for the implementation.  The B<F_GETPIPE_SZ> operation "
5512 "returns the actual size used.  Attempting to set the pipe capacity smaller "
5513 "than the amount of buffer space currently used to store data produces the "
5514 "error B<EBUSY>."
5515 msgstr ""
5516
5517 #. type: TP
5518 #: build/C/man2/fcntl.2:1037
5519 #, no-wrap
5520 msgid "B<F_GETPIPE_SZ> (I<void>; since Linux 2.6.35)"
5521 msgstr ""
5522
5523 #. type: Plain text
5524 #: build/C/man2/fcntl.2:1041
5525 msgid ""
5526 "Return (as the function result) the capacity of the pipe referred to by "
5527 "I<fd>."
5528 msgstr ""
5529
5530 #. type: Plain text
5531 #: build/C/man2/fcntl.2:1043
5532 msgid "For a successful call, the return value depends on the operation:"
5533 msgstr ""
5534
5535 #. type: TP
5536 #: build/C/man2/fcntl.2:1043
5537 #, no-wrap
5538 msgid "B<F_DUPFD>"
5539 msgstr ""
5540
5541 #. type: Plain text
5542 #: build/C/man2/fcntl.2:1046
5543 msgid "The new descriptor."
5544 msgstr ""
5545
5546 #. type: TP
5547 #: build/C/man2/fcntl.2:1046
5548 #, no-wrap
5549 msgid "B<F_GETFD>"
5550 msgstr ""
5551
5552 #. type: Plain text
5553 #: build/C/man2/fcntl.2:1049
5554 msgid "Value of file descriptor flags."
5555 msgstr ""
5556
5557 #. type: TP
5558 #: build/C/man2/fcntl.2:1049
5559 #, no-wrap
5560 msgid "B<F_GETFL>"
5561 msgstr ""
5562
5563 #. type: Plain text
5564 #: build/C/man2/fcntl.2:1052
5565 msgid "Value of file status flags."
5566 msgstr ""
5567
5568 #. type: TP
5569 #: build/C/man2/fcntl.2:1052
5570 #, no-wrap
5571 msgid "B<F_GETLEASE>"
5572 msgstr ""
5573
5574 #. type: Plain text
5575 #: build/C/man2/fcntl.2:1055
5576 msgid "Type of lease held on file descriptor."
5577 msgstr ""
5578
5579 #. type: TP
5580 #: build/C/man2/fcntl.2:1055
5581 #, no-wrap
5582 msgid "B<F_GETOWN>"
5583 msgstr ""
5584
5585 #. type: Plain text
5586 #: build/C/man2/fcntl.2:1058
5587 msgid "Value of descriptor owner."
5588 msgstr ""
5589
5590 #. type: TP
5591 #: build/C/man2/fcntl.2:1058
5592 #, no-wrap
5593 msgid "B<F_GETSIG>"
5594 msgstr ""
5595
5596 #. type: Plain text
5597 #: build/C/man2/fcntl.2:1064
5598 msgid ""
5599 "Value of signal sent when read or write becomes possible, or zero for "
5600 "traditional B<SIGIO> behavior."
5601 msgstr ""
5602
5603 #. type: TP
5604 #: build/C/man2/fcntl.2:1064
5605 #, no-wrap
5606 msgid "B<F_GETPIPE_SZ>"
5607 msgstr ""
5608
5609 #. type: Plain text
5610 #: build/C/man2/fcntl.2:1067
5611 msgid "The pipe capacity."
5612 msgstr ""
5613
5614 #. type: TP
5615 #: build/C/man2/fcntl.2:1067
5616 #, no-wrap
5617 msgid "All other commands"
5618 msgstr ""
5619
5620 #. type: Plain text
5621 #: build/C/man2/fcntl.2:1070
5622 msgid "Zero."
5623 msgstr ""
5624
5625 #. type: Plain text
5626 #: build/C/man2/fcntl.2:1074
5627 msgid "On error, -1 is returned, and I<errno> is set appropriately."
5628 msgstr ""
5629
5630 #. type: TP
5631 #: build/C/man2/fcntl.2:1075 build/C/man3/lockf.3:116
5632 #, no-wrap
5633 msgid "B<EACCES> or B<EAGAIN>"
5634 msgstr ""
5635
5636 #. type: Plain text
5637 #: build/C/man2/fcntl.2:1078
5638 msgid "Operation is prohibited by locks held by other processes."
5639 msgstr ""
5640
5641 #. type: TP
5642 #: build/C/man2/fcntl.2:1078 build/C/man2/fork.2:168 build/C/man2/fork.2:173
5643 #, no-wrap
5644 msgid "B<EAGAIN>"
5645 msgstr ""
5646
5647 #. type: Plain text
5648 #: build/C/man2/fcntl.2:1082
5649 msgid ""
5650 "The operation is prohibited because the file has been memory-mapped by "
5651 "another process."
5652 msgstr ""
5653
5654 #. type: Plain text
5655 #: build/C/man2/fcntl.2:1091
5656 msgid ""
5657 "I<fd> is not an open file descriptor, or the command was B<F_SETLK> or "
5658 "B<F_SETLKW> and the file descriptor open mode doesn't match with the type of "
5659 "lock requested."
5660 msgstr ""
5661
5662 #. type: TP
5663 #: build/C/man2/fcntl.2:1091 build/C/man3/lockf.3:136
5664 #, no-wrap
5665 msgid "B<EDEADLK>"
5666 msgstr ""
5667
5668 #. type: Plain text
5669 #: build/C/man2/fcntl.2:1096
5670 msgid ""
5671 "It was detected that the specified B<F_SETLKW> command would cause a "
5672 "deadlock."
5673 msgstr ""
5674
5675 #. type: Plain text
5676 #: build/C/man2/fcntl.2:1100
5677 msgid "I<lock> is outside your accessible address space."
5678 msgstr ""
5679
5680 #. type: Plain text
5681 #: build/C/man2/fcntl.2:1112
5682 msgid ""
5683 "For B<F_SETLKW>, the command was interrupted by a signal; see B<signal>(7).  "
5684 "For B<F_GETLK> and B<F_SETLK>, the command was interrupted by a signal "
5685 "before the lock was checked or acquired.  Most likely when locking a remote "
5686 "file (e.g., locking over NFS), but can sometimes happen locally."
5687 msgstr ""
5688
5689 #. type: Plain text
5690 #: build/C/man2/fcntl.2:1122
5691 msgid ""
5692 "For B<F_DUPFD>, I<arg> is negative or is greater than the maximum allowable "
5693 "value.  For B<F_SETSIG>, I<arg> is not an allowable signal number."
5694 msgstr ""
5695
5696 #. type: Plain text
5697 #: build/C/man2/fcntl.2:1127
5698 msgid ""
5699 "For B<F_DUPFD>, the process already has the maximum number of file "
5700 "descriptors open."
5701 msgstr ""
5702
5703 #. type: TP
5704 #: build/C/man2/fcntl.2:1127 build/C/man2/flock.2:129 build/C/man3/lockf.3:145
5705 #, no-wrap
5706 msgid "B<ENOLCK>"
5707 msgstr ""
5708
5709 #. type: Plain text
5710 #: build/C/man2/fcntl.2:1131
5711 msgid ""
5712 "Too many segment locks open, lock table is full, or a remote locking "
5713 "protocol failed (e.g., locking over NFS)."
5714 msgstr ""
5715
5716 #. type: Plain text
5717 #: build/C/man2/fcntl.2:1136
5718 msgid ""
5719 "Attempted to clear the B<O_APPEND> flag on a file that has the append-only "
5720 "attribute set."
5721 msgstr ""
5722
5723 #. type: Plain text
5724 #: build/C/man2/fcntl.2:1149
5725 msgid ""
5726 "SVr4, 4.3BSD, POSIX.1-2001.  Only the operations B<F_DUPFD>, B<F_GETFD>, "
5727 "B<F_SETFD>, B<F_GETFL>, B<F_SETFL>, B<F_GETLK>, B<F_SETLK> and B<F_SETLKW>, "
5728 "are specified in POSIX.1-2001."
5729 msgstr ""
5730
5731 #. type: Plain text
5732 #: build/C/man2/fcntl.2:1161
5733 msgid ""
5734 "B<F_GETOWN> and B<F_SETOWN> are specified in POSIX.1-2001.  (To get their "
5735 "definitions, define B<BSD_SOURCE>, or B<_XOPEN_SOURCE> with the value 500 or "
5736 "greater, or define B<_POSIX_C_SOURCE> with the value 200809L or greater.)"
5737 msgstr ""
5738
5739 #. type: Plain text
5740 #: build/C/man2/fcntl.2:1169
5741 msgid ""
5742 "B<F_DUPFD_CLOEXEC> is specified in POSIX.1-2008.  (To get this definition, "
5743 "define B<_POSIX_C_SOURCE> with the value 200809L or greater, or "
5744 "B<_XOPEN_SOURCE> with the value 700 or greater.)"
5745 msgstr ""
5746
5747 #.  .PP
5748 #.  SVr4 documents additional EIO, ENOLINK and EOVERFLOW error conditions.
5749 #. type: Plain text
5750 #: build/C/man2/fcntl.2:1186
5751 msgid ""
5752 "B<F_GETOWN_EX>, B<F_SETOWN_EX>, B<F_SETPIPE_SZ>, B<F_GETPIPE_SZ>, "
5753 "B<F_GETSIG>, B<F_SETSIG>, B<F_NOTIFY>, B<F_GETLEASE>, and B<F_SETLEASE> are "
5754 "Linux-specific.  (Define the B<_GNU_SOURCE> macro to obtain these "
5755 "definitions.)"
5756 msgstr ""
5757
5758 #. type: Plain text
5759 #: build/C/man2/fcntl.2:1207
5760 msgid ""
5761 "The original Linux B<fcntl>()  system call was not designed to handle large "
5762 "file offsets (in the I<flock> structure).  Consequently, an B<fcntl64>()  "
5763 "system call was added in Linux 2.4.  The newer system call employs a "
5764 "different structure for file locking, I<flock64>, and corresponding "
5765 "commands, B<F_GETLK64>, B<F_SETLK64>, and B<F_SETLKW64>.  However, these "
5766 "details can be ignored by applications using glibc, whose B<fcntl>()  "
5767 "wrapper function transparently employs the more recent system call where it "
5768 "is available."
5769 msgstr ""
5770
5771 #. type: Plain text
5772 #: build/C/man2/fcntl.2:1212
5773 msgid ""
5774 "The errors returned by B<dup2>(2)  are different from those returned by "
5775 "B<F_DUPFD>."
5776 msgstr ""
5777
5778 #. type: Plain text
5779 #: build/C/man2/fcntl.2:1218
5780 msgid ""
5781 "Since kernel 2.0, there is no interaction between the types of lock placed "
5782 "by B<flock>(2)  and B<fcntl>()."
5783 msgstr ""
5784
5785 #.  e.g., Solaris 8 documents this field in fcntl(2), and Irix 6.5
5786 #.  documents it in fcntl(5).  mtk, May 2007
5787 #. type: Plain text
5788 #: build/C/man2/fcntl.2:1229
5789 msgid ""
5790 "Several systems have more fields in I<struct flock> such as, for example, "
5791 "I<l_sysid>.  Clearly, I<l_pid> alone is not going to be very useful if the "
5792 "process holding the lock may live on a different machine."
5793 msgstr ""
5794
5795 #.  glibc source: sysdeps/unix/sysv/linux/i386/sysdep.h
5796 #.  mtk, Dec 04: some limited testing on alpha and ia64 seems to
5797 #.  indicate that ANY negative PGID value will cause F_GETOWN
5798 #.  to misinterpret the return as an error. Some other architectures
5799 #.  seem to have the same range check as i386.
5800 #. type: Plain text
5801 #: build/C/man2/fcntl.2:1255
5802 msgid ""
5803 "A limitation of the Linux system call conventions on some architectures "
5804 "(notably i386) means that if a (negative)  process group ID to be returned "
5805 "by B<F_GETOWN> falls in the range -1 to -4095, then the return value is "
5806 "wrongly interpreted by glibc as an error in the system call; that is, the "
5807 "return value of B<fcntl>()  will be -1, and I<errno> will contain the "
5808 "(positive) process group ID.  The Linux-specific B<F_GETOWN_EX> operation "
5809 "avoids this problem.  Since glibc version 2.11, glibc makes the kernel "
5810 "B<F_GETOWN> problem invisible by implementing B<F_GETOWN> using "
5811 "B<F_GETOWN_EX>."
5812 msgstr ""
5813
5814 #. type: Plain text
5815 #: build/C/man2/fcntl.2:1272
5816 msgid ""
5817 "In Linux 2.4 and earlier, there is bug that can occur when an unprivileged "
5818 "process uses B<F_SETOWN> to specify the owner of a socket file descriptor as "
5819 "a process (group) other than the caller.  In this case, B<fcntl>()  can "
5820 "return -1 with I<errno> set to B<EPERM>, even when the owner process (group) "
5821 "is one that the caller has permission to send signals to.  Despite this "
5822 "error return, the file descriptor owner is set, and signals will be sent to "
5823 "the owner."
5824 msgstr ""
5825
5826 #.  http://marc.info/?l=linux-kernel&m=119013491707153&w=2
5827 #. type: Plain text
5828 #: build/C/man2/fcntl.2:1287
5829 msgid ""
5830 "The implementation of mandatory locking in all known versions of Linux is "
5831 "subject to race conditions which render it unreliable: a B<write>(2)  call "
5832 "that overlaps with a lock may modify data after the mandatory lock is "
5833 "acquired; a B<read>(2)  call that overlaps with a lock may detect changes to "
5834 "data that were made only after a write lock was acquired.  Similar races "
5835 "exist between mandatory locks and B<mmap>(2).  It is therefore inadvisable "
5836 "to rely on mandatory locking."
5837 msgstr ""
5838
5839 #. type: Plain text
5840 #: build/C/man2/fcntl.2:1295
5841 msgid ""
5842 "B<dup2>(2), B<flock>(2), B<open>(2), B<socket>(2), B<lockf>(3), "
5843 "B<capabilities>(7), B<feature_test_macros>(7)"
5844 msgstr ""
5845
5846 #. type: Plain text
5847 #: build/C/man2/fcntl.2:1309
5848 msgid ""
5849 "See also I<locks.txt>, I<mandatory-locking.txt>, and I<dnotify.txt> in the "
5850 "kernel source directory I<Documentation/filesystems/>.  (On older kernels, "
5851 "these files are directly under the I<Documentation/> directory, and "
5852 "I<mandatory-locking.txt> is called I<mandatory.txt>.)"
5853 msgstr ""
5854
5855 #. type: TH
5856 #: build/C/man3/fexecve.3:25
5857 #, no-wrap
5858 msgid "FEXECVE"
5859 msgstr ""
5860
5861 #. type: TH
5862 #: build/C/man3/fexecve.3:25
5863 #, no-wrap
5864 msgid "2010-09-15"
5865 msgstr ""
5866
5867 #. type: Plain text
5868 #: build/C/man3/fexecve.3:28
5869 msgid "fexecve - execute program specified via file descriptor"
5870 msgstr ""
5871
5872 #. type: Plain text
5873 #: build/C/man3/fexecve.3:33
5874 #, no-wrap
5875 msgid ""
5876 "B<int fexecve(int >I<fd>B<, char *const >I<argv>B<[], char *const "
5877 ">I<envp>B<[]);>\n"
5878 msgstr ""
5879
5880 #. type: Plain text
5881 #: build/C/man3/fexecve.3:41
5882 msgid "B<fexecve>():"
5883 msgstr ""
5884
5885 #. type: TP
5886 #: build/C/man3/fexecve.3:44
5887 #, no-wrap
5888 msgid "Since glibc 2.10:"
5889 msgstr ""
5890
5891 #. type: Plain text
5892 #: build/C/man3/fexecve.3:47
5893 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 700 || _POSIX_C_SOURCE\\ E<gt>=\\ 200809L"
5894 msgstr ""
5895
5896 #. type: TP
5897 #: build/C/man3/fexecve.3:47
5898 #, no-wrap
5899 msgid "Before glibc 2.10:"
5900 msgstr ""
5901
5902 #. type: Plain text
5903 #: build/C/man3/fexecve.3:50 build/C/man3/getcwd.3:52
5904 msgid "_GNU_SOURCE"
5905 msgstr ""
5906
5907 #.  POSIX.1-2008 specifies the O_EXEC flag for open as an alternative,
5908 #.  but Linux doesn't support this flag yet.
5909 #. type: Plain text
5910 #: build/C/man3/fexecve.3:67
5911 msgid ""
5912 "B<fexecve>()  performs the same task as B<execve>(2), with the difference "
5913 "that the file to be executed is specified via a file descriptor, I<fd>, "
5914 "rather than via a pathname.  The file descriptor I<fd> must be opened "
5915 "read-only, and the caller must have permission to execute the file that it "
5916 "refers to."
5917 msgstr ""
5918
5919 #. type: Plain text
5920 #: build/C/man3/fexecve.3:74
5921 msgid ""
5922 "A successful call to B<fexecve>()  never returns.  On error, the function "
5923 "returns, with a result value of -1, and I<errno> is set appropriately."
5924 msgstr ""
5925
5926 #. type: Plain text
5927 #: build/C/man3/fexecve.3:78
5928 msgid "Errors are as for B<execve>(2), with the following additions:"
5929 msgstr ""
5930
5931 #. type: Plain text
5932 #: build/C/man3/fexecve.3:86
5933 msgid ""
5934 "I<fd> is not a valid file descriptor, or I<argv> is NULL, or I<envp> is "
5935 "NULL."
5936 msgstr ""
5937
5938 #. type: Plain text
5939 #: build/C/man3/fexecve.3:91
5940 msgid "The I</proc> file system could not be accessed."
5941 msgstr ""
5942
5943 #. type: Plain text
5944 #: build/C/man3/fexecve.3:94
5945 msgid "B<fexecve>()  is implemented since glibc 2.3.2."
5946 msgstr ""
5947
5948 #. type: Plain text
5949 #: build/C/man3/fexecve.3:98
5950 msgid ""
5951 "POSIX.1-2008.  This function is not specified in POSIX.1-2001, and is not "
5952 "widely available on other systems."
5953 msgstr ""
5954
5955 #. type: Plain text
5956 #: build/C/man3/fexecve.3:106
5957 msgid ""
5958 "On Linux, B<fexecve>()  is implemented using the B<proc>(5)  file system, so "
5959 "I</proc> needs to be mounted and available at the time of the call."
5960 msgstr ""
5961
5962 #. type: Plain text
5963 #: build/C/man3/fexecve.3:108
5964 msgid "B<execve>(2)"
5965 msgstr ""
5966
5967 #. type: TH
5968 #: build/C/man2/flock.2:34
5969 #, no-wrap
5970 msgid "FLOCK"
5971 msgstr ""
5972
5973 #. type: Plain text
5974 #: build/C/man2/flock.2:37
5975 msgid "flock - apply or remove an advisory lock on an open file"
5976 msgstr ""
5977
5978 #. type: Plain text
5979 #: build/C/man2/flock.2:39
5980 msgid "B<#include E<lt>sys/file.hE<gt>>"
5981 msgstr ""
5982
5983 #. type: Plain text
5984 #: build/C/man2/flock.2:41
5985 msgid "B<int flock(int >I<fd>B<, int >I<operation>B<);>"
5986 msgstr ""
5987
5988 #. type: Plain text
5989 #: build/C/man2/flock.2:47
5990 msgid ""
5991 "Apply or remove an advisory lock on the open file specified by I<fd>.  The "
5992 "argument I<operation> is one of the following:"
5993 msgstr ""
5994
5995 #. type: TP
5996 #: build/C/man2/flock.2:48
5997 #, no-wrap
5998 msgid "B<LOCK_SH>"
5999 msgstr ""
6000
6001 #. type: Plain text
6002 #: build/C/man2/flock.2:53
6003 msgid ""
6004 "Place a shared lock.  More than one process may hold a shared lock for a "
6005 "given file at a given time."
6006 msgstr ""
6007
6008 #. type: TP
6009 #: build/C/man2/flock.2:53
6010 #, no-wrap
6011 msgid "B<LOCK_EX>"
6012 msgstr ""
6013
6014 #. type: Plain text
6015 #: build/C/man2/flock.2:58
6016 msgid ""
6017 "Place an exclusive lock.  Only one process may hold an exclusive lock for a "
6018 "given file at a given time."
6019 msgstr ""
6020
6021 #. type: TP
6022 #: build/C/man2/flock.2:58
6023 #, no-wrap
6024 msgid "B<LOCK_UN>"
6025 msgstr ""
6026
6027 #. type: Plain text
6028 #: build/C/man2/flock.2:61
6029 msgid "Remove an existing lock held by this process."
6030 msgstr ""
6031
6032 #. type: Plain text
6033 #: build/C/man2/flock.2:70
6034 msgid ""
6035 "A call to B<flock>()  may block if an incompatible lock is held by another "
6036 "process.  To make a nonblocking request, include B<LOCK_NB> (by ORing)  with "
6037 "any of the above operations."
6038 msgstr ""
6039
6040 #. type: Plain text
6041 #: build/C/man2/flock.2:72
6042 msgid "A single file may not simultaneously have both shared and exclusive locks."
6043 msgstr ""
6044
6045 #. type: Plain text
6046 #: build/C/man2/flock.2:86
6047 msgid ""
6048 "Locks created by B<flock>()  are associated with an open file table entry.  "
6049 "This means that duplicate file descriptors (created by, for example, "
6050 "B<fork>(2)  or B<dup>(2))  refer to the same lock, and this lock may be "
6051 "modified or released using any of these descriptors.  Furthermore, the lock "
6052 "is released either by an explicit B<LOCK_UN> operation on any of these "
6053 "duplicate descriptors, or when all such descriptors have been closed."
6054 msgstr ""
6055
6056 #. type: Plain text
6057 #: build/C/man2/flock.2:95
6058 msgid ""
6059 "If a process uses B<open>(2)  (or similar) to obtain more than one "
6060 "descriptor for the same file, these descriptors are treated independently by "
6061 "B<flock>().  An attempt to lock the file using one of these file descriptors "
6062 "may be denied by a lock that the calling process has already placed via "
6063 "another descriptor."
6064 msgstr ""
6065
6066 #. type: Plain text
6067 #: build/C/man2/flock.2:102
6068 msgid ""
6069 "A process may only hold one type of lock (shared or exclusive)  on a file.  "
6070 "Subsequent B<flock>()  calls on an already locked file will convert an "
6071 "existing lock to the new lock mode."
6072 msgstr ""
6073
6074 #. type: Plain text
6075 #: build/C/man2/flock.2:107
6076 msgid "Locks created by B<flock>()  are preserved across an B<execve>(2)."
6077 msgstr ""
6078
6079 #. type: Plain text
6080 #: build/C/man2/flock.2:110
6081 msgid ""
6082 "A shared or exclusive lock can be placed on a file regardless of the mode in "
6083 "which the file was opened."
6084 msgstr ""
6085
6086 #. type: Plain text
6087 #: build/C/man2/flock.2:120
6088 msgid "I<fd> is not an open file descriptor."
6089 msgstr ""
6090
6091 #. type: Plain text
6092 #: build/C/man2/flock.2:125
6093 msgid ""
6094 "While waiting to acquire a lock, the call was interrupted by delivery of a "
6095 "signal caught by a handler; see B<signal>(7)."
6096 msgstr ""
6097
6098 #. type: Plain text
6099 #: build/C/man2/flock.2:129
6100 msgid "I<operation> is invalid."
6101 msgstr ""
6102
6103 #. type: Plain text
6104 #: build/C/man2/flock.2:132
6105 msgid "The kernel ran out of memory for allocating lock records."
6106 msgstr ""
6107
6108 #. type: TP
6109 #: build/C/man2/flock.2:132
6110 #, no-wrap
6111 msgid "B<EWOULDBLOCK>"
6112 msgstr ""
6113
6114 #. type: Plain text
6115 #: build/C/man2/flock.2:137
6116 msgid "The file is locked and the B<LOCK_NB> flag was selected."
6117 msgstr ""
6118
6119 #. type: Plain text
6120 #: build/C/man2/flock.2:146
6121 msgid ""
6122 "4.4BSD (the B<flock>()  call first appeared in 4.2BSD).  A version of "
6123 "B<flock>(), possibly implemented in terms of B<fcntl>(2), appears on most "
6124 "UNIX systems."
6125 msgstr ""
6126
6127 #. type: Plain text
6128 #: build/C/man2/flock.2:153
6129 msgid ""
6130 "B<flock>()  does not lock files over NFS.  Use B<fcntl>(2)  instead: that "
6131 "does work over NFS, given a sufficiently recent version of Linux and a "
6132 "server which supports locking."
6133 msgstr ""
6134
6135 #. type: Plain text
6136 #: build/C/man2/flock.2:168
6137 msgid ""
6138 "Since kernel 2.0, B<flock>()  is implemented as a system call in its own "
6139 "right rather than being emulated in the GNU C library as a call to "
6140 "B<fcntl>(2).  This yields true BSD semantics: there is no interaction "
6141 "between the types of lock placed by B<flock>()  and B<fcntl>(2), and "
6142 "B<flock>()  does not detect deadlock."
6143 msgstr ""
6144
6145 #. type: Plain text
6146 #: build/C/man2/flock.2:174
6147 msgid ""
6148 "B<flock>()  places advisory locks only; given suitable permissions on a "
6149 "file, a process is free to ignore the use of B<flock>()  and perform I/O on "
6150 "the file."
6151 msgstr ""
6152
6153 #. type: Plain text
6154 #: build/C/man2/flock.2:187
6155 msgid ""
6156 "B<flock>()  and B<fcntl>(2)  locks have different semantics with respect to "
6157 "forked processes and B<dup>(2).  On systems that implement B<flock>()  using "
6158 "B<fcntl>(2), the semantics of B<flock>()  will be different from those "
6159 "described in this manual page."
6160 msgstr ""
6161
6162 #.  Kernel 2.5.21 changed things a little: during lock conversion
6163 #.  it is now the highest priority process that will get the lock -- mtk
6164 #. type: Plain text
6165 #: build/C/man2/flock.2:200
6166 msgid ""
6167 "Converting a lock (shared to exclusive, or vice versa) is not guaranteed to "
6168 "be atomic: the existing lock is first removed, and then a new lock is "
6169 "established.  Between these two steps, a pending lock request by another "
6170 "process may be granted, with the result that the conversion either blocks, "
6171 "or fails if B<LOCK_NB> was specified.  (This is the original BSD behavior, "
6172 "and occurs on many other implementations.)"
6173 msgstr ""
6174
6175 #. type: Plain text
6176 #: build/C/man2/flock.2:208
6177 msgid ""
6178 "B<close>(2), B<dup>(2), B<execve>(2), B<fcntl>(2), B<fork>(2), B<open>(2), "
6179 "B<lockf>(3)"
6180 msgstr ""
6181
6182 #. type: Plain text
6183 #: build/C/man2/flock.2:214
6184 msgid ""
6185 "See also I<Documentation/filesystem/locks.txt> in the kernel source "
6186 "(I<Documentation/locks.txt> in older kernels)."
6187 msgstr ""
6188
6189 #. type: TH
6190 #: build/C/man2/fork.2:39
6191 #, no-wrap
6192 msgid "FORK"
6193 msgstr ""
6194
6195 #. type: TH
6196 #: build/C/man2/fork.2:39 build/C/man2/fsync.2:38
6197 #, no-wrap
6198 msgid "2012-02-27"
6199 msgstr ""
6200
6201 #. type: Plain text
6202 #: build/C/man2/fork.2:42
6203 msgid "fork - create a child process"
6204 msgstr ""
6205
6206 #. type: Plain text
6207 #: build/C/man2/fork.2:46
6208 msgid "B<pid_t fork(void);>"
6209 msgstr ""
6210
6211 #. type: Plain text
6212 #: build/C/man2/fork.2:52
6213 msgid ""
6214 "B<fork>()  creates a new process by duplicating the calling process.  The "
6215 "new process, referred to as the I<child>, is an exact duplicate of the "
6216 "calling process, referred to as the I<parent>, except for the following "
6217 "points:"
6218 msgstr ""
6219
6220 #. type: Plain text
6221 #: build/C/man2/fork.2:56
6222 msgid ""
6223 "The child has its own unique process ID, and this PID does not match the ID "
6224 "of any existing process group (B<setpgid>(2))."
6225 msgstr ""
6226
6227 #. type: Plain text
6228 #: build/C/man2/fork.2:58
6229 msgid "The child's parent process ID is the same as the parent's process ID."
6230 msgstr ""
6231
6232 #. type: Plain text
6233 #: build/C/man2/fork.2:62
6234 msgid ""
6235 "The child does not inherit its parent's memory locks (B<mlock>(2), "
6236 "B<mlockall>(2))."
6237 msgstr ""
6238
6239 #. type: Plain text
6240 #: build/C/man2/fork.2:68
6241 msgid ""
6242 "Process resource utilizations (B<getrusage>(2))  and CPU time counters "
6243 "(B<times>(2))  are reset to zero in the child."
6244 msgstr ""
6245
6246 #. type: Plain text
6247 #: build/C/man2/fork.2:71
6248 msgid "The child's set of pending signals is initially empty (B<sigpending>(2))."
6249 msgstr ""
6250
6251 #. type: Plain text
6252 #: build/C/man2/fork.2:74
6253 msgid ""
6254 "The child does not inherit semaphore adjustments from its parent "
6255 "(B<semop>(2))."
6256 msgstr ""
6257
6258 #. type: Plain text
6259 #: build/C/man2/fork.2:77
6260 msgid "The child does not inherit record locks from its parent (B<fcntl>(2))."
6261 msgstr ""
6262
6263 #. type: Plain text
6264 #: build/C/man2/fork.2:82
6265 msgid ""
6266 "The child does not inherit timers from its parent (B<setitimer>(2), "
6267 "B<alarm>(2), B<timer_create>(2))."
6268 msgstr ""
6269
6270 #. type: Plain text
6271 #: build/C/man2/fork.2:89
6272 msgid ""
6273 "The child does not inherit outstanding asynchronous I/O operations from its "
6274 "parent (B<aio_read>(3), B<aio_write>(3)), nor does it inherit any "
6275 "asynchronous I/O contexts from its parent (see B<io_setup>(2))."
6276 msgstr ""
6277
6278 #. type: Plain text
6279 #: build/C/man2/fork.2:94
6280 msgid ""
6281 "The process attributes in the preceding list are all specified in "
6282 "POSIX.1-2001.  The parent and child also differ with respect to the "
6283 "following Linux-specific process attributes:"
6284 msgstr ""
6285
6286 #. type: Plain text
6287 #: build/C/man2/fork.2:101
6288 msgid ""
6289 "The child does not inherit directory change notifications (dnotify)  from "
6290 "its parent (see the description of B<F_NOTIFY> in B<fcntl>(2))."
6291 msgstr ""
6292
6293 #. type: Plain text
6294 #: build/C/man2/fork.2:107
6295 msgid ""
6296 "The B<prctl>(2)  B<PR_SET_PDEATHSIG> setting is reset so that the child does "
6297 "not receive a signal when its parent terminates."
6298 msgstr ""
6299
6300 #. type: Plain text
6301 #: build/C/man2/fork.2:113
6302 msgid ""
6303 "Memory mappings that have been marked with the B<madvise>(2)  "
6304 "B<MADV_DONTFORK> flag are not inherited across a B<fork>()."
6305 msgstr ""
6306
6307 #. type: Plain text
6308 #: build/C/man2/fork.2:118
6309 msgid "The termination signal of the child is always B<SIGCHLD> (see B<clone>(2))."
6310 msgstr ""
6311
6312 #. type: Plain text
6313 #: build/C/man2/fork.2:129
6314 msgid ""
6315 "The child process is created with a single thread\\(emthe one that called "
6316 "B<fork>().  The entire virtual address space of the parent is replicated in "
6317 "the child, including the states of mutexes, condition variables, and other "
6318 "pthreads objects; the use of B<pthread_atfork>(3)  may be helpful for "
6319 "dealing with problems that this can cause."
6320 msgstr ""
6321
6322 #. type: Plain text
6323 #: build/C/man2/fork.2:143
6324 msgid ""
6325 "The child inherits copies of the parent's set of open file descriptors.  "
6326 "Each file descriptor in the child refers to the same open file description "
6327 "(see B<open>(2))  as the corresponding file descriptor in the parent.  This "
6328 "means that the two descriptors share open file status flags, current file "
6329 "offset, and signal-driven I/O attributes (see the description of B<F_SETOWN> "
6330 "and B<F_SETSIG> in B<fcntl>(2))."
6331 msgstr ""
6332
6333 #. type: Plain text
6334 #: build/C/man2/fork.2:152
6335 msgid ""
6336 "The child inherits copies of the parent's set of open message queue "
6337 "descriptors (see B<mq_overview>(7)).  Each descriptor in the child refers to "
6338 "the same open message queue description as the corresponding descriptor in "
6339 "the parent.  This means that the two descriptors share the same flags "
6340 "(I<mq_flags>)."
6341 msgstr ""
6342
6343 #. type: Plain text
6344 #: build/C/man2/fork.2:160
6345 msgid ""
6346 "The child inherits copies of the parent's set of open directory streams (see "
6347 "B<opendir>(3)).  POSIX.1-2001 says that the corresponding directory streams "
6348 "in the parent and child I<may> share the directory stream positioning; on "
6349 "Linux/glibc they do not."
6350 msgstr ""
6351
6352 #. type: Plain text
6353 #: build/C/man2/fork.2:167
6354 msgid ""
6355 "On success, the PID of the child process is returned in the parent, and 0 is "
6356 "returned in the child.  On failure, -1 is returned in the parent, no child "
6357 "process is created, and I<errno> is set appropriately."
6358 msgstr ""
6359
6360 #. type: Plain text
6361 #: build/C/man2/fork.2:173
6362 msgid ""
6363 "B<fork>()  cannot allocate sufficient memory to copy the parent's page "
6364 "tables and allocate a task structure for the child."
6365 msgstr ""
6366
6367 #. type: Plain text
6368 #: build/C/man2/fork.2:183
6369 msgid ""
6370 "It was not possible to create a new process because the caller's "
6371 "B<RLIMIT_NPROC> resource limit was encountered.  To exceed this limit, the "
6372 "process must have either the B<CAP_SYS_ADMIN> or the B<CAP_SYS_RESOURCE> "
6373 "capability."
6374 msgstr ""
6375
6376 #. type: Plain text
6377 #: build/C/man2/fork.2:187
6378 msgid ""
6379 "B<fork>()  failed to allocate the necessary kernel structures because memory "
6380 "is tight."
6381 msgstr ""
6382
6383 #. type: Plain text
6384 #: build/C/man2/fork.2:196
6385 msgid ""
6386 "Under Linux, B<fork>()  is implemented using copy-on-write pages, so the "
6387 "only penalty that it incurs is the time and memory required to duplicate the "
6388 "parent's page tables, and to create a unique task structure for the child."
6389 msgstr ""
6390
6391 #.  nptl/sysdeps/unix/sysv/linux/fork.c
6392 #.  and does some magic to ensure that getpid(2) returns the right value.
6393 #. type: Plain text
6394 #: build/C/man2/fork.2:220
6395 msgid ""
6396 "Since version 2.3.3, rather than invoking the kernel's B<fork>()  system "
6397 "call, the glibc B<fork>()  wrapper that is provided as part of the NPTL "
6398 "threading implementation invokes B<clone>(2)  with flags that provide the "
6399 "same effect as the traditional system call.  (A call to B<fork>()  is "
6400 "equivalent to a call to B<clone>(2)  specifying I<flags> as just "
6401 "B<SIGCHLD>.)  The glibc wrapper invokes any fork handlers that have been "
6402 "established using B<pthread_atfork>(3)."
6403 msgstr ""
6404
6405 #. type: Plain text
6406 #: build/C/man2/fork.2:225
6407 msgid "See B<pipe>(2)  and B<wait>(2)."
6408 msgstr ""
6409
6410 #. type: Plain text
6411 #: build/C/man2/fork.2:235
6412 msgid ""
6413 "B<clone>(2), B<execve>(2), B<setrlimit>(2), B<unshare>(2), B<vfork>(2), "
6414 "B<wait>(2), B<daemon>(3), B<capabilities>(7), B<credentials>(7)"
6415 msgstr ""
6416
6417 #. type: TH
6418 #: build/C/man3/fpathconf.3:24
6419 #, no-wrap
6420 msgid "FPATHCONF"
6421 msgstr ""
6422
6423 #. type: TH
6424 #: build/C/man3/fpathconf.3:24
6425 #, no-wrap
6426 msgid "1993-04-04"
6427 msgstr ""
6428
6429 #. type: Plain text
6430 #: build/C/man3/fpathconf.3:27
6431 msgid "fpathconf, pathconf - get configuration values for files"
6432 msgstr ""
6433
6434 #. type: Plain text
6435 #: build/C/man3/fpathconf.3:32
6436 #, no-wrap
6437 msgid "B<long fpathconf(int >I<fd>B<, int >I<name>B<);>\n"
6438 msgstr ""
6439
6440 #. type: Plain text
6441 #: build/C/man3/fpathconf.3:34
6442 #, no-wrap
6443 msgid "B<long pathconf(char *>I<path>B<, int >I<name>B<);>\n"
6444 msgstr ""
6445
6446 #. type: Plain text
6447 #: build/C/man3/fpathconf.3:41
6448 msgid ""
6449 "B<fpathconf>()  gets a value for the configuration option I<name> for the "
6450 "open file descriptor I<fd>."
6451 msgstr ""
6452
6453 #. type: Plain text
6454 #: build/C/man3/fpathconf.3:47
6455 msgid ""
6456 "B<pathconf>()  gets a value for configuration option I<name> for the "
6457 "filename I<path>."
6458 msgstr ""
6459
6460 #. type: Plain text
6461 #: build/C/man3/fpathconf.3:56
6462 msgid ""
6463 "The corresponding macros defined in I<E<lt>unistd.hE<gt>> are minimum "
6464 "values; if an application wants to take advantage of values which may "
6465 "change, a call to B<fpathconf>()  or B<pathconf>()  can be made, which may "
6466 "yield more liberal results."
6467 msgstr ""
6468
6469 #. type: Plain text
6470 #: build/C/man3/fpathconf.3:61
6471 msgid ""
6472 "Setting I<name> equal to one of the following constants returns the "
6473 "following configuration options:"
6474 msgstr ""
6475
6476 #. type: TP
6477 #: build/C/man3/fpathconf.3:61
6478 #, no-wrap
6479 msgid "B<_PC_LINK_MAX>"
6480 msgstr ""
6481
6482 #. type: Plain text
6483 #: build/C/man3/fpathconf.3:71
6484 msgid ""
6485 "returns the maximum number of links to the file.  If I<fd> or I<path> refer "
6486 "to a directory, then the value applies to the whole directory.  The "
6487 "corresponding macro is B<_POSIX_LINK_MAX>."
6488 msgstr ""
6489
6490 #. type: TP
6491 #: build/C/man3/fpathconf.3:71
6492 #, no-wrap
6493 msgid "B<_PC_MAX_CANON>"
6494 msgstr ""
6495
6496 #. type: Plain text
6497 #: build/C/man3/fpathconf.3:80
6498 msgid ""
6499 "returns the maximum length of a formatted input line, where I<fd> or I<path> "
6500 "must refer to a terminal.  The corresponding macro is B<_POSIX_MAX_CANON>."
6501 msgstr ""
6502
6503 #. type: TP
6504 #: build/C/man3/fpathconf.3:80
6505 #, no-wrap
6506 msgid "B<_PC_MAX_INPUT>"
6507 msgstr ""
6508
6509 #. type: Plain text
6510 #: build/C/man3/fpathconf.3:89
6511 msgid ""
6512 "returns the maximum length of an input line, where I<fd> or I<path> must "
6513 "refer to a terminal.  The corresponding macro is B<_POSIX_MAX_INPUT>."
6514 msgstr ""
6515
6516 #. type: TP
6517 #: build/C/man3/fpathconf.3:89
6518 #, no-wrap
6519 msgid "B<_PC_NAME_MAX>"
6520 msgstr ""
6521
6522 #. type: Plain text
6523 #: build/C/man3/fpathconf.3:98
6524 msgid ""
6525 "returns the maximum length of a filename in the directory I<path> or I<fd> "
6526 "that the process is allowed to create.  The corresponding macro is "
6527 "B<_POSIX_NAME_MAX>."
6528 msgstr ""
6529
6530 #. type: TP
6531 #: build/C/man3/fpathconf.3:98
6532 #, no-wrap
6533 msgid "B<_PC_PATH_MAX>"
6534 msgstr ""
6535
6536 #. type: Plain text
6537 #: build/C/man3/fpathconf.3:107
6538 msgid ""
6539 "returns the maximum length of a relative pathname when I<path> or I<fd> is "
6540 "the current working directory.  The corresponding macro is "
6541 "B<_POSIX_PATH_MAX>."
6542 msgstr ""
6543
6544 #. type: TP
6545 #: build/C/man3/fpathconf.3:107
6546 #, no-wrap
6547 msgid "B<_PC_PIPE_BUF>"
6548 msgstr ""
6549
6550 #. type: Plain text
6551 #: build/C/man3/fpathconf.3:116
6552 msgid ""
6553 "returns the size of the pipe buffer, where I<fd> must refer to a pipe or "
6554 "FIFO and I<path> must refer to a FIFO.  The corresponding macro is "
6555 "B<_POSIX_PIPE_BUF>."
6556 msgstr ""
6557
6558 #. type: TP
6559 #: build/C/man3/fpathconf.3:116
6560 #, no-wrap
6561 msgid "B<_PC_CHOWN_RESTRICTED>"
6562 msgstr ""
6563
6564 #. type: Plain text
6565 #: build/C/man3/fpathconf.3:129
6566 msgid ""
6567 "returns nonzero if the B<chown>(2)  call may not be used on this file.  If "
6568 "I<fd> or I<path> refer to a directory, then this applies to all files in "
6569 "that directory.  The corresponding macro is B<_POSIX_CHOWN_RESTRICTED>."
6570 msgstr ""
6571
6572 #. type: TP
6573 #: build/C/man3/fpathconf.3:129
6574 #, no-wrap
6575 msgid "B<_PC_NO_TRUNC>"
6576 msgstr ""
6577
6578 #. type: Plain text
6579 #: build/C/man3/fpathconf.3:136
6580 msgid ""
6581 "returns nonzero if accessing filenames longer than B<_POSIX_NAME_MAX> "
6582 "generates an error.  The corresponding macro is B<_POSIX_NO_TRUNC>."
6583 msgstr ""
6584
6585 #. type: TP
6586 #: build/C/man3/fpathconf.3:136
6587 #, no-wrap
6588 msgid "B<_PC_VDISABLE>"
6589 msgstr ""
6590
6591 #. type: Plain text
6592 #: build/C/man3/fpathconf.3:143
6593 msgid ""
6594 "returns nonzero if special character processing can be disabled, where I<fd> "
6595 "or I<path> must refer to a terminal."
6596 msgstr ""
6597
6598 #. type: Plain text
6599 #: build/C/man3/fpathconf.3:152
6600 msgid ""
6601 "The limit is returned, if one exists.  If the system does not have a limit "
6602 "for the requested resource, -1 is returned, and I<errno> is unchanged.  If "
6603 "there is an error, -1 is returned, and I<errno> is set to reflect the nature "
6604 "of the error."
6605 msgstr ""
6606
6607 #. type: Plain text
6608 #: build/C/man3/fpathconf.3:160
6609 msgid ""
6610 "Files with name lengths longer than the value returned for I<name> equal to "
6611 "B<_PC_NAME_MAX> may exist in the given directory."
6612 msgstr ""
6613
6614 #. type: Plain text
6615 #: build/C/man3/fpathconf.3:163 build/C/man3/sysconf.3:333
6616 msgid ""
6617 "Some returned values may be huge; they are not suitable for allocating "
6618 "memory."
6619 msgstr ""
6620
6621 #. type: Plain text
6622 #: build/C/man3/fpathconf.3:168
6623 msgid "B<getconf>(1), B<open>(2), B<statfs>(2), B<sysconf>(3)"
6624 msgstr ""
6625
6626 #. type: TH
6627 #: build/C/man2/fsync.2:38
6628 #, no-wrap
6629 msgid "FSYNC"
6630 msgstr ""
6631
6632 #. type: Plain text
6633 #: build/C/man2/fsync.2:41
6634 msgid "fsync, fdatasync - synchronize a file's in-core state with storage device"
6635 msgstr ""
6636
6637 #. type: Plain text
6638 #: build/C/man2/fsync.2:45
6639 msgid "B<int fsync(int >I<fd>B<);>"
6640 msgstr ""
6641
6642 #. type: Plain text
6643 #: build/C/man2/fsync.2:47
6644 msgid "B<int fdatasync(int >I<fd>B<);>"
6645 msgstr ""
6646
6647 #. type: Plain text
6648 #: build/C/man2/fsync.2:55
6649 msgid "B<fsync>(): _BSD_SOURCE || _XOPEN_SOURCE"
6650 msgstr ""
6651
6652 #.  _POSIX_C_SOURCE\ >=\ 200112L only since glibc 2.8
6653 #. type: Plain text
6654 #: build/C/man2/fsync.2:58
6655 #, no-wrap
6656 msgid "         || /* since glibc 2.8: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L\n"
6657 msgstr ""
6658
6659 #. type: Plain text
6660 #: build/C/man2/fsync.2:61
6661 msgid ""
6662 "B<fdatasync>(): _POSIX_C_SOURCE\\ E<gt>=\\ 199309L || _XOPEN_SOURCE\\ "
6663 "E<gt>=\\ 500"
6664 msgstr ""
6665
6666 #. type: Plain text
6667 #: build/C/man2/fsync.2:74
6668 msgid ""
6669 "B<fsync>()  transfers (\"flushes\") all modified in-core data of (i.e., "
6670 "modified buffer cache pages for) the file referred to by the file descriptor "
6671 "I<fd> to the disk device (or other permanent storage device) so that all "
6672 "changed information can be retrieved even after the system crashed or was "
6673 "rebooted.  This includes writing through or flushing a disk cache if "
6674 "present.  The call blocks until the device reports that the transfer has "
6675 "completed.  It also flushes metadata information associated with the file "
6676 "(see B<stat>(2))."
6677 msgstr ""
6678
6679 #. type: Plain text
6680 #: build/C/man2/fsync.2:83
6681 msgid ""
6682 "Calling B<fsync>()  does not necessarily ensure that the entry in the "
6683 "directory containing the file has also reached disk.  For that an explicit "
6684 "B<fsync>()  on a file descriptor for the directory is also needed."
6685 msgstr ""
6686
6687 #. type: Plain text
6688 #: build/C/man2/fsync.2:104
6689 msgid ""
6690 "B<fdatasync>()  is similar to B<fsync>(), but does not flush modified "
6691 "metadata unless that metadata is needed in order to allow a subsequent data "
6692 "retrieval to be correctly handled.  For example, changes to I<st_atime> or "
6693 "I<st_mtime> (respectively, time of last access and time of last "
6694 "modification; see B<stat>(2))  do not require flushing because they are not "
6695 "necessary for a subsequent data read to be handled correctly.  On the other "
6696 "hand, a change to the file size (I<st_size>, as made by say "
6697 "B<ftruncate>(2)), would require a metadata flush."
6698 msgstr ""
6699
6700 #. type: Plain text
6701 #: build/C/man2/fsync.2:109
6702 msgid ""
6703 "The aim of B<fdatasync>()  is to reduce disk activity for applications that "
6704 "do not require all metadata to be synchronized with the disk."
6705 msgstr ""
6706
6707 #. type: Plain text
6708 #: build/C/man2/fsync.2:114
6709 msgid ""
6710 "On success, these system calls return zero.  On error, -1 is returned, and "
6711 "I<errno> is set appropriately."
6712 msgstr ""
6713
6714 #. type: Plain text
6715 #: build/C/man2/fsync.2:119
6716 msgid "I<fd> is not a valid open file descriptor."
6717 msgstr ""
6718
6719 #. type: Plain text
6720 #: build/C/man2/fsync.2:122
6721 msgid "An error occurred during synchronization."
6722 msgstr ""
6723
6724 #. type: TP
6725 #: build/C/man2/fsync.2:122
6726 #, no-wrap
6727 msgid "B<EROFS>, B<EINVAL>"
6728 msgstr ""
6729
6730 #. type: Plain text
6731 #: build/C/man2/fsync.2:126
6732 msgid "I<fd> is bound to a special file which does not support synchronization."
6733 msgstr ""
6734
6735 #. type: Plain text
6736 #: build/C/man2/fsync.2:128
6737 msgid "4.3BSD, POSIX.1-2001."
6738 msgstr ""
6739
6740 #. type: SH
6741 #: build/C/man2/fsync.2:128
6742 #, no-wrap
6743 msgid "AVAILABILITY"
6744 msgstr ""
6745
6746 #.  POSIX.1-2001: It shall be defined to -1 or 0 or 200112L.
6747 #.  -1: unavailable, 0: ask using sysconf().
6748 #.  glibc defines them to 1.
6749 #. type: Plain text
6750 #: build/C/man2/fsync.2:141
6751 msgid ""
6752 "On POSIX systems on which B<fdatasync>()  is available, "
6753 "B<_POSIX_SYNCHRONIZED_IO> is defined in I<E<lt>unistd.hE<gt>> to a value "
6754 "greater than 0.  (See also B<sysconf>(3).)"
6755 msgstr ""
6756
6757 #. type: Plain text
6758 #: build/C/man2/fsync.2:147
6759 msgid ""
6760 "On some UNIX systems (but not Linux), I<fd> must be a I<writable> file "
6761 "descriptor."
6762 msgstr ""
6763
6764 #. type: Plain text
6765 #: build/C/man2/fsync.2:153
6766 msgid ""
6767 "In Linux 2.2 and earlier, B<fdatasync>()  is equivalent to B<fsync>(), and "
6768 "so has no performance advantage."
6769 msgstr ""
6770
6771 #. type: Plain text
6772 #: build/C/man2/fsync.2:163
6773 msgid ""
6774 "The B<fsync>()  implementations in older kernels and lesser used filesystems "
6775 "does not know how to flush disk caches.  In these cases disk caches need to "
6776 "be disabled using B<hdparm>(8)  or B<sdparm>(8)  to guarantee safe "
6777 "operation."
6778 msgstr ""
6779
6780 #. type: Plain text
6781 #: build/C/man2/fsync.2:172
6782 msgid ""
6783 "B<bdflush>(2), B<open>(2), B<sync>(2), B<sync_file_range>(2), B<hdparm>(8), "
6784 "B<mount>(8), B<sync>(8), B<update>(8)"
6785 msgstr ""
6786
6787 #. type: TH
6788 #: build/C/man2/get_thread_area.2:6
6789 #, no-wrap
6790 msgid "GET_THREAD_AREA"
6791 msgstr ""
6792
6793 #. type: Plain text
6794 #: build/C/man2/get_thread_area.2:9
6795 msgid "get_thread_area - Get a Thread Local Storage (TLS) area"
6796 msgstr ""
6797
6798 #. type: Plain text
6799 #: build/C/man2/get_thread_area.2:13 build/C/man2/set_thread_area.2:14
6800 msgid "B<#include E<lt>asm/ldt.hE<gt>>"
6801 msgstr ""
6802
6803 #. type: Plain text
6804 #: build/C/man2/get_thread_area.2:15
6805 msgid "B<int get_thread_area(struct user_desc *>I<u_info>B<);>"
6806 msgstr ""
6807
6808 #. type: Plain text
6809 #: build/C/man2/get_thread_area.2:24
6810 msgid ""
6811 "B<get_thread_area>()  returns an entry in the current thread's Thread Local "
6812 "Storage (TLS) array.  The index of the entry corresponds to the value of "
6813 "I<u_info-E<gt>entry_number>, passed in by the user.  If the value is in "
6814 "bounds, B<get_thread_area>()  copies the corresponding TLS entry into the "
6815 "area pointed to by I<u_info>."
6816 msgstr ""
6817
6818 #. type: Plain text
6819 #: build/C/man2/get_thread_area.2:30
6820 msgid ""
6821 "B<get_thread_area>()  returns 0 on success.  Otherwise, it returns -1 and "
6822 "sets I<errno> appropriately."
6823 msgstr ""
6824
6825 #. type: Plain text
6826 #: build/C/man2/get_thread_area.2:34 build/C/man2/set_thread_area.2:52
6827 msgid "I<u_info> is an invalid pointer."
6828 msgstr ""
6829
6830 #. type: Plain text
6831 #: build/C/man2/get_thread_area.2:37 build/C/man2/set_thread_area.2:49
6832 msgid "I<u_info-E<gt>entry_number> is out of bounds."
6833 msgstr ""
6834
6835 #. type: Plain text
6836 #: build/C/man2/get_thread_area.2:41
6837 msgid "A version of B<get_thread_area>()  first appeared in Linux 2.5.32."
6838 msgstr ""
6839
6840 #. type: Plain text
6841 #: build/C/man2/get_thread_area.2:45
6842 msgid ""
6843 "B<get_thread_area>()  is Linux-specific and should not be used in programs "
6844 "that are intended to be portable."
6845 msgstr ""
6846
6847 #. type: Plain text
6848 #: 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
6849 msgid ""
6850 "Glibc does not provide a wrapper for this system call; call it using "
6851 "B<syscall>(2)."
6852 msgstr ""
6853
6854 #. type: Plain text
6855 #: build/C/man2/get_thread_area.2:52
6856 msgid "B<modify_ldt>(2), B<set_thread_area>(2)"
6857 msgstr ""
6858
6859 #. type: TH
6860 #: build/C/man3/getcwd.3:30
6861 #, no-wrap
6862 msgid "GETCWD"
6863 msgstr ""
6864
6865 #. type: Plain text
6866 #: build/C/man3/getcwd.3:33
6867 msgid "getcwd, getwd, get_current_dir_name - Get current working directory"
6868 msgstr ""
6869
6870 #. type: Plain text
6871 #: build/C/man3/getcwd.3:38
6872 #, no-wrap
6873 msgid "B<char *getcwd(char *>I<buf>B<, size_t >I<size>B<);>\n"
6874 msgstr ""
6875
6876 #. type: Plain text
6877 #: build/C/man3/getcwd.3:40
6878 #, no-wrap
6879 msgid "B<char *getwd(char *>I<buf>B<);>\n"
6880 msgstr ""
6881
6882 #. type: Plain text
6883 #: build/C/man3/getcwd.3:42
6884 #, no-wrap
6885 msgid "B<char *get_current_dir_name(void);>\n"
6886 msgstr ""
6887
6888 #. type: Plain text
6889 #: build/C/man3/getcwd.3:50
6890 msgid "B<get_current_dir_name>():"
6891 msgstr ""
6892
6893 #. type: Plain text
6894 #: build/C/man3/getcwd.3:55
6895 msgid "B<getwd>():"
6896 msgstr ""
6897
6898 #. type: Plain text
6899 #: build/C/man3/getcwd.3:65 build/C/man3/ualarm.3:49 build/C/man3/usleep.3:57 build/C/man2/vfork.2:52
6900 #, no-wrap
6901 msgid ""
6902 "_BSD_SOURCE ||\n"
6903 "    (_XOPEN_SOURCE\\ E<gt>=\\ 500 ||\n"
6904 "        _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED) &&\n"
6905 "    !(_POSIX_C_SOURCE\\ E<gt>=\\ 200809L || _XOPEN_SOURCE\\ E<gt>=\\ 700)\n"
6906 msgstr ""
6907
6908 #. type: Plain text
6909 #: 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
6910 msgid ""
6911 "Before glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
6912 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
6913 msgstr ""
6914
6915 #. type: Plain text
6916 #: build/C/man3/getcwd.3:80
6917 msgid ""
6918 "These functions return a null-terminated string containing an absolute "
6919 "pathname that is the current working directory of the calling process.  The "
6920 "pathname is returned as the function result and via the argument I<buf>, if "
6921 "present."
6922 msgstr ""
6923
6924 #. type: Plain text
6925 #: build/C/man3/getcwd.3:88
6926 msgid ""
6927 "The B<getcwd>()  function copies an absolute pathname of the current working "
6928 "directory to the array pointed to by I<buf>, which is of length I<size>."
6929 msgstr ""
6930
6931 #. type: Plain text
6932 #: build/C/man3/getcwd.3:98
6933 msgid ""
6934 "If the length of the absolute pathname of the current working directory, "
6935 "including the terminating null byte, exceeds I<size> bytes, NULL is "
6936 "returned, and I<errno> is set to B<ERANGE>; an application should check for "
6937 "this error, and allocate a larger buffer if necessary."
6938 msgstr ""
6939
6940 #. type: Plain text
6941 #: build/C/man3/getcwd.3:116
6942 msgid ""
6943 "As an extension to the POSIX.1-2001 standard, Linux (libc4, libc5, glibc)  "
6944 "B<getcwd>()  allocates the buffer dynamically using B<malloc>(3)  if I<buf> "
6945 "is NULL.  In this case, the allocated buffer has the length I<size> unless "
6946 "I<size> is zero, when I<buf> is allocated as big as necessary.  The caller "
6947 "should B<free>(3)  the returned buffer."
6948 msgstr ""
6949
6950 #. type: Plain text
6951 #: build/C/man3/getcwd.3:129
6952 msgid ""
6953 "B<get_current_dir_name>()  will B<malloc>(3)  an array big enough to hold "
6954 "the absolute pathname of the current working directory.  If the environment "
6955 "variable B<PWD> is set, and its value is correct, then that value will be "
6956 "returned.  The caller should B<free>(3)  the returned buffer."
6957 msgstr ""
6958
6959 #. type: Plain text
6960 #: build/C/man3/getcwd.3:154
6961 msgid ""
6962 "B<getwd>()  does not B<malloc>(3)  any memory.  The I<buf> argument should "
6963 "be a pointer to an array at least B<PATH_MAX> bytes long.  If the length of "
6964 "the absolute pathname of the current working directory, including the "
6965 "terminating null byte, exceeds B<PATH_MAX> bytes, NULL is returned, and "
6966 "I<errno> is set to B<ENAMETOOLONG>.  (Note that on some systems, B<PATH_MAX> "
6967 "may not be a compile-time constant; furthermore, its value may depend on the "
6968 "file system, see B<pathconf>(3).)  For portability and security reasons, use "
6969 "of B<getwd>()  is deprecated."
6970 msgstr ""
6971
6972 #. type: Plain text
6973 #: build/C/man3/getcwd.3:163
6974 msgid ""
6975 "On success, these functions return a pointer to a string containing the "
6976 "pathname of the current working directory.  In the case B<getcwd>()  and "
6977 "B<getwd>()  this is the same value as I<buf>."
6978 msgstr ""
6979
6980 #. type: Plain text
6981 #: build/C/man3/getcwd.3:170
6982 msgid ""
6983 "On failure, these functions return NULL, and I<errno> is set to indicate the "
6984 "error.  The contents of the array pointed to by I<buf> are undefined on "
6985 "error."
6986 msgstr ""
6987
6988 #. type: Plain text
6989 #: build/C/man3/getcwd.3:174
6990 msgid "Permission to read or search a component of the filename was denied."
6991 msgstr ""
6992
6993 #. type: Plain text
6994 #: build/C/man3/getcwd.3:178
6995 msgid "I<buf> points to a bad address."
6996 msgstr ""
6997
6998 #. type: Plain text
6999 #: build/C/man3/getcwd.3:185
7000 msgid "The I<size> argument is zero and I<buf> is not a NULL pointer."
7001 msgstr ""
7002
7003 #. type: TP
7004 #: build/C/man3/getcwd.3:185
7005 #, no-wrap
7006 msgid "EINVAL"
7007 msgstr ""
7008
7009 #. type: Plain text
7010 #: build/C/man3/getcwd.3:190
7011 msgid "B<getwd>(): I<buf> is NULL."
7012 msgstr ""
7013
7014 #. type: TP
7015 #: build/C/man3/getcwd.3:190
7016 #, no-wrap
7017 msgid "ENAMETOOLONG"
7018 msgstr ""
7019
7020 #. type: Plain text
7021 #: build/C/man3/getcwd.3:196
7022 msgid ""
7023 "B<getwd>(): The size of the null-terminated absolute pathname string exceeds "
7024 "B<PATH_MAX> bytes."
7025 msgstr ""
7026
7027 #. type: Plain text
7028 #: build/C/man3/getcwd.3:199
7029 msgid "The current working directory has been unlinked."
7030 msgstr ""
7031
7032 #. type: TP
7033 #: build/C/man3/getcwd.3:199 build/C/man3/getlogin.3:112
7034 #, no-wrap
7035 msgid "B<ERANGE>"
7036 msgstr ""
7037
7038 #. type: Plain text
7039 #: build/C/man3/getcwd.3:206
7040 msgid ""
7041 "The I<size> argument is less than the length of the absolute pathname of the "
7042 "working directory, including the terminating null byte.  You need to "
7043 "allocate a bigger array and try again."
7044 msgstr ""
7045
7046 #. type: Plain text
7047 #: build/C/man3/getcwd.3:214
7048 msgid ""
7049 "B<getcwd>()  conforms to POSIX.1-2001.  Note however that POSIX.1-2001 "
7050 "leaves the behavior of B<getcwd>()  unspecified if I<buf> is NULL."
7051 msgstr ""
7052
7053 #. type: Plain text
7054 #: build/C/man3/getcwd.3:225
7055 msgid ""
7056 "B<getwd>()  is present in POSIX.1-2001, but marked LEGACY.  POSIX.1-2008 "
7057 "removes the specification of B<getwd>().  Use B<getcwd>()  instead.  "
7058 "POSIX.1-2001 does not define any errors for B<getwd>()."
7059 msgstr ""
7060
7061 #. type: Plain text
7062 #: build/C/man3/getcwd.3:228
7063 msgid "B<get_current_dir_name>()  is a GNU extension."
7064 msgstr ""
7065
7066 #. type: Plain text
7067 #: build/C/man3/getcwd.3:239
7068 msgid ""
7069 "Under Linux, the function B<getcwd>()  is a system call (since 2.1.92).  On "
7070 "older systems it would query I</proc/self/cwd>.  If both system call and "
7071 "proc file system are missing, a generic implementation is called.  Only in "
7072 "that case can these calls fail under Linux with B<EACCES>."
7073 msgstr ""
7074
7075 #. type: Plain text
7076 #: build/C/man3/getcwd.3:247
7077 msgid ""
7078 "These functions are often used to save the location of the current working "
7079 "directory for the purpose of returning to it later.  Opening the current "
7080 "directory (\".\") and calling B<fchdir>(2)  to return is usually a faster "
7081 "and more reliable alternative when sufficiently many file descriptors are "
7082 "available, especially on platforms other than Linux."
7083 msgstr ""
7084
7085 #. type: Plain text
7086 #: build/C/man3/getcwd.3:254
7087 msgid ""
7088 "B<chdir>(2), B<fchdir>(2), B<open>(2), B<unlink>(2), B<free>(3), "
7089 "B<malloc>(3)"
7090 msgstr ""
7091
7092 #. type: TH
7093 #: build/C/man2/getdomainname.2:29
7094 #, no-wrap
7095 msgid "GETDOMAINNAME"
7096 msgstr ""
7097
7098 #. type: TH
7099 #: build/C/man2/getdomainname.2:29
7100 #, no-wrap
7101 msgid "2009-09-27"
7102 msgstr ""
7103
7104 #. type: Plain text
7105 #: build/C/man2/getdomainname.2:32
7106 msgid "getdomainname, setdomainname - get/set domain name"
7107 msgstr ""
7108
7109 #. type: Plain text
7110 #: build/C/man2/getdomainname.2:36
7111 msgid "B<int getdomainname(char *>I<name>B<, size_t >I<len>B<);>"
7112 msgstr ""
7113
7114 #. type: Plain text
7115 #: build/C/man2/getdomainname.2:38
7116 msgid "B<int setdomainname(const char *>I<name>B<, size_t >I<len>B<);>"
7117 msgstr ""
7118
7119 #. type: Plain text
7120 #: build/C/man2/getdomainname.2:47
7121 msgid "B<getdomainname>(), B<setdomainname>():"
7122 msgstr ""
7123
7124 #. type: Plain text
7125 #: build/C/man2/getdomainname.2:49 build/C/man3/gethostid.3:54 build/C/man2/gethostname.2:60 build/C/man3/getusershell.3:53
7126 msgid "_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\\ E<lt>\\ 500)"
7127 msgstr ""
7128
7129 #. type: Plain text
7130 #: build/C/man2/getdomainname.2:54
7131 msgid ""
7132 "These functions are used to access or to change the domain name of the host "
7133 "system."
7134 msgstr ""
7135
7136 #. type: Plain text
7137 #: build/C/man2/getdomainname.2:65
7138 msgid ""
7139 "B<setdomainname>()  sets the domain name to the value given in the character "
7140 "array I<name>.  The I<len> argument specifies the number of bytes in "
7141 "I<name>.  (Thus, I<name> does not require a terminating null byte.)"
7142 msgstr ""
7143
7144 #. type: Plain text
7145 #: build/C/man2/getdomainname.2:75
7146 msgid ""
7147 "B<getdomainname>()  returns the null-terminated domain name in the character "
7148 "array I<name>, which has a length of I<len> bytes.  If the null-terminated "
7149 "domain name requires more than I<len> bytes, B<getdomainname>()  returns the "
7150 "first I<len> bytes (glibc) or gives an error (libc)."
7151 msgstr ""
7152
7153 #. type: Plain text
7154 #: build/C/man2/getdomainname.2:83
7155 msgid "B<setdomainname>()  can fail with the following errors:"
7156 msgstr ""
7157
7158 #. type: Plain text
7159 #: build/C/man2/getdomainname.2:87
7160 msgid "I<name> pointed outside of user address space."
7161 msgstr ""
7162
7163 #. type: Plain text
7164 #: build/C/man2/getdomainname.2:91
7165 msgid "I<len> was negative or too large."
7166 msgstr ""
7167
7168 #. type: Plain text
7169 #: build/C/man2/getdomainname.2:96
7170 msgid ""
7171 "the caller is unprivileged (Linux: does not have the B<CAP_SYS_ADMIN> "
7172 "capability)."
7173 msgstr ""
7174
7175 #. type: Plain text
7176 #: build/C/man2/getdomainname.2:99
7177 msgid "B<getdomainname>()  can fail with the following errors:"
7178 msgstr ""
7179
7180 #. type: Plain text
7181 #: build/C/man2/getdomainname.2:110
7182 msgid ""
7183 "For B<getdomainname>()  under libc: I<name> is NULL or I<name> is longer "
7184 "than I<len> bytes."
7185 msgstr ""
7186
7187 #.  But they appear on most systems...
7188 #. type: Plain text
7189 #: build/C/man2/getdomainname.2:113
7190 msgid "POSIX does not specify these calls."
7191 msgstr ""
7192
7193 #. type: Plain text
7194 #: build/C/man2/getdomainname.2:117
7195 msgid ""
7196 "Since Linux 1.0, the limit on the length of a domain name, including the "
7197 "terminating null byte, is 64 bytes.  In older kernels, it was 8 bytes."
7198 msgstr ""
7199
7200 #. type: Plain text
7201 #: build/C/man2/getdomainname.2:127
7202 msgid ""
7203 "On most Linux architectures (including x86), there is no B<getdomainname>()  "
7204 "system call; instead, glibc implements B<getdomainname>()  as a library "
7205 "function that returns a copy of the I<domainname> field returned from a call "
7206 "to B<uname>(2)."
7207 msgstr ""
7208
7209 #. type: Plain text
7210 #: build/C/man2/getdomainname.2:131
7211 msgid "B<gethostname>(2), B<sethostname>(2), B<uname>(2)"
7212 msgstr ""
7213
7214 #. type: TH
7215 #: build/C/man2/getdtablesize.2:27
7216 #, no-wrap
7217 msgid "GETDTABLESIZE"
7218 msgstr ""
7219
7220 #. type: Plain text
7221 #: build/C/man2/getdtablesize.2:30
7222 msgid "getdtablesize - get descriptor table size"
7223 msgstr ""
7224
7225 #. type: Plain text
7226 #: build/C/man2/getdtablesize.2:34
7227 msgid "B<int getdtablesize(void);>"
7228 msgstr ""
7229
7230 #. type: Plain text
7231 #: build/C/man2/getdtablesize.2:41
7232 msgid "B<getdtablesize>():"
7233 msgstr ""
7234
7235 #. type: Plain text
7236 #: build/C/man2/getdtablesize.2:49 build/C/man2/getpagesize.2:45
7237 #, no-wrap
7238 msgid ""
7239 "_BSD_SOURCE ||\n"
7240 "    !(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600)\n"
7241 msgstr ""
7242
7243 #. type: Plain text
7244 #: build/C/man2/getdtablesize.2:61
7245 msgid ""
7246 "B<getdtablesize>()  returns the maximum number of files a process can have "
7247 "open, one more than the largest possible value for a file descriptor."
7248 msgstr ""
7249
7250 #. type: Plain text
7251 #: build/C/man2/getdtablesize.2:63
7252 msgid "The current limit on the number of open files per process."
7253 msgstr ""
7254
7255 #. type: Plain text
7256 #: build/C/man2/getdtablesize.2:69
7257 msgid ""
7258 "On Linux, B<getdtablesize>()  can return any of the errors described for "
7259 "B<getrlimit>(2); see NOTES below."
7260 msgstr ""
7261
7262 #. type: Plain text
7263 #: build/C/man2/getdtablesize.2:77
7264 msgid ""
7265 "SVr4, 4.4BSD (the B<getdtablesize>()  function first appeared in 4.2BSD).  "
7266 "It is not specified in POSIX.1-2001; portable applications should employ "
7267 "I<sysconf(_SC_OPEN_MAX)> instead of this call."
7268 msgstr ""
7269
7270 #. type: Plain text
7271 #: build/C/man2/getdtablesize.2:90
7272 msgid ""
7273 "B<getdtablesize>()  is implemented as a libc library function.  The glibc "
7274 "version calls B<getrlimit>(2)  and returns the current B<RLIMIT_NOFILE> "
7275 "limit, or B<OPEN_MAX> when that fails.  The libc4 and libc5 versions return "
7276 "B<OPEN_MAX> (set to 256 since Linux 0.98.4)."
7277 msgstr ""
7278
7279 #. type: Plain text
7280 #: build/C/man2/getdtablesize.2:95
7281 msgid "B<close>(2), B<dup>(2), B<getrlimit>(2), B<open>(2)"
7282 msgstr ""
7283
7284 #. type: TH
7285 #: build/C/man3/gethostid.3:29
7286 #, no-wrap
7287 msgid "GETHOSTID"
7288 msgstr ""
7289
7290 #. type: Plain text
7291 #: build/C/man3/gethostid.3:32
7292 msgid "gethostid, sethostid - get or set the unique identifier of the current host"
7293 msgstr ""
7294
7295 #. type: Plain text
7296 #: build/C/man3/gethostid.3:36
7297 msgid "B<long gethostid(void);>"
7298 msgstr ""
7299
7300 #. type: Plain text
7301 #: build/C/man3/gethostid.3:38
7302 msgid "B<int sethostid(long >I<hostid>B<);>"
7303 msgstr ""
7304
7305 #. type: Plain text
7306 #: build/C/man3/gethostid.3:47
7307 msgid "B<gethostid>():"
7308 msgstr ""
7309
7310 #. type: Plain text
7311 #: build/C/man3/gethostid.3:52
7312 msgid "B<sethostid>():"
7313 msgstr ""
7314
7315 #. type: Plain text
7316 #: build/C/man3/gethostid.3:67
7317 msgid ""
7318 "B<gethostid>()  and B<sethostid>()  respectively get or set a unique 32-bit "
7319 "identifier for the current machine.  The 32-bit identifier is intended to be "
7320 "unique among all UNIX systems in existence.  This normally resembles the "
7321 "Internet address for the local machine, as returned by B<gethostbyname>(3), "
7322 "and thus usually never needs to be set."
7323 msgstr ""
7324
7325 #. type: Plain text
7326 #: build/C/man3/gethostid.3:71
7327 msgid "The B<sethostid>()  call is restricted to the superuser."
7328 msgstr ""
7329
7330 #. type: Plain text
7331 #: build/C/man3/gethostid.3:75
7332 msgid ""
7333 "B<gethostid>()  returns the 32-bit identifier for the current host as set by "
7334 "B<sethostid>()."
7335 msgstr ""
7336
7337 #. type: Plain text
7338 #: build/C/man3/gethostid.3:81
7339 msgid ""
7340 "On success, B<sethostid>()  returns 0; on error, -1 is returned, and "
7341 "I<errno> is set to indicate the error."
7342 msgstr ""
7343
7344 #. type: Plain text
7345 #: build/C/man3/gethostid.3:84
7346 msgid "B<sethostid>()  can fail with the following errors:"
7347 msgstr ""
7348
7349 #. type: Plain text
7350 #: build/C/man3/gethostid.3:88
7351 msgid ""
7352 "The caller did not have permission to write to the file used to store the "
7353 "host ID."
7354 msgstr ""
7355
7356 #. type: Plain text
7357 #: build/C/man3/gethostid.3:92
7358 msgid ""
7359 "The calling process's effective user or group ID is not the same as its "
7360 "corresponding real ID."
7361 msgstr ""
7362
7363 #. type: Plain text
7364 #: build/C/man3/gethostid.3:102
7365 msgid ""
7366 "4.2BSD; these functions were dropped in 4.4BSD.  SVr4 includes "
7367 "B<gethostid>()  but not B<sethostid>().  POSIX.1-2001 specifies "
7368 "B<gethostid>()  but not B<sethostid>()."
7369 msgstr ""
7370
7371 #.  libc5 used /etc/hostid; libc4 didn't have these functions
7372 #. type: Plain text
7373 #: build/C/man3/gethostid.3:111
7374 msgid ""
7375 "In the glibc implementation, the I<hostid> is stored in the file "
7376 "I</etc/hostid>.  (In glibc versions before 2.2, the file I</var/adm/hostid> "
7377 "was used.)"
7378 msgstr ""
7379
7380 #. type: Plain text
7381 #: build/C/man3/gethostid.3:122
7382 msgid ""
7383 "In the glibc implementation, if B<gethostid>()  cannot open the file "
7384 "containing the host ID, then it obtains the hostname using "
7385 "B<gethostname>(2), passes that hostname to B<gethostbyname_r>(3)  in order "
7386 "to obtain the host's IPv4 address, and returns a value obtained by "
7387 "bit-twiddling the IPv4 address.  (This value may not be unique.)"
7388 msgstr ""
7389
7390 #. type: Plain text
7391 #: build/C/man3/gethostid.3:124
7392 msgid "It is impossible to ensure that the identifier is globally unique."
7393 msgstr ""
7394
7395 #. type: Plain text
7396 #: build/C/man3/gethostid.3:127
7397 msgid "B<hostid>(1), B<gethostbyname>(3)"
7398 msgstr ""
7399
7400 #. type: TH
7401 #: build/C/man2/gethostname.2:32
7402 #, no-wrap
7403 msgid "GETHOSTNAME"
7404 msgstr ""
7405
7406 #. type: Plain text
7407 #: build/C/man2/gethostname.2:35
7408 msgid "gethostname, sethostname - get/set hostname"
7409 msgstr ""
7410
7411 #. type: Plain text
7412 #: build/C/man2/gethostname.2:39
7413 msgid "B<int gethostname(char *>I<name>B<, size_t >I<len>B<);>"
7414 msgstr ""
7415
7416 #. type: Plain text
7417 #: build/C/man2/gethostname.2:41
7418 msgid "B<int sethostname(const char *>I<name>B<, size_t >I<len>B<);>"
7419 msgstr ""
7420
7421 #. type: Plain text
7422 #: build/C/man2/gethostname.2:50
7423 msgid "B<gethostname>():"
7424 msgstr ""
7425
7426 #. type: Plain text
7427 #: build/C/man2/gethostname.2:53
7428 msgid "Since glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500"
7429 msgstr ""
7430
7431 #. type: Plain text
7432 #: build/C/man2/gethostname.2:55
7433 msgid "|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L"
7434 msgstr ""
7435
7436 #. type: Plain text
7437 #: build/C/man2/gethostname.2:58
7438 msgid "B<sethostname>():"
7439 msgstr ""
7440
7441 #. type: Plain text
7442 #: build/C/man2/gethostname.2:66
7443 msgid ""
7444 "These system calls are used to access or to change the hostname of the "
7445 "current processor."
7446 msgstr ""
7447
7448 #. type: Plain text
7449 #: build/C/man2/gethostname.2:77
7450 msgid ""
7451 "B<sethostname>()  sets the hostname to the value given in the character "
7452 "array I<name>.  The I<len> argument specifies the number of bytes in "
7453 "I<name>.  (Thus, I<name> does not require a terminating null byte.)"
7454 msgstr ""
7455
7456 #. type: Plain text
7457 #: build/C/man2/gethostname.2:89
7458 msgid ""
7459 "B<gethostname>()  returns the null-terminated hostname in the character "
7460 "array I<name>, which has a length of I<len> bytes.  If the null-terminated "
7461 "hostname is too large to fit, then the name is truncated, and no error is "
7462 "returned (but see NOTES below).  POSIX.1-2001 says that if such truncation "
7463 "occurs, then it is unspecified whether the returned buffer includes a "
7464 "terminating null byte."
7465 msgstr ""
7466
7467 #. type: Plain text
7468 #: build/C/man2/gethostname.2:99
7469 msgid "I<name> is an invalid address."
7470 msgstr ""
7471
7472 #.  Can't occur for gethostbyname() wrapper, since 'len' has an
7473 #.  unsigned type; can occur for the underlying system call.
7474 #. type: Plain text
7475 #: build/C/man2/gethostname.2:109
7476 msgid ""
7477 "I<len> is negative or, for B<sethostname>(), I<len> is larger than the "
7478 "maximum allowed size."
7479 msgstr ""
7480
7481 #. type: Plain text
7482 #: build/C/man2/gethostname.2:117
7483 msgid ""
7484 "(glibc B<gethostname>())  I<len> is smaller than the actual size.  (Before "
7485 "version 2.1, glibc uses B<EINVAL> for this case.)"
7486 msgstr ""
7487
7488 #. type: Plain text
7489 #: build/C/man2/gethostname.2:124
7490 msgid ""
7491 "For B<sethostname>(), the caller did not have the B<CAP_SYS_ADMIN> "
7492 "capability."
7493 msgstr ""
7494
7495 #. type: Plain text
7496 #: build/C/man2/gethostname.2:130
7497 msgid ""
7498 "SVr4, 4.4BSD (these interfaces first appeared in 4.2BSD).  POSIX.1-2001 "
7499 "specifies B<gethostname>()  but not B<sethostname>()."
7500 msgstr ""
7501
7502 #. type: Plain text
7503 #: build/C/man2/gethostname.2:140
7504 msgid ""
7505 "SUSv2 guarantees that \"Host names are limited to 255 bytes\".  POSIX.1-2001 "
7506 "guarantees that \"Host names (not including the terminating null byte) are "
7507 "limited to B<HOST_NAME_MAX> bytes\".  On Linux, B<HOST_NAME_MAX> is defined "
7508 "with the value 64, which has been the limit since Linux 1.0 (earlier kernels "
7509 "imposed a limit of 8 bytes)."
7510 msgstr ""
7511
7512 #. type: Plain text
7513 #: build/C/man2/gethostname.2:163
7514 msgid ""
7515 "The GNU C library does not employ the B<gethostname>()  system call; "
7516 "instead, it implements B<gethostname>()  as a library function that calls "
7517 "B<uname>(2)  and copies up to I<len> bytes from the returned I<nodename> "
7518 "field into I<name>.  Having performed the copy, the function then checks if "
7519 "the length of the I<nodename> was greater than or equal to I<len>, and if it "
7520 "is, then the function returns -1 with I<errno> set to B<ENAMETOOLONG>; in "
7521 "this case, a terminating null byte is not included in the returned I<name>."
7522 msgstr ""
7523
7524 #.  At least glibc 2.0 and 2.1, older versions not checked
7525 #. type: Plain text
7526 #: build/C/man2/gethostname.2:176
7527 msgid ""
7528 "Versions of glibc before 2.2 handle the case where the length of the "
7529 "I<nodename> was greater than or equal to I<len> differently: nothing is "
7530 "copied into I<name> and the function returns -1 with I<errno> set to "
7531 "B<ENAMETOOLONG>."
7532 msgstr ""
7533
7534 #. type: Plain text
7535 #: build/C/man2/gethostname.2:180
7536 msgid "B<getdomainname>(2), B<setdomainname>(2), B<uname>(2)"
7537 msgstr ""
7538
7539 #. type: TH
7540 #: build/C/man3/getlogin.3:28
7541 #, no-wrap
7542 msgid "GETLOGIN"
7543 msgstr ""
7544
7545 #. type: TH
7546 #: build/C/man3/getlogin.3:28
7547 #, no-wrap
7548 msgid "2008-06-29"
7549 msgstr ""
7550
7551 #. type: Plain text
7552 #: build/C/man3/getlogin.3:31
7553 msgid "getlogin, getlogin_r, cuserid - get username"
7554 msgstr ""
7555
7556 #. type: Plain text
7557 #: build/C/man3/getlogin.3:35
7558 msgid "B<char *getlogin(void);>"
7559 msgstr ""
7560
7561 #. type: Plain text
7562 #: build/C/man3/getlogin.3:37
7563 msgid "B<int getlogin_r(char *>I<buf>B<, size_t >I<bufsize>B<);>"
7564 msgstr ""
7565
7566 #. type: Plain text
7567 #: build/C/man3/getlogin.3:39
7568 msgid "B<#include E<lt>stdio.hE<gt>>"
7569 msgstr ""
7570
7571 #. type: Plain text
7572 #: build/C/man3/getlogin.3:41
7573 msgid "B<char *cuserid(char *>I<string>B<);>"
7574 msgstr ""
7575
7576 #. type: Plain text
7577 #: build/C/man3/getlogin.3:49
7578 msgid "B<getlogin_r>(): _REENTRANT || _POSIX_C_SOURCE\\ E<gt>=\\ 199506L"
7579 msgstr ""
7580
7581 #. type: Plain text
7582 #: build/C/man3/getlogin.3:52
7583 msgid "B<cuserid>(): _XOPEN_SOURCE"
7584 msgstr ""
7585
7586 #. type: Plain text
7587 #: build/C/man3/getlogin.3:61
7588 msgid ""
7589 "B<getlogin>()  returns a pointer to a string containing the name of the user "
7590 "logged in on the controlling terminal of the process, or a NULL pointer if "
7591 "this information cannot be determined.  The string is statically allocated "
7592 "and might be overwritten on subsequent calls to this function or to "
7593 "B<cuserid>()."
7594 msgstr ""
7595
7596 #. type: Plain text
7597 #: build/C/man3/getlogin.3:67
7598 msgid ""
7599 "B<getlogin_r>()  returns this same username in the array I<buf> of size "
7600 "I<bufsize>."
7601 msgstr ""
7602
7603 #. type: Plain text
7604 #: build/C/man3/getlogin.3:79
7605 msgid ""
7606 "B<cuserid>()  returns a pointer to a string containing a username associated "
7607 "with the effective user ID of the process.  If I<string> is not a NULL "
7608 "pointer, it should be an array that can hold at least B<L_cuserid> "
7609 "characters; the string is returned in this array.  Otherwise, a pointer to a "
7610 "string in a static area is returned.  This string is statically allocated "
7611 "and might be overwritten on subsequent calls to this function or to "
7612 "B<getlogin>()."
7613 msgstr ""
7614
7615 #. type: Plain text
7616 #: build/C/man3/getlogin.3:83
7617 msgid ""
7618 "The macro B<L_cuserid> is an integer constant that indicates how long an "
7619 "array you might need to store a username.  B<L_cuserid> is declared in "
7620 "I<E<lt>stdio.hE<gt>>."
7621 msgstr ""
7622
7623 #. type: Plain text
7624 #: build/C/man3/getlogin.3:90
7625 msgid ""
7626 "These functions let your program identify positively the user who is running "
7627 "(B<cuserid>())  or the user who logged in this session (B<getlogin>()).  "
7628 "(These can differ when set-user-ID programs are involved.)"
7629 msgstr ""
7630
7631 #. type: Plain text
7632 #: build/C/man3/getlogin.3:95
7633 msgid ""
7634 "For most purposes, it is more useful to use the environment variable "
7635 "B<LOGNAME> to find out who the user is.  This is more flexible precisely "
7636 "because the user can set B<LOGNAME> arbitrarily."
7637 msgstr ""
7638
7639 #. type: Plain text
7640 #: build/C/man3/getlogin.3:101
7641 msgid ""
7642 "B<getlogin>()  returns a pointer to the username when successful, and NULL "
7643 "on failure.  B<getlogin_r>()  returns 0 when successful, and nonzero on "
7644 "failure."
7645 msgstr ""
7646
7647 #. type: Plain text
7648 #: build/C/man3/getlogin.3:103
7649 msgid "POSIX specifies"
7650 msgstr ""
7651
7652 #. type: Plain text
7653 #: build/C/man3/getlogin.3:106
7654 msgid "The calling process already has the maximum allowed number of open files."
7655 msgstr ""
7656
7657 #. type: Plain text
7658 #: build/C/man3/getlogin.3:109
7659 msgid "The system already has the maximum allowed number of open files."
7660 msgstr ""
7661
7662 #. type: TP
7663 #: build/C/man3/getlogin.3:109
7664 #, no-wrap
7665 msgid "B<ENXIO>"
7666 msgstr ""
7667
7668 #. type: Plain text
7669 #: build/C/man3/getlogin.3:112
7670 msgid "The calling process has no controlling tty."
7671 msgstr ""
7672
7673 #. type: Plain text
7674 #: build/C/man3/getlogin.3:118
7675 msgid ""
7676 "(getlogin_r)  The length of the username, including the terminating null "
7677 "byte, is larger than I<bufsize>."
7678 msgstr ""
7679
7680 #. type: Plain text
7681 #: build/C/man3/getlogin.3:120
7682 msgid "Linux/glibc also has"
7683 msgstr ""
7684
7685 #. type: Plain text
7686 #: build/C/man3/getlogin.3:123
7687 msgid "There was no corresponding entry in the utmp-file."
7688 msgstr ""
7689
7690 #. type: Plain text
7691 #: build/C/man3/getlogin.3:126
7692 msgid "Insufficient memory to allocate passwd structure."
7693 msgstr ""
7694
7695 #. type: TP
7696 #: build/C/man3/getlogin.3:126 build/C/man2/ioctl.2:105 build/C/man2/ioctl.2:109 build/C/man3/tcgetpgrp.3:90
7697 #, no-wrap
7698 msgid "B<ENOTTY>"
7699 msgstr ""
7700
7701 #. type: Plain text
7702 #: build/C/man3/getlogin.3:130
7703 msgid "Standard input didn't refer to a terminal.  (See BUGS.)"
7704 msgstr ""
7705
7706 #. type: TP
7707 #: build/C/man3/getlogin.3:131
7708 #, no-wrap
7709 msgid "I</etc/passwd>"
7710 msgstr ""
7711
7712 #. type: Plain text
7713 #: build/C/man3/getlogin.3:134
7714 msgid "password database file"
7715 msgstr ""
7716
7717 #. type: TP
7718 #: build/C/man3/getlogin.3:134
7719 #, no-wrap
7720 msgid "I</var/run/utmp>"
7721 msgstr ""
7722
7723 #. type: Plain text
7724 #: build/C/man3/getlogin.3:138
7725 msgid "(traditionally I</etc/utmp>; some libc versions used I</var/adm/utmp>)"
7726 msgstr ""
7727
7728 #. type: Plain text
7729 #: build/C/man3/getlogin.3:143
7730 msgid "B<getlogin>()  and B<getlogin_r>()  specified in POSIX.1-2001."
7731 msgstr ""
7732
7733 #. type: Plain text
7734 #: build/C/man3/getlogin.3:154
7735 msgid ""
7736 "System V has a B<cuserid>()  function which uses the real user ID rather "
7737 "than the effective user ID.  The B<cuserid>()  function was included in the "
7738 "1988 version of POSIX, but removed from the 1990 version.  It was present in "
7739 "SUSv2, but removed in POSIX.1-2001."
7740 msgstr ""
7741
7742 #. type: Plain text
7743 #: build/C/man3/getlogin.3:161
7744 msgid ""
7745 "OpenBSD has B<getlogin>()  and B<setlogin>(), and a username associated with "
7746 "a session, even if it has no controlling tty."
7747 msgstr ""
7748
7749 #. type: Plain text
7750 #: build/C/man3/getlogin.3:173
7751 msgid ""
7752 "Unfortunately, it is often rather easy to fool B<getlogin>().  Sometimes it "
7753 "does not work at all, because some program messed up the utmp file.  Often, "
7754 "it gives only the first 8 characters of the login name.  The user currently "
7755 "logged in on the controlling tty of our program need not be the user who "
7756 "started it.  Avoid B<getlogin>()  for security-related purposes."
7757 msgstr ""
7758
7759 #. type: Plain text
7760 #: build/C/man3/getlogin.3:183
7761 msgid ""
7762 "Note that glibc does not follow the POSIX specification and uses I<stdin> "
7763 "instead of I</dev/tty>.  A bug.  (Other recent systems, like SunOS 5.8 and "
7764 "HP-UX 11.11 and FreeBSD 4.8 all return the login name also when I<stdin> is "
7765 "redirected.)"
7766 msgstr ""
7767
7768 #. type: Plain text
7769 #: build/C/man3/getlogin.3:193
7770 msgid ""
7771 "Nobody knows precisely what B<cuserid>()  does; avoid it in portable "
7772 "programs.  Or avoid it altogether: use I<getpwuid(geteuid())> instead, if "
7773 "that is what you meant.  B<Do not use> B<cuserid>()."
7774 msgstr ""
7775
7776 #. type: Plain text
7777 #: build/C/man3/getlogin.3:197
7778 msgid "B<geteuid>(2), B<getuid>(2), B<utmp>(5)"
7779 msgstr ""
7780
7781 #. type: TH
7782 #: build/C/man3/getopt.3:39
7783 #, no-wrap
7784 msgid "GETOPT"
7785 msgstr ""
7786
7787 #. type: Plain text
7788 #: build/C/man3/getopt.3:43
7789 msgid ""
7790 "getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt - "
7791 "Parse command-line options"
7792 msgstr ""
7793
7794 #. type: Plain text
7795 #: build/C/man3/getopt.3:49
7796 #, no-wrap
7797 msgid ""
7798 "B<int getopt(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7799 "B<           const char *>I<optstring>B<);>\n"
7800 msgstr ""
7801
7802 #. type: Plain text
7803 #: build/C/man3/getopt.3:52
7804 #, no-wrap
7805 msgid ""
7806 "B<extern char *>I<optarg>B<;>\n"
7807 "B<extern int >I<optind>B<, >I<opterr>B<, >I<optopt>B<;>\n"
7808 msgstr ""
7809
7810 #. type: Plain text
7811 #: build/C/man3/getopt.3:54
7812 #, no-wrap
7813 msgid "B<#include E<lt>getopt.hE<gt>>\n"
7814 msgstr ""
7815
7816 #. type: Plain text
7817 #: build/C/man3/getopt.3:58
7818 #, no-wrap
7819 msgid ""
7820 "B<int getopt_long(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7821 "B<           const char *>I<optstring>B<,>\n"
7822 "B<           const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n"
7823 msgstr ""
7824
7825 #. type: Plain text
7826 #: build/C/man3/getopt.3:62
7827 #, no-wrap
7828 msgid ""
7829 "B<int getopt_long_only(int >I<argc>B<, char * const >I<argv[]>B<,>\n"
7830 "B<           const char *>I<optstring>B<,>\n"
7831 "B<           const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n"
7832 msgstr ""
7833
7834 #. type: Plain text
7835 #: build/C/man3/getopt.3:72
7836 msgid "B<getopt>(): _POSIX_C_SOURCE\\ E<gt>=\\ 2 || _XOPEN_SOURCE"
7837 msgstr ""
7838
7839 #. type: Plain text
7840 #: build/C/man3/getopt.3:76
7841 msgid "B<getopt_long>(), B<getopt_long_only>(): _GNU_SOURCE"
7842 msgstr ""
7843
7844 #. type: Plain text
7845 #: build/C/man3/getopt.3:97
7846 msgid ""
7847 "The B<getopt>()  function parses the command-line arguments.  Its arguments "
7848 "I<argc> and I<argv> are the argument count and array as passed to the "
7849 "I<main>()  function on program invocation.  An element of I<argv> that "
7850 "starts with \\(aq-\\(aq (and is not exactly \"-\" or \"--\")  is an option "
7851 "element.  The characters of this element (aside from the initial "
7852 "\\(aq-\\(aq) are option characters.  If B<getopt>()  is called repeatedly, "
7853 "it returns successively each of the option characters from each of the "
7854 "option elements."
7855 msgstr ""
7856
7857 #. type: Plain text
7858 #: build/C/man3/getopt.3:106
7859 msgid ""
7860 "The variable I<optind> is the index of the next element to be processed in "
7861 "I<argv>.  The system initializes this value to 1.  The caller can reset it "
7862 "to 1 to restart scanning of the same I<argv>, or when scanning a new "
7863 "argument vector."
7864 msgstr ""
7865
7866 #. type: Plain text
7867 #: build/C/man3/getopt.3:116
7868 msgid ""
7869 "If B<getopt>()  finds another option character, it returns that character, "
7870 "updating the external variable I<optind> and a static variable I<nextchar> "
7871 "so that the next call to B<getopt>()  can resume the scan with the following "
7872 "option character or I<argv>-element."
7873 msgstr ""
7874
7875 #. type: Plain text
7876 #: build/C/man3/getopt.3:122
7877 msgid ""
7878 "If there are no more option characters, B<getopt>()  returns -1.  Then "
7879 "I<optind> is the index in I<argv> of the first I<argv>-element that is not "
7880 "an option."
7881 msgstr ""
7882
7883 #. type: Plain text
7884 #: build/C/man3/getopt.3:149
7885 msgid ""
7886 "I<optstring> is a string containing the legitimate option characters.  If "
7887 "such a character is followed by a colon, the option requires an argument, so "
7888 "B<getopt>()  places a pointer to the following text in the same "
7889 "I<argv>-element, or the text of the following I<argv>-element, in "
7890 "I<optarg>.  Two colons mean an option takes an optional arg; if there is "
7891 "text in the current I<argv>-element (i.e., in the same word as the option "
7892 "name itself, for example, \"-oarg\"), then it is returned in I<optarg>, "
7893 "otherwise I<optarg> is set to zero.  This is a GNU extension.  If "
7894 "I<optstring> contains B<W> followed by a semicolon, then B<-W foo> is "
7895 "treated as the long option B<--foo>.  (The B<-W> option is reserved by "
7896 "POSIX.2 for implementation extensions.)  This behavior is a GNU extension, "
7897 "not available with libraries before glibc 2."
7898 msgstr ""
7899
7900 #. type: Plain text
7901 #: build/C/man3/getopt.3:167
7902 msgid ""
7903 "By default, B<getopt>()  permutes the contents of I<argv> as it scans, so "
7904 "that eventually all the nonoptions are at the end.  Two other modes are also "
7905 "implemented.  If the first character of I<optstring> is \\(aq+\\(aq or the "
7906 "environment variable B<POSIXLY_CORRECT> is set, then option processing stops "
7907 "as soon as a nonoption argument is encountered.  If the first character of "
7908 "I<optstring> is \\(aq-\\(aq, then each nonoption I<argv>-element is handled "
7909 "as if it were the argument of an option with character code 1.  (This is "
7910 "used by programs that were written to expect options and other "
7911 "I<argv>-elements in any order and that care about the ordering of the two.)  "
7912 "The special argument \"--\" forces an end of option-scanning regardless of "
7913 "the scanning mode."
7914 msgstr ""
7915
7916 #. type: Plain text
7917 #: build/C/man3/getopt.3:175
7918 msgid ""
7919 "If B<getopt>()  does not recognize an option character, it prints an error "
7920 "message to I<stderr>, stores the character in I<optopt>, and returns "
7921 "\\(aq?\\(aq.  The calling program may prevent the error message by setting "
7922 "I<opterr> to 0."
7923 msgstr ""
7924
7925 #. type: Plain text
7926 #: build/C/man3/getopt.3:194
7927 msgid ""
7928 "If B<getopt>()  finds an option character in I<argv> that was not included "
7929 "in I<optstring>, or if it detects a missing option argument, it returns "
7930 "\\(aq?\\(aq and sets the external variable I<optopt> to the actual option "
7931 "character.  If the first character (following any optional \\(aq+\\(aq or "
7932 "\\(aq-\\(aq described above)  of I<optstring> is a colon (\\(aq:\\(aq), then "
7933 "B<getopt>()  returns \\(aq:\\(aq instead of \\(aq?\\(aq to indicate a "
7934 "missing option argument.  If an error was detected, and the first character "
7935 "of I<optstring> is not a colon, and the external variable I<opterr> is "
7936 "nonzero (which is the default), B<getopt>()  prints an error message."
7937 msgstr ""
7938
7939 #. type: SS
7940 #: build/C/man3/getopt.3:194
7941 #, no-wrap
7942 msgid "getopt_long() and getopt_long_only()"
7943 msgstr ""
7944
7945 #. type: Plain text
7946 #: build/C/man3/getopt.3:210
7947 msgid ""
7948 "The B<getopt_long>()  function works like B<getopt>()  except that it also "
7949 "accepts long options, started with two dashes.  (If the program accepts only "
7950 "long options, then I<optstring> should be specified as an empty string "
7951 "(\"\"), not NULL.)  Long option names may be abbreviated if the abbreviation "
7952 "is unique or is an exact match for some defined option.  A long option may "
7953 "take a parameter, of the form B<--arg=param> or B<--arg param>."
7954 msgstr ""
7955
7956 #. type: Plain text
7957 #: build/C/man3/getopt.3:217
7958 msgid ""
7959 "I<longopts> is a pointer to the first element of an array of I<struct "
7960 "option> declared in I<E<lt>getopt.hE<gt>> as"
7961 msgstr ""
7962
7963 #. type: Plain text
7964 #: build/C/man3/getopt.3:226
7965 #, no-wrap
7966 msgid ""
7967 "struct option {\n"
7968 "    const char *name;\n"
7969 "    int         has_arg;\n"
7970 "    int        *flag;\n"
7971 "    int         val;\n"
7972 "};\n"
7973 msgstr ""
7974
7975 #. type: Plain text
7976 #: build/C/man3/getopt.3:230
7977 msgid "The meanings of the different fields are:"
7978 msgstr ""
7979
7980 #. type: TP
7981 #: build/C/man3/getopt.3:230
7982 #, no-wrap
7983 msgid "I<name>"
7984 msgstr ""
7985
7986 #. type: Plain text
7987 #: build/C/man3/getopt.3:233
7988 msgid "is the name of the long option."
7989 msgstr ""
7990
7991 #. type: TP
7992 #: build/C/man3/getopt.3:233
7993 #, no-wrap
7994 msgid "I<has_arg>"
7995 msgstr ""
7996
7997 #. type: Plain text
7998 #: build/C/man3/getopt.3:239
7999 msgid ""
8000 "is: B<no_argument> (or 0) if the option does not take an argument; "
8001 "B<required_argument> (or 1) if the option requires an argument; or "
8002 "B<optional_argument> (or 2) if the option takes an optional argument."
8003 msgstr ""
8004
8005 #. type: TP
8006 #: build/C/man3/getopt.3:239
8007 #, no-wrap
8008 msgid "I<flag>"
8009 msgstr ""
8010
8011 #. type: Plain text
8012 #: build/C/man3/getopt.3:253
8013 msgid ""
8014 "specifies how results are returned for a long option.  If I<flag> is NULL, "
8015 "then B<getopt_long>()  returns I<val>.  (For example, the calling program "
8016 "may set I<val> to the equivalent short option character.)  Otherwise, "
8017 "B<getopt_long>()  returns 0, and I<flag> points to a variable which is set "
8018 "to I<val> if the option is found, but left unchanged if the option is not "
8019 "found."
8020 msgstr ""
8021
8022 #. type: TP
8023 #: build/C/man3/getopt.3:253
8024 #, no-wrap
8025 msgid "I<val>"
8026 msgstr ""
8027
8028 #. type: Plain text
8029 #: build/C/man3/getopt.3:257
8030 msgid "is the value to return, or to load into the variable pointed to by I<flag>."
8031 msgstr ""
8032
8033 #. type: Plain text
8034 #: build/C/man3/getopt.3:259
8035 msgid "The last element of the array has to be filled with zeros."
8036 msgstr ""
8037
8038 #. type: Plain text
8039 #: build/C/man3/getopt.3:263
8040 msgid ""
8041 "If I<longindex> is not NULL, it points to a variable which is set to the "
8042 "index of the long option relative to I<longopts>."
8043 msgstr ""
8044
8045 #. type: Plain text
8046 #: build/C/man3/getopt.3:272
8047 msgid ""
8048 "B<getopt_long_only>()  is like B<getopt_long>(), but \\(aq-\\(aq as well as "
8049 "\"--\" can indicate a long option.  If an option that starts with "
8050 "\\(aq-\\(aq (not \"--\") doesn't match a long option, but does match a short "
8051 "option, it is parsed as a short option instead."
8052 msgstr ""
8053
8054 #. type: Plain text
8055 #: build/C/man3/getopt.3:290
8056 msgid ""
8057 "If an option was successfully found, then B<getopt>()  returns the option "
8058 "character.  If all command-line options have been parsed, then B<getopt>()  "
8059 "returns -1.  If B<getopt>()  encounters an option character that was not in "
8060 "I<optstring>, then \\(aq?\\(aq is returned.  If B<getopt>()  encounters an "
8061 "option with a missing argument, then the return value depends on the first "
8062 "character in I<optstring>: if it is \\(aq:\\(aq, then \\(aq:\\(aq is "
8063 "returned; otherwise \\(aq?\\(aq is returned."
8064 msgstr ""
8065
8066 #. type: Plain text
8067 #: build/C/man3/getopt.3:302
8068 msgid ""
8069 "B<getopt_long>()  and B<getopt_long_only>()  also return the option "
8070 "character when a short option is recognized.  For a long option, they return "
8071 "I<val> if I<flag> is NULL, and 0 otherwise.  Error and -1 returns are the "
8072 "same as for B<getopt>(), plus \\(aq?\\(aq for an ambiguous match or an "
8073 "extraneous parameter."
8074 msgstr ""
8075
8076 #. type: SH
8077 #: build/C/man3/getopt.3:302
8078 #, no-wrap
8079 msgid "ENVIRONMENT"
8080 msgstr ""
8081
8082 #. type: TP
8083 #: build/C/man3/getopt.3:303
8084 #, no-wrap
8085 msgid "B<POSIXLY_CORRECT>"
8086 msgstr ""
8087
8088 #. type: Plain text
8089 #: build/C/man3/getopt.3:307
8090 msgid ""
8091 "If this is set, then option processing stops as soon as a nonoption argument "
8092 "is encountered."
8093 msgstr ""
8094
8095 #. type: TP
8096 #: build/C/man3/getopt.3:307
8097 #, no-wrap
8098 msgid "B<_E<lt>PIDE<gt>_GNU_nonoption_argv_flags_>"
8099 msgstr ""
8100
8101 #. type: Plain text
8102 #: build/C/man3/getopt.3:316
8103 msgid ""
8104 "This variable was used by B<bash>(1)  2.0 to communicate to glibc which "
8105 "arguments are the results of wildcard expansion and so should not be "
8106 "considered as options.  This behavior was removed in B<bash>(1)  version "
8107 "2.01, but the support remains in glibc."
8108 msgstr ""
8109
8110 #. type: TP
8111 #: build/C/man3/getopt.3:317
8112 #, no-wrap
8113 msgid "B<getopt>():"
8114 msgstr ""
8115
8116 #. type: Plain text
8117 #: build/C/man3/getopt.3:327
8118 msgid ""
8119 "POSIX.2 and POSIX.1-2001, provided the environment variable "
8120 "B<POSIXLY_CORRECT> is set.  Otherwise, the elements of I<argv> aren't really "
8121 "const, because we permute them.  We pretend they're const in the prototype "
8122 "to be compatible with other systems."
8123 msgstr ""
8124
8125 #. type: Plain text
8126 #: build/C/man3/getopt.3:331
8127 msgid "The use of \\(aq+\\(aq and \\(aq-\\(aq in I<optstring> is a GNU extension."
8128 msgstr ""
8129
8130 #. type: Plain text
8131 #: build/C/man3/getopt.3:345
8132 msgid ""
8133 "On some older implementations, B<getopt>()  was declared in "
8134 "I<E<lt>stdio.hE<gt>>.  SUSv1 permitted the declaration to appear in either "
8135 "I<E<lt>unistd.hE<gt>> or I<E<lt>stdio.hE<gt>>.  POSIX.1-2001 marked the use "
8136 "of I<E<lt>stdio.hE<gt>> for this purpose as LEGACY.  POSIX.1-2001 does not "
8137 "allow the declaration to appear in I<E<lt>stdio.hE<gt>>."
8138 msgstr ""
8139
8140 #. type: TP
8141 #: build/C/man3/getopt.3:345
8142 #, no-wrap
8143 msgid "B<getopt_long>() and B<getopt_long_only>():"
8144 msgstr ""
8145
8146 #. type: Plain text
8147 #: build/C/man3/getopt.3:348
8148 msgid "These functions are GNU extensions."
8149 msgstr ""
8150
8151 #. type: Plain text
8152 #: build/C/man3/getopt.3:367
8153 msgid ""
8154 "A program that scans multiple argument vectors, or rescans the same vector "
8155 "more than once, and wants to make use of GNU extensions such as \\(aq+\\(aq "
8156 "and \\(aq-\\(aq at the start of I<optstring>, or changes the value of "
8157 "B<POSIXLY_CORRECT> between scans, must reinitialize B<getopt>()  by "
8158 "resetting I<optind> to 0, rather than the traditional value of 1.  "
8159 "(Resetting to 0 forces the invocation of an internal initialization routine "
8160 "that rechecks B<POSIXLY_CORRECT> and checks for GNU extensions in "
8161 "I<optstring>.)"
8162 msgstr ""
8163
8164 #. type: Plain text
8165 #: build/C/man3/getopt.3:374
8166 msgid ""
8167 "The POSIX.2 specification of B<getopt>()  has a technical error described in "
8168 "POSIX.2 Interpretation 150.  The GNU implementation (and probably all other "
8169 "implementations) implements the correct behavior rather than that specified."
8170 msgstr ""
8171
8172 #. type: Plain text
8173 #: build/C/man3/getopt.3:382
8174 msgid ""
8175 "The following trivial example program uses B<getopt>()  to handle two "
8176 "program options: I<-n>, with no associated value; and I<-t val>, which "
8177 "expects an associated value."
8178 msgstr ""
8179
8180 #. type: Plain text
8181 #: build/C/man3/getopt.3:387
8182 #, no-wrap
8183 msgid ""
8184 "#include E<lt>unistd.hE<gt>\n"
8185 "#include E<lt>stdlib.hE<gt>\n"
8186 "#include E<lt>stdio.hE<gt>\n"
8187 msgstr ""
8188
8189 #. type: Plain text
8190 #: build/C/man3/getopt.3:393
8191 #, no-wrap
8192 msgid ""
8193 "int\n"
8194 "main(int argc, char *argv[])\n"
8195 "{\n"
8196 "    int flags, opt;\n"
8197 "    int nsecs, tfnd;\n"
8198 msgstr ""
8199
8200 #. type: Plain text
8201 #: build/C/man3/getopt.3:412
8202 #, no-wrap
8203 msgid ""
8204 "    nsecs = 0;\n"
8205 "    tfnd = 0;\n"
8206 "    flags = 0;\n"
8207 "    while ((opt = getopt(argc, argv, \"nt:\")) != -1) {\n"
8208 "        switch (opt) {\n"
8209 "        case \\(aqn\\(aq:\n"
8210 "            flags = 1;\n"
8211 "            break;\n"
8212 "        case \\(aqt\\(aq:\n"
8213 "            nsecs = atoi(optarg);\n"
8214 "            tfnd = 1;\n"
8215 "            break;\n"
8216 "        default: /* \\(aq?\\(aq */\n"
8217 "            fprintf(stderr, \"Usage: %s [-t nsecs] [-n] name\\en\",\n"
8218 "                    argv[0]);\n"
8219 "            exit(EXIT_FAILURE);\n"
8220 "        }\n"
8221 "    }\n"
8222 msgstr ""
8223
8224 #. type: Plain text
8225 #: build/C/man3/getopt.3:414
8226 #, no-wrap
8227 msgid "    printf(\"flags=%d; tfnd=%d; optind=%d\\en\", flags, tfnd, optind);\n"
8228 msgstr ""
8229
8230 #. type: Plain text
8231 #: build/C/man3/getopt.3:419
8232 #, no-wrap
8233 msgid ""
8234 "    if (optind E<gt>= argc) {\n"
8235 "        fprintf(stderr, \"Expected argument after options\\en\");\n"
8236 "        exit(EXIT_FAILURE);\n"
8237 "    }\n"
8238 msgstr ""
8239
8240 #. type: Plain text
8241 #: build/C/man3/getopt.3:421
8242 #, no-wrap
8243 msgid "    printf(\"name argument = %s\\en\", argv[optind]);\n"
8244 msgstr ""
8245
8246 #. type: Plain text
8247 #: build/C/man3/getopt.3:423
8248 #, no-wrap
8249 msgid "    /* Other code omitted */\n"
8250 msgstr ""
8251
8252 #. type: Plain text
8253 #: build/C/man3/getopt.3:431
8254 msgid ""
8255 "The following example program illustrates the use of B<getopt_long>()  with "
8256 "most of its features."
8257 msgstr ""
8258
8259 #. type: Plain text
8260 #: build/C/man3/getopt.3:436
8261 #, no-wrap
8262 msgid ""
8263 "#include E<lt>stdio.hE<gt>     /* for printf */\n"
8264 "#include E<lt>stdlib.hE<gt>    /* for exit */\n"
8265 "#include E<lt>getopt.hE<gt>\n"
8266 msgstr ""
8267
8268 #. type: Plain text
8269 #: build/C/man3/getopt.3:442
8270 #, no-wrap
8271 msgid ""
8272 "int\n"
8273 "main(int argc, char **argv)\n"
8274 "{\n"
8275 "    int c;\n"
8276 "    int digit_optind = 0;\n"
8277 msgstr ""
8278
8279 #. type: Plain text
8280 #: build/C/man3/getopt.3:455
8281 #, no-wrap
8282 msgid ""
8283 "    while (1) {\n"
8284 "        int this_option_optind = optind ? optind : 1;\n"
8285 "        int option_index = 0;\n"
8286 "        static struct option long_options[] = {\n"
8287 "            {\"add\",     required_argument, 0,  0 },\n"
8288 "            {\"append\",  no_argument,       0,  0 },\n"
8289 "            {\"delete\",  required_argument, 0,  0 },\n"
8290 "            {\"verbose\", no_argument,       0,  0 },\n"
8291 "            {\"create\",  required_argument, 0, \\(aqc\\(aq},\n"
8292 "            {\"file\",    required_argument, 0,  0 },\n"
8293 "            {0,         0,                 0,  0 }\n"
8294 "        };\n"
8295 msgstr ""
8296
8297 #. type: Plain text
8298 #: build/C/man3/getopt.3:460
8299 #, no-wrap
8300 msgid ""
8301 "        c = getopt_long(argc, argv, \"abc:d:012\",\n"
8302 "                 long_options, &option_index);\n"
8303 "        if (c == -1)\n"
8304 "            break;\n"
8305 msgstr ""
8306
8307 #. type: Plain text
8308 #: build/C/man3/getopt.3:468
8309 #, no-wrap
8310 msgid ""
8311 "        switch (c) {\n"
8312 "        case 0:\n"
8313 "            printf(\"option %s\", long_options[option_index].name);\n"
8314 "            if (optarg)\n"
8315 "                printf(\" with arg %s\", optarg);\n"
8316 "            printf(\"\\en\");\n"
8317 "            break;\n"
8318 msgstr ""
8319
8320 #. type: Plain text
8321 #: build/C/man3/getopt.3:477
8322 #, no-wrap
8323 msgid ""
8324 "        case \\(aq0\\(aq:\n"
8325 "        case \\(aq1\\(aq:\n"
8326 "        case \\(aq2\\(aq:\n"
8327 "            if (digit_optind != 0 && digit_optind != this_option_optind)\n"
8328 "              printf(\"digits occur in two different "
8329 "argv-elements.\\en\");\n"
8330 "            digit_optind = this_option_optind;\n"
8331 "            printf(\"option %c\\en\", c);\n"
8332 "            break;\n"
8333 msgstr ""
8334
8335 #. type: Plain text
8336 #: build/C/man3/getopt.3:481
8337 #, no-wrap
8338 msgid ""
8339 "        case \\(aqa\\(aq:\n"
8340 "            printf(\"option a\\en\");\n"
8341 "            break;\n"
8342 msgstr ""
8343
8344 #. type: Plain text
8345 #: build/C/man3/getopt.3:485
8346 #, no-wrap
8347 msgid ""
8348 "        case \\(aqb\\(aq:\n"
8349 "            printf(\"option b\\en\");\n"
8350 "            break;\n"
8351 msgstr ""
8352
8353 #. type: Plain text
8354 #: build/C/man3/getopt.3:489
8355 #, no-wrap
8356 msgid ""
8357 "        case \\(aqc\\(aq:\n"
8358 "            printf(\"option c with value \\(aq%s\\(aq\\en\", optarg);\n"
8359 "            break;\n"
8360 msgstr ""
8361
8362 #. type: Plain text
8363 #: build/C/man3/getopt.3:493
8364 #, no-wrap
8365 msgid ""
8366 "        case \\(aqd\\(aq:\n"
8367 "            printf(\"option d with value \\(aq%s\\(aq\\en\", optarg);\n"
8368 "            break;\n"
8369 msgstr ""
8370
8371 #. type: Plain text
8372 #: build/C/man3/getopt.3:496
8373 #, no-wrap
8374 msgid ""
8375 "        case \\(aq?\\(aq:\n"
8376 "            break;\n"
8377 msgstr ""
8378
8379 #. type: Plain text
8380 #: build/C/man3/getopt.3:501
8381 #, no-wrap
8382 msgid ""
8383 "        default:\n"
8384 "            printf(\"?? getopt returned character code 0%o ??\\en\", c);\n"
8385 "        }\n"
8386 "    }\n"
8387 msgstr ""
8388
8389 #. type: Plain text
8390 #: build/C/man3/getopt.3:508
8391 #, no-wrap
8392 msgid ""
8393 "    if (optind E<lt> argc) {\n"
8394 "        printf(\"non-option ARGV-elements: \");\n"
8395 "        while (optind E<lt> argc)\n"
8396 "            printf(\"%s \", argv[optind++]);\n"
8397 "        printf(\"\\en\");\n"
8398 "    }\n"
8399 msgstr ""
8400
8401 #. type: Plain text
8402 #: build/C/man3/getopt.3:514
8403 msgid "B<getsubopt>(3)"
8404 msgstr ""
8405
8406 #. type: TH
8407 #: build/C/man2/getpagesize.2:23
8408 #, no-wrap
8409 msgid "GETPAGESIZE"
8410 msgstr ""
8411
8412 #. type: TH
8413 #: build/C/man2/getpagesize.2:23
8414 #, no-wrap
8415 msgid "2010-11-16"
8416 msgstr ""
8417
8418 #. type: Plain text
8419 #: build/C/man2/getpagesize.2:26
8420 msgid "getpagesize - get memory page size"
8421 msgstr ""
8422
8423 #. type: Plain text
8424 #: build/C/man2/getpagesize.2:30
8425 msgid "B<int getpagesize(void);>"
8426 msgstr ""
8427
8428 #. type: Plain text
8429 #: build/C/man2/getpagesize.2:37
8430 msgid "B<getpagesize>():"
8431 msgstr ""
8432
8433 #.  .SH HISTORY
8434 #.  This call first appeared in 4.2BSD.
8435 #. type: Plain text
8436 #: build/C/man2/getpagesize.2:62
8437 msgid ""
8438 "The function B<getpagesize>()  returns the number of bytes in a memory page, "
8439 "where \"page\" is a fixed-length block, the unit for memory allocation and "
8440 "file mapping performed by B<mmap>(2)."
8441 msgstr ""
8442
8443 #. type: Plain text
8444 #: build/C/man2/getpagesize.2:69
8445 msgid ""
8446 "SVr4, 4.4BSD, SUSv2.  In SUSv2 the B<getpagesize>()  call is labeled LEGACY, "
8447 "and in POSIX.1-2001 it has been dropped; HP-UX does not have this call."
8448 msgstr ""
8449
8450 #. type: Plain text
8451 #: build/C/man2/getpagesize.2:74
8452 msgid ""
8453 "Portable applications should employ I<sysconf(_SC_PAGESIZE)> instead of "
8454 "B<getpagesize>():"
8455 msgstr ""
8456
8457 #. type: Plain text
8458 #: build/C/man2/getpagesize.2:79
8459 #, no-wrap
8460 msgid ""
8461 "#include E<lt>unistd.hE<gt>\n"
8462 "long sz = sysconf(_SC_PAGESIZE);\n"
8463 msgstr ""
8464
8465 #. type: Plain text
8466 #: build/C/man2/getpagesize.2:86
8467 msgid "(Most systems allow the synonym B<_SC_PAGE_SIZE> for B<_SC_PAGESIZE>.)"
8468 msgstr ""
8469
8470 #. type: Plain text
8471 #: build/C/man2/getpagesize.2:106
8472 msgid ""
8473 "Whether B<getpagesize>()  is present as a Linux system call depends on the "
8474 "architecture.  If it is, it returns the kernel symbol B<PAGE_SIZE>, whose "
8475 "value depends on the architecture and machine model.  Generally, one uses "
8476 "binaries that are dependent on the architecture but not on the machine "
8477 "model, in order to have a single binary distribution per architecture.  This "
8478 "means that a user program should not find B<PAGE_SIZE> at compile time from "
8479 "a header file, but use an actual system call, at least for those "
8480 "architectures (like sun4) where this dependency exists.  Here libc4, libc5, "
8481 "glibc 2.0 fail because their B<getpagesize>()  returns a statically derived "
8482 "value, and does not use a system call.  Things are OK in glibc 2.1."
8483 msgstr ""
8484
8485 #. type: Plain text
8486 #: build/C/man2/getpagesize.2:109
8487 msgid "B<mmap>(2), B<sysconf>(3)"
8488 msgstr ""
8489
8490 #. type: TH
8491 #: build/C/man2/gettid.2:26
8492 #, no-wrap
8493 msgid "GETTID"
8494 msgstr ""
8495
8496 #. type: TH
8497 #: build/C/man2/gettid.2:26
8498 #, no-wrap
8499 msgid "2008-04-14"
8500 msgstr ""
8501
8502 #. type: Plain text
8503 #: build/C/man2/gettid.2:29
8504 msgid "gettid - get thread identification"
8505 msgstr ""
8506
8507 #. type: Plain text
8508 #: build/C/man2/gettid.2:32
8509 #, no-wrap
8510 msgid "B<#include E<lt>sys/types.hE<gt>>\n"
8511 msgstr ""
8512
8513 #. type: Plain text
8514 #: build/C/man2/gettid.2:34
8515 #, no-wrap
8516 msgid "B<pid_t gettid(void);>\n"
8517 msgstr ""
8518
8519 #. type: Plain text
8520 #: build/C/man2/gettid.2:47
8521 msgid ""
8522 "B<gettid>()  returns the caller's thread ID (TID).  In a single-threaded "
8523 "process, the thread ID is equal to the process ID (PID, as returned by "
8524 "B<getpid>(2)).  In a multithreaded process, all threads have the same PID, "
8525 "but each one has a unique TID.  For further details, see the discussion of "
8526 "B<CLONE_THREAD> in B<clone>(2)."
8527 msgstr ""
8528
8529 #. type: Plain text
8530 #: build/C/man2/gettid.2:49
8531 msgid "On success, returns the thread ID of the calling process."
8532 msgstr ""
8533
8534 #. type: Plain text
8535 #: build/C/man2/gettid.2:51
8536 msgid "This call is always successful."
8537 msgstr ""
8538
8539 #. type: Plain text
8540 #: build/C/man2/gettid.2:55
8541 msgid "The B<gettid>()  system call first appeared on Linux in kernel 2.4.11."
8542 msgstr ""
8543
8544 #. type: Plain text
8545 #: build/C/man2/gettid.2:59
8546 msgid ""
8547 "B<gettid>()  is Linux-specific and should not be used in programs that are "
8548 "intended to be portable."
8549 msgstr ""
8550
8551 #. type: Plain text
8552 #: build/C/man2/gettid.2:68
8553 msgid ""
8554 "The thread ID returned by this call is not the same thing as a POSIX thread "
8555 "ID (i.e., the opaque value returned by B<pthread_self>(3))."
8556 msgstr ""
8557
8558 #. type: Plain text
8559 #: build/C/man2/gettid.2:72
8560 msgid "B<clone>(2), B<fork>(2), B<getpid>(2)"
8561 msgstr ""
8562
8563 #. type: TH
8564 #: build/C/man3/getumask.3:26
8565 #, no-wrap
8566 msgid "GETUMASK"
8567 msgstr ""
8568
8569 #. type: TH
8570 #: build/C/man3/getumask.3:26
8571 #, no-wrap
8572 msgid "2010-09-10"
8573 msgstr ""
8574
8575 #. type: Plain text
8576 #: build/C/man3/getumask.3:29
8577 msgid "getumask - get file creation mask"
8578 msgstr ""
8579
8580 #. type: Plain text
8581 #: build/C/man3/getumask.3:33 build/C/man2/truncate.2:48 build/C/man2/umask.2:39 build/C/man2/vfork.2:31
8582 msgid "B<#include E<lt>sys/types.hE<gt>>"
8583 msgstr ""
8584
8585 #. type: Plain text
8586 #: build/C/man3/getumask.3:37
8587 msgid "B<mode_t getumask(void);>"
8588 msgstr ""
8589
8590 #. type: Plain text
8591 #: build/C/man3/getumask.3:40
8592 msgid "This function returns the current file creation mask.  It is equivalent to"
8593 msgstr ""
8594
8595 #. type: Plain text
8596 #: build/C/man3/getumask.3:49
8597 #, no-wrap
8598 msgid ""
8599 "mode_t getumask(void)\n"
8600 "{\n"
8601 "    mode_t mask = umask( 0 );\n"
8602 "    umask(mask);\n"
8603 "    return mask;\n"
8604 "}\n"
8605 msgstr ""
8606
8607 #. type: Plain text
8608 #: build/C/man3/getumask.3:56
8609 msgid ""
8610 "except that it is documented to be thread-safe (that is, shares a lock with "
8611 "the B<umask>(2)  library call)."
8612 msgstr ""
8613
8614 #. type: Plain text
8615 #: build/C/man3/getumask.3:58
8616 msgid "This is a vaporware GNU extension."
8617 msgstr ""
8618
8619 #. type: Plain text
8620 #: build/C/man3/getumask.3:61
8621 msgid ""
8622 "This function is documented but not implemented yet in glibc, as at version "
8623 "2.9."
8624 msgstr ""
8625
8626 #. type: Plain text
8627 #: build/C/man3/getumask.3:63
8628 msgid "B<umask>(2)"
8629 msgstr ""
8630
8631 #. type: TH
8632 #: build/C/man3/getusershell.3:28
8633 #, no-wrap
8634 msgid "GETUSERSHELL"
8635 msgstr ""
8636
8637 #. type: TH
8638 #: build/C/man3/getusershell.3:28 build/C/man2/nice.2:31 build/C/man2/syscall.2:38 build/C/man2/vhangup.2:27
8639 #, no-wrap
8640 msgid "2007-07-26"
8641 msgstr ""
8642
8643 #. type: Plain text
8644 #: build/C/man3/getusershell.3:31
8645 msgid "getusershell, setusershell, endusershell - get permitted user shells"
8646 msgstr ""
8647
8648 #. type: Plain text
8649 #: build/C/man3/getusershell.3:36
8650 #, no-wrap
8651 msgid "B<char *getusershell(void);>\n"
8652 msgstr ""
8653
8654 #. type: Plain text
8655 #: build/C/man3/getusershell.3:38
8656 #, no-wrap
8657 msgid "B<void setusershell(void);>\n"
8658 msgstr ""
8659
8660 #. type: Plain text
8661 #: build/C/man3/getusershell.3:40
8662 #, no-wrap
8663 msgid "B<void endusershell(void);>\n"
8664 msgstr ""
8665
8666 #. type: Plain text
8667 #: build/C/man3/getusershell.3:51
8668 msgid "B<getusershell>(), B<setusershell>(), B<endusershell>():"
8669 msgstr ""
8670
8671 #. type: Plain text
8672 #: build/C/man3/getusershell.3:67
8673 msgid ""
8674 "The B<getusershell>()  function returns the next line from the file "
8675 "I</etc/shells>, opening the file if necessary.  The line should contain the "
8676 "pathname of a valid user shell.  If I</etc/shells> does not exist or is "
8677 "unreadable, B<getusershell>()  behaves as if I</bin/sh> and I</bin/csh> were "
8678 "listed in the file."
8679 msgstr ""
8680
8681 #. type: Plain text
8682 #: build/C/man3/getusershell.3:71
8683 msgid "The B<setusershell>()  function rewinds I</etc/shells>."
8684 msgstr ""
8685
8686 #. type: Plain text
8687 #: build/C/man3/getusershell.3:75
8688 msgid "The B<endusershell>()  function closes I</etc/shells>."
8689 msgstr ""
8690
8691 #. type: Plain text
8692 #: build/C/man3/getusershell.3:79
8693 msgid "The B<getusershell>()  function returns a NULL pointer on end-of-file."
8694 msgstr ""
8695
8696 #. type: Plain text
8697 #: build/C/man3/getusershell.3:82
8698 #, no-wrap
8699 msgid "/etc/shells\n"
8700 msgstr ""
8701
8702 #. type: Plain text
8703 #: build/C/man3/getusershell.3:85
8704 msgid "4.3BSD."
8705 msgstr ""
8706
8707 #. type: Plain text
8708 #: build/C/man3/getusershell.3:87
8709 msgid "B<shells>(5)"
8710 msgstr ""
8711
8712 #. type: TH
8713 #: build/C/man2/idle.2:32
8714 #, no-wrap
8715 msgid "IDLE"
8716 msgstr ""
8717
8718 #. type: TH
8719 #: build/C/man2/idle.2:32
8720 #, no-wrap
8721 msgid "1994-08-21"
8722 msgstr ""
8723
8724 #. type: Plain text
8725 #: build/C/man2/idle.2:35
8726 msgid "idle - make process 0 idle"
8727 msgstr ""
8728
8729 #. type: Plain text
8730 #: build/C/man2/idle.2:39
8731 msgid "B<int idle(void);>"
8732 msgstr ""
8733
8734 #. type: Plain text
8735 #: build/C/man2/idle.2:46
8736 msgid ""
8737 "B<idle>()  is an internal system call used during bootstrap.  It marks the "
8738 "process's pages as swappable, lowers its priority, and enters the main "
8739 "scheduling loop.  B<idle>()  never returns."
8740 msgstr ""
8741
8742 #. type: Plain text
8743 #: build/C/man2/idle.2:52
8744 msgid ""
8745 "Only process 0 may call B<idle>().  Any user process, even a process with "
8746 "superuser permission, will receive B<EPERM>."
8747 msgstr ""
8748
8749 #. type: Plain text
8750 #: build/C/man2/idle.2:55
8751 msgid ""
8752 "B<idle>()  never returns for process 0, and always returns -1 for a user "
8753 "process."
8754 msgstr ""
8755
8756 #. type: Plain text
8757 #: build/C/man2/idle.2:59 build/C/man2/setup.2:60
8758 msgid "Always, for a user process."
8759 msgstr ""
8760
8761 #. type: Plain text
8762 #: build/C/man2/idle.2:61
8763 msgid "Since 2.3.13 this system call does not exist anymore."
8764 msgstr ""
8765
8766 #. type: Plain text
8767 #: build/C/man2/idle.2:64 build/C/man2/sysinfo.2:86
8768 msgid ""
8769 "This function is Linux-specific, and should not be used in programs intended "
8770 "to be portable."
8771 msgstr ""
8772
8773 #. type: TH
8774 #: build/C/man2/ioctl.2:39
8775 #, no-wrap
8776 msgid "IOCTL"
8777 msgstr ""
8778
8779 #. type: TH
8780 #: build/C/man2/ioctl.2:39
8781 #, no-wrap
8782 msgid "2000-09-21"
8783 msgstr ""
8784
8785 #. type: Plain text
8786 #: build/C/man2/ioctl.2:42
8787 msgid "ioctl - control device"
8788 msgstr ""
8789
8790 #. type: Plain text
8791 #: build/C/man2/ioctl.2:44
8792 msgid "B<#include E<lt>sys/ioctl.hE<gt>>"
8793 msgstr ""
8794
8795 #. type: Plain text
8796 #: build/C/man2/ioctl.2:46
8797 msgid "B<int ioctl(int >I<d>B<, int >I<request>B<, ...);>"
8798 msgstr ""
8799
8800 #. type: Plain text
8801 #: build/C/man2/ioctl.2:57
8802 msgid ""
8803 "The B<ioctl>()  function manipulates the underlying device parameters of "
8804 "special files.  In particular, many operating characteristics of character "
8805 "special files (e.g., terminals) may be controlled with B<ioctl>()  "
8806 "requests.  The argument I<d> must be an open file descriptor."
8807 msgstr ""
8808
8809 #. type: Plain text
8810 #: build/C/man2/ioctl.2:65
8811 msgid ""
8812 "The second argument is a device-dependent request code.  The third argument "
8813 "is an untyped pointer to memory.  It's traditionally B<char *>I<argp> (from "
8814 "the days before B<void *> was valid C), and will be so named for this "
8815 "discussion."
8816 msgstr ""
8817
8818 #. type: Plain text
8819 #: build/C/man2/ioctl.2:81
8820 msgid ""
8821 "An B<ioctl>()  I<request> has encoded in it whether the argument is an I<in> "
8822 "parameter or I<out> parameter, and the size of the argument I<argp> in "
8823 "bytes.  Macros and defines used in specifying an B<ioctl>()  I<request> are "
8824 "located in the file I<E<lt>sys/ioctl.hE<gt>>."
8825 msgstr ""
8826
8827 #. type: Plain text
8828 #: build/C/man2/ioctl.2:90
8829 msgid ""
8830 "Usually, on success zero is returned.  A few B<ioctl>()  requests use the "
8831 "return value as an output parameter and return a nonnegative value on "
8832 "success.  On error, -1 is returned, and I<errno> is set appropriately."
8833 msgstr ""
8834
8835 #. type: Plain text
8836 #: build/C/man2/ioctl.2:95
8837 msgid "I<d> is not a valid descriptor."
8838 msgstr ""
8839
8840 #. type: Plain text
8841 #: build/C/man2/ioctl.2:99
8842 msgid "I<argp> references an inaccessible memory area."
8843 msgstr ""
8844
8845 #. type: Plain text
8846 #: build/C/man2/ioctl.2:105
8847 msgid "I<Request> or I<argp> is not valid."
8848 msgstr ""
8849
8850 #. type: Plain text
8851 #: build/C/man2/ioctl.2:109
8852 msgid "I<d> is not associated with a character special device."
8853 msgstr ""
8854
8855 #. type: Plain text
8856 #: build/C/man2/ioctl.2:115
8857 msgid ""
8858 "The specified request does not apply to the kind of object that the "
8859 "descriptor I<d> references."
8860 msgstr ""
8861
8862 #. type: Plain text
8863 #: build/C/man2/ioctl.2:130
8864 msgid ""
8865 "No single standard.  Arguments, returns, and semantics of B<ioctl>()  vary "
8866 "according to the device driver in question (the call is used as a catch-all "
8867 "for operations that don't cleanly fit the UNIX stream I/O model).  See "
8868 "B<ioctl_list>(2)  for a list of many of the known B<ioctl>()  calls.  The "
8869 "B<ioctl>()  function call appeared in Version 7 AT&T UNIX."
8870 msgstr ""
8871
8872 #. type: Plain text
8873 #: build/C/man2/ioctl.2:138
8874 msgid ""
8875 "In order to use this call, one needs an open file descriptor.  Often the "
8876 "B<open>(2)  call has unwanted side effects, that can be avoided under Linux "
8877 "by giving it the B<O_NONBLOCK> flag."
8878 msgstr ""
8879
8880 #.  .BR mt (4),
8881 #. type: Plain text
8882 #: build/C/man2/ioctl.2:146
8883 msgid "B<execve>(2), B<fcntl>(2), B<ioctl_list>(2), B<open>(2), B<sd>(4), B<tty>(4)"
8884 msgstr ""
8885
8886 #. type: TH
8887 #: build/C/man2/ioctl_list.2:27
8888 #, no-wrap
8889 msgid "IOCTL_LIST"
8890 msgstr ""
8891
8892 #. type: TH
8893 #: build/C/man2/ioctl_list.2:27
8894 #, no-wrap
8895 msgid "2007-12-29"
8896 msgstr ""
8897
8898 #. type: Plain text
8899 #: build/C/man2/ioctl_list.2:30
8900 msgid "ioctl_list - list of ioctl calls in Linux/i386 kernel"
8901 msgstr ""
8902
8903 #. type: Plain text
8904 #: build/C/man2/ioctl_list.2:37
8905 msgid ""
8906 "This is Ioctl List 1.3.27, a list of ioctl calls in Linux/i386 kernel "
8907 "1.3.27.  It contains 421 ioctls from "
8908 "I<E<lt>/usr/include/{asm,linux}/*.hE<gt>>.  For each ioctl, its numerical "
8909 "value, its name, and its argument type are given."
8910 msgstr ""
8911
8912 #. type: Plain text
8913 #: build/C/man2/ioctl_list.2:45
8914 msgid ""
8915 "An argument type of I<const struct foo *> means the argument is input to the "
8916 "kernel.  I<struct foo *> means the kernel outputs the argument.  If the "
8917 "kernel uses the argument for both input and output, this is marked with "
8918 "I<//\\ I-O>."
8919 msgstr ""
8920
8921 #. type: Plain text
8922 #: build/C/man2/ioctl_list.2:50
8923 msgid ""
8924 "Some ioctls take more arguments or return more values than a single "
8925 "structure.  These are marked I<//\\ MORE> and documented further in a "
8926 "separate section."
8927 msgstr ""
8928
8929 #. type: Plain text
8930 #: build/C/man2/ioctl_list.2:52
8931 msgid "This list is very incomplete."
8932 msgstr ""
8933
8934 #. type: SS
8935 #: build/C/man2/ioctl_list.2:52
8936 #, no-wrap
8937 msgid "ioctl structure"
8938 msgstr ""
8939
8940 #.  added two sections - aeb
8941 #. type: Plain text
8942 #: build/C/man2/ioctl_list.2:57
8943 msgid ""
8944 "Ioctl command values are 32-bit constants.  In principle these constants are "
8945 "completely arbitrary, but people have tried to build some structure into "
8946 "them."
8947 msgstr ""
8948
8949 #. type: Plain text
8950 #: build/C/man2/ioctl_list.2:76
8951 msgid ""
8952 "The old Linux situation was that of mostly 16-bit constants, where the last "
8953 "byte is a serial number, and the preceding byte(s) give a type indicating "
8954 "the driver.  Sometimes the major number was used: 0x03 for the B<HDIO_*> "
8955 "ioctls, 0x06 for the B<LP*> ioctls.  And sometimes one or more ASCII letters "
8956 "were used.  For example, B<TCGETS> has value 0x00005401, with 0x54 = "
8957 "\\(aqT\\(aq indicating the terminal driver, and B<CYGETTIMEOUT> has value "
8958 "0x00435906, with 0x43 0x59 = \\(aqC\\(aq \\(aqY\\(aq indicating the cyclades "
8959 "driver."
8960 msgstr ""
8961
8962 #. type: Plain text
8963 #: build/C/man2/ioctl_list.2:84
8964 msgid ""
8965 "Later (0.98p5) some more information was built into the number.  One has 2 "
8966 "direction bits (00: none, 01: write, 10: read, 11: read/write)  followed by "
8967 "14 size bits (giving the size of the argument), followed by an 8-bit type "
8968 "(collecting the ioctls in groups for a common purpose or a common driver), "
8969 "and an 8-bit serial number."
8970 msgstr ""
8971
8972 #. type: Plain text
8973 #: build/C/man2/ioctl_list.2:94
8974 msgid ""
8975 "The macros describing this structure live in I<E<lt>asm/ioctl.hE<gt>> and "
8976 "are B<_IO(type,nr)> and B<{_IOR,_IOW,_IOWR}(type,nr,size)>.  They use "
8977 "I<sizeof(size)> so that size is a misnomer here: this third argument is a "
8978 "data type."
8979 msgstr ""
8980
8981 #. type: Plain text
8982 #: build/C/man2/ioctl_list.2:99
8983 msgid ""
8984 "Note that the size bits are very unreliable: in lots of cases they are "
8985 "wrong, either because of buggy macros using I<sizeof(sizeof(struct))>, or "
8986 "because of legacy values."
8987 msgstr ""
8988
8989 #. type: Plain text
8990 #: build/C/man2/ioctl_list.2:103
8991 msgid ""
8992 "Thus, it seems that the new structure only gave disadvantages: it does not "
8993 "help in checking, but it causes varying values for the various "
8994 "architectures."
8995 msgstr ""
8996
8997 #. type: Plain text
8998 #: build/C/man2/ioctl_list.2:109
8999 msgid ""
9000 "Decent ioctls return 0 on success and -1 on error, while any output value is "
9001 "stored via the argument.  However, quite a few ioctls in fact return an "
9002 "output value.  This is not yet indicated below."
9003 msgstr ""
9004
9005 #. type: Plain text
9006 #: build/C/man2/ioctl_list.2:111
9007 msgid "// Main table."
9008 msgstr ""
9009
9010 #. type: Plain text
9011 #: build/C/man2/ioctl_list.2:113
9012 msgid "// E<lt>include/asm-i386/socket.hE<gt>"
9013 msgstr ""
9014
9015 #. type: tbl table
9016 #: build/C/man2/ioctl_list.2:115
9017 #, no-wrap
9018 msgid "0x00008901\tFIOSETOWN\tconst int *\n"
9019 msgstr ""
9020
9021 #. type: tbl table
9022 #: build/C/man2/ioctl_list.2:116
9023 #, no-wrap
9024 msgid "0x00008902\tSIOCSPGRP\tconst int *\n"
9025 msgstr ""
9026
9027 #. type: tbl table
9028 #: build/C/man2/ioctl_list.2:117
9029 #, no-wrap
9030 msgid "0x00008903\tFIOGETOWN\tint *\n"
9031 msgstr ""
9032
9033 #. type: tbl table
9034 #: build/C/man2/ioctl_list.2:118
9035 #, no-wrap
9036 msgid "0x00008904\tSIOCGPGRP\tint *\n"
9037 msgstr ""
9038
9039 #. type: tbl table
9040 #: build/C/man2/ioctl_list.2:119
9041 #, no-wrap
9042 msgid "0x00008905\tSIOCATMAR\tint *\n"
9043 msgstr ""
9044
9045 #. type: tbl table
9046 #: build/C/man2/ioctl_list.2:120
9047 #, no-wrap
9048 msgid "0x00008906\tSIOCGSTAMP\ttimeval *\n"
9049 msgstr ""
9050
9051 #. type: Plain text
9052 #: build/C/man2/ioctl_list.2:124
9053 msgid "// E<lt>include/asm-i386/termios.hE<gt>"
9054 msgstr ""
9055
9056 #. type: tbl table
9057 #: build/C/man2/ioctl_list.2:126
9058 #, no-wrap
9059 msgid "0x00005401\tTCGETS\tstruct termios *\n"
9060 msgstr ""
9061
9062 #. type: tbl table
9063 #: build/C/man2/ioctl_list.2:127
9064 #, no-wrap
9065 msgid "0x00005402\tTCSETS\tconst struct termios *\n"
9066 msgstr ""
9067
9068 #. type: tbl table
9069 #: build/C/man2/ioctl_list.2:128
9070 #, no-wrap
9071 msgid "0x00005403\tTCSETSW\tconst struct termios *\n"
9072 msgstr ""
9073
9074 #. type: tbl table
9075 #: build/C/man2/ioctl_list.2:129
9076 #, no-wrap
9077 msgid "0x00005404\tTCSETSF\tconst struct termios *\n"
9078 msgstr ""
9079
9080 #. type: tbl table
9081 #: build/C/man2/ioctl_list.2:130
9082 #, no-wrap
9083 msgid "0x00005405\tTCGETA\tstruct termio *\n"
9084 msgstr ""
9085
9086 #. type: tbl table
9087 #: build/C/man2/ioctl_list.2:131
9088 #, no-wrap
9089 msgid "0x00005406\tTCSETA\tconst struct termio *\n"
9090 msgstr ""
9091
9092 #. type: tbl table
9093 #: build/C/man2/ioctl_list.2:132
9094 #, no-wrap
9095 msgid "0x00005407\tTCSETAW\tconst struct termio *\n"
9096 msgstr ""
9097
9098 #. type: tbl table
9099 #: build/C/man2/ioctl_list.2:133
9100 #, no-wrap
9101 msgid "0x00005408\tTCSETAF\tconst struct termio *\n"
9102 msgstr ""
9103
9104 #. type: tbl table
9105 #: build/C/man2/ioctl_list.2:134
9106 #, no-wrap
9107 msgid "0x00005409\tTCSBRK\tint\n"
9108 msgstr ""
9109
9110 #. type: tbl table
9111 #: build/C/man2/ioctl_list.2:135
9112 #, no-wrap
9113 msgid "0x0000540A\tTCXONC\tint\n"
9114 msgstr ""
9115
9116 #. type: tbl table
9117 #: build/C/man2/ioctl_list.2:136
9118 #, no-wrap
9119 msgid "0x0000540B\tTCFLSH\tint\n"
9120 msgstr ""
9121
9122 #. type: tbl table
9123 #: build/C/man2/ioctl_list.2:137
9124 #, no-wrap
9125 msgid "0x0000540C\tTIOCEXCL\tvoid\n"
9126 msgstr ""
9127
9128 #. type: tbl table
9129 #: build/C/man2/ioctl_list.2:138
9130 #, no-wrap
9131 msgid "0x0000540D\tTIOCNXCL\tvoid\n"
9132 msgstr ""
9133
9134 #. type: tbl table
9135 #: build/C/man2/ioctl_list.2:139
9136 #, no-wrap
9137 msgid "0x0000540E\tTIOCSCTTY\tint\n"
9138 msgstr ""
9139
9140 #. type: tbl table
9141 #: build/C/man2/ioctl_list.2:140
9142 #, no-wrap
9143 msgid "0x0000540F\tTIOCGPGRP\tpid_t *\n"
9144 msgstr ""
9145
9146 #. type: tbl table
9147 #: build/C/man2/ioctl_list.2:141
9148 #, no-wrap
9149 msgid "0x00005410\tTIOCSPGRP\tconst pid_t *\n"
9150 msgstr ""
9151
9152 #. type: tbl table
9153 #: build/C/man2/ioctl_list.2:142
9154 #, no-wrap
9155 msgid "0x00005411\tTIOCOUTQ\tint *\n"
9156 msgstr ""
9157
9158 #. type: tbl table
9159 #: build/C/man2/ioctl_list.2:143
9160 #, no-wrap
9161 msgid "0x00005412\tTIOCSTI\tconst char *\n"
9162 msgstr ""
9163
9164 #. type: tbl table
9165 #: build/C/man2/ioctl_list.2:144
9166 #, no-wrap
9167 msgid "0x00005413\tTIOCGWINSZ\tstruct winsize *\n"
9168 msgstr ""
9169
9170 #. type: tbl table
9171 #: build/C/man2/ioctl_list.2:145
9172 #, no-wrap
9173 msgid "0x00005414\tTIOCSWINSZ\tconst struct winsize *\n"
9174 msgstr ""
9175
9176 #. type: tbl table
9177 #: build/C/man2/ioctl_list.2:146
9178 #, no-wrap
9179 msgid "0x00005415\tTIOCMGET\tint *\n"
9180 msgstr ""
9181
9182 #. type: tbl table
9183 #: build/C/man2/ioctl_list.2:147
9184 #, no-wrap
9185 msgid "0x00005416\tTIOCMBIS\tconst int *\n"
9186 msgstr ""
9187
9188 #. type: tbl table
9189 #: build/C/man2/ioctl_list.2:148
9190 #, no-wrap
9191 msgid "0x00005417\tTIOCMBIC\tconst int *\n"
9192 msgstr ""
9193
9194 #. type: tbl table
9195 #: build/C/man2/ioctl_list.2:149
9196 #, no-wrap
9197 msgid "0x00005418\tTIOCMSET\tconst int *\n"
9198 msgstr ""
9199
9200 #. type: tbl table
9201 #: build/C/man2/ioctl_list.2:150
9202 #, no-wrap
9203 msgid "0x00005419\tTIOCGSOFTCAR\tint *\n"
9204 msgstr ""
9205
9206 #. type: tbl table
9207 #: build/C/man2/ioctl_list.2:151
9208 #, no-wrap
9209 msgid "0x0000541A\tTIOCSSOFTCAR\tconst int *\n"
9210 msgstr ""
9211
9212 #. type: tbl table
9213 #: build/C/man2/ioctl_list.2:152
9214 #, no-wrap
9215 msgid "0x0000541B\tFIONREAD\tint *\n"
9216 msgstr ""
9217
9218 #. type: tbl table
9219 #: build/C/man2/ioctl_list.2:153
9220 #, no-wrap
9221 msgid "0x0000541B\tTIOCINQ\tint *\n"
9222 msgstr ""
9223
9224 #. type: tbl table
9225 #: build/C/man2/ioctl_list.2:154
9226 #, no-wrap
9227 msgid "0x0000541C\tTIOCLINUX\tconst char *\t// MORE\n"
9228 msgstr ""
9229
9230 #. type: tbl table
9231 #: build/C/man2/ioctl_list.2:155
9232 #, no-wrap
9233 msgid "0x0000541D\tTIOCCONS\tvoid\n"
9234 msgstr ""
9235
9236 #. type: tbl table
9237 #: build/C/man2/ioctl_list.2:156
9238 #, no-wrap
9239 msgid "0x0000541E\tTIOCGSERIAL\tstruct serial_struct *\n"
9240 msgstr ""
9241
9242 #. type: tbl table
9243 #: build/C/man2/ioctl_list.2:157
9244 #, no-wrap
9245 msgid "0x0000541F\tTIOCSSERIAL\tconst struct serial_struct *\n"
9246 msgstr ""
9247
9248 #. type: tbl table
9249 #: build/C/man2/ioctl_list.2:158
9250 #, no-wrap
9251 msgid "0x00005420\tTIOCPKT\tconst int *\n"
9252 msgstr ""
9253
9254 #. type: tbl table
9255 #: build/C/man2/ioctl_list.2:159
9256 #, no-wrap
9257 msgid "0x00005421\tFIONBIO\tconst int *\n"
9258 msgstr ""
9259
9260 #. type: tbl table
9261 #: build/C/man2/ioctl_list.2:160
9262 #, no-wrap
9263 msgid "0x00005422\tTIOCNOTTY\tvoid\n"
9264 msgstr ""
9265
9266 #. type: tbl table
9267 #: build/C/man2/ioctl_list.2:161
9268 #, no-wrap
9269 msgid "0x00005423\tTIOCSETD\tconst int *\n"
9270 msgstr ""
9271
9272 #. type: tbl table
9273 #: build/C/man2/ioctl_list.2:162
9274 #, no-wrap
9275 msgid "0x00005424\tTIOCGETD\tint *\n"
9276 msgstr ""
9277
9278 #. type: tbl table
9279 #: build/C/man2/ioctl_list.2:163
9280 #, no-wrap
9281 msgid "0x00005425\tTCSBRKP\tint\n"
9282 msgstr ""
9283
9284 #. type: tbl table
9285 #: build/C/man2/ioctl_list.2:164
9286 #, no-wrap
9287 msgid "0x00005426\tTIOCTTYGSTRUCT\tstruct tty_struct *\n"
9288 msgstr ""
9289
9290 #. type: tbl table
9291 #: build/C/man2/ioctl_list.2:165
9292 #, no-wrap
9293 msgid "0x00005450\tFIONCLEX\tvoid\n"
9294 msgstr ""
9295
9296 #. type: tbl table
9297 #: build/C/man2/ioctl_list.2:166
9298 #, no-wrap
9299 msgid "0x00005451\tFIOCLEX\tvoid\n"
9300 msgstr ""
9301
9302 #. type: tbl table
9303 #: build/C/man2/ioctl_list.2:167
9304 #, no-wrap
9305 msgid "0x00005452\tFIOASYNC\tconst int *\n"
9306 msgstr ""
9307
9308 #. type: tbl table
9309 #: build/C/man2/ioctl_list.2:168
9310 #, no-wrap
9311 msgid "0x00005453\tTIOCSERCONFIG\tvoid\n"
9312 msgstr ""
9313
9314 #. type: tbl table
9315 #: build/C/man2/ioctl_list.2:169
9316 #, no-wrap
9317 msgid "0x00005454\tTIOCSERGWILD\tint *\n"
9318 msgstr ""
9319
9320 #. type: tbl table
9321 #: build/C/man2/ioctl_list.2:170
9322 #, no-wrap
9323 msgid "0x00005455\tTIOCSERSWILD\tconst int *\n"
9324 msgstr ""
9325
9326 #. type: tbl table
9327 #: build/C/man2/ioctl_list.2:171
9328 #, no-wrap
9329 msgid "0x00005456\tTIOCGLCKTRMIOS\tstruct termios *\n"
9330 msgstr ""
9331
9332 #. type: tbl table
9333 #: build/C/man2/ioctl_list.2:172
9334 #, no-wrap
9335 msgid "0x00005457\tTIOCSLCKTRMIOS\tconst struct termios *\n"
9336 msgstr ""
9337
9338 #. type: tbl table
9339 #: build/C/man2/ioctl_list.2:173
9340 #, no-wrap
9341 msgid "0x00005458\tTIOCSERGSTRUCT\tstruct async_struct *\n"
9342 msgstr ""
9343
9344 #. type: tbl table
9345 #: build/C/man2/ioctl_list.2:174
9346 #, no-wrap
9347 msgid "0x00005459\tTIOCSERGETLSR\tint *\n"
9348 msgstr ""
9349
9350 #. type: tbl table
9351 #: build/C/man2/ioctl_list.2:175
9352 #, no-wrap
9353 msgid "0x0000545A\tTIOCSERGETMULTI\tstruct serial_multiport_struct *\n"
9354 msgstr ""
9355
9356 #. type: tbl table
9357 #: build/C/man2/ioctl_list.2:176
9358 #, no-wrap
9359 msgid "0x0000545B\tTIOCSERSETMULTI\tconst struct serial_multiport_struct *\n"
9360 msgstr ""
9361
9362 #. type: Plain text
9363 #: build/C/man2/ioctl_list.2:180
9364 msgid "// E<lt>include/linux/ax25.hE<gt>"
9365 msgstr ""
9366
9367 #. type: tbl table
9368 #: build/C/man2/ioctl_list.2:182
9369 #, no-wrap
9370 msgid "0x000089E0\tSIOCAX25GETUID\tconst struct sockaddr_ax25 *\n"
9371 msgstr ""
9372
9373 #. type: tbl table
9374 #: build/C/man2/ioctl_list.2:183
9375 #, no-wrap
9376 msgid "0x000089E1\tSIOCAX25ADDUID\tconst struct sockaddr_ax25 *\n"
9377 msgstr ""
9378
9379 #. type: tbl table
9380 #: build/C/man2/ioctl_list.2:184
9381 #, no-wrap
9382 msgid "0x000089E2\tSIOCAX25DELUID\tconst struct sockaddr_ax25 *\n"
9383 msgstr ""
9384
9385 #. type: tbl table
9386 #: build/C/man2/ioctl_list.2:185
9387 #, no-wrap
9388 msgid "0x000089E3\tSIOCAX25NOUID\tconst int *\n"
9389 msgstr ""
9390
9391 #. type: tbl table
9392 #: build/C/man2/ioctl_list.2:186
9393 #, no-wrap
9394 msgid "0x000089E4\tSIOCAX25DIGCTL\tconst int *\n"
9395 msgstr ""
9396
9397 #. type: tbl table
9398 #: build/C/man2/ioctl_list.2:187
9399 #, no-wrap
9400 msgid "0x000089E5\tSIOCAX25GETPARMS\tstruct ax25_parms_struct *\t// I-O\n"
9401 msgstr ""
9402
9403 #. type: tbl table
9404 #: build/C/man2/ioctl_list.2:188
9405 #, no-wrap
9406 msgid "0x000089E6\tSIOCAX25SETPARMS\tconst struct ax25_parms_struct *\n"
9407 msgstr ""
9408
9409 #. type: Plain text
9410 #: build/C/man2/ioctl_list.2:192
9411 msgid "// E<lt>include/linux/cdk.hE<gt>"
9412 msgstr ""
9413
9414 #. type: tbl table
9415 #: build/C/man2/ioctl_list.2:194
9416 #, no-wrap
9417 msgid "0x00007314\tSTL_BINTR\tvoid\n"
9418 msgstr ""
9419
9420 #. type: tbl table
9421 #: build/C/man2/ioctl_list.2:195
9422 #, no-wrap
9423 msgid "0x00007315\tSTL_BSTART\tvoid\n"
9424 msgstr ""
9425
9426 #. type: tbl table
9427 #: build/C/man2/ioctl_list.2:196
9428 #, no-wrap
9429 msgid "0x00007316\tSTL_BSTOP\tvoid\n"
9430 msgstr ""
9431
9432 #. type: tbl table
9433 #: build/C/man2/ioctl_list.2:197
9434 #, no-wrap
9435 msgid "0x00007317\tSTL_BRESET\tvoid\n"
9436 msgstr ""
9437
9438 #. type: Plain text
9439 #: build/C/man2/ioctl_list.2:201
9440 msgid "// E<lt>include/linux/cdrom.hE<gt>"
9441 msgstr ""
9442
9443 #. type: tbl table
9444 #: build/C/man2/ioctl_list.2:203
9445 #, no-wrap
9446 msgid "0x00005301\tCDROMPAUSE\tvoid\n"
9447 msgstr ""
9448
9449 #. type: tbl table
9450 #: build/C/man2/ioctl_list.2:204
9451 #, no-wrap
9452 msgid "0x00005302\tCDROMRESUME\tvoid\n"
9453 msgstr ""
9454
9455 #. type: tbl table
9456 #: build/C/man2/ioctl_list.2:205
9457 #, no-wrap
9458 msgid "0x00005303\tCDROMPLAYMSF\tconst struct cdrom_msf *\n"
9459 msgstr ""
9460
9461 #. type: tbl table
9462 #: build/C/man2/ioctl_list.2:206
9463 #, no-wrap
9464 msgid "0x00005304\tCDROMPLAYTRKIND\tconst struct cdrom_ti *\n"
9465 msgstr ""
9466
9467 #. type: tbl table
9468 #: build/C/man2/ioctl_list.2:207
9469 #, no-wrap
9470 msgid "0x00005305\tCDROMREADTOCHDR\tstruct cdrom_tochdr *\n"
9471 msgstr ""
9472
9473 #. type: tbl table
9474 #: build/C/man2/ioctl_list.2:208
9475 #, no-wrap
9476 msgid "0x00005306\tCDROMREADTOCENTRY\tstruct cdrom_tocentry *\t// I-O\n"
9477 msgstr ""
9478
9479 #. type: tbl table
9480 #: build/C/man2/ioctl_list.2:209
9481 #, no-wrap
9482 msgid "0x00005307\tCDROMSTOP\tvoid\n"
9483 msgstr ""
9484
9485 #. type: tbl table
9486 #: build/C/man2/ioctl_list.2:210
9487 #, no-wrap
9488 msgid "0x00005308\tCDROMSTART\tvoid\n"
9489 msgstr ""
9490
9491 #. type: tbl table
9492 #: build/C/man2/ioctl_list.2:211
9493 #, no-wrap
9494 msgid "0x00005309\tCDROMEJECT\tvoid\n"
9495 msgstr ""
9496
9497 #. type: tbl table
9498 #: build/C/man2/ioctl_list.2:212
9499 #, no-wrap
9500 msgid "0x0000530A\tCDROMVOLCTRL\tconst struct cdrom_volctrl *\n"
9501 msgstr ""
9502
9503 #. type: tbl table
9504 #: build/C/man2/ioctl_list.2:213
9505 #, no-wrap
9506 msgid "0x0000530B\tCDROMSUBCHNL\tstruct cdrom_subchnl *\t// I-O\n"
9507 msgstr ""
9508
9509 #. type: tbl table
9510 #: build/C/man2/ioctl_list.2:214
9511 #, no-wrap
9512 msgid "0x0000530C\tCDROMREADMODE2\tconst struct cdrom_msf *\t// MORE\n"
9513 msgstr ""
9514
9515 #. type: tbl table
9516 #: build/C/man2/ioctl_list.2:215
9517 #, no-wrap
9518 msgid "0x0000530D\tCDROMREADMODE1\tconst struct cdrom_msf *\t// MORE\n"
9519 msgstr ""
9520
9521 #. type: tbl table
9522 #: build/C/man2/ioctl_list.2:216
9523 #, no-wrap
9524 msgid "0x0000530E\tCDROMREADAUDIO\tconst struct cdrom_read_audio *\t// MORE\n"
9525 msgstr ""
9526
9527 #. type: tbl table
9528 #: build/C/man2/ioctl_list.2:217
9529 #, no-wrap
9530 msgid "0x0000530F\tCDROMEJECT_SW\tint\n"
9531 msgstr ""
9532
9533 #. type: tbl table
9534 #: build/C/man2/ioctl_list.2:218
9535 #, no-wrap
9536 msgid "0x00005310\tCDROMMULTISESSION\tstruct cdrom_multisession *\t// I-O\n"
9537 msgstr ""
9538
9539 #. type: tbl table
9540 #: build/C/man2/ioctl_list.2:219
9541 #, no-wrap
9542 msgid "0x00005311\tCDROM_GET_UPC\tstruct { char [8]; } *\n"
9543 msgstr ""
9544
9545 #. type: tbl table
9546 #: build/C/man2/ioctl_list.2:220
9547 #, no-wrap
9548 msgid "0x00005312\tCDROMRESET\tvoid\n"
9549 msgstr ""
9550
9551 #. type: tbl table
9552 #: build/C/man2/ioctl_list.2:221
9553 #, no-wrap
9554 msgid "0x00005313\tCDROMVOLREAD\tstruct cdrom_volctrl *\n"
9555 msgstr ""
9556
9557 #. type: tbl table
9558 #: build/C/man2/ioctl_list.2:222
9559 #, no-wrap
9560 msgid "0x00005314\tCDROMREADRAW\tconst struct cdrom_msf *\t// MORE\n"
9561 msgstr ""
9562
9563 #. type: tbl table
9564 #: build/C/man2/ioctl_list.2:223
9565 #, no-wrap
9566 msgid "0x00005315\tCDROMREADCOOKED\tconst struct cdrom_msf *\t// MORE\n"
9567 msgstr ""
9568
9569 #. type: tbl table
9570 #: build/C/man2/ioctl_list.2:224
9571 #, no-wrap
9572 msgid "0x00005316\tCDROMSEEK\tconst struct cdrom_msf *\n"
9573 msgstr ""
9574
9575 #. type: Plain text
9576 #: build/C/man2/ioctl_list.2:228
9577 msgid "// E<lt>include/linux/cm206.hE<gt>"
9578 msgstr ""
9579
9580 #. type: tbl table
9581 #: build/C/man2/ioctl_list.2:230
9582 #, no-wrap
9583 msgid "0x00002000\tCM206CTL_GET_STAT\tint\n"
9584 msgstr ""
9585
9586 #. type: tbl table
9587 #: build/C/man2/ioctl_list.2:231
9588 #, no-wrap
9589 msgid "0x00002001\tCM206CTL_GET_LAST_STAT\tint\n"
9590 msgstr ""
9591
9592 #. type: Plain text
9593 #: build/C/man2/ioctl_list.2:235
9594 msgid "// E<lt>include/linux/cyclades.hE<gt>"
9595 msgstr ""
9596
9597 #. type: tbl table
9598 #: build/C/man2/ioctl_list.2:237
9599 #, no-wrap
9600 msgid "0x00435901\tCYGETMON\tstruct cyclades_monitor *\n"
9601 msgstr ""
9602
9603 #. type: tbl table
9604 #: build/C/man2/ioctl_list.2:238
9605 #, no-wrap
9606 msgid "0x00435902\tCYGETTHRESH\tint *\n"
9607 msgstr ""
9608
9609 #. type: tbl table
9610 #: build/C/man2/ioctl_list.2:239
9611 #, no-wrap
9612 msgid "0x00435903\tCYSETTHRESH\tint\n"
9613 msgstr ""
9614
9615 #. type: tbl table
9616 #: build/C/man2/ioctl_list.2:240
9617 #, no-wrap
9618 msgid "0x00435904\tCYGETDEFTHRESH\tint *\n"
9619 msgstr ""
9620
9621 #. type: tbl table
9622 #: build/C/man2/ioctl_list.2:241
9623 #, no-wrap
9624 msgid "0x00435905\tCYSETDEFTHRESH\tint\n"
9625 msgstr ""
9626
9627 #. type: tbl table
9628 #: build/C/man2/ioctl_list.2:242
9629 #, no-wrap
9630 msgid "0x00435906\tCYGETTIMEOUT\tint *\n"
9631 msgstr ""
9632
9633 #. type: tbl table
9634 #: build/C/man2/ioctl_list.2:243
9635 #, no-wrap
9636 msgid "0x00435907\tCYSETTIMEOUT\tint\n"
9637 msgstr ""
9638
9639 #. type: tbl table
9640 #: build/C/man2/ioctl_list.2:244
9641 #, no-wrap
9642 msgid "0x00435908\tCYGETDEFTIMEOUT\tint *\n"
9643 msgstr ""
9644
9645 #. type: tbl table
9646 #: build/C/man2/ioctl_list.2:245
9647 #, no-wrap
9648 msgid "0x00435909\tCYSETDEFTIMEOUT\tint\n"
9649 msgstr ""
9650
9651 #. type: Plain text
9652 #: build/C/man2/ioctl_list.2:249
9653 msgid "// E<lt>include/linux/ext2_fs.hE<gt>"
9654 msgstr ""
9655
9656 #. type: tbl table
9657 #: build/C/man2/ioctl_list.2:251
9658 #, no-wrap
9659 msgid "0x80046601\tEXT2_IOC_GETFLAGS\tint *\n"
9660 msgstr ""
9661
9662 #. type: tbl table
9663 #: build/C/man2/ioctl_list.2:252
9664 #, no-wrap
9665 msgid "0x40046602\tEXT2_IOC_SETFLAGS\tconst int *\n"
9666 msgstr ""
9667
9668 #. type: tbl table
9669 #: build/C/man2/ioctl_list.2:253
9670 #, no-wrap
9671 msgid "0x80047601\tEXT2_IOC_GETVERSION\tint *\n"
9672 msgstr ""
9673
9674 #. type: tbl table
9675 #: build/C/man2/ioctl_list.2:254
9676 #, no-wrap
9677 msgid "0x40047602\tEXT2_IOC_SETVERSION\tconst int *\n"
9678 msgstr ""
9679
9680 #. type: Plain text
9681 #: build/C/man2/ioctl_list.2:258
9682 msgid "// E<lt>include/linux/fd.hE<gt>"
9683 msgstr ""
9684
9685 #. type: tbl table
9686 #: build/C/man2/ioctl_list.2:260
9687 #, no-wrap
9688 msgid "0x00000000\tFDCLRPRM\tvoid\n"
9689 msgstr ""
9690
9691 #. type: tbl table
9692 #: build/C/man2/ioctl_list.2:261
9693 #, no-wrap
9694 msgid "0x00000001\tFDSETPRM\tconst struct floppy_struct *\n"
9695 msgstr ""
9696
9697 #. type: tbl table
9698 #: build/C/man2/ioctl_list.2:262
9699 #, no-wrap
9700 msgid "0x00000002\tFDDEFPRM\tconst struct floppy_struct *\n"
9701 msgstr ""
9702
9703 #. type: tbl table
9704 #: build/C/man2/ioctl_list.2:263
9705 #, no-wrap
9706 msgid "0x00000003\tFDGETPRM\tstruct floppy_struct *\n"
9707 msgstr ""
9708
9709 #. type: tbl table
9710 #: build/C/man2/ioctl_list.2:264
9711 #, no-wrap
9712 msgid "0x00000004\tFDMSGON\tvoid\n"
9713 msgstr ""
9714
9715 #. type: tbl table
9716 #: build/C/man2/ioctl_list.2:265
9717 #, no-wrap
9718 msgid "0x00000005\tFDMSGOFF\tvoid\n"
9719 msgstr ""
9720
9721 #. type: tbl table
9722 #: build/C/man2/ioctl_list.2:266
9723 #, no-wrap
9724 msgid "0x00000006\tFDFMTBEG\tvoid\n"
9725 msgstr ""
9726
9727 #. type: tbl table
9728 #: build/C/man2/ioctl_list.2:267
9729 #, no-wrap
9730 msgid "0x00000007\tFDFMTTRK\tconst struct format_descr *\n"
9731 msgstr ""
9732
9733 #. type: tbl table
9734 #: build/C/man2/ioctl_list.2:268
9735 #, no-wrap
9736 msgid "0x00000008\tFDFMTEND\tvoid\n"
9737 msgstr ""
9738
9739 #. type: tbl table
9740 #: build/C/man2/ioctl_list.2:269
9741 #, no-wrap
9742 msgid "0x0000000A\tFDSETEMSGTRESH\tint\n"
9743 msgstr ""
9744
9745 #. type: tbl table
9746 #: build/C/man2/ioctl_list.2:270
9747 #, no-wrap
9748 msgid "0x0000000B\tFDFLUSH\tvoid\n"
9749 msgstr ""
9750
9751 #. type: tbl table
9752 #: build/C/man2/ioctl_list.2:271
9753 #, no-wrap
9754 msgid "0x0000000C\tFDSETMAXERRS\tconst struct floppy_max_errors *\n"
9755 msgstr ""
9756
9757 #. type: tbl table
9758 #: build/C/man2/ioctl_list.2:272
9759 #, no-wrap
9760 msgid "0x0000000E\tFDGETMAXERRS\tstruct floppy_max_errors *\n"
9761 msgstr ""
9762
9763 #. type: tbl table
9764 #: build/C/man2/ioctl_list.2:273
9765 #, no-wrap
9766 msgid "0x00000010\tFDGETDRVTYP\tstruct { char [16]; } *\n"
9767 msgstr ""
9768
9769 #. type: tbl table
9770 #: build/C/man2/ioctl_list.2:274
9771 #, no-wrap
9772 msgid "0x00000014\tFDSETDRVPRM\tconst struct floppy_drive_params *\n"
9773 msgstr ""
9774
9775 #. type: tbl table
9776 #: build/C/man2/ioctl_list.2:275
9777 #, no-wrap
9778 msgid "0x00000015\tFDGETDRVPRM\tstruct floppy_drive_params *\n"
9779 msgstr ""
9780
9781 #. type: tbl table
9782 #: build/C/man2/ioctl_list.2:276
9783 #, no-wrap
9784 msgid "0x00000016\tFDGETDRVSTAT\tstruct floppy_drive_struct *\n"
9785 msgstr ""
9786
9787 #. type: tbl table
9788 #: build/C/man2/ioctl_list.2:277
9789 #, no-wrap
9790 msgid "0x00000017\tFDPOLLDRVSTAT\tstruct floppy_drive_struct *\n"
9791 msgstr ""
9792
9793 #. type: tbl table
9794 #: build/C/man2/ioctl_list.2:278
9795 #, no-wrap
9796 msgid "0x00000018\tFDRESET\tint\n"
9797 msgstr ""
9798
9799 #. type: tbl table
9800 #: build/C/man2/ioctl_list.2:279
9801 #, no-wrap
9802 msgid "0x00000019\tFDGETFDCSTAT\tstruct floppy_fdc_state *\n"
9803 msgstr ""
9804
9805 #. type: tbl table
9806 #: build/C/man2/ioctl_list.2:280
9807 #, no-wrap
9808 msgid "0x0000001B\tFDWERRORCLR\tvoid\n"
9809 msgstr ""
9810
9811 #. type: tbl table
9812 #: build/C/man2/ioctl_list.2:281
9813 #, no-wrap
9814 msgid "0x0000001C\tFDWERRORGET\tstruct floppy_write_errors *\n"
9815 msgstr ""
9816
9817 #. type: tbl table
9818 #: build/C/man2/ioctl_list.2:282
9819 #, no-wrap
9820 msgid "0x0000001E\tFDRAWCMD\tstruct floppy_raw_cmd *\t// MORE // I-O\n"
9821 msgstr ""
9822
9823 #. type: tbl table
9824 #: build/C/man2/ioctl_list.2:283
9825 #, no-wrap
9826 msgid "0x00000028\tFDTWADDLE\tvoid\n"
9827 msgstr ""
9828
9829 #. type: Plain text
9830 #: build/C/man2/ioctl_list.2:287
9831 msgid "// E<lt>include/linux/fs.hE<gt>"
9832 msgstr ""
9833
9834 #. type: tbl table
9835 #: build/C/man2/ioctl_list.2:289
9836 #, no-wrap
9837 msgid "0x0000125D\tBLKROSET\tconst int *\n"
9838 msgstr ""
9839
9840 #. type: tbl table
9841 #: build/C/man2/ioctl_list.2:290
9842 #, no-wrap
9843 msgid "0x0000125E\tBLKROGET\tint *\n"
9844 msgstr ""
9845
9846 #. type: tbl table
9847 #: build/C/man2/ioctl_list.2:291
9848 #, no-wrap
9849 msgid "0x0000125F\tBLKRRPART\tvoid\n"
9850 msgstr ""
9851
9852 #. type: tbl table
9853 #: build/C/man2/ioctl_list.2:292
9854 #, no-wrap
9855 msgid "0x00001260\tBLKGETSIZE\tunsigned long *\n"
9856 msgstr ""
9857
9858 #. type: tbl table
9859 #: build/C/man2/ioctl_list.2:293
9860 #, no-wrap
9861 msgid "0x00001261\tBLKFLSBUF\tvoid\n"
9862 msgstr ""
9863
9864 #. type: tbl table
9865 #: build/C/man2/ioctl_list.2:294
9866 #, no-wrap
9867 msgid "0x00001262\tBLKRASET\tint\n"
9868 msgstr ""
9869
9870 #. type: tbl table
9871 #: build/C/man2/ioctl_list.2:295
9872 #, no-wrap
9873 msgid "0x00001263\tBLKRAGET\tint *\n"
9874 msgstr ""
9875
9876 #. type: tbl table
9877 #: build/C/man2/ioctl_list.2:296
9878 #, no-wrap
9879 msgid "0x00000001\tFIBMAP\tint *\t// I-O\n"
9880 msgstr ""
9881
9882 #. type: tbl table
9883 #: build/C/man2/ioctl_list.2:297
9884 #, no-wrap
9885 msgid "0x00000002\tFIGETBSZ\tint *\n"
9886 msgstr ""
9887
9888 #. type: Plain text
9889 #: build/C/man2/ioctl_list.2:301
9890 msgid "// E<lt>include/linux/hdreg.hE<gt>"
9891 msgstr ""
9892
9893 #. type: tbl table
9894 #: build/C/man2/ioctl_list.2:303
9895 #, no-wrap
9896 msgid "0x00000301\tHDIO_GETGEO\tstruct hd_geometry *\n"
9897 msgstr ""
9898
9899 #. type: tbl table
9900 #: build/C/man2/ioctl_list.2:304
9901 #, no-wrap
9902 msgid "0x00000302\tHDIO_GET_UNMASKINTR\tint *\n"
9903 msgstr ""
9904
9905 #. type: tbl table
9906 #: build/C/man2/ioctl_list.2:305
9907 #, no-wrap
9908 msgid "0x00000304\tHDIO_GET_MULTCOUNT\tint *\n"
9909 msgstr ""
9910
9911 #. type: tbl table
9912 #: build/C/man2/ioctl_list.2:306
9913 #, no-wrap
9914 msgid "0x00000307\tHDIO_GET_IDENTITY\tstruct hd_driveid *\n"
9915 msgstr ""
9916
9917 #. type: tbl table
9918 #: build/C/man2/ioctl_list.2:307
9919 #, no-wrap
9920 msgid "0x00000308\tHDIO_GET_KEEPSETTINGS\tint *\n"
9921 msgstr ""
9922
9923 #. type: tbl table
9924 #: build/C/man2/ioctl_list.2:308
9925 #, no-wrap
9926 msgid "0x00000309\tHDIO_GET_CHIPSET\tint *\n"
9927 msgstr ""
9928
9929 #. type: tbl table
9930 #: build/C/man2/ioctl_list.2:309
9931 #, no-wrap
9932 msgid "0x0000030A\tHDIO_GET_NOWERR\tint *\n"
9933 msgstr ""
9934
9935 #. type: tbl table
9936 #: build/C/man2/ioctl_list.2:310
9937 #, no-wrap
9938 msgid "0x0000030B\tHDIO_GET_DMA\tint *\n"
9939 msgstr ""
9940
9941 #. type: tbl table
9942 #: build/C/man2/ioctl_list.2:311
9943 #, no-wrap
9944 msgid "0x0000031F\tHDIO_DRIVE_CMD\tint *\t// I-O\n"
9945 msgstr ""
9946
9947 #. type: tbl table
9948 #: build/C/man2/ioctl_list.2:312
9949 #, no-wrap
9950 msgid "0x00000321\tHDIO_SET_MULTCOUNT\tint\n"
9951 msgstr ""
9952
9953 #. type: tbl table
9954 #: build/C/man2/ioctl_list.2:313
9955 #, no-wrap
9956 msgid "0x00000322\tHDIO_SET_UNMASKINTR\tint\n"
9957 msgstr ""
9958
9959 #. type: tbl table
9960 #: build/C/man2/ioctl_list.2:314
9961 #, no-wrap
9962 msgid "0x00000323\tHDIO_SET_KEEPSETTINGS\tint\n"
9963 msgstr ""
9964
9965 #. type: tbl table
9966 #: build/C/man2/ioctl_list.2:315
9967 #, no-wrap
9968 msgid "0x00000324\tHDIO_SET_CHIPSET\tint\n"
9969 msgstr ""
9970
9971 #. type: tbl table
9972 #: build/C/man2/ioctl_list.2:316
9973 #, no-wrap
9974 msgid "0x00000325\tHDIO_SET_NOWERR\tint\n"
9975 msgstr ""
9976
9977 #. type: tbl table
9978 #: build/C/man2/ioctl_list.2:317
9979 #, no-wrap
9980 msgid "0x00000326\tHDIO_SET_DMA\tint\n"
9981 msgstr ""
9982
9983 #. type: Plain text
9984 #: build/C/man2/ioctl_list.2:321
9985 msgid "// E<lt>include/linux/if_eql.hE<gt>"
9986 msgstr ""
9987
9988 #. type: tbl table
9989 #: build/C/man2/ioctl_list.2:323
9990 #, no-wrap
9991 msgid "0x000089F0\tEQL_ENSLAVE\tstruct ifreq *\t// MORE // I-O\n"
9992 msgstr ""
9993
9994 #. type: tbl table
9995 #: build/C/man2/ioctl_list.2:324
9996 #, no-wrap
9997 msgid "0x000089F1\tEQL_EMANCIPATE\tstruct ifreq *\t// MORE // I-O\n"
9998 msgstr ""
9999
10000 #. type: tbl table
10001 #: build/C/man2/ioctl_list.2:325
10002 #, no-wrap
10003 msgid "0x000089F2\tEQL_GETSLAVECFG\tstruct ifreq *\t// MORE // I-O\n"
10004 msgstr ""
10005
10006 #. type: tbl table
10007 #: build/C/man2/ioctl_list.2:326
10008 #, no-wrap
10009 msgid "0x000089F3\tEQL_SETSLAVECFG\tstruct ifreq *\t// MORE // I-O\n"
10010 msgstr ""
10011
10012 #. type: tbl table
10013 #: build/C/man2/ioctl_list.2:327
10014 #, no-wrap
10015 msgid "0x000089F4\tEQL_GETMASTRCFG\tstruct ifreq *\t// MORE // I-O\n"
10016 msgstr ""
10017
10018 #. type: tbl table
10019 #: build/C/man2/ioctl_list.2:328
10020 #, no-wrap
10021 msgid "0x000089F5\tEQL_SETMASTRCFG\tstruct ifreq *\t// MORE // I-O\n"
10022 msgstr ""
10023
10024 #. type: Plain text
10025 #: build/C/man2/ioctl_list.2:332
10026 msgid "// E<lt>include/linux/if_plip.hE<gt>"
10027 msgstr ""
10028
10029 #. type: tbl table
10030 #: build/C/man2/ioctl_list.2:334
10031 #, no-wrap
10032 msgid "0x000089F0\tSIOCDEVPLIP\tstruct ifreq *\t// I-O\n"
10033 msgstr ""
10034
10035 #. type: Plain text
10036 #: build/C/man2/ioctl_list.2:338
10037 msgid "// E<lt>include/linux/if_ppp.hE<gt>"
10038 msgstr ""
10039
10040 #. type: tbl table
10041 #: build/C/man2/ioctl_list.2:340
10042 #, no-wrap
10043 msgid "0x00005490\tPPPIOCGFLAGS\tint *\n"
10044 msgstr ""
10045
10046 #. type: tbl table
10047 #: build/C/man2/ioctl_list.2:341
10048 #, no-wrap
10049 msgid "0x00005491\tPPPIOCSFLAGS\tconst int *\n"
10050 msgstr ""
10051
10052 #. type: tbl table
10053 #: build/C/man2/ioctl_list.2:342
10054 #, no-wrap
10055 msgid "0x00005492\tPPPIOCGASYNCMAP\tint *\n"
10056 msgstr ""
10057
10058 #. type: tbl table
10059 #: build/C/man2/ioctl_list.2:343
10060 #, no-wrap
10061 msgid "0x00005493\tPPPIOCSASYNCMAP\tconst int *\n"
10062 msgstr ""
10063
10064 #. type: tbl table
10065 #: build/C/man2/ioctl_list.2:344
10066 #, no-wrap
10067 msgid "0x00005494\tPPPIOCGUNIT\tint *\n"
10068 msgstr ""
10069
10070 #. type: tbl table
10071 #: build/C/man2/ioctl_list.2:345
10072 #, no-wrap
10073 msgid "0x00005495\tPPPIOCSINPSIG\tconst int *\n"
10074 msgstr ""
10075
10076 #. type: tbl table
10077 #: build/C/man2/ioctl_list.2:346
10078 #, no-wrap
10079 msgid "0x00005497\tPPPIOCSDEBUG\tconst int *\n"
10080 msgstr ""
10081
10082 #. type: tbl table
10083 #: build/C/man2/ioctl_list.2:347
10084 #, no-wrap
10085 msgid "0x00005498\tPPPIOCGDEBUG\tint *\n"
10086 msgstr ""
10087
10088 #. type: tbl table
10089 #: build/C/man2/ioctl_list.2:348
10090 #, no-wrap
10091 msgid "0x00005499\tPPPIOCGSTAT\tstruct ppp_stats *\n"
10092 msgstr ""
10093
10094 #. type: tbl table
10095 #: build/C/man2/ioctl_list.2:349
10096 #, no-wrap
10097 msgid "0x0000549A\tPPPIOCGTIME\tstruct ppp_ddinfo *\n"
10098 msgstr ""
10099
10100 #. type: tbl table
10101 #: build/C/man2/ioctl_list.2:350
10102 #, no-wrap
10103 msgid "0x0000549B\tPPPIOCGXASYNCMAP\tstruct { int [8]; } *\n"
10104 msgstr ""
10105
10106 #. type: tbl table
10107 #: build/C/man2/ioctl_list.2:351
10108 #, no-wrap
10109 msgid "0x0000549C\tPPPIOCSXASYNCMAP\tconst struct { int [8]; } *\n"
10110 msgstr ""
10111
10112 #. type: tbl table
10113 #: build/C/man2/ioctl_list.2:352
10114 #, no-wrap
10115 msgid "0x0000549D\tPPPIOCSMRU\tconst int *\n"
10116 msgstr ""
10117
10118 #. type: tbl table
10119 #: build/C/man2/ioctl_list.2:353
10120 #, no-wrap
10121 msgid "0x0000549E\tPPPIOCRASYNCMAP\tconst int *\n"
10122 msgstr ""
10123
10124 #. type: tbl table
10125 #: build/C/man2/ioctl_list.2:354
10126 #, no-wrap
10127 msgid "0x0000549F\tPPPIOCSMAXCID\tconst int *\n"
10128 msgstr ""
10129
10130 #. type: Plain text
10131 #: build/C/man2/ioctl_list.2:358
10132 msgid "// E<lt>include/linux/ipx.hE<gt>"
10133 msgstr ""
10134
10135 #. type: tbl table
10136 #: build/C/man2/ioctl_list.2:360
10137 #, no-wrap
10138 msgid "0x000089E0\tSIOCAIPXITFCRT\tconst char *\n"
10139 msgstr ""
10140
10141 #. type: tbl table
10142 #: build/C/man2/ioctl_list.2:361
10143 #, no-wrap
10144 msgid "0x000089E1\tSIOCAIPXPRISLT\tconst char *\n"
10145 msgstr ""
10146
10147 #. type: tbl table
10148 #: build/C/man2/ioctl_list.2:362
10149 #, no-wrap
10150 msgid "0x000089E2\tSIOCIPXCFGDATA\tstruct ipx_config_data *\n"
10151 msgstr ""
10152
10153 #. type: Plain text
10154 #: build/C/man2/ioctl_list.2:366
10155 msgid "// E<lt>include/linux/kd.hE<gt>"
10156 msgstr ""
10157
10158 #. type: tbl table
10159 #: build/C/man2/ioctl_list.2:368
10160 #, no-wrap
10161 msgid "0x00004B60\tGIO_FONT\tstruct { char [8192]; } *\n"
10162 msgstr ""
10163
10164 #. type: tbl table
10165 #: build/C/man2/ioctl_list.2:369
10166 #, no-wrap
10167 msgid "0x00004B61\tPIO_FONT\tconst struct { char [8192]; } *\n"
10168 msgstr ""
10169
10170 #. type: tbl table
10171 #: build/C/man2/ioctl_list.2:370
10172 #, no-wrap
10173 msgid "0x00004B6B\tGIO_FONTX\tstruct console_font_desc *\t// MORE // I-O\n"
10174 msgstr ""
10175
10176 #. type: tbl table
10177 #: build/C/man2/ioctl_list.2:371
10178 #, no-wrap
10179 msgid "0x00004B6C\tPIO_FONTX\tconst struct console_font_desc *\t//MORE\n"
10180 msgstr ""
10181
10182 #. type: tbl table
10183 #: build/C/man2/ioctl_list.2:372
10184 #, no-wrap
10185 msgid "0x00004B70\tGIO_CMAP\tstruct { char [48]; } *\n"
10186 msgstr ""
10187
10188 #. type: tbl table
10189 #: build/C/man2/ioctl_list.2:373
10190 #, no-wrap
10191 msgid "0x00004B71\tPIO_CMAP\tconst struct { char [48]; }\n"
10192 msgstr ""
10193
10194 #. type: tbl table
10195 #: build/C/man2/ioctl_list.2:374
10196 #, no-wrap
10197 msgid "0x00004B2F\tKIOCSOUND\tint\n"
10198 msgstr ""
10199
10200 #. type: tbl table
10201 #: build/C/man2/ioctl_list.2:375
10202 #, no-wrap
10203 msgid "0x00004B30\tKDMKTONE\tint\n"
10204 msgstr ""
10205
10206 #. type: tbl table
10207 #: build/C/man2/ioctl_list.2:376
10208 #, no-wrap
10209 msgid "0x00004B31\tKDGETLED\tchar *\n"
10210 msgstr ""
10211
10212 #. type: tbl table
10213 #: build/C/man2/ioctl_list.2:377
10214 #, no-wrap
10215 msgid "0x00004B32\tKDSETLED\tint\n"
10216 msgstr ""
10217
10218 #. type: tbl table
10219 #: build/C/man2/ioctl_list.2:378
10220 #, no-wrap
10221 msgid "0x00004B33\tKDGKBTYPE\tchar *\n"
10222 msgstr ""
10223
10224 #. type: tbl table
10225 #: build/C/man2/ioctl_list.2:379
10226 #, no-wrap
10227 msgid "0x00004B34\tKDADDIO\tint\t// MORE\n"
10228 msgstr ""
10229
10230 #. type: tbl table
10231 #: build/C/man2/ioctl_list.2:380
10232 #, no-wrap
10233 msgid "0x00004B35\tKDDELIO\tint\t// MORE\n"
10234 msgstr ""
10235
10236 #. type: tbl table
10237 #: build/C/man2/ioctl_list.2:381
10238 #, no-wrap
10239 msgid "0x00004B36\tKDENABIO\tvoid\t// MORE\n"
10240 msgstr ""
10241
10242 #. type: tbl table
10243 #: build/C/man2/ioctl_list.2:382
10244 #, no-wrap
10245 msgid "0x00004B37\tKDDISABIO\tvoid\t// MORE\n"
10246 msgstr ""
10247
10248 #. type: tbl table
10249 #: build/C/man2/ioctl_list.2:383
10250 #, no-wrap
10251 msgid "0x00004B3A\tKDSETMODE\tint\n"
10252 msgstr ""
10253
10254 #. type: tbl table
10255 #: build/C/man2/ioctl_list.2:384
10256 #, no-wrap
10257 msgid "0x00004B3B\tKDGETMODE\tint *\n"
10258 msgstr ""
10259
10260 #. type: tbl table
10261 #: build/C/man2/ioctl_list.2:385
10262 #, no-wrap
10263 msgid "0x00004B3C\tKDMAPDISP\tvoid\t// MORE\n"
10264 msgstr ""
10265
10266 #. type: tbl table
10267 #: build/C/man2/ioctl_list.2:386
10268 #, no-wrap
10269 msgid "0x00004B3D\tKDUNMAPDISP\tvoid\t// MORE\n"
10270 msgstr ""
10271
10272 #. type: tbl table
10273 #: build/C/man2/ioctl_list.2:387
10274 #, no-wrap
10275 msgid "0x00004B40\tGIO_SCRNMAP\tstruct { char [E_TABSZ]; } *\n"
10276 msgstr ""
10277
10278 #. type: tbl table
10279 #: build/C/man2/ioctl_list.2:388
10280 #, no-wrap
10281 msgid "0x00004B41\tPIO_SCRNMAP\tconst struct { char [E_TABSZ]; } *\n"
10282 msgstr ""
10283
10284 #. type: tbl table
10285 #: build/C/man2/ioctl_list.2:389
10286 #, no-wrap
10287 msgid "0x00004B69\tGIO_UNISCRNMAP\tstruct { short [E_TABSZ]; } *\n"
10288 msgstr ""
10289
10290 #. type: tbl table
10291 #: build/C/man2/ioctl_list.2:390
10292 #, no-wrap
10293 msgid "0x00004B6A\tPIO_UNISCRNMAP\tconst struct { short [E_TABSZ]; } *\n"
10294 msgstr ""
10295
10296 #. type: tbl table
10297 #: build/C/man2/ioctl_list.2:391
10298 #, no-wrap
10299 msgid "0x00004B66\tGIO_UNIMAP\tstruct unimapdesc *\t// MORE // I-O\n"
10300 msgstr ""
10301
10302 #. type: tbl table
10303 #: build/C/man2/ioctl_list.2:392
10304 #, no-wrap
10305 msgid "0x00004B67\tPIO_UNIMAP\tconst struct unimapdesc *\t// MORE\n"
10306 msgstr ""
10307
10308 #. type: tbl table
10309 #: build/C/man2/ioctl_list.2:393
10310 #, no-wrap
10311 msgid "0x00004B68\tPIO_UNIMAPCLR\tconst struct unimapinit *\n"
10312 msgstr ""
10313
10314 #. type: tbl table
10315 #: build/C/man2/ioctl_list.2:394
10316 #, no-wrap
10317 msgid "0x00004B44\tKDGKBMODE\tint *\n"
10318 msgstr ""
10319
10320 #. type: tbl table
10321 #: build/C/man2/ioctl_list.2:395
10322 #, no-wrap
10323 msgid "0x00004B45\tKDSKBMODE\tint\n"
10324 msgstr ""
10325
10326 #. type: tbl table
10327 #: build/C/man2/ioctl_list.2:396
10328 #, no-wrap
10329 msgid "0x00004B62\tKDGKBMETA\tint *\n"
10330 msgstr ""
10331
10332 #. type: tbl table
10333 #: build/C/man2/ioctl_list.2:397
10334 #, no-wrap
10335 msgid "0x00004B63\tKDSKBMETA\tint\n"
10336 msgstr ""
10337
10338 #. type: tbl table
10339 #: build/C/man2/ioctl_list.2:398
10340 #, no-wrap
10341 msgid "0x00004B64\tKDGKBLED\tint *\n"
10342 msgstr ""
10343
10344 #. type: tbl table
10345 #: build/C/man2/ioctl_list.2:399
10346 #, no-wrap
10347 msgid "0x00004B65\tKDSKBLED\tint\n"
10348 msgstr ""
10349
10350 #. type: tbl table
10351 #: build/C/man2/ioctl_list.2:400
10352 #, no-wrap
10353 msgid "0x00004B46\tKDGKBENT\tstruct kbentry *\t// I-O\n"
10354 msgstr ""
10355
10356 #. type: tbl table
10357 #: build/C/man2/ioctl_list.2:401
10358 #, no-wrap
10359 msgid "0x00004B47\tKDSKBENT\tconst struct kbentry *\n"
10360 msgstr ""
10361
10362 #. type: tbl table
10363 #: build/C/man2/ioctl_list.2:402
10364 #, no-wrap
10365 msgid "0x00004B48\tKDGKBSENT\tstruct kbsentry *\t// I-O\n"
10366 msgstr ""
10367
10368 #. type: tbl table
10369 #: build/C/man2/ioctl_list.2:403
10370 #, no-wrap
10371 msgid "0x00004B49\tKDSKBSENT\tconst struct kbsentry *\n"
10372 msgstr ""
10373
10374 #. type: tbl table
10375 #: build/C/man2/ioctl_list.2:404
10376 #, no-wrap
10377 msgid "0x00004B4A\tKDGKBDIACR\tstruct kbdiacrs *\n"
10378 msgstr ""
10379
10380 #. type: tbl table
10381 #: build/C/man2/ioctl_list.2:405
10382 #, no-wrap
10383 msgid "0x00004B4B\tKDSKBDIACR\tconst struct kbdiacrs *\n"
10384 msgstr ""
10385
10386 #. type: tbl table
10387 #: build/C/man2/ioctl_list.2:406
10388 #, no-wrap
10389 msgid "0x00004B4C\tKDGETKEYCODE\tstruct kbkeycode *\t// I-O\n"
10390 msgstr ""
10391
10392 #. type: tbl table
10393 #: build/C/man2/ioctl_list.2:407
10394 #, no-wrap
10395 msgid "0x00004B4D\tKDSETKEYCODE\tconst struct kbkeycode *\n"
10396 msgstr ""
10397
10398 #. type: tbl table
10399 #: build/C/man2/ioctl_list.2:408
10400 #, no-wrap
10401 msgid "0x00004B4E\tKDSIGACCEPT\tint\n"
10402 msgstr ""
10403
10404 #. type: Plain text
10405 #: build/C/man2/ioctl_list.2:412
10406 msgid "// E<lt>include/linux/lp.hE<gt>"
10407 msgstr ""
10408
10409 #. type: tbl table
10410 #: build/C/man2/ioctl_list.2:414
10411 #, no-wrap
10412 msgid "0x00000601\tLPCHAR\tint\n"
10413 msgstr ""
10414
10415 #. type: tbl table
10416 #: build/C/man2/ioctl_list.2:415
10417 #, no-wrap
10418 msgid "0x00000602\tLPTIME\tint\n"
10419 msgstr ""
10420
10421 #. type: tbl table
10422 #: build/C/man2/ioctl_list.2:416
10423 #, no-wrap
10424 msgid "0x00000604\tLPABORT\tint\n"
10425 msgstr ""
10426
10427 #. type: tbl table
10428 #: build/C/man2/ioctl_list.2:417
10429 #, no-wrap
10430 msgid "0x00000605\tLPSETIRQ\tint\n"
10431 msgstr ""
10432
10433 #. type: tbl table
10434 #: build/C/man2/ioctl_list.2:418
10435 #, no-wrap
10436 msgid "0x00000606\tLPGETIRQ\tint *\n"
10437 msgstr ""
10438
10439 #. type: tbl table
10440 #: build/C/man2/ioctl_list.2:419
10441 #, no-wrap
10442 msgid "0x00000608\tLPWAIT\tint\n"
10443 msgstr ""
10444
10445 #. type: tbl table
10446 #: build/C/man2/ioctl_list.2:420
10447 #, no-wrap
10448 msgid "0x00000609\tLPCAREFUL\tint\n"
10449 msgstr ""
10450
10451 #. type: tbl table
10452 #: build/C/man2/ioctl_list.2:421
10453 #, no-wrap
10454 msgid "0x0000060A\tLPABORTOPEN\tint\n"
10455 msgstr ""
10456
10457 #. type: tbl table
10458 #: build/C/man2/ioctl_list.2:422
10459 #, no-wrap
10460 msgid "0x0000060B\tLPGETSTATUS\tint *\n"
10461 msgstr ""
10462
10463 #. type: tbl table
10464 #: build/C/man2/ioctl_list.2:423
10465 #, no-wrap
10466 msgid "0x0000060C\tLPRESET\tvoid\n"
10467 msgstr ""
10468
10469 #. type: tbl table
10470 #: build/C/man2/ioctl_list.2:424
10471 #, no-wrap
10472 msgid "0x0000060D\tLPGETSTATS\tstruct lp_stats *\n"
10473 msgstr ""
10474
10475 #. type: Plain text
10476 #: build/C/man2/ioctl_list.2:428
10477 msgid "// E<lt>include/linux/mroute.hE<gt>"
10478 msgstr ""
10479
10480 #. type: tbl table
10481 #: build/C/man2/ioctl_list.2:430
10482 #, no-wrap
10483 msgid "0x000089E0\tSIOCGETVIFCNT\tstruct sioc_vif_req *\t// I-O\n"
10484 msgstr ""
10485
10486 #. type: tbl table
10487 #: build/C/man2/ioctl_list.2:431
10488 #, no-wrap
10489 msgid "0x000089E1\tSIOCGETSGCNT\tstruct sioc_sg_req *\t// I-O\n"
10490 msgstr ""
10491
10492 #. type: Plain text
10493 #: build/C/man2/ioctl_list.2:435
10494 msgid "// E<lt>include/linux/mtio.hE<gt>"
10495 msgstr ""
10496
10497 #. type: tbl table
10498 #: build/C/man2/ioctl_list.2:437
10499 #, no-wrap
10500 msgid "0x40086D01\tMTIOCTOP\tconst struct mtop *\n"
10501 msgstr ""
10502
10503 #. type: tbl table
10504 #: build/C/man2/ioctl_list.2:438
10505 #, no-wrap
10506 msgid "0x801C6D02\tMTIOCGET\tstruct mtget *\n"
10507 msgstr ""
10508
10509 #. type: tbl table
10510 #: build/C/man2/ioctl_list.2:439
10511 #, no-wrap
10512 msgid "0x80046D03\tMTIOCPOS\tstruct mtpos *\n"
10513 msgstr ""
10514
10515 #. type: tbl table
10516 #: build/C/man2/ioctl_list.2:440
10517 #, no-wrap
10518 msgid "0x80206D04\tMTIOCGETCONFIG\tstruct mtconfiginfo *\n"
10519 msgstr ""
10520
10521 #. type: tbl table
10522 #: build/C/man2/ioctl_list.2:441
10523 #, no-wrap
10524 msgid "0x40206D05\tMTIOCSETCONFIG\tconst struct mtconfiginfo *\n"
10525 msgstr ""
10526
10527 #. type: Plain text
10528 #: build/C/man2/ioctl_list.2:445
10529 msgid "// E<lt>include/linux/netrom.hE<gt>"
10530 msgstr ""
10531
10532 #. type: tbl table
10533 #: build/C/man2/ioctl_list.2:447
10534 #, no-wrap
10535 msgid "0x000089E0\tSIOCNRGETPARMS\tstruct nr_parms_struct *\t// I-O\n"
10536 msgstr ""
10537
10538 #. type: tbl table
10539 #: build/C/man2/ioctl_list.2:448
10540 #, no-wrap
10541 msgid "0x000089E1\tSIOCNRSETPARMS\tconst struct nr_parms_struct *\n"
10542 msgstr ""
10543
10544 #. type: tbl table
10545 #: build/C/man2/ioctl_list.2:449
10546 #, no-wrap
10547 msgid "0x000089E2\tSIOCNRDECOBS\tvoid\n"
10548 msgstr ""
10549
10550 #. type: tbl table
10551 #: build/C/man2/ioctl_list.2:450
10552 #, no-wrap
10553 msgid "0x000089E3\tSIOCNRRTCTL\tconst int *\n"
10554 msgstr ""
10555
10556 #. type: Plain text
10557 #: build/C/man2/ioctl_list.2:454
10558 msgid "// E<lt>include/linux/sbpcd.hE<gt>"
10559 msgstr ""
10560
10561 #. type: tbl table
10562 #: build/C/man2/ioctl_list.2:456
10563 #, no-wrap
10564 msgid "0x00009000\tDDIOCSDBG\tconst int *\n"
10565 msgstr ""
10566
10567 #. type: tbl table
10568 #: build/C/man2/ioctl_list.2:457
10569 #, no-wrap
10570 msgid "0x00005382\tCDROMAUDIOBUFSIZ\tint\n"
10571 msgstr ""
10572
10573 #. type: Plain text
10574 #: build/C/man2/ioctl_list.2:461
10575 msgid "// E<lt>include/linux/scc.hE<gt>"
10576 msgstr ""
10577
10578 #. type: tbl table
10579 #: build/C/man2/ioctl_list.2:463
10580 #, no-wrap
10581 msgid "0x00005470\tTIOCSCCINI\tvoid\n"
10582 msgstr ""
10583
10584 #. type: tbl table
10585 #: build/C/man2/ioctl_list.2:464
10586 #, no-wrap
10587 msgid "0x00005471\tTIOCCHANINI\tconst struct scc_modem *\n"
10588 msgstr ""
10589
10590 #. type: tbl table
10591 #: build/C/man2/ioctl_list.2:465
10592 #, no-wrap
10593 msgid "0x00005472\tTIOCGKISS\tstruct ioctl_command *\t// I-O\n"
10594 msgstr ""
10595
10596 #. type: tbl table
10597 #: build/C/man2/ioctl_list.2:466
10598 #, no-wrap
10599 msgid "0x00005473\tTIOCSKISS\tconst struct ioctl_command *\n"
10600 msgstr ""
10601
10602 #. type: tbl table
10603 #: build/C/man2/ioctl_list.2:467
10604 #, no-wrap
10605 msgid "0x00005474\tTIOCSCCSTAT\tstruct scc_stat *\n"
10606 msgstr ""
10607
10608 #. type: Plain text
10609 #: build/C/man2/ioctl_list.2:471
10610 msgid "// E<lt>include/linux/scsi.hE<gt>"
10611 msgstr ""
10612
10613 #. type: tbl table
10614 #: build/C/man2/ioctl_list.2:473
10615 #, no-wrap
10616 msgid "0x00005382\tSCSI_IOCTL_GET_IDLUN\tstruct { int [2]; } *\n"
10617 msgstr ""
10618
10619 #. type: tbl table
10620 #: build/C/man2/ioctl_list.2:474
10621 #, no-wrap
10622 msgid "0x00005383\tSCSI_IOCTL_TAGGED_ENABLE\tvoid\n"
10623 msgstr ""
10624
10625 #. type: tbl table
10626 #: build/C/man2/ioctl_list.2:475
10627 #, no-wrap
10628 msgid "0x00005384\tSCSI_IOCTL_TAGGED_DISABLE\tvoid\n"
10629 msgstr ""
10630
10631 #. type: tbl table
10632 #: build/C/man2/ioctl_list.2:476
10633 #, no-wrap
10634 msgid "0x00005385\tSCSI_IOCTL_PROBE_HOST\tconst int *\t// MORE\n"
10635 msgstr ""
10636
10637 #. type: Plain text
10638 #: build/C/man2/ioctl_list.2:480
10639 msgid "// E<lt>include/linux/smb_fs.hE<gt>"
10640 msgstr ""
10641
10642 #. type: tbl table
10643 #: build/C/man2/ioctl_list.2:482
10644 #, no-wrap
10645 msgid "0x80027501\tSMB_IOC_GETMOUNTUID\tuid_t *\n"
10646 msgstr ""
10647
10648 #. type: Plain text
10649 #: build/C/man2/ioctl_list.2:486
10650 msgid "// E<lt>include/linux/sockios.hE<gt>"
10651 msgstr ""
10652
10653 #. type: tbl table
10654 #: build/C/man2/ioctl_list.2:488
10655 #, no-wrap
10656 msgid "0x0000890B\tSIOCADDRT\tconst struct rtentry *\t// MORE\n"
10657 msgstr ""
10658
10659 #. type: tbl table
10660 #: build/C/man2/ioctl_list.2:489
10661 #, no-wrap
10662 msgid "0x0000890C\tSIOCDELRT\tconst struct rtentry *\t// MORE\n"
10663 msgstr ""
10664
10665 #. type: tbl table
10666 #: build/C/man2/ioctl_list.2:490
10667 #, no-wrap
10668 msgid "0x00008910\tSIOCGIFNAME\tchar []\n"
10669 msgstr ""
10670
10671 #. type: tbl table
10672 #: build/C/man2/ioctl_list.2:491
10673 #, no-wrap
10674 msgid "0x00008911\tSIOCSIFLINK\tvoid\n"
10675 msgstr ""
10676
10677 #. type: tbl table
10678 #: build/C/man2/ioctl_list.2:492
10679 #, no-wrap
10680 msgid "0x00008912\tSIOCGIFCONF\tstruct ifconf *\t// MORE // I-O\n"
10681 msgstr ""
10682
10683 #. type: tbl table
10684 #: build/C/man2/ioctl_list.2:493
10685 #, no-wrap
10686 msgid "0x00008913\tSIOCGIFFLAGS\tstruct ifreq *\t// I-O\n"
10687 msgstr ""
10688
10689 #. type: tbl table
10690 #: build/C/man2/ioctl_list.2:494
10691 #, no-wrap
10692 msgid "0x00008914\tSIOCSIFFLAGS\tconst struct ifreq *\n"
10693 msgstr ""
10694
10695 #. type: tbl table
10696 #: build/C/man2/ioctl_list.2:495
10697 #, no-wrap
10698 msgid "0x00008915\tSIOCGIFADDR\tstruct ifreq *\t// I-O\n"
10699 msgstr ""
10700
10701 #. type: tbl table
10702 #: build/C/man2/ioctl_list.2:496
10703 #, no-wrap
10704 msgid "0x00008916\tSIOCSIFADDR\tconst struct ifreq *\n"
10705 msgstr ""
10706
10707 #. type: tbl table
10708 #: build/C/man2/ioctl_list.2:497
10709 #, no-wrap
10710 msgid "0x00008917\tSIOCGIFDSTADDR\tstruct ifreq *\t// I-O\n"
10711 msgstr ""
10712
10713 #. type: tbl table
10714 #: build/C/man2/ioctl_list.2:498
10715 #, no-wrap
10716 msgid "0x00008918\tSIOCSIFDSTADDR\tconst struct ifreq *\n"
10717 msgstr ""
10718
10719 #. type: tbl table
10720 #: build/C/man2/ioctl_list.2:499
10721 #, no-wrap
10722 msgid "0x00008919\tSIOCGIFBRDADDR\tstruct ifreq *\t// I-O\n"
10723 msgstr ""
10724
10725 #. type: tbl table
10726 #: build/C/man2/ioctl_list.2:500
10727 #, no-wrap
10728 msgid "0x0000891A\tSIOCSIFBRDADDR\tconst struct ifreq *\n"
10729 msgstr ""
10730
10731 #. type: tbl table
10732 #: build/C/man2/ioctl_list.2:501
10733 #, no-wrap
10734 msgid "0x0000891B\tSIOCGIFNETMASK\tstruct ifreq *\t// I-O\n"
10735 msgstr ""
10736
10737 #. type: tbl table
10738 #: build/C/man2/ioctl_list.2:502
10739 #, no-wrap
10740 msgid "0x0000891C\tSIOCSIFNETMASK\tconst struct ifreq *\n"
10741 msgstr ""
10742
10743 #. type: tbl table
10744 #: build/C/man2/ioctl_list.2:503
10745 #, no-wrap
10746 msgid "0x0000891D\tSIOCGIFMETRIC\tstruct ifreq *\t// I-O\n"
10747 msgstr ""
10748
10749 #. type: tbl table
10750 #: build/C/man2/ioctl_list.2:504
10751 #, no-wrap
10752 msgid "0x0000891E\tSIOCSIFMETRIC\tconst struct ifreq *\n"
10753 msgstr ""
10754
10755 #. type: tbl table
10756 #: build/C/man2/ioctl_list.2:505
10757 #, no-wrap
10758 msgid "0x0000891F\tSIOCGIFMEM\tstruct ifreq *\t// I-O\n"
10759 msgstr ""
10760
10761 #. type: tbl table
10762 #: build/C/man2/ioctl_list.2:506
10763 #, no-wrap
10764 msgid "0x00008920\tSIOCSIFMEM\tconst struct ifreq *\n"
10765 msgstr ""
10766
10767 #. type: tbl table
10768 #: build/C/man2/ioctl_list.2:507
10769 #, no-wrap
10770 msgid "0x00008921\tSIOCGIFMTU\tstruct ifreq *\t// I-O\n"
10771 msgstr ""
10772
10773 #. type: tbl table
10774 #: build/C/man2/ioctl_list.2:508
10775 #, no-wrap
10776 msgid "0x00008922\tSIOCSIFMTU\tconst struct ifreq *\n"
10777 msgstr ""
10778
10779 #. type: tbl table
10780 #: build/C/man2/ioctl_list.2:509
10781 #, no-wrap
10782 msgid "0x00008923\tOLD_SIOCGIFHWADDR\tstruct ifreq *\t// I-O\n"
10783 msgstr ""
10784
10785 #. type: tbl table
10786 #: build/C/man2/ioctl_list.2:510
10787 #, no-wrap
10788 msgid "0x00008924\tSIOCSIFHWADDR\tconst struct ifreq *\t// MORE\n"
10789 msgstr ""
10790
10791 #. type: tbl table
10792 #: build/C/man2/ioctl_list.2:511
10793 #, no-wrap
10794 msgid "0x00008925\tSIOCGIFENCAP\tint *\n"
10795 msgstr ""
10796
10797 #. type: tbl table
10798 #: build/C/man2/ioctl_list.2:512
10799 #, no-wrap
10800 msgid "0x00008926\tSIOCSIFENCAP\tconst int *\n"
10801 msgstr ""
10802
10803 #. type: tbl table
10804 #: build/C/man2/ioctl_list.2:513
10805 #, no-wrap
10806 msgid "0x00008927\tSIOCGIFHWADDR\tstruct ifreq *\t// I-O\n"
10807 msgstr ""
10808
10809 #. type: tbl table
10810 #: build/C/man2/ioctl_list.2:514
10811 #, no-wrap
10812 msgid "0x00008929\tSIOCGIFSLAVE\tvoid\n"
10813 msgstr ""
10814
10815 #. type: tbl table
10816 #: build/C/man2/ioctl_list.2:515
10817 #, no-wrap
10818 msgid "0x00008930\tSIOCSIFSLAVE\tvoid\n"
10819 msgstr ""
10820
10821 #. type: tbl table
10822 #: build/C/man2/ioctl_list.2:516
10823 #, no-wrap
10824 msgid "0x00008931\tSIOCADDMULTI\tconst struct ifreq *\n"
10825 msgstr ""
10826
10827 #. type: tbl table
10828 #: build/C/man2/ioctl_list.2:517
10829 #, no-wrap
10830 msgid "0x00008932\tSIOCDELMULTI\tconst struct ifreq *\n"
10831 msgstr ""
10832
10833 #. type: tbl table
10834 #: build/C/man2/ioctl_list.2:518
10835 #, no-wrap
10836 msgid "0x00008940\tSIOCADDRTOLD\tvoid\n"
10837 msgstr ""
10838
10839 #. type: tbl table
10840 #: build/C/man2/ioctl_list.2:519
10841 #, no-wrap
10842 msgid "0x00008941\tSIOCDELRTOLD\tvoid\n"
10843 msgstr ""
10844
10845 #. type: tbl table
10846 #: build/C/man2/ioctl_list.2:520
10847 #, no-wrap
10848 msgid "0x00008950\tSIOCDARP\tconst struct arpreq *\n"
10849 msgstr ""
10850
10851 #. type: tbl table
10852 #: build/C/man2/ioctl_list.2:521
10853 #, no-wrap
10854 msgid "0x00008951\tSIOCGARP\tstruct arpreq *\t// I-O\n"
10855 msgstr ""
10856
10857 #. type: tbl table
10858 #: build/C/man2/ioctl_list.2:522
10859 #, no-wrap
10860 msgid "0x00008952\tSIOCSARP\tconst struct arpreq *\n"
10861 msgstr ""
10862
10863 #. type: tbl table
10864 #: build/C/man2/ioctl_list.2:523
10865 #, no-wrap
10866 msgid "0x00008960\tSIOCDRARP\tconst struct arpreq *\n"
10867 msgstr ""
10868
10869 #. type: tbl table
10870 #: build/C/man2/ioctl_list.2:524
10871 #, no-wrap
10872 msgid "0x00008961\tSIOCGRARP\tstruct arpreq *\t// I-O\n"
10873 msgstr ""
10874
10875 #. type: tbl table
10876 #: build/C/man2/ioctl_list.2:525
10877 #, no-wrap
10878 msgid "0x00008962\tSIOCSRARP\tconst struct arpreq *\n"
10879 msgstr ""
10880
10881 #. type: tbl table
10882 #: build/C/man2/ioctl_list.2:526
10883 #, no-wrap
10884 msgid "0x00008970\tSIOCGIFMAP\tstruct ifreq *\t// I-O\n"
10885 msgstr ""
10886
10887 #. type: tbl table
10888 #: build/C/man2/ioctl_list.2:527
10889 #, no-wrap
10890 msgid "0x00008971\tSIOCSIFMAP\tconst struct ifreq *\n"
10891 msgstr ""
10892
10893 #. type: Plain text
10894 #: build/C/man2/ioctl_list.2:531
10895 msgid "// E<lt>include/linux/soundcard.hE<gt>"
10896 msgstr ""
10897
10898 #. type: tbl table
10899 #: build/C/man2/ioctl_list.2:533
10900 #, no-wrap
10901 msgid "0x00005100\tSNDCTL_SEQ_RESET\tvoid\n"
10902 msgstr ""
10903
10904 #. type: tbl table
10905 #: build/C/man2/ioctl_list.2:534
10906 #, no-wrap
10907 msgid "0x00005101\tSNDCTL_SEQ_SYNC\tvoid\n"
10908 msgstr ""
10909
10910 #. type: tbl table
10911 #: build/C/man2/ioctl_list.2:535
10912 #, no-wrap
10913 msgid "0xC08C5102\tSNDCTL_SYNTH_INFO\tstruct synth_info *\t// I-O\n"
10914 msgstr ""
10915
10916 #. type: tbl table
10917 #: build/C/man2/ioctl_list.2:536
10918 #, no-wrap
10919 msgid "0xC0045103\tSNDCTL_SEQ_CTRLRATE\tint *\t// I-O\n"
10920 msgstr ""
10921
10922 #. type: tbl table
10923 #: build/C/man2/ioctl_list.2:537
10924 #, no-wrap
10925 msgid "0x80045104\tSNDCTL_SEQ_GETOUTCOUNT\tint *\n"
10926 msgstr ""
10927
10928 #. type: tbl table
10929 #: build/C/man2/ioctl_list.2:538
10930 #, no-wrap
10931 msgid "0x80045105\tSNDCTL_SEQ_GETINCOUNT\tint *\n"
10932 msgstr ""
10933
10934 #. type: tbl table
10935 #: build/C/man2/ioctl_list.2:539
10936 #, no-wrap
10937 msgid "0x40045106\tSNDCTL_SEQ_PERCMODE\tvoid\n"
10938 msgstr ""
10939
10940 #. type: tbl table
10941 #: build/C/man2/ioctl_list.2:540
10942 #, no-wrap
10943 msgid "0x40285107\tSNDCTL_FM_LOAD_INSTR\tconst struct sbi_instrument *\n"
10944 msgstr ""
10945
10946 #. type: tbl table
10947 #: build/C/man2/ioctl_list.2:541
10948 #, no-wrap
10949 msgid "0x40045108\tSNDCTL_SEQ_TESTMIDI\tconst int *\n"
10950 msgstr ""
10951
10952 #. type: tbl table
10953 #: build/C/man2/ioctl_list.2:542
10954 #, no-wrap
10955 msgid "0x40045109\tSNDCTL_SEQ_RESETSAMPLES\tconst int *\n"
10956 msgstr ""
10957
10958 #. type: tbl table
10959 #: build/C/man2/ioctl_list.2:543
10960 #, no-wrap
10961 msgid "0x8004510A\tSNDCTL_SEQ_NRSYNTHS\tint *\n"
10962 msgstr ""
10963
10964 #. type: tbl table
10965 #: build/C/man2/ioctl_list.2:544
10966 #, no-wrap
10967 msgid "0x8004510B\tSNDCTL_SEQ_NRMIDIS\tint *\n"
10968 msgstr ""
10969
10970 #. type: tbl table
10971 #: build/C/man2/ioctl_list.2:545
10972 #, no-wrap
10973 msgid "0xC074510C\tSNDCTL_MIDI_INFO\tstruct midi_info *\t// I-O\n"
10974 msgstr ""
10975
10976 #. type: tbl table
10977 #: build/C/man2/ioctl_list.2:546
10978 #, no-wrap
10979 msgid "0x4004510D\tSNDCTL_SEQ_THRESHOLD\tconst int *\n"
10980 msgstr ""
10981
10982 #. type: tbl table
10983 #: build/C/man2/ioctl_list.2:547
10984 #, no-wrap
10985 msgid "0xC004510E\tSNDCTL_SYNTH_MEMAVL\tint *\t// I-O\n"
10986 msgstr ""
10987
10988 #. type: tbl table
10989 #: build/C/man2/ioctl_list.2:548
10990 #, no-wrap
10991 msgid "0x4004510F\tSNDCTL_FM_4OP_ENABLE\tconst int *\n"
10992 msgstr ""
10993
10994 #. type: tbl table
10995 #: build/C/man2/ioctl_list.2:549
10996 #, no-wrap
10997 msgid "0xCFB85110\tSNDCTL_PMGR_ACCESS\tstruct patmgr_info *\t// I-O\n"
10998 msgstr ""
10999
11000 #. type: tbl table
11001 #: build/C/man2/ioctl_list.2:550
11002 #, no-wrap
11003 msgid "0x00005111\tSNDCTL_SEQ_PANIC\tvoid\n"
11004 msgstr ""
11005
11006 #. type: tbl table
11007 #: build/C/man2/ioctl_list.2:551
11008 #, no-wrap
11009 msgid "0x40085112\tSNDCTL_SEQ_OUTOFBAND\tconst struct seq_event_rec *\n"
11010 msgstr ""
11011
11012 #. type: tbl table
11013 #: build/C/man2/ioctl_list.2:552
11014 #, no-wrap
11015 msgid "0xC0045401\tSNDCTL_TMR_TIMEBASE\tint *\t// I-O\n"
11016 msgstr ""
11017
11018 #. type: tbl table
11019 #: build/C/man2/ioctl_list.2:553
11020 #, no-wrap
11021 msgid "0x00005402\tSNDCTL_TMR_START\tvoid\n"
11022 msgstr ""
11023
11024 #. type: tbl table
11025 #: build/C/man2/ioctl_list.2:554
11026 #, no-wrap
11027 msgid "0x00005403\tSNDCTL_TMR_STOP\tvoid\n"
11028 msgstr ""
11029
11030 #. type: tbl table
11031 #: build/C/man2/ioctl_list.2:555
11032 #, no-wrap
11033 msgid "0x00005404\tSNDCTL_TMR_CONTINUE\tvoid\n"
11034 msgstr ""
11035
11036 #. type: tbl table
11037 #: build/C/man2/ioctl_list.2:556
11038 #, no-wrap
11039 msgid "0xC0045405\tSNDCTL_TMR_TEMPO\tint *\t// I-O\n"
11040 msgstr ""
11041
11042 #. type: tbl table
11043 #: build/C/man2/ioctl_list.2:557
11044 #, no-wrap
11045 msgid "0xC0045406\tSNDCTL_TMR_SOURCE\tint *\t// I-O\n"
11046 msgstr ""
11047
11048 #. type: tbl table
11049 #: build/C/man2/ioctl_list.2:558
11050 #, no-wrap
11051 msgid "0x40045407\tSNDCTL_TMR_METRONOME\tconst int *\n"
11052 msgstr ""
11053
11054 #. type: tbl table
11055 #: build/C/man2/ioctl_list.2:559
11056 #, no-wrap
11057 msgid "0x40045408\tSNDCTL_TMR_SELECT\tint *\t// I-O\n"
11058 msgstr ""
11059
11060 #. type: tbl table
11061 #: build/C/man2/ioctl_list.2:560
11062 #, no-wrap
11063 msgid "0xCFB85001\tSNDCTL_PMGR_IFACE\tstruct patmgr_info *\t// I-O\n"
11064 msgstr ""
11065
11066 #. type: tbl table
11067 #: build/C/man2/ioctl_list.2:561
11068 #, no-wrap
11069 msgid "0xC0046D00\tSNDCTL_MIDI_PRETIME\tint *\t// I-O\n"
11070 msgstr ""
11071
11072 #. type: tbl table
11073 #: build/C/man2/ioctl_list.2:562
11074 #, no-wrap
11075 msgid "0xC0046D01\tSNDCTL_MIDI_MPUMODE\tconst int *\n"
11076 msgstr ""
11077
11078 #. type: tbl table
11079 #: build/C/man2/ioctl_list.2:563
11080 #, no-wrap
11081 msgid "0xC0216D02\tSNDCTL_MIDI_MPUCMD\tstruct mpu_command_rec *\t// I-O\n"
11082 msgstr ""
11083
11084 #. type: tbl table
11085 #: build/C/man2/ioctl_list.2:564
11086 #, no-wrap
11087 msgid "0x00005000\tSNDCTL_DSP_RESET\tvoid\n"
11088 msgstr ""
11089
11090 #. type: tbl table
11091 #: build/C/man2/ioctl_list.2:565
11092 #, no-wrap
11093 msgid "0x00005001\tSNDCTL_DSP_SYNC\tvoid\n"
11094 msgstr ""
11095
11096 #. type: tbl table
11097 #: build/C/man2/ioctl_list.2:566
11098 #, no-wrap
11099 msgid "0xC0045002\tSNDCTL_DSP_SPEED\tint *\t// I-O\n"
11100 msgstr ""
11101
11102 #. type: tbl table
11103 #: build/C/man2/ioctl_list.2:567
11104 #, no-wrap
11105 msgid "0xC0045003\tSNDCTL_DSP_STEREO\tint *\t// I-O\n"
11106 msgstr ""
11107
11108 #. type: tbl table
11109 #: build/C/man2/ioctl_list.2:568
11110 #, no-wrap
11111 msgid "0xC0045004\tSNDCTL_DSP_GETBLKSIZE\tint *\t// I-O\n"
11112 msgstr ""
11113
11114 #. type: tbl table
11115 #: build/C/man2/ioctl_list.2:569
11116 #, no-wrap
11117 msgid "0xC0045006\tSOUND_PCM_WRITE_CHANNELS\tint *\t// I-O\n"
11118 msgstr ""
11119
11120 #. type: tbl table
11121 #: build/C/man2/ioctl_list.2:570
11122 #, no-wrap
11123 msgid "0xC0045007\tSOUND_PCM_WRITE_FILTER\tint *\t// I-O\n"
11124 msgstr ""
11125
11126 #. type: tbl table
11127 #: build/C/man2/ioctl_list.2:571
11128 #, no-wrap
11129 msgid "0x00005008\tSNDCTL_DSP_POST\tvoid\n"
11130 msgstr ""
11131
11132 #. type: tbl table
11133 #: build/C/man2/ioctl_list.2:572
11134 #, no-wrap
11135 msgid "0xC0045009\tSNDCTL_DSP_SUBDIVIDE\tint *\t// I-O\n"
11136 msgstr ""
11137
11138 #. type: tbl table
11139 #: build/C/man2/ioctl_list.2:573
11140 #, no-wrap
11141 msgid "0xC004500A\tSNDCTL_DSP_SETFRAGMENT\tint *\t// I-O\n"
11142 msgstr ""
11143
11144 #. type: tbl table
11145 #: build/C/man2/ioctl_list.2:574
11146 #, no-wrap
11147 msgid "0x8004500B\tSNDCTL_DSP_GETFMTS\tint *\n"
11148 msgstr ""
11149
11150 #. type: tbl table
11151 #: build/C/man2/ioctl_list.2:575
11152 #, no-wrap
11153 msgid "0xC0045005\tSNDCTL_DSP_SETFMT\tint *\t// I-O\n"
11154 msgstr ""
11155
11156 #. type: tbl table
11157 #: build/C/man2/ioctl_list.2:576
11158 #, no-wrap
11159 msgid "0x800C500C\tSNDCTL_DSP_GETOSPACE\tstruct audio_buf_info *\n"
11160 msgstr ""
11161
11162 #. type: tbl table
11163 #: build/C/man2/ioctl_list.2:577
11164 #, no-wrap
11165 msgid "0x800C500D\tSNDCTL_DSP_GETISPACE\tstruct audio_buf_info *\n"
11166 msgstr ""
11167
11168 #. type: tbl table
11169 #: build/C/man2/ioctl_list.2:578
11170 #, no-wrap
11171 msgid "0x0000500E\tSNDCTL_DSP_NONBLOCK\tvoid\n"
11172 msgstr ""
11173
11174 #. type: tbl table
11175 #: build/C/man2/ioctl_list.2:579
11176 #, no-wrap
11177 msgid "0x80045002\tSOUND_PCM_READ_RATE\tint *\n"
11178 msgstr ""
11179
11180 #. type: tbl table
11181 #: build/C/man2/ioctl_list.2:580
11182 #, no-wrap
11183 msgid "0x80045006\tSOUND_PCM_READ_CHANNELS\tint *\n"
11184 msgstr ""
11185
11186 #. type: tbl table
11187 #: build/C/man2/ioctl_list.2:581
11188 #, no-wrap
11189 msgid "0x80045005\tSOUND_PCM_READ_BITS\tint *\n"
11190 msgstr ""
11191
11192 #. type: tbl table
11193 #: build/C/man2/ioctl_list.2:582
11194 #, no-wrap
11195 msgid "0x80045007\tSOUND_PCM_READ_FILTER\tint *\n"
11196 msgstr ""
11197
11198 #. type: tbl table
11199 #: build/C/man2/ioctl_list.2:583
11200 #, no-wrap
11201 msgid "0x00004300\tSNDCTL_COPR_RESET\tvoid\n"
11202 msgstr ""
11203
11204 #. type: tbl table
11205 #: build/C/man2/ioctl_list.2:584
11206 #, no-wrap
11207 msgid "0xCFB04301\tSNDCTL_COPR_LOAD\tconst struct copr_buffer *\n"
11208 msgstr ""
11209
11210 #. type: tbl table
11211 #: build/C/man2/ioctl_list.2:585
11212 #, no-wrap
11213 msgid "0xC0144302\tSNDCTL_COPR_RDATA\tstruct copr_debug_buf *\t// I-O\n"
11214 msgstr ""
11215
11216 #. type: tbl table
11217 #: build/C/man2/ioctl_list.2:586
11218 #, no-wrap
11219 msgid "0xC0144303\tSNDCTL_COPR_RCODE\tstruct copr_debug_buf *\t// I-O\n"
11220 msgstr ""
11221
11222 #. type: tbl table
11223 #: build/C/man2/ioctl_list.2:587
11224 #, no-wrap
11225 msgid "0x40144304\tSNDCTL_COPR_WDATA\tconst struct copr_debug_buf *\n"
11226 msgstr ""
11227
11228 #. type: tbl table
11229 #: build/C/man2/ioctl_list.2:588
11230 #, no-wrap
11231 msgid "0x40144305\tSNDCTL_COPR_WCODE\tconst struct copr_debug_buf *\n"
11232 msgstr ""
11233
11234 #. type: tbl table
11235 #: build/C/man2/ioctl_list.2:589
11236 #, no-wrap
11237 msgid "0xC0144306\tSNDCTL_COPR_RUN\tstruct copr_debug_buf *\t// I-O\n"
11238 msgstr ""
11239
11240 #. type: tbl table
11241 #: build/C/man2/ioctl_list.2:590
11242 #, no-wrap
11243 msgid "0xC0144307\tSNDCTL_COPR_HALT\tstruct copr_debug_buf *\t// I-O\n"
11244 msgstr ""
11245
11246 #. type: tbl table
11247 #: build/C/man2/ioctl_list.2:591
11248 #, no-wrap
11249 msgid "0x4FA44308\tSNDCTL_COPR_SENDMSG\tconst struct copr_msg *\n"
11250 msgstr ""
11251
11252 #. type: tbl table
11253 #: build/C/man2/ioctl_list.2:592
11254 #, no-wrap
11255 msgid "0x8FA44309\tSNDCTL_COPR_RCVMSG\tstruct copr_msg *\n"
11256 msgstr ""
11257
11258 #. type: tbl table
11259 #: build/C/man2/ioctl_list.2:593
11260 #, no-wrap
11261 msgid "0x80044D00\tSOUND_MIXER_READ_VOLUME\tint *\n"
11262 msgstr ""
11263
11264 #. type: tbl table
11265 #: build/C/man2/ioctl_list.2:594
11266 #, no-wrap
11267 msgid "0x80044D01\tSOUND_MIXER_READ_BASS\tint *\n"
11268 msgstr ""
11269
11270 #. type: tbl table
11271 #: build/C/man2/ioctl_list.2:595
11272 #, no-wrap
11273 msgid "0x80044D02\tSOUND_MIXER_READ_TREBLE\tint *\n"
11274 msgstr ""
11275
11276 #. type: tbl table
11277 #: build/C/man2/ioctl_list.2:596
11278 #, no-wrap
11279 msgid "0x80044D03\tSOUND_MIXER_READ_SYNTH\tint *\n"
11280 msgstr ""
11281
11282 #. type: tbl table
11283 #: build/C/man2/ioctl_list.2:597
11284 #, no-wrap
11285 msgid "0x80044D04\tSOUND_MIXER_READ_PCM\tint *\n"
11286 msgstr ""
11287
11288 #. type: tbl table
11289 #: build/C/man2/ioctl_list.2:598
11290 #, no-wrap
11291 msgid "0x80044D05\tSOUND_MIXER_READ_SPEAKER\tint *\n"
11292 msgstr ""
11293
11294 #. type: tbl table
11295 #: build/C/man2/ioctl_list.2:599
11296 #, no-wrap
11297 msgid "0x80044D06\tSOUND_MIXER_READ_LINE\tint *\n"
11298 msgstr ""
11299
11300 #. type: tbl table
11301 #: build/C/man2/ioctl_list.2:600
11302 #, no-wrap
11303 msgid "0x80044D07\tSOUND_MIXER_READ_MIC\tint *\n"
11304 msgstr ""
11305
11306 #. type: tbl table
11307 #: build/C/man2/ioctl_list.2:601
11308 #, no-wrap
11309 msgid "0x80044D08\tSOUND_MIXER_READ_CD\tint *\n"
11310 msgstr ""
11311
11312 #. type: tbl table
11313 #: build/C/man2/ioctl_list.2:602
11314 #, no-wrap
11315 msgid "0x80044D09\tSOUND_MIXER_READ_IMIX\tint *\n"
11316 msgstr ""
11317
11318 #. type: tbl table
11319 #: build/C/man2/ioctl_list.2:603
11320 #, no-wrap
11321 msgid "0x80044D0A\tSOUND_MIXER_READ_ALTPCM\tint *\n"
11322 msgstr ""
11323
11324 #. type: tbl table
11325 #: build/C/man2/ioctl_list.2:604
11326 #, no-wrap
11327 msgid "0x80044D0B\tSOUND_MIXER_READ_RECLEV\tint *\n"
11328 msgstr ""
11329
11330 #. type: tbl table
11331 #: build/C/man2/ioctl_list.2:605
11332 #, no-wrap
11333 msgid "0x80044D0C\tSOUND_MIXER_READ_IGAIN\tint *\n"
11334 msgstr ""
11335
11336 #. type: tbl table
11337 #: build/C/man2/ioctl_list.2:606
11338 #, no-wrap
11339 msgid "0x80044D0D\tSOUND_MIXER_READ_OGAIN\tint *\n"
11340 msgstr ""
11341
11342 #. type: tbl table
11343 #: build/C/man2/ioctl_list.2:607
11344 #, no-wrap
11345 msgid "0x80044D0E\tSOUND_MIXER_READ_LINE1\tint *\n"
11346 msgstr ""
11347
11348 #. type: tbl table
11349 #: build/C/man2/ioctl_list.2:608
11350 #, no-wrap
11351 msgid "0x80044D0F\tSOUND_MIXER_READ_LINE2\tint *\n"
11352 msgstr ""
11353
11354 #. type: tbl table
11355 #: build/C/man2/ioctl_list.2:609
11356 #, no-wrap
11357 msgid "0x80044D10\tSOUND_MIXER_READ_LINE3\tint *\n"
11358 msgstr ""
11359
11360 #. type: tbl table
11361 #: build/C/man2/ioctl_list.2:610
11362 #, no-wrap
11363 msgid "0x80044D1C\tSOUND_MIXER_READ_MUTE\tint *\n"
11364 msgstr ""
11365
11366 #. type: tbl table
11367 #: build/C/man2/ioctl_list.2:611
11368 #, no-wrap
11369 msgid "0x80044D1D\tSOUND_MIXER_READ_ENHANCE\tint *\n"
11370 msgstr ""
11371
11372 #. type: tbl table
11373 #: build/C/man2/ioctl_list.2:612
11374 #, no-wrap
11375 msgid "0x80044D1E\tSOUND_MIXER_READ_LOUD\tint *\n"
11376 msgstr ""
11377
11378 #. type: tbl table
11379 #: build/C/man2/ioctl_list.2:613
11380 #, no-wrap
11381 msgid "0x80044DFF\tSOUND_MIXER_READ_RECSRC\tint *\n"
11382 msgstr ""
11383
11384 #. type: tbl table
11385 #: build/C/man2/ioctl_list.2:614
11386 #, no-wrap
11387 msgid "0x80044DFE\tSOUND_MIXER_READ_DEVMASK\tint *\n"
11388 msgstr ""
11389
11390 #. type: tbl table
11391 #: build/C/man2/ioctl_list.2:615
11392 #, no-wrap
11393 msgid "0x80044DFD\tSOUND_MIXER_READ_RECMASK\tint *\n"
11394 msgstr ""
11395
11396 #. type: tbl table
11397 #: build/C/man2/ioctl_list.2:616
11398 #, no-wrap
11399 msgid "0x80044DFB\tSOUND_MIXER_READ_STEREODEVS\tint *\n"
11400 msgstr ""
11401
11402 #. type: tbl table
11403 #: build/C/man2/ioctl_list.2:617
11404 #, no-wrap
11405 msgid "0x80044DFC\tSOUND_MIXER_READ_CAPS\tint *\n"
11406 msgstr ""
11407
11408 #. type: tbl table
11409 #: build/C/man2/ioctl_list.2:618
11410 #, no-wrap
11411 msgid "0xC0044D00\tSOUND_MIXER_WRITE_VOLUME\tint *\t// I-O\n"
11412 msgstr ""
11413
11414 #. type: tbl table
11415 #: build/C/man2/ioctl_list.2:619
11416 #, no-wrap
11417 msgid "0xC0044D01\tSOUND_MIXER_WRITE_BASS\tint *\t// I-O\n"
11418 msgstr ""
11419
11420 #. type: tbl table
11421 #: build/C/man2/ioctl_list.2:620
11422 #, no-wrap
11423 msgid "0xC0044D02\tSOUND_MIXER_WRITE_TREBLE\tint *\t// I-O\n"
11424 msgstr ""
11425
11426 #. type: tbl table
11427 #: build/C/man2/ioctl_list.2:621
11428 #, no-wrap
11429 msgid "0xC0044D03\tSOUND_MIXER_WRITE_SYNTH\tint *\t// I-O\n"
11430 msgstr ""
11431
11432 #. type: tbl table
11433 #: build/C/man2/ioctl_list.2:622
11434 #, no-wrap
11435 msgid "0xC0044D04\tSOUND_MIXER_WRITE_PCM\tint *\t// I-O\n"
11436 msgstr ""
11437
11438 #. type: tbl table
11439 #: build/C/man2/ioctl_list.2:623
11440 #, no-wrap
11441 msgid "0xC0044D05\tSOUND_MIXER_WRITE_SPEAKER\tint *\t// I-O\n"
11442 msgstr ""
11443
11444 #. type: tbl table
11445 #: build/C/man2/ioctl_list.2:624
11446 #, no-wrap
11447 msgid "0xC0044D06\tSOUND_MIXER_WRITE_LINE\tint *\t// I-O\n"
11448 msgstr ""
11449
11450 #. type: tbl table
11451 #: build/C/man2/ioctl_list.2:625
11452 #, no-wrap
11453 msgid "0xC0044D07\tSOUND_MIXER_WRITE_MIC\tint *\t// I-O\n"
11454 msgstr ""
11455
11456 #. type: tbl table
11457 #: build/C/man2/ioctl_list.2:626
11458 #, no-wrap
11459 msgid "0xC0044D08\tSOUND_MIXER_WRITE_CD\tint *\t// I-O\n"
11460 msgstr ""
11461
11462 #. type: tbl table
11463 #: build/C/man2/ioctl_list.2:627
11464 #, no-wrap
11465 msgid "0xC0044D09\tSOUND_MIXER_WRITE_IMIX\tint *\t// I-O\n"
11466 msgstr ""
11467
11468 #. type: tbl table
11469 #: build/C/man2/ioctl_list.2:628
11470 #, no-wrap
11471 msgid "0xC0044D0A\tSOUND_MIXER_WRITE_ALTPCM\tint *\t// I-O\n"
11472 msgstr ""
11473
11474 #. type: tbl table
11475 #: build/C/man2/ioctl_list.2:629
11476 #, no-wrap
11477 msgid "0xC0044D0B\tSOUND_MIXER_WRITE_RECLEV\tint *\t// I-O\n"
11478 msgstr ""
11479
11480 #. type: tbl table
11481 #: build/C/man2/ioctl_list.2:630
11482 #, no-wrap
11483 msgid "0xC0044D0C\tSOUND_MIXER_WRITE_IGAIN\tint *\t// I-O\n"
11484 msgstr ""
11485
11486 #. type: tbl table
11487 #: build/C/man2/ioctl_list.2:631
11488 #, no-wrap
11489 msgid "0xC0044D0D\tSOUND_MIXER_WRITE_OGAIN\tint *\t// I-O\n"
11490 msgstr ""
11491
11492 #. type: tbl table
11493 #: build/C/man2/ioctl_list.2:632
11494 #, no-wrap
11495 msgid "0xC0044D0E\tSOUND_MIXER_WRITE_LINE1\tint *\t// I-O\n"
11496 msgstr ""
11497
11498 #. type: tbl table
11499 #: build/C/man2/ioctl_list.2:633
11500 #, no-wrap
11501 msgid "0xC0044D0F\tSOUND_MIXER_WRITE_LINE2\tint *\t// I-O\n"
11502 msgstr ""
11503
11504 #. type: tbl table
11505 #: build/C/man2/ioctl_list.2:634
11506 #, no-wrap
11507 msgid "0xC0044D10\tSOUND_MIXER_WRITE_LINE3\tint *\t// I-O\n"
11508 msgstr ""
11509
11510 #. type: tbl table
11511 #: build/C/man2/ioctl_list.2:635
11512 #, no-wrap
11513 msgid "0xC0044D1C\tSOUND_MIXER_WRITE_MUTE\tint *\t// I-O\n"
11514 msgstr ""
11515
11516 #. type: tbl table
11517 #: build/C/man2/ioctl_list.2:636
11518 #, no-wrap
11519 msgid "0xC0044D1D\tSOUND_MIXER_WRITE_ENHANCE\tint *\t// I-O\n"
11520 msgstr ""
11521
11522 #. type: tbl table
11523 #: build/C/man2/ioctl_list.2:637
11524 #, no-wrap
11525 msgid "0xC0044D1E\tSOUND_MIXER_WRITE_LOUD\tint *\t// I-O\n"
11526 msgstr ""
11527
11528 #. type: tbl table
11529 #: build/C/man2/ioctl_list.2:638
11530 #, no-wrap
11531 msgid "0xC0044DFF\tSOUND_MIXER_WRITE_RECSRC\tint *\t// I-O\n"
11532 msgstr ""
11533
11534 #. type: Plain text
11535 #: build/C/man2/ioctl_list.2:642
11536 msgid "// E<lt>include/linux/umsdos_fs.hE<gt>"
11537 msgstr ""
11538
11539 #. type: tbl table
11540 #: build/C/man2/ioctl_list.2:644
11541 #, no-wrap
11542 msgid "0x000004D2\tUMSDOS_READDIR_DOS\tstruct umsdos_ioctl *\t// I-O\n"
11543 msgstr ""
11544
11545 #. type: tbl table
11546 #: build/C/man2/ioctl_list.2:645
11547 #, no-wrap
11548 msgid "0x000004D3\tUMSDOS_UNLINK_DOS\tconst struct umsdos_ioctl *\n"
11549 msgstr ""
11550
11551 #. type: tbl table
11552 #: build/C/man2/ioctl_list.2:646
11553 #, no-wrap
11554 msgid "0x000004D4\tUMSDOS_RMDIR_DOS\tconst struct umsdos_ioctl *\n"
11555 msgstr ""
11556
11557 #. type: tbl table
11558 #: build/C/man2/ioctl_list.2:647
11559 #, no-wrap
11560 msgid "0x000004D5\tUMSDOS_STAT_DOS\tstruct umsdos_ioctl *\t// I-O\n"
11561 msgstr ""
11562
11563 #. type: tbl table
11564 #: build/C/man2/ioctl_list.2:648
11565 #, no-wrap
11566 msgid "0x000004D6\tUMSDOS_CREAT_EMD\tconst struct umsdos_ioctl *\n"
11567 msgstr ""
11568
11569 #. type: tbl table
11570 #: build/C/man2/ioctl_list.2:649
11571 #, no-wrap
11572 msgid "0x000004D7\tUMSDOS_UNLINK_EMD\tconst struct umsdos_ioctl *\n"
11573 msgstr ""
11574
11575 #. type: tbl table
11576 #: build/C/man2/ioctl_list.2:650
11577 #, no-wrap
11578 msgid "0x000004D8\tUMSDOS_READDIR_EMD\tstruct umsdos_ioctl *\t// I-O\n"
11579 msgstr ""
11580
11581 #. type: tbl table
11582 #: build/C/man2/ioctl_list.2:651
11583 #, no-wrap
11584 msgid "0x000004D9\tUMSDOS_GETVERSION\tstruct umsdos_ioctl *\n"
11585 msgstr ""
11586
11587 #. type: tbl table
11588 #: build/C/man2/ioctl_list.2:652
11589 #, no-wrap
11590 msgid "0x000004DA\tUMSDOS_INIT_EMD\tvoid\n"
11591 msgstr ""
11592
11593 #. type: tbl table
11594 #: build/C/man2/ioctl_list.2:653
11595 #, no-wrap
11596 msgid "0x000004DB\tUMSDOS_DOS_SETUP\tconst struct umsdos_ioctl *\n"
11597 msgstr ""
11598
11599 #. type: tbl table
11600 #: build/C/man2/ioctl_list.2:654
11601 #, no-wrap
11602 msgid "0x000004DC\tUMSDOS_RENAME_DOS\tconst struct umsdos_ioctl *\n"
11603 msgstr ""
11604
11605 #. type: Plain text
11606 #: build/C/man2/ioctl_list.2:658
11607 msgid "// E<lt>include/linux/vt.hE<gt>"
11608 msgstr ""
11609
11610 #. type: tbl table
11611 #: build/C/man2/ioctl_list.2:660
11612 #, no-wrap
11613 msgid "0x00005600\tVT_OPENQRY\tint *\n"
11614 msgstr ""
11615
11616 #. type: tbl table
11617 #: build/C/man2/ioctl_list.2:661
11618 #, no-wrap
11619 msgid "0x00005601\tVT_GETMODE\tstruct vt_mode *\n"
11620 msgstr ""
11621
11622 #. type: tbl table
11623 #: build/C/man2/ioctl_list.2:662
11624 #, no-wrap
11625 msgid "0x00005602\tVT_SETMODE\tconst struct vt_mode *\n"
11626 msgstr ""
11627
11628 #. type: tbl table
11629 #: build/C/man2/ioctl_list.2:663
11630 #, no-wrap
11631 msgid "0x00005603\tVT_GETSTATE\tstruct vt_stat *\n"
11632 msgstr ""
11633
11634 #. type: tbl table
11635 #: build/C/man2/ioctl_list.2:664
11636 #, no-wrap
11637 msgid "0x00005604\tVT_SENDSIG\tvoid\n"
11638 msgstr ""
11639
11640 #. type: tbl table
11641 #: build/C/man2/ioctl_list.2:665
11642 #, no-wrap
11643 msgid "0x00005605\tVT_RELDISP\tint\n"
11644 msgstr ""
11645
11646 #. type: tbl table
11647 #: build/C/man2/ioctl_list.2:666
11648 #, no-wrap
11649 msgid "0x00005606\tVT_ACTIVATE\tint\n"
11650 msgstr ""
11651
11652 #. type: tbl table
11653 #: build/C/man2/ioctl_list.2:667
11654 #, no-wrap
11655 msgid "0x00005607\tVT_WAITACTIVE\tint\n"
11656 msgstr ""
11657
11658 #. type: tbl table
11659 #: build/C/man2/ioctl_list.2:668
11660 #, no-wrap
11661 msgid "0x00005608\tVT_DISALLOCATE\tint\n"
11662 msgstr ""
11663
11664 #. type: tbl table
11665 #: build/C/man2/ioctl_list.2:669
11666 #, no-wrap
11667 msgid "0x00005609\tVT_RESIZE\tconst struct vt_sizes *\n"
11668 msgstr ""
11669
11670 #. type: tbl table
11671 #: build/C/man2/ioctl_list.2:670
11672 #, no-wrap
11673 msgid "0x0000560A\tVT_RESIZEX\tconst struct vt_consize *\n"
11674 msgstr ""
11675
11676 #. type: Plain text
11677 #: build/C/man2/ioctl_list.2:677
11678 msgid ""
11679 "// More arguments.  Some ioctl's take a pointer to a structure which "
11680 "contains additional pointers.  These are documented here in alphabetical "
11681 "order."
11682 msgstr ""
11683
11684 #. type: Plain text
11685 #: build/C/man2/ioctl_list.2:685
11686 msgid ""
11687 "B<CDROMREADAUDIO> takes an input pointer I<const struct cdrom_read_audio "
11688 "*>.  The I<buf> field points to an output buffer of length I<nframes * "
11689 "CD_FRAMESIZE_RAW>."
11690 msgstr ""
11691
11692 #. type: Plain text
11693 #: build/C/man2/ioctl_list.2:701
11694 msgid ""
11695 "B<CDROMREADCOOKED>, B<CDROMREADMODE1>, B<CDROMREADMODE2>, and "
11696 "B<CDROMREADRAW> take an input pointer I<const struct cdrom_msf *>.  They use "
11697 "the same pointer as an output pointer to I<char []>.  The length varies by "
11698 "request.  For B<CDROMREADMODE1>, most drivers use CD_FRAMESIZE, but the "
11699 "Optics Storage driver uses OPT_BLOCKSIZE instead (both have the numerical "
11700 "value 2048)."
11701 msgstr ""
11702
11703 #. type: Plain text
11704 #: build/C/man2/ioctl_list.2:707
11705 #, no-wrap
11706 msgid ""
11707 "    CDROMREADCOOKED    char [CD_FRAMESIZE]\n"
11708 "    CDROMREADMODE1     char [CD_FRAMESIZE or OPT_BLOCKSIZE]\n"
11709 "    CDROMREADMODE2     char [CD_FRAMESIZE_RAW0]\n"
11710 "    CDROMREADRAW       char [CD_FRAMESIZE_RAW]\n"
11711 msgstr ""
11712
11713 #. type: Plain text
11714 #: build/C/man2/ioctl_list.2:721
11715 msgid ""
11716 "B<EQL_ENSLAVE>, B<EQL_EMANCIPATE>, B<EQL_GETSLAVECFG>, B<EQL_SETSLAVECFG>, "
11717 "B<EQL_GETMASTERCFG>, and B<EQL_SETMASTERCFG> take a I<struct ifreq *>.  The "
11718 "I<ifr_data> field is a pointer to another structure as follows:"
11719 msgstr ""
11720
11721 #. type: Plain text
11722 #: build/C/man2/ioctl_list.2:729
11723 #, no-wrap
11724 msgid ""
11725 "    EQL_ENSLAVE         const struct slaving_request *\n"
11726 "    EQL_EMANCIPATE      const struct slaving_request *\n"
11727 "    EQL_GETSLAVECFG     struct slave_config *           // I-O\n"
11728 "    EQL_SETSLAVECFG     const struct slave_config *\n"
11729 "    EQL_GETMASTERCFG    struct master_config *\n"
11730 "    EQL_SETMASTERCFG    const struct master_config *\n"
11731 msgstr ""
11732
11733 #. type: Plain text
11734 #: build/C/man2/ioctl_list.2:746
11735 msgid ""
11736 "B<FDRAWCMD> takes a I<struct floppy raw_cmd *>.  If I<flags & FD_RAW_WRITE> "
11737 "is nonzero, then I<data> points to an input buffer of length I<length>.  If "
11738 "I<flags & FD_RAW_READ> is nonzero, then I<data> points to an output buffer "
11739 "of length I<length>."
11740 msgstr ""
11741
11742 #. type: Plain text
11743 #: build/C/man2/ioctl_list.2:762
11744 msgid ""
11745 "B<GIO_FONTX> and B<PIO_FONTX> take a I<struct console_font_desc *> or a "
11746 "I<const struct console_font_desc *>, respectively.  I<chardata> points to a "
11747 "buffer of I<char [charcount]>.  This is an output buffer for B<GIO_FONTX> "
11748 "and an input buffer for B<PIO_FONTX>."
11749 msgstr ""
11750
11751 #. type: Plain text
11752 #: build/C/man2/ioctl_list.2:778
11753 msgid ""
11754 "B<GIO_UNIMAP> and B<PIO_UNIMAP> take a I<struct unimapdesc *> or a I<const "
11755 "struct unimapdesc *>, respectively.  I<entries> points to a buffer of "
11756 "I<struct unipair [entry_ct]>.  This is an output buffer for B<GIO_UNIMAP> "
11757 "and an input buffer for B<PIO_UNIMAP>."
11758 msgstr ""
11759
11760 #. type: Plain text
11761 #: build/C/man2/ioctl_list.2:782
11762 msgid ""
11763 "KDADDIO, KDDELIO, KDDISABIO, and KDENABIO enable or disable access to I/O "
11764 "ports.  They are essentially alternate interfaces to 'ioperm'."
11765 msgstr ""
11766
11767 #. type: Plain text
11768 #: build/C/man2/ioctl_list.2:788
11769 msgid ""
11770 "B<KDMAPDISP> and B<KDUNMAPDISP> enable or disable memory mappings or I/O "
11771 "port access.  They are not implemented in the kernel."
11772 msgstr ""
11773
11774 #. type: Plain text
11775 #: build/C/man2/ioctl_list.2:796
11776 msgid ""
11777 "B<SCSI_IOCTL_PROBE_HOST> takes an input pointer I<const int *>, which is a "
11778 "length.  It uses the same pointer as an output pointer to a I<char []> "
11779 "buffer of this length."
11780 msgstr ""
11781
11782 #. type: Plain text
11783 #: build/C/man2/ioctl_list.2:802
11784 msgid ""
11785 "B<SIOCADDRT> and B<SIOCDELRT> take an input pointer whose type depends on "
11786 "the protocol:"
11787 msgstr ""
11788
11789 #. type: Plain text
11790 #: build/C/man2/ioctl_list.2:807
11791 #, no-wrap
11792 msgid ""
11793 "    Most protocols      const struct rtentry *\n"
11794 "    AX.25               const struct ax25_route *\n"
11795 "    NET/ROM             const struct nr_route_struct *\n"
11796 msgstr ""
11797
11798 #. type: Plain text
11799 #: build/C/man2/ioctl_list.2:818
11800 msgid ""
11801 "B<SIOCGIFCONF> takes a I<struct ifconf *>.  The I<ifc_buf> field points to a "
11802 "buffer of length I<ifc_len> bytes, into which the kernel writes a list of "
11803 "type I<struct ifreq []>."
11804 msgstr ""
11805
11806 #. type: Plain text
11807 #: build/C/man2/ioctl_list.2:821
11808 msgid "B<SIOCSIFHWADDR> takes an input pointer whose type depends on the protocol:"
11809 msgstr ""
11810
11811 #. type: Plain text
11812 #: build/C/man2/ioctl_list.2:825
11813 #, no-wrap
11814 msgid ""
11815 "    Most protocols      const struct ifreq *\n"
11816 "    AX.25               const char [AX25_ADDR_LEN]\n"
11817 msgstr ""
11818
11819 #. type: Plain text
11820 #: build/C/man2/ioctl_list.2:840
11821 msgid ""
11822 "B<TIOCLINUX> takes a I<const char *>.  It uses this to distinguish several "
11823 "independent subcases.  In the table below, I<N + foo> means I<foo> after an "
11824 "N-byte pad.  I<struct selection> is implicitly defined in "
11825 "I<drivers/char/selection.c>"
11826 msgstr ""
11827
11828 #. type: Plain text
11829 #: build/C/man2/ioctl_list.2:849
11830 #, no-wrap
11831 msgid ""
11832 "    TIOCLINUX-2         1 + const struct selection *\n"
11833 "    TIOCLINUX-3         void\n"
11834 "    TIOCLINUX-4         void\n"
11835 "    TIOCLINUX-5         4 + const struct { long [8]; } *\n"
11836 "    TIOCLINUX-6         char *\n"
11837 "    TIOCLINUX-7         char *\n"
11838 "    TIOCLINUX-10        1 + const char *\n"
11839 msgstr ""
11840
11841 #. type: Plain text
11842 #: build/C/man2/ioctl_list.2:852
11843 msgid "// Duplicate ioctls"
11844 msgstr ""
11845
11846 #. type: Plain text
11847 #: build/C/man2/ioctl_list.2:857
11848 msgid ""
11849 "This list does not include ioctls in the range B<SIOCDEVPRIVATE> and "
11850 "B<SIOCPROTOPRIVATE>."
11851 msgstr ""
11852
11853 #. type: tbl table
11854 #: build/C/man2/ioctl_list.2:859
11855 #, no-wrap
11856 msgid "0x00000001\tFDSETPRM\tFIBMAP\n"
11857 msgstr ""
11858
11859 #. type: tbl table
11860 #: build/C/man2/ioctl_list.2:860
11861 #, no-wrap
11862 msgid "0x00000002\tFDDEFPRM\tFIGETBSZ\n"
11863 msgstr ""
11864
11865 #. type: tbl table
11866 #: build/C/man2/ioctl_list.2:861
11867 #, no-wrap
11868 msgid "0x00005382\tCDROMAUDIOBUFSIZ\tSCSI_IOCTL_GET_IDLUN\n"
11869 msgstr ""
11870
11871 #. type: tbl table
11872 #: build/C/man2/ioctl_list.2:862
11873 #, no-wrap
11874 msgid "0x00005402\tSNDCTL_TMR_START\tTCSETS\n"
11875 msgstr ""
11876
11877 #. type: tbl table
11878 #: build/C/man2/ioctl_list.2:863
11879 #, no-wrap
11880 msgid "0x00005403\tSNDCTL_TMR_STOP\tTCSETSW\n"
11881 msgstr ""
11882
11883 #. type: tbl table
11884 #: build/C/man2/ioctl_list.2:864
11885 #, no-wrap
11886 msgid "0x00005404\tSNDCTL_TMR_CONTINUE\tTCSETSF\n"
11887 msgstr ""
11888
11889 #. type: Plain text
11890 #: build/C/man2/ioctl_list.2:868
11891 msgid "B<ioctl>(2)"
11892 msgstr ""
11893
11894 #. type: TH
11895 #: build/C/man2/ioperm.2:35
11896 #, no-wrap
11897 msgid "IOPERM"
11898 msgstr ""
11899
11900 #. type: TH
11901 #: build/C/man2/ioperm.2:35
11902 #, no-wrap
11903 msgid "2007-06-15"
11904 msgstr ""
11905
11906 #. type: Plain text
11907 #: build/C/man2/ioperm.2:38
11908 msgid "ioperm - set port input/output permissions"
11909 msgstr ""
11910
11911 #. type: Plain text
11912 #: build/C/man2/ioperm.2:41
11913 msgid "B<#include E<lt>unistd.hE<gt>> /* for libc5 */"
11914 msgstr ""
11915
11916 #. type: Plain text
11917 #: build/C/man2/ioperm.2:44
11918 msgid "B<#include E<lt>sys/io.hE<gt>> /* for glibc */"
11919 msgstr ""
11920
11921 #. type: Plain text
11922 #: build/C/man2/ioperm.2:46
11923 msgid ""
11924 "B<int ioperm(unsigned long >I<from>B<, unsigned long >I<num>B<, int "
11925 ">I<turn_on>B<);>"
11926 msgstr ""
11927
11928 #. type: Plain text
11929 #: build/C/man2/ioperm.2:53
11930 msgid ""
11931 "B<ioperm>()  sets the port access permission bits for the calling process "
11932 "for I<num> bytes starting from port address I<from> to the value "
11933 "I<turn_on>.  If I<turn_on> is nonzero, the calling process must be "
11934 "privileged (B<CAP_SYS_RAWIO>)."
11935 msgstr ""
11936
11937 #.  FIXME is the following ("Only the first 0x3ff I/O ports can be
11938 #.  specified in this manner") still true?  Looking at changes in
11939 #.  include/asm-i386/processor.h between 2.4 and 2.6 suggests
11940 #.  that the limit is different in 2.6.
11941 #. type: Plain text
11942 #: build/C/man2/ioperm.2:62
11943 msgid ""
11944 "Only the first 0x3ff I/O ports can be specified in this manner.  For more "
11945 "ports, the B<iopl>(2)  system call must be used."
11946 msgstr ""
11947
11948 #. type: Plain text
11949 #: build/C/man2/ioperm.2:69
11950 msgid ""
11951 "Permissions are not inherited by the child created by B<fork>(2).  "
11952 "Permissions are preserved across B<execve>(2); this is useful for giving "
11953 "port access permissions to unprivileged programs."
11954 msgstr ""
11955
11956 #. type: Plain text
11957 #: build/C/man2/ioperm.2:73
11958 msgid ""
11959 "This call is mostly for the i386 architecture.  On many other architectures "
11960 "it does not exist or will always return an error."
11961 msgstr ""
11962
11963 #. type: Plain text
11964 #: build/C/man2/ioperm.2:85
11965 msgid "Invalid values for I<from> or I<num>."
11966 msgstr ""
11967
11968 #. type: Plain text
11969 #: build/C/man2/ioperm.2:88
11970 msgid "(on PowerPC) This call is not supported."
11971 msgstr ""
11972
11973 #.  Could not allocate I/O bitmap.
11974 #. type: Plain text
11975 #: build/C/man2/ioperm.2:92
11976 msgid "Out of memory."
11977 msgstr ""
11978
11979 #. type: Plain text
11980 #: build/C/man2/ioperm.2:95
11981 msgid "The calling process has insufficient privilege."
11982 msgstr ""
11983
11984 #. type: Plain text
11985 #: build/C/man2/ioperm.2:99
11986 msgid ""
11987 "B<ioperm>()  is Linux-specific and should not be used in programs intended "
11988 "to be portable."
11989 msgstr ""
11990
11991 #. type: Plain text
11992 #: build/C/man2/ioperm.2:108
11993 msgid ""
11994 "Libc5 treats it as a system call and has a prototype in "
11995 "I<E<lt>unistd.hE<gt>>.  Glibc1 does not have a prototype.  Glibc2 has a "
11996 "prototype both in I<E<lt>sys/io.hE<gt>> and in I<E<lt>sys/perm.hE<gt>>.  "
11997 "Avoid the latter, it is available on i386 only."
11998 msgstr ""
11999
12000 #. type: Plain text
12001 #: build/C/man2/ioperm.2:111
12002 msgid "B<iopl>(2), B<capabilities>(7)"
12003 msgstr ""
12004
12005 #. type: TH
12006 #: build/C/man3/lockf.3:22
12007 #, no-wrap
12008 msgid "LOCKF"
12009 msgstr ""
12010
12011 #. type: TH
12012 #: build/C/man3/lockf.3:22
12013 #, no-wrap
12014 msgid "2011-09-11"
12015 msgstr ""
12016
12017 #. type: Plain text
12018 #: build/C/man3/lockf.3:25
12019 msgid "lockf - apply, test or remove a POSIX lock on an open file"
12020 msgstr ""
12021
12022 #. type: Plain text
12023 #: build/C/man3/lockf.3:29
12024 msgid "B<int lockf(int >I<fd>B<, int >I<cmd>B<, off_t >I<len>B<);>"
12025 msgstr ""
12026
12027 #. type: Plain text
12028 #: build/C/man3/lockf.3:36
12029 msgid "B<lockf>():"
12030 msgstr ""
12031
12032 #. type: Plain text
12033 #: build/C/man3/lockf.3:40
12034 msgid ""
12035 "_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\\ E<gt>=\\ 500 || "
12036 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED"
12037 msgstr ""
12038
12039 #. type: Plain text
12040 #: build/C/man3/lockf.3:63
12041 msgid ""
12042 "Apply, test or remove a POSIX lock on a section of an open file.  The file "
12043 "is specified by I<fd>, a file descriptor open for writing, the action by "
12044 "I<cmd>, and the section consists of byte positions I<pos>..I<pos>+I<len>-1 "
12045 "if I<len> is positive, and I<pos>-I<len>..I<pos>-1 if I<len> is negative, "
12046 "where I<pos> is the current file position, and if I<len> is zero, the "
12047 "section extends from the current file position to infinity, encompassing the "
12048 "present and future end-of-file positions.  In all cases, the section may "
12049 "extend past current end-of-file."
12050 msgstr ""
12051
12052 #. type: Plain text
12053 #: build/C/man3/lockf.3:78
12054 msgid ""
12055 "On Linux, B<lockf>()  is just an interface on top of B<fcntl>(2)  locking.  "
12056 "Many other systems implement B<lockf>()  in this way, but note that "
12057 "POSIX.1-2001 leaves the relationship between B<lockf>()  and B<fcntl>(2)  "
12058 "locks unspecified.  A portable application should probably avoid mixing "
12059 "calls to these interfaces."
12060 msgstr ""
12061
12062 #. type: Plain text
12063 #: build/C/man3/lockf.3:80
12064 msgid "Valid operations are given below:"
12065 msgstr ""
12066
12067 #. type: TP
12068 #: build/C/man3/lockf.3:80
12069 #, no-wrap
12070 msgid "B<F_LOCK>"
12071 msgstr ""
12072
12073 #. type: Plain text
12074 #: build/C/man3/lockf.3:90
12075 msgid ""
12076 "Set an exclusive lock on the specified section of the file.  If (part of) "
12077 "this section is already locked, the call blocks until the previous lock is "
12078 "released.  If this section overlaps an earlier locked section, both are "
12079 "merged.  File locks are released as soon as the process holding the locks "
12080 "closes some file descriptor for the file.  A child process does not inherit "
12081 "these locks."
12082 msgstr ""
12083
12084 #. type: TP
12085 #: build/C/man3/lockf.3:90
12086 #, no-wrap
12087 msgid "B<F_TLOCK>"
12088 msgstr ""
12089
12090 #. type: Plain text
12091 #: build/C/man3/lockf.3:96
12092 msgid ""
12093 "Same as B<F_LOCK> but the call never blocks and returns an error instead if "
12094 "the file is already locked."
12095 msgstr ""
12096
12097 #. type: TP
12098 #: build/C/man3/lockf.3:96
12099 #, no-wrap
12100 msgid "B<F_ULOCK>"
12101 msgstr ""
12102
12103 #. type: Plain text
12104 #: build/C/man3/lockf.3:100
12105 msgid ""
12106 "Unlock the indicated section of the file.  This may cause a locked section "
12107 "to be split into two locked sections."
12108 msgstr ""
12109
12110 #. type: TP
12111 #: build/C/man3/lockf.3:100
12112 #, no-wrap
12113 msgid "B<F_TEST>"
12114 msgstr ""
12115
12116 #. type: Plain text
12117 #: build/C/man3/lockf.3:110
12118 msgid ""
12119 "Test the lock: return 0 if the specified section is unlocked or locked by "
12120 "this process; return -1, set I<errno> to B<EAGAIN> (B<EACCES> on some other "
12121 "systems), if another process holds a lock."
12122 msgstr ""
12123
12124 #. type: Plain text
12125 #: build/C/man3/lockf.3:124
12126 msgid ""
12127 "The file is locked and B<F_TLOCK> or B<F_TEST> was specified, or the "
12128 "operation is prohibited because the file has been memory-mapped by another "
12129 "process."
12130 msgstr ""
12131
12132 #. type: Plain text
12133 #: build/C/man3/lockf.3:136
12134 msgid ""
12135 "I<fd> is not an open file descriptor; or I<cmd> is B<F_LOCK> or B<F_TLOCK> "
12136 "and I<fd> is not a writable file descriptor."
12137 msgstr ""
12138
12139 #. type: Plain text
12140 #: build/C/man3/lockf.3:141
12141 msgid "The command was B<T_LOCK> and this lock operation would cause a deadlock."
12142 msgstr ""
12143
12144 #. type: Plain text
12145 #: build/C/man3/lockf.3:145
12146 msgid "An invalid operation was specified in I<fd>."
12147 msgstr ""
12148
12149 #. type: Plain text
12150 #: build/C/man3/lockf.3:148
12151 msgid "Too many segment locks open, lock table is full."
12152 msgstr ""
12153
12154 #. type: Plain text
12155 #: build/C/man3/lockf.3:150
12156 msgid "SVr4, POSIX.1-2001."
12157 msgstr ""
12158
12159 #. type: Plain text
12160 #: build/C/man3/lockf.3:153
12161 msgid "B<fcntl>(2), B<flock>(2)"
12162 msgstr ""
12163
12164 #. type: Plain text
12165 #: build/C/man3/lockf.3:166
12166 msgid ""
12167 "There are also I<locks.txt> and I<mandatory-locking.txt> in the kernel "
12168 "source directory I<Documentation/filesystems>.  (On older kernels, these "
12169 "files are directly under the I<Documentation/> directory, and "
12170 "I<mandatory-locking.txt> is called I<mandatory.txt>.)"
12171 msgstr ""
12172
12173 #. type: TH
12174 #: build/C/man2/mincore.2:34
12175 #, no-wrap
12176 msgid "MINCORE"
12177 msgstr ""
12178
12179 #. type: TH
12180 #: build/C/man2/mincore.2:34
12181 #, no-wrap
12182 msgid "2008-04-22"
12183 msgstr ""
12184
12185 #. type: Plain text
12186 #: build/C/man2/mincore.2:37
12187 msgid "mincore - determine whether pages are resident in memory"
12188 msgstr ""
12189
12190 #. type: Plain text
12191 #: build/C/man2/mincore.2:41
12192 msgid "B<#include E<lt>sys/mman.hE<gt>>"
12193 msgstr ""
12194
12195 #. type: Plain text
12196 #: build/C/man2/mincore.2:43
12197 msgid ""
12198 "B<int mincore(void *>I<addr>B<, size_t >I<length>B<, unsigned char "
12199 "*>I<vec>B<);>"
12200 msgstr ""
12201
12202 #. type: Plain text
12203 #: build/C/man2/mincore.2:51
12204 msgid "B<mincore>(): _BSD_SOURCE || _SVID_SOURCE"
12205 msgstr ""
12206
12207 #. type: Plain text
12208 #: build/C/man2/mincore.2:62
12209 msgid ""
12210 "B<mincore>()  returns a vector that indicates whether pages of the calling "
12211 "process's virtual memory are resident in core (RAM), and so will not cause a "
12212 "disk access (page fault) if referenced.  The kernel returns residency "
12213 "information about the pages starting at the address I<addr>, and continuing "
12214 "for I<length> bytes."
12215 msgstr ""
12216
12217 #. type: Plain text
12218 #: build/C/man2/mincore.2:76
12219 msgid ""
12220 "The I<addr> argument must be a multiple of the system page size.  The "
12221 "I<length> argument need not be a multiple of the page size, but since "
12222 "residency information is returned for whole pages, I<length> is effectively "
12223 "rounded up to the next multiple of the page size.  One may obtain the page "
12224 "size (B<PAGE_SIZE>)  using I<sysconf(_SC_PAGESIZE)>."
12225 msgstr ""
12226
12227 #. type: Plain text
12228 #: build/C/man2/mincore.2:94
12229 msgid ""
12230 "The I<vec> argument must point to an array containing at least "
12231 "I<(length+PAGE_SIZE-1) / PAGE_SIZE> bytes.  On return, the least significant "
12232 "bit of each byte will be set if the corresponding page is currently resident "
12233 "in memory, and be clear otherwise.  (The settings of the other bits in each "
12234 "byte are undefined; these bits are reserved for possible later use.)  Of "
12235 "course the information returned in I<vec> is only a snapshot: pages that are "
12236 "not locked in memory can come and go at any moment, and the contents of "
12237 "I<vec> may already be stale by the time this call returns."
12238 msgstr ""
12239
12240 #. type: Plain text
12241 #: build/C/man2/mincore.2:101
12242 msgid ""
12243 "On success, B<mincore>()  returns zero.  On error, -1 is returned, and "
12244 "I<errno> is set appropriately."
12245 msgstr ""
12246
12247 #. type: Plain text
12248 #: build/C/man2/mincore.2:104
12249 msgid "B<EAGAIN> kernel is temporarily out of resources."
12250 msgstr ""
12251
12252 #. type: Plain text
12253 #: build/C/man2/mincore.2:108
12254 msgid "I<vec> points to an invalid address."
12255 msgstr ""
12256
12257 #. type: Plain text
12258 #: build/C/man2/mincore.2:112
12259 msgid "I<addr> is not a multiple of the page size."
12260 msgstr ""
12261
12262 #. type: Plain text
12263 #: build/C/man2/mincore.2:124
12264 msgid ""
12265 "I<length> is greater than (I<TASK_SIZE> - I<addr>).  (This could occur if a "
12266 "negative value is specified for I<length>, since that value will be "
12267 "interpreted as a large unsigned integer.)  In Linux 2.6.11 and earlier, the "
12268 "error B<EINVAL> was returned for this condition."
12269 msgstr ""
12270
12271 #. type: Plain text
12272 #: build/C/man2/mincore.2:132
12273 msgid "I<addr> to I<addr> + I<length> contained unmapped memory."
12274 msgstr ""
12275
12276 #. type: Plain text
12277 #: build/C/man2/mincore.2:134
12278 msgid "Available since Linux 2.3.99pre1 and glibc 2.2."
12279 msgstr ""
12280
12281 #.  It is on at least NetBSD, FreeBSD, OpenBSD, Solaris 8,
12282 #.  AIX 5.1, SunOS 4.1
12283 #.  .SH HISTORY
12284 #.  The
12285 #.  .BR mincore ()
12286 #.  function first appeared in 4.4BSD.
12287 #. type: Plain text
12288 #: build/C/man2/mincore.2:144
12289 msgid ""
12290 "B<mincore>()  is not specified in POSIX.1-2001, and it is not available on "
12291 "all UNIX implementations."
12292 msgstr ""
12293
12294 #.  Linux (up to now, 2.6.5),
12295 #.  .B mincore
12296 #.  does not return correct information for MAP_PRIVATE mappings:
12297 #.  for a MAP_PRIVATE file mapping,
12298 #.  .B mincore
12299 #.  returns the residency of the file pages, rather than any
12300 #.  modified process-private pages that have been copied on write;
12301 #.  for a MAP_PRIVATE mapping of
12302 #.  .IR /dev/zero ,
12303 #.  .B mincore
12304 #.  always reports pages as nonresident;
12305 #.  and for a MAP_PRIVATE, MAP_ANONYMOUS mapping,
12306 #.  .B mincore
12307 #.  always fails with the error
12308 #.  .BR ENOMEM .
12309 #. type: Plain text
12310 #: build/C/man2/mincore.2:166
12311 msgid ""
12312 "Before kernel 2.6.21, B<mincore>()  did not return correct information for "
12313 "B<MAP_PRIVATE> mappings, or for nonlinear mappings (established using "
12314 "B<remap_file_pages>(2))."
12315 msgstr ""
12316
12317 #. type: Plain text
12318 #: build/C/man2/mincore.2:169
12319 msgid "B<mlock>(2), B<mmap>(2)"
12320 msgstr ""
12321
12322 #. type: TH
12323 #: build/C/man2/mkdir.2:9
12324 #, no-wrap
12325 msgid "MKDIR"
12326 msgstr ""
12327
12328 #. type: TH
12329 #: build/C/man2/mkdir.2:9
12330 #, no-wrap
12331 msgid "2010-06-26"
12332 msgstr ""
12333
12334 #. type: Plain text
12335 #: build/C/man2/mkdir.2:12
12336 msgid "mkdir - create a directory"
12337 msgstr ""
12338
12339 #.  .B #include <unistd.h>
12340 #. type: Plain text
12341 #: build/C/man2/mkdir.2:17
12342 #, no-wrap
12343 msgid ""
12344 "B<#include E<lt>sys/stat.hE<gt>>\n"
12345 "B<#include E<lt>sys/types.hE<gt>>\n"
12346 msgstr ""
12347
12348 #. type: Plain text
12349 #: build/C/man2/mkdir.2:19
12350 #, no-wrap
12351 msgid "B<int mkdir(const char *>I<pathname>B<, mode_t >I<mode>B<);>\n"
12352 msgstr ""
12353
12354 #. type: Plain text
12355 #: build/C/man2/mkdir.2:24
12356 msgid "B<mkdir>()  attempts to create a directory named I<pathname>."
12357 msgstr ""
12358
12359 #. type: Plain text
12360 #: build/C/man2/mkdir.2:34
12361 msgid ""
12362 "The argument I<mode> specifies the permissions to use.  It is modified by "
12363 "the process's I<umask> in the usual way: the permissions of the created "
12364 "directory are (I<mode> & ~I<umask> & 0777).  Other mode bits of the created "
12365 "directory depend on the operating system.  For Linux, see below."
12366 msgstr ""
12367
12368 #. type: Plain text
12369 #: build/C/man2/mkdir.2:44
12370 msgid ""
12371 "The newly created directory will be owned by the effective user ID of the "
12372 "process.  If the directory containing the file has the set-group-ID bit set, "
12373 "or if the file system is mounted with BSD group semantics (I<mount -o "
12374 "bsdgroups> or, synonymously I<mount -o grpid>), the new directory will "
12375 "inherit the group ownership from its parent; otherwise it will be owned by "
12376 "the effective group ID of the process."
12377 msgstr ""
12378
12379 #. type: Plain text
12380 #: build/C/man2/mkdir.2:47
12381 msgid ""
12382 "If the parent directory has the set-group-ID bit set then so will the newly "
12383 "created directory."
12384 msgstr ""
12385
12386 #. type: Plain text
12387 #: build/C/man2/mkdir.2:52
12388 msgid ""
12389 "B<mkdir>()  returns zero on success, or -1 if an error occurred (in which "
12390 "case, I<errno> is set appropriately)."
12391 msgstr ""
12392
12393 #. type: Plain text
12394 #: build/C/man2/mkdir.2:61
12395 msgid ""
12396 "The parent directory does not allow write permission to the process, or one "
12397 "of the directories in I<pathname> did not allow search permission.  (See "
12398 "also B<path_resolution>(7).)"
12399 msgstr ""
12400
12401 #. type: TP
12402 #: build/C/man2/mkdir.2:61
12403 #, no-wrap
12404 msgid "B<EEXIST>"
12405 msgstr ""
12406
12407 #. type: Plain text
12408 #: build/C/man2/mkdir.2:68
12409 msgid ""
12410 "I<pathname> already exists (not necessarily as a directory).  This includes "
12411 "the case where I<pathname> is a symbolic link, dangling or not."
12412 msgstr ""
12413
12414 #. type: TP
12415 #: build/C/man2/mkdir.2:75
12416 #, no-wrap
12417 msgid "B<EMLINK>"
12418 msgstr ""
12419
12420 #. type: Plain text
12421 #: build/C/man2/mkdir.2:79
12422 msgid "The number of links to the parent directory would exceed B<LINK_MAX>."
12423 msgstr ""
12424
12425 #. type: Plain text
12426 #: build/C/man2/mkdir.2:82
12427 msgid "I<pathname> was too long."
12428 msgstr ""
12429
12430 #. type: Plain text
12431 #: build/C/man2/mkdir.2:87
12432 msgid ""
12433 "A directory component in I<pathname> does not exist or is a dangling "
12434 "symbolic link."
12435 msgstr ""
12436
12437 #. type: TP
12438 #: build/C/man2/mkdir.2:90 build/C/man2/mkdir.2:95
12439 #, no-wrap
12440 msgid "B<ENOSPC>"
12441 msgstr ""
12442
12443 #. type: Plain text
12444 #: build/C/man2/mkdir.2:95
12445 msgid "The device containing I<pathname> has no room for the new directory."
12446 msgstr ""
12447
12448 #. type: Plain text
12449 #: build/C/man2/mkdir.2:99
12450 msgid ""
12451 "The new directory cannot be created because the user's disk quota is "
12452 "exhausted."
12453 msgstr ""
12454
12455 #. type: Plain text
12456 #: build/C/man2/mkdir.2:109
12457 msgid ""
12458 "The file system containing I<pathname> does not support the creation of "
12459 "directories."
12460 msgstr ""
12461
12462 #. type: Plain text
12463 #: build/C/man2/mkdir.2:113
12464 msgid "I<pathname> refers to a file on a read-only file system."
12465 msgstr ""
12466
12467 #.  SVr4 documents additional EIO, EMULTIHOP
12468 #. type: Plain text
12469 #: build/C/man2/mkdir.2:116
12470 msgid "SVr4, BSD, POSIX.1-2001."
12471 msgstr ""
12472
12473 #. type: Plain text
12474 #: build/C/man2/mkdir.2:124
12475 msgid ""
12476 "Under Linux apart from the permission bits, only the B<S_ISVTX> mode bit is "
12477 "honored.  That is, under Linux the created directory actually gets mode "
12478 "(I<mode> & ~I<umask> & 01777).  See also B<stat>(2)."
12479 msgstr ""
12480
12481 #. type: Plain text
12482 #: build/C/man2/mkdir.2:128
12483 msgid ""
12484 "There are many infelicities in the protocol underlying NFS.  Some of these "
12485 "affect B<mkdir>()."
12486 msgstr ""
12487
12488 #. type: Plain text
12489 #: build/C/man2/mkdir.2:140
12490 msgid ""
12491 "B<mkdir>(1), B<chmod>(2), B<chown>(2), B<mkdirat>(2), B<mknod>(2), "
12492 "B<mount>(2), B<rmdir>(2), B<stat>(2), B<umask>(2), B<unlink>(2), "
12493 "B<path_resolution>(7)"
12494 msgstr ""
12495
12496 #. type: TH
12497 #: build/C/man2/nice.2:31
12498 #, no-wrap
12499 msgid "NICE"
12500 msgstr ""
12501
12502 #. type: Plain text
12503 #: build/C/man2/nice.2:34
12504 msgid "nice - change process priority"
12505 msgstr ""
12506
12507 #. type: Plain text
12508 #: build/C/man2/nice.2:38
12509 msgid "B<int nice(int >I<inc>B<);>"
12510 msgstr ""
12511
12512 #. type: Plain text
12513 #: build/C/man2/nice.2:46
12514 msgid "B<nice>(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE"
12515 msgstr ""
12516
12517 #. type: Plain text
12518 #: build/C/man2/nice.2:56
12519 msgid ""
12520 "B<nice>()  adds I<inc> to the nice value for the calling process.  (A higher "
12521 "nice value means a low priority.)  Only the super\\%user may specify a "
12522 "negative increment, or priority increase.  The range for nice values is "
12523 "described in B<getpriority>(2)."
12524 msgstr ""
12525
12526 #. type: Plain text
12527 #: build/C/man2/nice.2:61
12528 msgid ""
12529 "On success, the new nice value is returned (but see NOTES below).  On error, "
12530 "-1 is returned, and I<errno> is set appropriately."
12531 msgstr ""
12532
12533 #. type: Plain text
12534 #: build/C/man2/nice.2:75
12535 msgid ""
12536 "The calling process attempted to increase its priority by supplying a "
12537 "negative I<inc> but has insufficient privileges.  Under Linux the "
12538 "B<CAP_SYS_NICE> capability is required.  (But see the discussion of the "
12539 "B<RLIMIT_NICE> resource limit in B<setrlimit>(2).)"
12540 msgstr ""
12541
12542 #. type: Plain text
12543 #: build/C/man2/nice.2:82
12544 msgid ""
12545 "SVr4, 4.3BSD, POSIX.1-2001.  However, the Linux and (g)libc (earlier than "
12546 "glibc 2.2.4) return value is nonstandard, see below.  SVr4 documents an "
12547 "additional B<EINVAL> error code."
12548 msgstr ""
12549
12550 #. type: Plain text
12551 #: build/C/man2/nice.2:92
12552 msgid ""
12553 "SUSv2 and POSIX.1-2001 specify that B<nice>()  should return the new nice "
12554 "value.  However, the Linux syscall and the B<nice>()  library function "
12555 "provided in older versions of (g)libc (earlier than glibc 2.2.4) return 0 on "
12556 "success.  The new nice value can be found using B<getpriority>(2)."
12557 msgstr ""
12558
12559 #. type: Plain text
12560 #: build/C/man2/nice.2:105
12561 msgid ""
12562 "Since glibc 2.2.4, B<nice>()  is implemented as a library function that "
12563 "calls B<getpriority>(2)  to obtain the new nice value to be returned to the "
12564 "caller.  With this implementation, a successful call can legitimately return "
12565 "-1.  To reliably detect an error, set I<errno> to 0 before the call, and "
12566 "check its value when B<nice>()  returns -1."
12567 msgstr ""
12568
12569 #. type: Plain text
12570 #: build/C/man2/nice.2:112
12571 msgid ""
12572 "B<nice>(1), B<renice>(1), B<fork>(2), B<getpriority>(2), B<setpriority>(2), "
12573 "B<capabilities>(7)"
12574 msgstr ""
12575
12576 #. type: TH
12577 #: build/C/man2/pread.2:23
12578 #, no-wrap
12579 msgid "PREAD"
12580 msgstr ""
12581
12582 #. type: TH
12583 #: build/C/man2/pread.2:23
12584 #, no-wrap
12585 msgid "2010-11-21"
12586 msgstr ""
12587
12588 #. type: Plain text
12589 #: build/C/man2/pread.2:26
12590 msgid "pread, pwrite - read from or write to a file descriptor at a given offset"
12591 msgstr ""
12592
12593 #. type: Plain text
12594 #: build/C/man2/pread.2:31
12595 msgid ""
12596 "B<ssize_t pread(int >I<fd>B<, void *>I<buf>B<, size_t >I<count>B<, off_t "
12597 ">I<offset>B<);>"
12598 msgstr ""
12599
12600 #. type: Plain text
12601 #: build/C/man2/pread.2:34
12602 msgid ""
12603 "B<ssize_t pwrite(int >I<fd>B<, const void *>I<buf>B<, size_t >I<count>B<, "
12604 "off_t >I<offset>B<);>"
12605 msgstr ""
12606
12607 #. type: Plain text
12608 #: build/C/man2/pread.2:44
12609 msgid "B<pread>(), B<pwrite>():"
12610 msgstr ""
12611
12612 #. type: Plain text
12613 #: build/C/man2/pread.2:46
12614 msgid "_XOPEN_SOURCE\\ E<gt>=\\ 500"
12615 msgstr ""
12616
12617 #. type: Plain text
12618 #: build/C/man2/pread.2:62
12619 msgid ""
12620 "B<pread>()  reads up to I<count> bytes from file descriptor I<fd> at offset "
12621 "I<offset> (from the start of the file) into the buffer starting at I<buf>.  "
12622 "The file offset is not changed."
12623 msgstr ""
12624
12625 #. type: Plain text
12626 #: build/C/man2/pread.2:73
12627 msgid ""
12628 "B<pwrite>()  writes up to I<count> bytes from the buffer starting at I<buf> "
12629 "to the file descriptor I<fd> at offset I<offset>.  The file offset is not "
12630 "changed."
12631 msgstr ""
12632
12633 #. type: Plain text
12634 #: build/C/man2/pread.2:77
12635 msgid "The file referenced by I<fd> must be capable of seeking."
12636 msgstr ""
12637
12638 #. type: Plain text
12639 #: build/C/man2/pread.2:87
12640 msgid ""
12641 "On success, the number of bytes read or written is returned (zero indicates "
12642 "that nothing was written, in the case of B<pwrite>(), or end of file, in the "
12643 "case of B<pread>()), or -1 on error, in which case I<errno> is set to "
12644 "indicate the error."
12645 msgstr ""
12646
12647 #. type: Plain text
12648 #: build/C/man2/pread.2:102
12649 msgid ""
12650 "B<pread>()  can fail and set I<errno> to any error specified for B<read>(2)  "
12651 "or B<lseek>(2).  B<pwrite>()  can fail and set I<errno> to any error "
12652 "specified for B<write>(2)  or B<lseek>(2)."
12653 msgstr ""
12654
12655 #. type: Plain text
12656 #: build/C/man2/pread.2:113
12657 msgid ""
12658 "The B<pread>()  and B<pwrite>()  system calls were added to Linux in version "
12659 "2.1.60; the entries in the i386 system call table were added in 2.1.69.  C "
12660 "library support (including emulation using B<lseek>(2)  on older kernels "
12661 "without the system calls) was added in glibc 2.1."
12662 msgstr ""
12663
12664 #. type: Plain text
12665 #: build/C/man2/pread.2:131
12666 msgid ""
12667 "On Linux, the underlying system calls were renamed in kernel 2.6: B<pread>()  "
12668 "became B<pread64>(), and B<pwrite>()  became B<pwrite64>().  The system call "
12669 "numbers remained the same.  The glibc B<pread>()  and B<pwrite>()  wrapper "
12670 "functions transparently deal with the change."
12671 msgstr ""
12672
12673 #. type: Plain text
12674 #: build/C/man2/pread.2:136
12675 msgid "B<lseek>(2), B<read>(2), B<readv>(2), B<write>(2)"
12676 msgstr ""
12677
12678 #. type: TH
12679 #: build/C/man2/set_thread_area.2:7
12680 #, no-wrap
12681 msgid "SET_THREAD_AREA"
12682 msgstr ""
12683
12684 #. type: Plain text
12685 #: build/C/man2/set_thread_area.2:10
12686 msgid "set_thread_area - Set a Thread Local Storage (TLS) area"
12687 msgstr ""
12688
12689 #. type: Plain text
12690 #: build/C/man2/set_thread_area.2:16
12691 msgid "B<int set_thread_area(struct user_desc *>I<u_info>B<);>"
12692 msgstr ""
12693
12694 #. type: Plain text
12695 #: build/C/man2/set_thread_area.2:29
12696 msgid ""
12697 "B<set_thread_area>()  sets an entry in the current thread's Thread Local "
12698 "Storage (TLS) array.  The TLS array entry set by B<set_thread_area>()  "
12699 "corresponds to the value of I<u_info-E<gt>entry_number> passed in by the "
12700 "user.  If this value is in bounds, B<set_thread_area>()  copies the TLS "
12701 "descriptor pointed to by I<u_info> into the thread's TLS array."
12702 msgstr ""
12703
12704 #. type: Plain text
12705 #: build/C/man2/set_thread_area.2:40
12706 msgid ""
12707 "When B<set_thread_area>()  is passed an I<entry_number> of -1, it uses a "
12708 "free TLS entry.  If B<set_thread_area>()  finds a free TLS entry, the value "
12709 "of I<u_info-E<gt>entry_number> is set upon return to show which entry was "
12710 "changed."
12711 msgstr ""
12712
12713 #. type: Plain text
12714 #: build/C/man2/set_thread_area.2:45
12715 msgid ""
12716 "B<set_thread_area>()  returns 0 on success, and -1 on failure, with I<errno> "
12717 "set appropriately."
12718 msgstr ""
12719
12720 #. type: TP
12721 #: build/C/man2/set_thread_area.2:52
12722 #, no-wrap
12723 msgid "B<ESRCH>"
12724 msgstr ""
12725
12726 #. type: Plain text
12727 #: build/C/man2/set_thread_area.2:55
12728 msgid "A free TLS entry could not be located."
12729 msgstr ""
12730
12731 #. type: Plain text
12732 #: build/C/man2/set_thread_area.2:59
12733 msgid "A version of B<set_thread_area>()  first appeared in Linux 2.5.29."
12734 msgstr ""
12735
12736 #. type: Plain text
12737 #: build/C/man2/set_thread_area.2:63
12738 msgid ""
12739 "B<set_thread_area>()  is Linux-specific and should not be used in programs "
12740 "that are intended to be portable."
12741 msgstr ""
12742
12743 #. type: Plain text
12744 #: build/C/man2/set_thread_area.2:69
12745 msgid "B<get_thread_area>(2)"
12746 msgstr ""
12747
12748 #. type: TH
12749 #: build/C/man2/setup.2:34
12750 #, no-wrap
12751 msgid "SETUP"
12752 msgstr ""
12753
12754 #. type: TH
12755 #: build/C/man2/setup.2:34 build/C/man2/uname.2:25
12756 #, no-wrap
12757 msgid "2008-12-03"
12758 msgstr ""
12759
12760 #. type: Plain text
12761 #: build/C/man2/setup.2:37
12762 msgid "setup - setup devices and file systems, mount root file system"
12763 msgstr ""
12764
12765 #. type: Plain text
12766 #: build/C/man2/setup.2:41
12767 msgid "B<int setup(void);>"
12768 msgstr ""
12769
12770 #. type: Plain text
12771 #: build/C/man2/setup.2:47
12772 msgid ""
12773 "B<setup>()  is called once from within I<linux/init/main.c>.  It calls "
12774 "initialization functions for devices and file systems configured into the "
12775 "kernel and then mounts the root file system."
12776 msgstr ""
12777
12778 #. type: Plain text
12779 #: build/C/man2/setup.2:53
12780 msgid ""
12781 "No user process may call B<setup>().  Any user process, even a process with "
12782 "superuser permission, will receive B<EPERM>."
12783 msgstr ""
12784
12785 #. type: Plain text
12786 #: build/C/man2/setup.2:56
12787 msgid "B<setup>()  always returns -1 for a user process."
12788 msgstr ""
12789
12790 #. type: Plain text
12791 #: build/C/man2/setup.2:62
12792 msgid "Since Linux 2.1.121, no such function exists anymore."
12793 msgstr ""
12794
12795 #. type: Plain text
12796 #: build/C/man2/setup.2:65
12797 msgid ""
12798 "This function is Linux-specific, and should not be used in programs intended "
12799 "to be portable, or indeed in any programs at all."
12800 msgstr ""
12801
12802 #. type: Plain text
12803 #: build/C/man2/setup.2:72
12804 msgid ""
12805 "The calling sequence varied: at some times I<setup ()> has had a single "
12806 "argument I<void *BIOS> and at other times a single argument I<int magic>."
12807 msgstr ""
12808
12809 #. type: TH
12810 #: build/C/man5/shells.5:27
12811 #, no-wrap
12812 msgid "SHELLS"
12813 msgstr ""
12814
12815 #. type: TH
12816 #: build/C/man5/shells.5:27
12817 #, no-wrap
12818 msgid "1993-11-21"
12819 msgstr ""
12820
12821 #. type: Plain text
12822 #: build/C/man5/shells.5:30
12823 msgid "shells - pathnames of valid login shells"
12824 msgstr ""
12825
12826 #. type: Plain text
12827 #: build/C/man5/shells.5:36
12828 msgid ""
12829 "I</etc/shells> is a text file which contains the full pathnames of valid "
12830 "login shells.  This file is consulted by B<chsh>(1)  and available to be "
12831 "queried by other programs."
12832 msgstr ""
12833
12834 #. type: Plain text
12835 #: build/C/man5/shells.5:41
12836 msgid ""
12837 "Be aware that there are programs which consult this file to find out if a "
12838 "user is a normal user.  E.g.: ftp daemons traditionally disallow access to "
12839 "users with shells not included in this file."
12840 msgstr ""
12841
12842 #. type: Plain text
12843 #: build/C/man5/shells.5:43
12844 msgid "I</etc/shells>"
12845 msgstr ""
12846
12847 #. type: Plain text
12848 #: build/C/man5/shells.5:46
12849 msgid "I</etc/shells> may contain the following paths:"
12850 msgstr ""
12851
12852 #. type: Plain text
12853 #: build/C/man5/shells.5:49
12854 msgid "I</bin/sh>"
12855 msgstr ""
12856
12857 #. type: Plain text
12858 #: build/C/man5/shells.5:51
12859 msgid "I</bin/csh>"
12860 msgstr ""
12861
12862 #. type: Plain text
12863 #: build/C/man5/shells.5:55
12864 msgid "B<chsh>(1), B<getusershell>(3)"
12865 msgstr ""
12866
12867 #. type: TH
12868 #: build/C/man3/sleep.3:24
12869 #, no-wrap
12870 msgid "SLEEP"
12871 msgstr ""
12872
12873 #. type: Plain text
12874 #: build/C/man3/sleep.3:27
12875 msgid "sleep - Sleep for the specified number of seconds"
12876 msgstr ""
12877
12878 #. type: Plain text
12879 #: build/C/man3/sleep.3:32
12880 #, no-wrap
12881 msgid "B<unsigned int sleep(unsigned int >I<seconds>B<);>\n"
12882 msgstr ""
12883
12884 #. type: Plain text
12885 #: build/C/man3/sleep.3:38
12886 msgid ""
12887 "B<sleep>()  makes the calling thread sleep until I<seconds> seconds have "
12888 "elapsed or a signal arrives which is not ignored."
12889 msgstr ""
12890
12891 #. type: Plain text
12892 #: build/C/man3/sleep.3:42
12893 msgid ""
12894 "Zero if the requested time has elapsed, or the number of seconds left to "
12895 "sleep, if the call was interrupted by a signal handler."
12896 msgstr ""
12897
12898 #. type: Plain text
12899 #: build/C/man3/sleep.3:53
12900 msgid ""
12901 "B<sleep>()  may be implemented using B<SIGALRM>; mixing calls to B<alarm>(2)  "
12902 "and B<sleep>()  is a bad idea."
12903 msgstr ""
12904
12905 #. type: Plain text
12906 #: build/C/man3/sleep.3:59
12907 msgid ""
12908 "Using B<longjmp>(3)  from a signal handler or modifying the handling of "
12909 "B<SIGALRM> while sleeping will cause undefined results."
12910 msgstr ""
12911
12912 #. type: Plain text
12913 #: build/C/man3/sleep.3:64
12914 msgid "B<alarm>(2), B<nanosleep>(2), B<signal>(2), B<signal>(7)"
12915 msgstr ""
12916
12917 #. type: TH
12918 #: build/C/man3/swab.3:29
12919 #, no-wrap
12920 msgid "SWAB"
12921 msgstr ""
12922
12923 #. type: TH
12924 #: build/C/man3/swab.3:29
12925 #, no-wrap
12926 msgid "2001-12-15"
12927 msgstr ""
12928
12929 #. type: Plain text
12930 #: build/C/man3/swab.3:32
12931 msgid "swab - swap adjacent bytes"
12932 msgstr ""
12933
12934 #. type: Plain text
12935 #: build/C/man3/swab.3:36
12936 #, no-wrap
12937 msgid ""
12938 "B<#define _XOPEN_SOURCE>       /* See feature_test_macros(7) */\n"
12939 "B<#include E<lt>unistd.hE<gt>>\n"
12940 msgstr ""
12941
12942 #. type: Plain text
12943 #: build/C/man3/swab.3:38
12944 #, no-wrap
12945 msgid "B<void swab(const void *>I<from>B<, void *>I<to>B<, ssize_t >I<n>B<);>\n"
12946 msgstr ""
12947
12948 #. type: Plain text
12949 #: build/C/man3/swab.3:47
12950 msgid ""
12951 "The B<swab>()  function copies I<n> bytes from the array pointed to by "
12952 "I<from> to the array pointed to by I<to>, exchanging adjacent even and odd "
12953 "bytes.  This function is used to exchange data between machines that have "
12954 "different low/high byte ordering."
12955 msgstr ""
12956
12957 #. type: Plain text
12958 #: build/C/man3/swab.3:52
12959 msgid ""
12960 "This function does nothing when I<n> is negative.  When I<n> is positive and "
12961 "odd, it handles I<n-1> bytes as above, and does something unspecified with "
12962 "the last byte.  (In other words, I<n> should be even.)"
12963 msgstr ""
12964
12965 #. type: Plain text
12966 #: build/C/man3/swab.3:56
12967 msgid "The B<swab>()  function returns no value."
12968 msgstr ""
12969
12970 #. type: Plain text
12971 #: build/C/man3/swab.3:60
12972 msgid "B<bstring>(3)"
12973 msgstr ""
12974
12975 #. type: TH
12976 #: build/C/man2/swapon.2:37
12977 #, no-wrap
12978 msgid "SWAPON"
12979 msgstr ""
12980
12981 #. type: TH
12982 #: build/C/man2/swapon.2:37
12983 #, no-wrap
12984 msgid "2010-11-15"
12985 msgstr ""
12986
12987 #. type: Plain text
12988 #: build/C/man2/swapon.2:40
12989 msgid "swapon, swapoff - start/stop swapping to file/device"
12990 msgstr ""
12991
12992 #. type: Plain text
12993 #: build/C/man2/swapon.2:44
12994 msgid "B<#include E<lt>asm/page.hE<gt> /* to find PAGE_SIZE */>"
12995 msgstr ""
12996
12997 #. type: Plain text
12998 #: build/C/man2/swapon.2:46
12999 msgid "B<#include E<lt>sys/swap.hE<gt>>"
13000 msgstr ""
13001
13002 #. type: Plain text
13003 #: build/C/man2/swapon.2:48
13004 msgid "B<int swapon(const char *>I<path>B<, int >I<swapflags>B<);>"
13005 msgstr ""
13006
13007 #. type: Plain text
13008 #: build/C/man2/swapon.2:50
13009 msgid "B<int swapoff(const char *>I<path>B<);>"
13010 msgstr ""
13011
13012 #. type: Plain text
13013 #: build/C/man2/swapon.2:57
13014 msgid ""
13015 "B<swapon>()  sets the swap area to the file or block device specified by "
13016 "I<path>.  B<swapoff>()  stops swapping to the file or block device specified "
13017 "by I<path>."
13018 msgstr ""
13019
13020 #. type: Plain text
13021 #: build/C/man2/swapon.2:67
13022 msgid ""
13023 "If the B<SWAP_FLAG_PREFER> flag is specified in the B<swapon>()  "
13024 "I<swapflags> argument, the new swap area will have a higher priority than "
13025 "default.  The priority is encoded within I<swapflags> as:"
13026 msgstr ""
13027
13028 #. type: Plain text
13029 #: build/C/man2/swapon.2:70
13030 msgid "I<(prio E<lt>E<lt> SWAP_FLAG_PRIO_SHIFT) & SWAP_FLAG_PRIO_MASK>"
13031 msgstr ""
13032
13033 #. type: Plain text
13034 #: build/C/man2/swapon.2:82
13035 msgid ""
13036 "If the B<SWAP_FLAG_DISCARD> flag is specified in the B<swapon>()  "
13037 "I<swapflags> argument, freed swap pages will be discarded before they are "
13038 "reused, if the swap device supports the discard or trim operation.  (This "
13039 "may improve performance on some Solid State Devices, but often it does not.)  "
13040 "See also NOTES."
13041 msgstr ""
13042
13043 #. type: Plain text
13044 #: build/C/man2/swapon.2:86
13045 msgid ""
13046 "These functions may only be used by a privileged process (one having the "
13047 "B<CAP_SYS_ADMIN> capability)."
13048 msgstr ""
13049
13050 #. type: SS
13051 #: build/C/man2/swapon.2:86
13052 #, no-wrap
13053 msgid "Priority"
13054 msgstr ""
13055
13056 #. type: Plain text
13057 #: build/C/man2/swapon.2:91
13058 msgid ""
13059 "Each swap area has a priority, either high or low.  The default priority is "
13060 "low.  Within the low-priority areas, newer areas are even lower priority "
13061 "than older areas."
13062 msgstr ""
13063
13064 #. type: Plain text
13065 #: build/C/man2/swapon.2:97
13066 msgid ""
13067 "All priorities set with I<swapflags> are high-priority, higher than "
13068 "default.  They may have any nonnegative value chosen by the caller.  Higher "
13069 "numbers mean higher priority."
13070 msgstr ""
13071
13072 #. type: Plain text
13073 #: build/C/man2/swapon.2:105
13074 msgid ""
13075 "Swap pages are allocated from areas in priority order, highest priority "
13076 "first.  For areas with different priorities, a higher-priority area is "
13077 "exhausted before using a lower-priority area.  If two or more areas have the "
13078 "same priority, and it is the highest priority available, pages are allocated "
13079 "on a round-robin basis between them."
13080 msgstr ""
13081
13082 #. type: Plain text
13083 #: build/C/man2/swapon.2:108
13084 msgid ""
13085 "As of Linux 1.3.6, the kernel usually follows these rules, but there are "
13086 "exceptions."
13087 msgstr ""
13088
13089 #. type: Plain text
13090 #: build/C/man2/swapon.2:121
13091 msgid ""
13092 "(for B<swapon>())  The specified I<path> is already being used as a swap "
13093 "area."
13094 msgstr ""
13095
13096 #. type: Plain text
13097 #: build/C/man2/swapon.2:133
13098 msgid ""
13099 "The file I<path> exists, but refers neither to a regular file nor to a block "
13100 "device; or, for B<swapon>(), the indicated path does not contain a valid "
13101 "swap signature or resides on an in-memory file system like tmpfs; or, for "
13102 "B<swapoff>(), I<path> is not currently a swap area."
13103 msgstr ""
13104
13105 #. type: Plain text
13106 #: build/C/man2/swapon.2:141
13107 msgid "The file I<path> does not exist."
13108 msgstr ""
13109
13110 #. type: Plain text
13111 #: build/C/man2/swapon.2:144
13112 msgid "The system has insufficient memory to start swapping."
13113 msgstr ""
13114
13115 #. type: Plain text
13116 #: build/C/man2/swapon.2:151
13117 msgid ""
13118 "The caller does not have the B<CAP_SYS_ADMIN> capability.  Alternatively, "
13119 "the maximum number of swap files are already in use; see NOTES below."
13120 msgstr ""
13121
13122 #. type: Plain text
13123 #: build/C/man2/swapon.2:157
13124 msgid ""
13125 "These functions are Linux-specific and should not be used in programs "
13126 "intended to be portable.  The second I<swapflags> argument was introduced in "
13127 "Linux 1.3.2."
13128 msgstr ""
13129
13130 #. type: Plain text
13131 #: build/C/man2/swapon.2:160
13132 msgid "The partition or path must be prepared with B<mkswap>(8)."
13133 msgstr ""
13134
13135 #. type: Plain text
13136 #: build/C/man2/swapon.2:180
13137 msgid ""
13138 "There is an upper limit on the number of swap files that may be used, "
13139 "defined by the kernel constant B<MAX_SWAPFILES>.  Before kernel 2.4.10, "
13140 "B<MAX_SWAPFILES> has the value 8; since kernel 2.4.10, it has the value 32.  "
13141 "Since kernel 2.6.18, the limit is decreased by 2 (thus: 30)  if the kernel "
13142 "is built with the B<CONFIG_MIGRATION> option (which reserves two swap table "
13143 "entries for the page migration features of B<mbind>(2)  and "
13144 "B<migrate_pages>(2)).  Since kernel 2.6.32, the limit is further decreased "
13145 "by 1 if the kernel is built with the B<CONFIG_MEMORY_FAILURE> option."
13146 msgstr ""
13147
13148 #.  To be precise: 2.6.35.5
13149 #. type: Plain text
13150 #: build/C/man2/swapon.2:191
13151 msgid ""
13152 "Discard of swap pages was introduced in kernel 2.6.29, then made conditional "
13153 "on the B<SWAP_FLAG_DISCARD> flag in kernel 2.6.36, which still discards the "
13154 "entire swap area when B<swapon>()  is called, even if that flag bit is not "
13155 "set."
13156 msgstr ""
13157
13158 #. type: Plain text
13159 #: build/C/man2/swapon.2:195
13160 msgid "B<mkswap>(8), B<swapoff>(8), B<swapon>(8)"
13161 msgstr ""
13162
13163 #. type: TH
13164 #: build/C/man2/syscall.2:38
13165 #, no-wrap
13166 msgid "SYSCALL"
13167 msgstr ""
13168
13169 #. type: Plain text
13170 #: build/C/man2/syscall.2:41
13171 msgid "syscall - indirect system call"
13172 msgstr ""
13173
13174 #. type: Plain text
13175 #: build/C/man2/syscall.2:46
13176 #, no-wrap
13177 msgid ""
13178 "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
13179 "B<#include E<lt>unistd.hE<gt>>\n"
13180 "B<#include E<lt>sys/syscall.hE<gt>   >/* For SYS_xxx definitions */\n"
13181 msgstr ""
13182
13183 #. type: Plain text
13184 #: build/C/man2/syscall.2:48
13185 #, no-wrap
13186 msgid "B<int syscall(int >I<number>B<, ...);>\n"
13187 msgstr ""
13188
13189 #. type: Plain text
13190 #: build/C/man2/syscall.2:57
13191 msgid ""
13192 "B<syscall>()  performs the system call whose assembly language interface has "
13193 "the specified I<number> with the specified arguments.  Symbolic constants "
13194 "for system calls can be found in the header file I<E<lt>sys/syscall.hE<gt>>."
13195 msgstr ""
13196
13197 #. type: Plain text
13198 #: build/C/man2/syscall.2:63
13199 msgid ""
13200 "The return value is defined by the system call being invoked.  In general, a "
13201 "0 return value indicates success.  A -1 return value indicates an error, and "
13202 "an error code is stored in I<errno>."
13203 msgstr ""
13204
13205 #. type: Plain text
13206 #: build/C/man2/syscall.2:67
13207 msgid "B<syscall>()  first appeared in 4BSD."
13208 msgstr ""
13209
13210 #. type: Plain text
13211 #: build/C/man2/syscall.2:73
13212 #, no-wrap
13213 msgid ""
13214 "#define _GNU_SOURCE\n"
13215 "#include E<lt>unistd.hE<gt>\n"
13216 "#include E<lt>sys/syscall.hE<gt>\n"
13217 "#include E<lt>sys/types.hE<gt>\n"
13218 msgstr ""
13219
13220 #. type: Plain text
13221 #: build/C/man2/syscall.2:78
13222 #, no-wrap
13223 msgid ""
13224 "int\n"
13225 "main(int argc, char *argv[])\n"
13226 "{\n"
13227 "    pid_t tid;\n"
13228 msgstr ""
13229
13230 #. type: Plain text
13231 #: build/C/man2/syscall.2:81
13232 #, no-wrap
13233 msgid ""
13234 "    tid = syscall(SYS_gettid);\n"
13235 "}\n"
13236 msgstr ""
13237
13238 #. type: Plain text
13239 #: build/C/man2/syscall.2:86
13240 msgid "B<_syscall>(2), B<intro>(2), B<syscalls>(2)"
13241 msgstr ""
13242
13243 #. type: TH
13244 #: build/C/man2/syscalls.2:29
13245 #, no-wrap
13246 msgid "SYSCALLS"
13247 msgstr ""
13248
13249 #. type: TH
13250 #: build/C/man2/syscalls.2:29
13251 #, no-wrap
13252 msgid "2012-03-23"
13253 msgstr ""
13254
13255 #. type: Plain text
13256 #: build/C/man2/syscalls.2:32
13257 msgid "syscalls - Linux system calls"
13258 msgstr ""
13259
13260 #. type: Plain text
13261 #: build/C/man2/syscalls.2:34
13262 msgid "Linux system calls."
13263 msgstr ""
13264
13265 #. type: Plain text
13266 #: build/C/man2/syscalls.2:37
13267 msgid ""
13268 "The system call is the fundamental interface between an application and the "
13269 "Linux kernel."
13270 msgstr ""
13271
13272 #. type: SS
13273 #: build/C/man2/syscalls.2:37
13274 #, no-wrap
13275 msgid "System calls and library wrapper functions"
13276 msgstr ""
13277
13278 #. type: Plain text
13279 #: build/C/man2/syscalls.2:47
13280 msgid ""
13281 "System calls are generally not invoked directly, but rather via wrapper "
13282 "functions in glibc (or perhaps some other library).  For details of direct "
13283 "invocation of a system call, see B<intro>(2).  Often, but not always, the "
13284 "name of the wrapper function is the same as the name of the system call that "
13285 "it invokes.  For example, glibc contains a function B<truncate>()  which "
13286 "invokes the underlying \"truncate\" system call."
13287 msgstr ""
13288
13289 #. type: Plain text
13290 #: build/C/man2/syscalls.2:65
13291 msgid ""
13292 "Often the glibc wrapper function is quite thin, doing little work other than "
13293 "copying arguments to the right registers before invoking the system call, "
13294 "and then setting I<errno> appropriately after the system call has returned.  "
13295 "(These are the same steps that are performed by B<syscall>(2), which can be "
13296 "used to invoke system calls for which no wrapper function is provided.)  "
13297 "Note: system calls indicate a failure by returning a negative error number "
13298 "to the caller; when this happens, the wrapper function negates the returned "
13299 "error number (to make it positive), copies it to I<errno>, and returns -1 to "
13300 "the caller of the wrapper."
13301 msgstr ""
13302
13303 #. type: Plain text
13304 #: build/C/man2/syscalls.2:77
13305 msgid ""
13306 "Sometimes, however, the wrapper function does some extra work before "
13307 "invoking the system call.  For example, nowadays there are (for reasons "
13308 "described below) two related system calls, B<truncate>(2)  and "
13309 "B<truncate64>(2), and the glibc B<truncate>()  wrapper function checks which "
13310 "of those system calls are provided by the kernel and determines which should "
13311 "be employed."
13312 msgstr ""
13313
13314 #. type: SS
13315 #: build/C/man2/syscalls.2:77
13316 #, no-wrap
13317 msgid "System call list"
13318 msgstr ""
13319
13320 #. type: Plain text
13321 #: build/C/man2/syscalls.2:85
13322 msgid ""
13323 "Below is a list of those system calls that are common to most platforms.  In "
13324 "the list, the I<Kernel> column indicates the kernel version for those system "
13325 "calls that were new in Linux 2.2, or have appeared since that kernel "
13326 "version.  Note the following points:"
13327 msgstr ""
13328
13329 #. type: Plain text
13330 #: build/C/man2/syscalls.2:88
13331 msgid ""
13332 "Where no kernel version is indicated, the system call appeared in kernel 1.0 "
13333 "or earlier."
13334 msgstr ""
13335
13336 #. type: Plain text
13337 #: build/C/man2/syscalls.2:94
13338 msgid ""
13339 "Where a system call is marked \"1.2\" this means the system call probably "
13340 "appeared in a 1.1.x kernel version, and first appeared in a stable kernel "
13341 "with 1.2.  (Development of the 1.2 kernel was initiated from a branch of "
13342 "kernel 1.0.6 via the 1.1.x unstable kernel series.)"
13343 msgstr ""
13344
13345 #.  Was kernel 2.0 started from a branch of 1.2.10?
13346 #.  At least from the timestamps of the tarballs of
13347 #.  of 1.2.10 and 1.3.0, that's how it looks, but in
13348 #.  fact the diff doesn't seem very clear, the
13349 #.  1.3.0 .tar.bz is much bigger (2.0 MB) than the
13350 #.  1.2.10 .tar.bz2 (1.8 MB), and AEB points out the
13351 #.  timestamps of some files in 1.3.0 seem to be older
13352 #.  than those in 1.2.10.  All of this suggests
13353 #.  that there might not have been a clean branch point.
13354 #. type: Plain text
13355 #: build/C/man2/syscalls.2:110
13356 msgid ""
13357 "Where a system call is marked \"2.0\" this means the system call probably "
13358 "appeared in a 1.3.x kernel version, and first appeared in a stable kernel "
13359 "with 2.0.  (Development of the 2.0 kernel was initiated from a branch of "
13360 "kernel 1.2.x, somewhere around 1.2.10, via the 1.3.x unstable kernel "
13361 "series.)"
13362 msgstr ""
13363
13364 #. type: Plain text
13365 #: build/C/man2/syscalls.2:116
13366 msgid ""
13367 "Where a system call is marked \"2.2\" this means the system call probably "
13368 "appeared in a 2.1.x kernel version, and first appeared in a stable kernel "
13369 "with 2.2.0.  (Development of the 2.2 kernel was initiated from a branch of "
13370 "kernel 2.0.21 via the 2.1.x unstable kernel series.)"
13371 msgstr ""
13372
13373 #. type: Plain text
13374 #: build/C/man2/syscalls.2:122
13375 msgid ""
13376 "Where a system call is marked \"2.4\" this means the system call probably "
13377 "appeared in a 2.3.x kernel version, and first appeared in a stable kernel "
13378 "with 2.4.0.  (Development of the 2.4 kernel was initiated from a branch of "
13379 "kernel 2.2.8 via the 2.3.x unstable kernel series.)"
13380 msgstr ""
13381
13382 #. type: Plain text
13383 #: build/C/man2/syscalls.2:128
13384 msgid ""
13385 "Where a system call is marked \"2.6\" this means the system call probably "
13386 "appeared in a 2.5.x kernel version, and first appeared in a stable kernel "
13387 "with 2.6.0.  (Development of kernel 2.6 was initiated from a branch of "
13388 "kernel 2.4.15 via the 2.5.x unstable kernel series.)"
13389 msgstr ""
13390
13391 #. type: Plain text
13392 #: build/C/man2/syscalls.2:135
13393 msgid ""
13394 "Starting with kernel 2.6.0, the development model changed, and new system "
13395 "calls may appear in each 2.6.x release.  In this case, the exact version "
13396 "number where the system call appeared is shown.  This convention continues "
13397 "with the 3.x kernel series, which followed on from kernel 2.6.39."
13398 msgstr ""
13399
13400 #. type: Plain text
13401 #: build/C/man2/syscalls.2:143
13402 msgid ""
13403 "In some cases, a system call was added to a stable kernel series after it "
13404 "branched from the previous stable kernel series, and then backported into "
13405 "the earlier stable kernel series.  For example some system calls that "
13406 "appeared in 2.6.x were also backported into a 2.4.x release after 2.4.15.  "
13407 "When this is so, the version where the system call appeared in both of the "
13408 "major kernel series is listed."
13409 msgstr ""
13410
13411 #
13412 #.  Looking at scripts/checksyscalls.sh in the kernel source is
13413 #.  instructive about i386 specifics.
13414 #. type: Plain text
13415 #: build/C/man2/syscalls.2:150
13416 msgid ""
13417 "The list of system calls that are available as at kernel 3.1 (or in a few "
13418 "cases only on older kernels) is as follows:"
13419 msgstr ""
13420
13421 #. type: tbl table
13422 #: build/C/man2/syscalls.2:154
13423 #, no-wrap
13424 msgid "B<System call>\tB<Kernel>\tB<Notes>\n"
13425 msgstr ""
13426
13427 #. type: tbl table
13428 #: build/C/man2/syscalls.2:156
13429 #, no-wrap
13430 msgid "B<_llseek>(2)\t1.2\n"
13431 msgstr ""
13432
13433 #. type: tbl table
13434 #: build/C/man2/syscalls.2:157
13435 #, no-wrap
13436 msgid "B<_newselect>(2)\n"
13437 msgstr ""
13438
13439 #. type: tbl table
13440 #: build/C/man2/syscalls.2:158
13441 #, no-wrap
13442 msgid "B<_sysctl>(2)\n"
13443 msgstr ""
13444
13445 #. type: tbl table
13446 #: build/C/man2/syscalls.2:159
13447 #, no-wrap
13448 msgid "B<accept>(2)\n"
13449 msgstr ""
13450
13451 #. type: tbl table
13452 #: build/C/man2/syscalls.2:160
13453 #, no-wrap
13454 msgid "B<accept4>(2)\t2.6.28\n"
13455 msgstr ""
13456
13457 #. type: tbl table
13458 #: build/C/man2/syscalls.2:161
13459 #, no-wrap
13460 msgid "B<access>(2)\n"
13461 msgstr ""
13462
13463 #. type: tbl table
13464 #: build/C/man2/syscalls.2:162
13465 #, no-wrap
13466 msgid "B<acct>(2)\n"
13467 msgstr ""
13468
13469 #. type: tbl table
13470 #: build/C/man2/syscalls.2:163
13471 #, no-wrap
13472 msgid "B<add_key>(2)\t2.6.11\n"
13473 msgstr ""
13474
13475 #. type: tbl table
13476 #: build/C/man2/syscalls.2:164
13477 #, no-wrap
13478 msgid "B<adjtimex>(2)\n"
13479 msgstr ""
13480
13481 #. type: tbl table
13482 #: build/C/man2/syscalls.2:165
13483 #, no-wrap
13484 msgid "B<alarm>(2)\n"
13485 msgstr ""
13486
13487 #. type: tbl table
13488 #: build/C/man2/syscalls.2:166
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:167
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:168
13501 #, no-wrap
13502 msgid "\t\tsince 2.6\n"
13503 msgstr ""
13504
13505 #. type: tbl table
13506 #: build/C/man2/syscalls.2:169
13507 #, no-wrap
13508 msgid "B<bind>(2)\n"
13509 msgstr ""
13510
13511 #. type: tbl table
13512 #: build/C/man2/syscalls.2:170
13513 #, no-wrap
13514 msgid "B<brk>(2)\n"
13515 msgstr ""
13516
13517 #. type: tbl table
13518 #: build/C/man2/syscalls.2:171
13519 #, no-wrap
13520 msgid "B<cacheflush>(2)\t1.2\tNot on i386\n"
13521 msgstr ""
13522
13523 #. type: tbl table
13524 #: build/C/man2/syscalls.2:172
13525 #, no-wrap
13526 msgid "B<capget>(2)\t2.2\n"
13527 msgstr ""
13528
13529 #. type: tbl table
13530 #: build/C/man2/syscalls.2:173
13531 #, no-wrap
13532 msgid "B<capset>(2)\t2.2\n"
13533 msgstr ""
13534
13535 #. type: tbl table
13536 #: build/C/man2/syscalls.2:174
13537 #, no-wrap
13538 msgid "B<chdir>(2)\n"
13539 msgstr ""
13540
13541 #. type: tbl table
13542 #: build/C/man2/syscalls.2:175
13543 #, no-wrap
13544 msgid "B<chmod>(2)\n"
13545 msgstr ""
13546
13547 #. type: tbl table
13548 #: build/C/man2/syscalls.2:176
13549 #, no-wrap
13550 msgid "B<chown>(2)\n"
13551 msgstr ""
13552
13553 #. type: tbl table
13554 #: build/C/man2/syscalls.2:177
13555 #, no-wrap
13556 msgid "B<chown32>(2)\t2.4\n"
13557 msgstr ""
13558
13559 #. type: tbl table
13560 #: build/C/man2/syscalls.2:178
13561 #, no-wrap
13562 msgid "B<chroot>(2)\n"
13563 msgstr ""
13564
13565 #. type: tbl table
13566 #: build/C/man2/syscalls.2:179
13567 #, no-wrap
13568 msgid "B<clock_adjtime>(2)\t2.6.39\n"
13569 msgstr ""
13570
13571 #. type: tbl table
13572 #: build/C/man2/syscalls.2:180
13573 #, no-wrap
13574 msgid "B<clock_getres>(2)\t2.6\n"
13575 msgstr ""
13576
13577 #. type: tbl table
13578 #: build/C/man2/syscalls.2:181
13579 #, no-wrap
13580 msgid "B<clock_gettime>(2)\t2.6\n"
13581 msgstr ""
13582
13583 #. type: tbl table
13584 #: build/C/man2/syscalls.2:182
13585 #, no-wrap
13586 msgid "B<clock_nanosleep>(2)\t2.6\n"
13587 msgstr ""
13588
13589 #. type: tbl table
13590 #: build/C/man2/syscalls.2:183
13591 #, no-wrap
13592 msgid "B<clock_settime>(2)\t2.6\n"
13593 msgstr ""
13594
13595 #. type: tbl table
13596 #: build/C/man2/syscalls.2:184
13597 #, no-wrap
13598 msgid "B<clone>(2)\n"
13599 msgstr ""
13600
13601 #. type: tbl table
13602 #: build/C/man2/syscalls.2:185
13603 #, no-wrap
13604 msgid "B<close>(2)\n"
13605 msgstr ""
13606
13607 #. type: tbl table
13608 #: build/C/man2/syscalls.2:186
13609 #, no-wrap
13610 msgid "B<connect>(2)\n"
13611 msgstr ""
13612
13613 #. type: tbl table
13614 #: build/C/man2/syscalls.2:187
13615 #, no-wrap
13616 msgid "B<creat>(2)\n"
13617 msgstr ""
13618
13619 #. type: tbl table
13620 #: build/C/man2/syscalls.2:188
13621 #, no-wrap
13622 msgid "B<create_module>(2)\tRemoved in 2.6\n"
13623 msgstr ""
13624
13625 #. type: tbl table
13626 #: build/C/man2/syscalls.2:189
13627 #, no-wrap
13628 msgid "B<delete_module>(2)\n"
13629 msgstr ""
13630
13631 #. type: tbl table
13632 #: build/C/man2/syscalls.2:190
13633 #, no-wrap
13634 msgid "B<dup>(2)\n"
13635 msgstr ""
13636
13637 #. type: tbl table
13638 #: build/C/man2/syscalls.2:191
13639 #, no-wrap
13640 msgid "B<dup2>(2)\n"
13641 msgstr ""
13642
13643 #. type: tbl table
13644 #: build/C/man2/syscalls.2:192
13645 #, no-wrap
13646 msgid "B<dup3>(2)\t2.6.27\n"
13647 msgstr ""
13648
13649 #. type: tbl table
13650 #: build/C/man2/syscalls.2:193
13651 #, no-wrap
13652 msgid "B<epoll_create>(2)\t2.6\n"
13653 msgstr ""
13654
13655 #. type: tbl table
13656 #: build/C/man2/syscalls.2:194
13657 #, no-wrap
13658 msgid "B<epoll_create1>(2)\t2.6.27\n"
13659 msgstr ""
13660
13661 #. type: tbl table
13662 #: build/C/man2/syscalls.2:195
13663 #, no-wrap
13664 msgid "B<epoll_ctl>(2)\t2.6\n"
13665 msgstr ""
13666
13667 #. type: tbl table
13668 #: build/C/man2/syscalls.2:196
13669 #, no-wrap
13670 msgid "B<epoll_pwait>(2)\t2.6.19\n"
13671 msgstr ""
13672
13673 #. type: tbl table
13674 #: build/C/man2/syscalls.2:197
13675 #, no-wrap
13676 msgid "B<epoll_wait>(2)\t2.6\n"
13677 msgstr ""
13678
13679 #. type: tbl table
13680 #: build/C/man2/syscalls.2:198
13681 #, no-wrap
13682 msgid "B<eventfd>(2)\t2.6.22\n"
13683 msgstr ""
13684
13685 #. type: tbl table
13686 #: build/C/man2/syscalls.2:199
13687 #, no-wrap
13688 msgid "B<eventfd2>(2)\t2.6.27\n"
13689 msgstr ""
13690
13691 #. type: tbl table
13692 #: build/C/man2/syscalls.2:200
13693 #, no-wrap
13694 msgid "B<execve>(2)\n"
13695 msgstr ""
13696
13697 #. type: tbl table
13698 #: build/C/man2/syscalls.2:201
13699 #, no-wrap
13700 msgid "B<exit>(2)\n"
13701 msgstr ""
13702
13703 #. type: tbl table
13704 #: build/C/man2/syscalls.2:202
13705 #, no-wrap
13706 msgid "B<exit_group>(2)\t2.6\n"
13707 msgstr ""
13708
13709 #. type: tbl table
13710 #: build/C/man2/syscalls.2:203
13711 #, no-wrap
13712 msgid "B<faccessat>(2)\t2.6.16\n"
13713 msgstr ""
13714
13715 #. type: tbl table
13716 #: build/C/man2/syscalls.2:204
13717 #, no-wrap
13718 msgid "B<fadvise64>(2)\t2.6\n"
13719 msgstr ""
13720
13721 #.  Implements \fBposix_fadvise\fP(2)
13722 #. type: tbl table
13723 #: build/C/man2/syscalls.2:206
13724 #, no-wrap
13725 msgid "B<fadvise64_64>(2)\t2.6\n"
13726 msgstr ""
13727
13728 #. type: tbl table
13729 #: build/C/man2/syscalls.2:207
13730 #, no-wrap
13731 msgid "B<fallocate>(2)\t2.6.23\n"
13732 msgstr ""
13733
13734 #. type: tbl table
13735 #: build/C/man2/syscalls.2:208
13736 #, no-wrap
13737 msgid "B<fanotify_init>(2)\t2.6.37\n"
13738 msgstr ""
13739
13740 #. type: tbl table
13741 #: build/C/man2/syscalls.2:209
13742 #, no-wrap
13743 msgid "B<fanotify_mark>(2)\t2.6.37\n"
13744 msgstr ""
13745
13746 #.  The fanotify calls were added in Linux 2.6.36,
13747 #.  but disabled while the API was finalized.
13748 #. type: tbl table
13749 #: build/C/man2/syscalls.2:212
13750 #, no-wrap
13751 msgid "B<fchdir>(2)\n"
13752 msgstr ""
13753
13754 #. type: tbl table
13755 #: build/C/man2/syscalls.2:213
13756 #, no-wrap
13757 msgid "B<fchmod>(2)\n"
13758 msgstr ""
13759
13760 #. type: tbl table
13761 #: build/C/man2/syscalls.2:214
13762 #, no-wrap
13763 msgid "B<fchmodat>(2)\t2.6.16\n"
13764 msgstr ""
13765
13766 #. type: tbl table
13767 #: build/C/man2/syscalls.2:215
13768 #, no-wrap
13769 msgid "B<fchown>(2)\n"
13770 msgstr ""
13771
13772 #. type: tbl table
13773 #: build/C/man2/syscalls.2:216
13774 #, no-wrap
13775 msgid "B<fchown32>(2)\t2.4\n"
13776 msgstr ""
13777
13778 #. type: tbl table
13779 #: build/C/man2/syscalls.2:217
13780 #, no-wrap
13781 msgid "B<fchownat>(2)\t2.6.16\n"
13782 msgstr ""
13783
13784 #. type: tbl table
13785 #: build/C/man2/syscalls.2:218
13786 #, no-wrap
13787 msgid "B<fcntl>(2)\n"
13788 msgstr ""
13789
13790 #. type: tbl table
13791 #: build/C/man2/syscalls.2:219
13792 #, no-wrap
13793 msgid "B<fcntl64>(2)\t2.4\n"
13794 msgstr ""
13795
13796 #. type: tbl table
13797 #: build/C/man2/syscalls.2:220
13798 #, no-wrap
13799 msgid "B<fdatasync>(2)\n"
13800 msgstr ""
13801
13802 #. type: tbl table
13803 #: build/C/man2/syscalls.2:221
13804 #, no-wrap
13805 msgid "B<fgetxattr>(2)\t2.6; 2.4.18\n"
13806 msgstr ""
13807
13808 #. type: tbl table
13809 #: build/C/man2/syscalls.2:222
13810 #, no-wrap
13811 msgid "B<flistxattr>(2)\t2.6; 2.4.18\n"
13812 msgstr ""
13813
13814 #. type: tbl table
13815 #: build/C/man2/syscalls.2:223
13816 #, no-wrap
13817 msgid "B<flock>(2)\t2.0\n"
13818 msgstr ""
13819
13820 #. type: tbl table
13821 #: build/C/man2/syscalls.2:224
13822 #, no-wrap
13823 msgid "B<fork>(2)\n"
13824 msgstr ""
13825
13826 #. type: tbl table
13827 #: build/C/man2/syscalls.2:225
13828 #, no-wrap
13829 msgid "B<free_hugepages>(2)\t2.5.36\tRemoved in 2.5.44\n"
13830 msgstr ""
13831
13832 #. type: tbl table
13833 #: build/C/man2/syscalls.2:226
13834 #, no-wrap
13835 msgid "B<fremovexattr>(2)\t2.6; 2.4.18\n"
13836 msgstr ""
13837
13838 #. type: tbl table
13839 #: build/C/man2/syscalls.2:227
13840 #, no-wrap
13841 msgid "B<fsetxattr>(2)\t2.6; 2.4.18\n"
13842 msgstr ""
13843
13844 #. type: tbl table
13845 #: build/C/man2/syscalls.2:228
13846 #, no-wrap
13847 msgid "B<fstat>(2)\n"
13848 msgstr ""
13849
13850 #. type: tbl table
13851 #: build/C/man2/syscalls.2:229
13852 #, no-wrap
13853 msgid "B<fstat64>(2)\t2.4\n"
13854 msgstr ""
13855
13856 #. type: tbl table
13857 #: build/C/man2/syscalls.2:230
13858 #, no-wrap
13859 msgid "B<fstatat64>(2)\t2.6.16\n"
13860 msgstr ""
13861
13862 #. type: tbl table
13863 #: build/C/man2/syscalls.2:231
13864 #, no-wrap
13865 msgid "B<fstatfs>(2)\n"
13866 msgstr ""
13867
13868 #. type: tbl table
13869 #: build/C/man2/syscalls.2:232
13870 #, no-wrap
13871 msgid "B<fstatfs64>(2)\t2.6\n"
13872 msgstr ""
13873
13874 #. type: tbl table
13875 #: build/C/man2/syscalls.2:233
13876 #, no-wrap
13877 msgid "B<fsync>(2)\n"
13878 msgstr ""
13879
13880 #. type: tbl table
13881 #: build/C/man2/syscalls.2:234
13882 #, no-wrap
13883 msgid "B<ftruncate>(2)\n"
13884 msgstr ""
13885
13886 #. type: tbl table
13887 #: build/C/man2/syscalls.2:235
13888 #, no-wrap
13889 msgid "B<ftruncate64>(2)\t2.4\n"
13890 msgstr ""
13891
13892 #. type: tbl table
13893 #: build/C/man2/syscalls.2:236
13894 #, no-wrap
13895 msgid "B<futex>(2)\t2.6\n"
13896 msgstr ""
13897
13898 #. type: tbl table
13899 #: build/C/man2/syscalls.2:237
13900 #, no-wrap
13901 msgid "B<futimesat>(2)\t2.6.16\n"
13902 msgstr ""
13903
13904 #. type: tbl table
13905 #: build/C/man2/syscalls.2:238
13906 #, no-wrap
13907 msgid "B<get_kernel_syms>(2)\tRemoved in 2.6\n"
13908 msgstr ""
13909
13910 #. type: tbl table
13911 #: build/C/man2/syscalls.2:239
13912 #, no-wrap
13913 msgid "B<get_mempolicy>(2)\t2.6.6\n"
13914 msgstr ""
13915
13916 #. type: tbl table
13917 #: build/C/man2/syscalls.2:240
13918 #, no-wrap
13919 msgid "B<get_robust_list>(2)\t2.6.17\n"
13920 msgstr ""
13921
13922 #. type: tbl table
13923 #: build/C/man2/syscalls.2:241
13924 #, no-wrap
13925 msgid "B<get_thread_area>(2)\t2.6\n"
13926 msgstr ""
13927
13928 #. type: tbl table
13929 #: build/C/man2/syscalls.2:242
13930 #, no-wrap
13931 msgid "B<getcpu>(2)\t2.6.19\n"
13932 msgstr ""
13933
13934 #. type: tbl table
13935 #: build/C/man2/syscalls.2:243
13936 #, no-wrap
13937 msgid "B<getcwd>(2)\t2.2\n"
13938 msgstr ""
13939
13940 #. type: tbl table
13941 #: build/C/man2/syscalls.2:244
13942 #, no-wrap
13943 msgid "B<getdents>(2)\t2.0\n"
13944 msgstr ""
13945
13946 #. type: tbl table
13947 #: build/C/man2/syscalls.2:245
13948 #, no-wrap
13949 msgid "B<getdents64>(2)\t2.4\n"
13950 msgstr ""
13951
13952 #. type: tbl table
13953 #: build/C/man2/syscalls.2:246
13954 #, no-wrap
13955 msgid "B<getegid>(2)\n"
13956 msgstr ""
13957
13958 #. type: tbl table
13959 #: build/C/man2/syscalls.2:247
13960 #, no-wrap
13961 msgid "B<getegid32>(2)\t2.4\n"
13962 msgstr ""
13963
13964 #. type: tbl table
13965 #: build/C/man2/syscalls.2:248
13966 #, no-wrap
13967 msgid "B<geteuid>(2)\n"
13968 msgstr ""
13969
13970 #. type: tbl table
13971 #: build/C/man2/syscalls.2:249
13972 #, no-wrap
13973 msgid "B<geteuid32>(2)\t2.4\n"
13974 msgstr ""
13975
13976 #. type: tbl table
13977 #: build/C/man2/syscalls.2:250
13978 #, no-wrap
13979 msgid "B<getgid>(2)\n"
13980 msgstr ""
13981
13982 #. type: tbl table
13983 #: build/C/man2/syscalls.2:251
13984 #, no-wrap
13985 msgid "B<getgid32>(2)\t2.4\n"
13986 msgstr ""
13987
13988 #. type: tbl table
13989 #: build/C/man2/syscalls.2:252
13990 #, no-wrap
13991 msgid "B<getgroups>(2)\n"
13992 msgstr ""
13993
13994 #. type: tbl table
13995 #: build/C/man2/syscalls.2:253
13996 #, no-wrap
13997 msgid "B<getgroups32>(2)\t2.4\n"
13998 msgstr ""
13999
14000 #. type: tbl table
14001 #: build/C/man2/syscalls.2:254
14002 #, no-wrap
14003 msgid "B<getitimer>(2)\n"
14004 msgstr ""
14005
14006 #. type: tbl table
14007 #: build/C/man2/syscalls.2:255
14008 #, no-wrap
14009 msgid "B<getpeername>(2)\n"
14010 msgstr ""
14011
14012 #. type: tbl table
14013 #: build/C/man2/syscalls.2:256
14014 #, no-wrap
14015 msgid "B<getpagesize>(2)\t2.0\tNot on i386\n"
14016 msgstr ""
14017
14018 #. type: tbl table
14019 #: build/C/man2/syscalls.2:257
14020 #, no-wrap
14021 msgid "B<getpgid>(2)\n"
14022 msgstr ""
14023
14024 #. type: tbl table
14025 #: build/C/man2/syscalls.2:258
14026 #, no-wrap
14027 msgid "B<getpgrp>(2)\n"
14028 msgstr ""
14029
14030 #. type: tbl table
14031 #: build/C/man2/syscalls.2:259
14032 #, no-wrap
14033 msgid "B<getpid>(2)\n"
14034 msgstr ""
14035
14036 #. type: tbl table
14037 #: build/C/man2/syscalls.2:260
14038 #, no-wrap
14039 msgid "B<getppid>(2)\n"
14040 msgstr ""
14041
14042 #. type: tbl table
14043 #: build/C/man2/syscalls.2:261
14044 #, no-wrap
14045 msgid "B<getpriority>(2)\n"
14046 msgstr ""
14047
14048 #. type: tbl table
14049 #: build/C/man2/syscalls.2:262
14050 #, no-wrap
14051 msgid "B<getresgid>(2)\t2.2\n"
14052 msgstr ""
14053
14054 #. type: tbl table
14055 #: build/C/man2/syscalls.2:263
14056 #, no-wrap
14057 msgid "B<getresgid32>(2)\t2.4\n"
14058 msgstr ""
14059
14060 #. type: tbl table
14061 #: build/C/man2/syscalls.2:264
14062 #, no-wrap
14063 msgid "B<getresuid>(2)\t2.2\n"
14064 msgstr ""
14065
14066 #. type: tbl table
14067 #: build/C/man2/syscalls.2:265
14068 #, no-wrap
14069 msgid "B<getresuid32>(2)\t2.4\n"
14070 msgstr ""
14071
14072 #. type: tbl table
14073 #: build/C/man2/syscalls.2:266
14074 #, no-wrap
14075 msgid "B<getrlimit>(2)\n"
14076 msgstr ""
14077
14078 #. type: tbl table
14079 #: build/C/man2/syscalls.2:267
14080 #, no-wrap
14081 msgid "B<getrusage>(2)\n"
14082 msgstr ""
14083
14084 #. type: tbl table
14085 #: build/C/man2/syscalls.2:268
14086 #, no-wrap
14087 msgid "B<getsid>(2)\t2.0\n"
14088 msgstr ""
14089
14090 #. type: tbl table
14091 #: build/C/man2/syscalls.2:269
14092 #, no-wrap
14093 msgid "B<getsockname>(2)\n"
14094 msgstr ""
14095
14096 #. type: tbl table
14097 #: build/C/man2/syscalls.2:270
14098 #, no-wrap
14099 msgid "B<getsockopt>(2)\n"
14100 msgstr ""
14101
14102 #. type: tbl table
14103 #: build/C/man2/syscalls.2:271
14104 #, no-wrap
14105 msgid "B<gettid>(2)\t2.4.11\n"
14106 msgstr ""
14107
14108 #. type: tbl table
14109 #: build/C/man2/syscalls.2:272
14110 #, no-wrap
14111 msgid "B<gettimeofday>(2)\n"
14112 msgstr ""
14113
14114 #. type: tbl table
14115 #: build/C/man2/syscalls.2:273
14116 #, no-wrap
14117 msgid "B<getuid>(2)\n"
14118 msgstr ""
14119
14120 #. type: tbl table
14121 #: build/C/man2/syscalls.2:274
14122 #, no-wrap
14123 msgid "B<getuid32>(2)\t2.4\n"
14124 msgstr ""
14125
14126 #.  \fBgetunwind\fP(2)  2.4.8   ia64; DEPRECATED
14127 #. type: tbl table
14128 #: build/C/man2/syscalls.2:276
14129 #, no-wrap
14130 msgid "B<getxattr>(2)\t2.6; 2.4.18\n"
14131 msgstr ""
14132
14133 #. type: tbl table
14134 #: build/C/man2/syscalls.2:277
14135 #, no-wrap
14136 msgid "B<init_module>(2)\n"
14137 msgstr ""
14138
14139 #. type: tbl table
14140 #: build/C/man2/syscalls.2:278
14141 #, no-wrap
14142 msgid "B<inotify_add_watch>(2)\t2.6.13\n"
14143 msgstr ""
14144
14145 #. type: tbl table
14146 #: build/C/man2/syscalls.2:279
14147 #, no-wrap
14148 msgid "B<inotify_init>(2)\t2.6.13\n"
14149 msgstr ""
14150
14151 #. type: tbl table
14152 #: build/C/man2/syscalls.2:280
14153 #, no-wrap
14154 msgid "B<inotify_init1>(2)\t2.6.27\n"
14155 msgstr ""
14156
14157 #. type: tbl table
14158 #: build/C/man2/syscalls.2:281
14159 #, no-wrap
14160 msgid "B<inotify_rm_watch>(2)\t2.6.13\n"
14161 msgstr ""
14162
14163 #. type: tbl table
14164 #: build/C/man2/syscalls.2:282
14165 #, no-wrap
14166 msgid "B<io_cancel>(2)\t2.6\n"
14167 msgstr ""
14168
14169 #. type: tbl table
14170 #: build/C/man2/syscalls.2:283
14171 #, no-wrap
14172 msgid "B<io_destroy>(2)\t2.6\n"
14173 msgstr ""
14174
14175 #. type: tbl table
14176 #: build/C/man2/syscalls.2:284
14177 #, no-wrap
14178 msgid "B<io_getevents>(2)\t2.6\n"
14179 msgstr ""
14180
14181 #. type: tbl table
14182 #: build/C/man2/syscalls.2:285
14183 #, no-wrap
14184 msgid "B<io_setup>(2)\t2.6\n"
14185 msgstr ""
14186
14187 #. type: tbl table
14188 #: build/C/man2/syscalls.2:286
14189 #, no-wrap
14190 msgid "B<io_submit>(2)\t2.6\n"
14191 msgstr ""
14192
14193 #. type: tbl table
14194 #: build/C/man2/syscalls.2:287
14195 #, no-wrap
14196 msgid "B<ioctl>(2)\n"
14197 msgstr ""
14198
14199 #. type: tbl table
14200 #: build/C/man2/syscalls.2:288
14201 #, no-wrap
14202 msgid "B<ioperm>(2)\n"
14203 msgstr ""
14204
14205 #. type: tbl table
14206 #: build/C/man2/syscalls.2:289
14207 #, no-wrap
14208 msgid "B<iopl>(2)\n"
14209 msgstr ""
14210
14211 #. type: tbl table
14212 #: build/C/man2/syscalls.2:290
14213 #, no-wrap
14214 msgid "B<ioprio_get>(2)\t2.6.13\n"
14215 msgstr ""
14216
14217 #. type: tbl table
14218 #: build/C/man2/syscalls.2:291
14219 #, no-wrap
14220 msgid "B<ioprio_set>(2)\t2.6.13\n"
14221 msgstr ""
14222
14223 #. type: tbl table
14224 #: build/C/man2/syscalls.2:292
14225 #, no-wrap
14226 msgid "B<ipc>(2)\n"
14227 msgstr ""
14228
14229 #.  Implements System V IPC calls
14230 #. type: tbl table
14231 #: build/C/man2/syscalls.2:294
14232 #, no-wrap
14233 msgid "B<kexec_load>(2)\t2.6.13\n"
14234 msgstr ""
14235
14236 #.  The entry in the syscall table was reserved starting in 2.6.7
14237 #.  Was named sys_kexec_load() from 2.6.7 to 2.6.16
14238 #. type: tbl table
14239 #: build/C/man2/syscalls.2:297
14240 #, no-wrap
14241 msgid "B<keyctl>(2)\t2.6.11\n"
14242 msgstr ""
14243
14244 #. type: tbl table
14245 #: build/C/man2/syscalls.2:298
14246 #, no-wrap
14247 msgid "B<kill>(2)\n"
14248 msgstr ""
14249
14250 #. type: tbl table
14251 #: build/C/man2/syscalls.2:299
14252 #, no-wrap
14253 msgid "B<lchown>(2)\t2.2\n"
14254 msgstr ""
14255
14256 #. type: tbl table
14257 #: build/C/man2/syscalls.2:300
14258 #, no-wrap
14259 msgid "B<lchown32>(2)\t2.4\n"
14260 msgstr ""
14261
14262 #. type: tbl table
14263 #: build/C/man2/syscalls.2:301
14264 #, no-wrap
14265 msgid "B<lgetxattr>(2)\t2.6; 2.4.18\n"
14266 msgstr ""
14267
14268 #. type: tbl table
14269 #: build/C/man2/syscalls.2:302
14270 #, no-wrap
14271 msgid "B<link>(2)\n"
14272 msgstr ""
14273
14274 #. type: tbl table
14275 #: build/C/man2/syscalls.2:303
14276 #, no-wrap
14277 msgid "B<linkat>(2)\t2.6.16\n"
14278 msgstr ""
14279
14280 #. type: tbl table
14281 #: build/C/man2/syscalls.2:304
14282 #, no-wrap
14283 msgid "B<listen>(2)\n"
14284 msgstr ""
14285
14286 #. type: tbl table
14287 #: build/C/man2/syscalls.2:305
14288 #, no-wrap
14289 msgid "B<listxattr>(2)\t2.6; 2.4.18\n"
14290 msgstr ""
14291
14292 #. type: tbl table
14293 #: build/C/man2/syscalls.2:306
14294 #, no-wrap
14295 msgid "B<llistxattr>(2)\t2.6; 2.4.18\n"
14296 msgstr ""
14297
14298 #. type: tbl table
14299 #: build/C/man2/syscalls.2:307
14300 #, no-wrap
14301 msgid "B<lookup_dcookie>(2)\t2.6\n"
14302 msgstr ""
14303
14304 #. type: tbl table
14305 #: build/C/man2/syscalls.2:308
14306 #, no-wrap
14307 msgid "B<lremovexattr>(2)\t2.6; 2.4.18\n"
14308 msgstr ""
14309
14310 #. type: tbl table
14311 #: build/C/man2/syscalls.2:309
14312 #, no-wrap
14313 msgid "B<lseek>(2)\n"
14314 msgstr ""
14315
14316 #. type: tbl table
14317 #: build/C/man2/syscalls.2:310
14318 #, no-wrap
14319 msgid "B<lsetxattr>(2)\t2.6; 2.4.18\n"
14320 msgstr ""
14321
14322 #. type: tbl table
14323 #: build/C/man2/syscalls.2:311
14324 #, no-wrap
14325 msgid "B<lstat>(2)\n"
14326 msgstr ""
14327
14328 #. type: tbl table
14329 #: build/C/man2/syscalls.2:312
14330 #, no-wrap
14331 msgid "B<lstat64>(2)\t2.4\n"
14332 msgstr ""
14333
14334 #. type: tbl table
14335 #: build/C/man2/syscalls.2:313
14336 #, no-wrap
14337 msgid "B<madvise>(2)\t2.4\n"
14338 msgstr ""
14339
14340 #. type: tbl table
14341 #: build/C/man2/syscalls.2:314
14342 #, no-wrap
14343 msgid "B<madvise1>(2)\t2.4\n"
14344 msgstr ""
14345
14346 #. type: tbl table
14347 #: build/C/man2/syscalls.2:315
14348 #, no-wrap
14349 msgid "B<mbind>(2)\t2.6.6\n"
14350 msgstr ""
14351
14352 #.  \fBmemory_ordering\fP(2)    ???     Sparc64
14353 #. type: tbl table
14354 #: build/C/man2/syscalls.2:317
14355 #, no-wrap
14356 msgid "B<migrate_pages>(2)\t2.6.16\n"
14357 msgstr ""
14358
14359 #. type: tbl table
14360 #: build/C/man2/syscalls.2:318
14361 #, no-wrap
14362 msgid "B<mincore>(2)\t2.4\n"
14363 msgstr ""
14364
14365 #. type: tbl table
14366 #: build/C/man2/syscalls.2:319
14367 #, no-wrap
14368 msgid "B<mkdir>(2)\n"
14369 msgstr ""
14370
14371 #. type: tbl table
14372 #: build/C/man2/syscalls.2:320
14373 #, no-wrap
14374 msgid "B<mkdirat>(2)\t2.6.16\n"
14375 msgstr ""
14376
14377 #. type: tbl table
14378 #: build/C/man2/syscalls.2:321
14379 #, no-wrap
14380 msgid "B<mknod>(2)\n"
14381 msgstr ""
14382
14383 #. type: tbl table
14384 #: build/C/man2/syscalls.2:322
14385 #, no-wrap
14386 msgid "B<mknodat>(2)\t2.6.16\n"
14387 msgstr ""
14388
14389 #. type: tbl table
14390 #: build/C/man2/syscalls.2:323
14391 #, no-wrap
14392 msgid "B<mlock>(2)\n"
14393 msgstr ""
14394
14395 #. type: tbl table
14396 #: build/C/man2/syscalls.2:324
14397 #, no-wrap
14398 msgid "B<mlockall>(2)\n"
14399 msgstr ""
14400
14401 #. type: tbl table
14402 #: build/C/man2/syscalls.2:325
14403 #, no-wrap
14404 msgid "B<mmap>(2)\n"
14405 msgstr ""
14406
14407 #. type: tbl table
14408 #: build/C/man2/syscalls.2:326
14409 #, no-wrap
14410 msgid "B<mmap2>(2)\t2.4\n"
14411 msgstr ""
14412
14413 #. type: tbl table
14414 #: build/C/man2/syscalls.2:327
14415 #, no-wrap
14416 msgid "B<modify_ldt>(2)\n"
14417 msgstr ""
14418
14419 #. type: tbl table
14420 #: build/C/man2/syscalls.2:328
14421 #, no-wrap
14422 msgid "B<mount>(2)\n"
14423 msgstr ""
14424
14425 #. type: tbl table
14426 #: build/C/man2/syscalls.2:329
14427 #, no-wrap
14428 msgid "B<move_pages>(2)\t2.6.18\n"
14429 msgstr ""
14430
14431 #. type: tbl table
14432 #: build/C/man2/syscalls.2:330
14433 #, no-wrap
14434 msgid "B<mprotect>(2)\n"
14435 msgstr ""
14436
14437 #. type: tbl table
14438 #: build/C/man2/syscalls.2:331
14439 #, no-wrap
14440 msgid "B<mq_getsetattr>(2)\t2.6.6\n"
14441 msgstr ""
14442
14443 #.  Implements \fBmq_getattr\fP(3) and \fBmq_setattr\fP(3)
14444 #. type: tbl table
14445 #: build/C/man2/syscalls.2:333
14446 #, no-wrap
14447 msgid "B<mq_notify>(2)\t2.6.6\n"
14448 msgstr ""
14449
14450 #. type: tbl table
14451 #: build/C/man2/syscalls.2:334
14452 #, no-wrap
14453 msgid "B<mq_open>(2)\t2.6.6\n"
14454 msgstr ""
14455
14456 #. type: tbl table
14457 #: build/C/man2/syscalls.2:335
14458 #, no-wrap
14459 msgid "B<mq_timedreceive>(2)\t2.6.6\n"
14460 msgstr ""
14461
14462 #. type: tbl table
14463 #: build/C/man2/syscalls.2:336
14464 #, no-wrap
14465 msgid "B<mq_timedsend>(2)\t2.6.6\n"
14466 msgstr ""
14467
14468 #. type: tbl table
14469 #: build/C/man2/syscalls.2:337
14470 #, no-wrap
14471 msgid "B<mq_unlink>(2)\n"
14472 msgstr ""
14473
14474 #. type: tbl table
14475 #: build/C/man2/syscalls.2:338
14476 #, no-wrap
14477 msgid "B<mremap>(2)\t2.0\n"
14478 msgstr ""
14479
14480 #. type: tbl table
14481 #: build/C/man2/syscalls.2:339
14482 #, no-wrap
14483 msgid "B<msgctl>(2)\n"
14484 msgstr ""
14485
14486 #. type: tbl table
14487 #: build/C/man2/syscalls.2:340
14488 #, no-wrap
14489 msgid "B<msgget>(2)\n"
14490 msgstr ""
14491
14492 #. type: tbl table
14493 #: build/C/man2/syscalls.2:341
14494 #, no-wrap
14495 msgid "B<msgrcv>(2)\n"
14496 msgstr ""
14497
14498 #. type: tbl table
14499 #: build/C/man2/syscalls.2:342
14500 #, no-wrap
14501 msgid "B<msgsnd>(2)\n"
14502 msgstr ""
14503
14504 #. type: tbl table
14505 #: build/C/man2/syscalls.2:343
14506 #, no-wrap
14507 msgid "B<msync>(2)\t2.0\n"
14508 msgstr ""
14509
14510 #.  \fBmultiplexer\fP(2)        ??      __NR_multiplexer reserved on
14511 #.              PowerPC, but unimplemented?
14512 #. type: tbl table
14513 #: build/C/man2/syscalls.2:346
14514 #, no-wrap
14515 msgid "B<munlock>(2)\n"
14516 msgstr ""
14517
14518 #. type: tbl table
14519 #: build/C/man2/syscalls.2:347
14520 #, no-wrap
14521 msgid "B<munlockall>(2)\n"
14522 msgstr ""
14523
14524 #. type: tbl table
14525 #: build/C/man2/syscalls.2:348
14526 #, no-wrap
14527 msgid "B<munmap>(2)\n"
14528 msgstr ""
14529
14530 #. type: tbl table
14531 #: build/C/man2/syscalls.2:349
14532 #, no-wrap
14533 msgid "B<name_to_handle_at>(2)\t2.6.39\n"
14534 msgstr ""
14535
14536 #. type: tbl table
14537 #: build/C/man2/syscalls.2:350
14538 #, no-wrap
14539 msgid "B<nanosleep>(2)\t2.0\n"
14540 msgstr ""
14541
14542 #. type: tbl table
14543 #: build/C/man2/syscalls.2:351
14544 #, no-wrap
14545 msgid "B<nfsservctl>(2)\t2.2\tRemoved in 3.1\n"
14546 msgstr ""
14547
14548 #. type: tbl table
14549 #: build/C/man2/syscalls.2:352
14550 #, no-wrap
14551 msgid "B<nice>(2)\n"
14552 msgstr ""
14553
14554 #. type: tbl table
14555 #: build/C/man2/syscalls.2:353
14556 #, no-wrap
14557 msgid "B<oldfstat>(2)\n"
14558 msgstr ""
14559
14560 #. type: tbl table
14561 #: build/C/man2/syscalls.2:354
14562 #, no-wrap
14563 msgid "B<oldlstat>(2)\n"
14564 msgstr ""
14565
14566 #. type: tbl table
14567 #: build/C/man2/syscalls.2:355
14568 #, no-wrap
14569 msgid "B<oldolduname>(2)\n"
14570 msgstr ""
14571
14572 #. type: tbl table
14573 #: build/C/man2/syscalls.2:356
14574 #, no-wrap
14575 msgid "B<oldstat>(2)\n"
14576 msgstr ""
14577
14578 #. type: tbl table
14579 #: build/C/man2/syscalls.2:357
14580 #, no-wrap
14581 msgid "B<olduname>(2)\n"
14582 msgstr ""
14583
14584 #. type: tbl table
14585 #: build/C/man2/syscalls.2:358
14586 #, no-wrap
14587 msgid "B<open>(2)\n"
14588 msgstr ""
14589
14590 #. type: tbl table
14591 #: build/C/man2/syscalls.2:359
14592 #, no-wrap
14593 msgid "B<open_by_handle_at>(2)\t2.6.39\n"
14594 msgstr ""
14595
14596 #. type: tbl table
14597 #: build/C/man2/syscalls.2:360
14598 #, no-wrap
14599 msgid "B<openat>(2)\t2.6.16\n"
14600 msgstr ""
14601
14602 #. type: tbl table
14603 #: build/C/man2/syscalls.2:361
14604 #, no-wrap
14605 msgid "B<pause>(2)\n"
14606 msgstr ""
14607
14608 #. type: tbl table
14609 #: build/C/man2/syscalls.2:362
14610 #, no-wrap
14611 msgid "B<pciconfig_iobase>(2)\t2.2.15; 2.4\tNot on i386\n"
14612 msgstr ""
14613
14614 #.  Alpha, PowerPC, ARM; not i386
14615 #. type: tbl table
14616 #: build/C/man2/syscalls.2:364
14617 #, no-wrap
14618 msgid "B<pciconfig_read>(2)\t2.0.26; 2.2\tNot on i386\n"
14619 msgstr ""
14620
14621 #.  , PowerPC, ARM; not i386
14622 #. type: tbl table
14623 #: build/C/man2/syscalls.2:366
14624 #, no-wrap
14625 msgid "B<pciconfig_write>(2)\t2.0.26; 2.2\tNot on i386\n"
14626 msgstr ""
14627
14628 #.  , PowerPC, ARM; not i386
14629 #. type: tbl table
14630 #: build/C/man2/syscalls.2:368
14631 #, no-wrap
14632 msgid "B<perf_event_open>(2)\t2.6.31\tWas called perf_counter_open()\n"
14633 msgstr ""
14634
14635 #. type: tbl table
14636 #: build/C/man2/syscalls.2:369
14637 #, no-wrap
14638 msgid "\t\tin 2.6.31; renamed in 2.6.32\n"
14639 msgstr ""
14640
14641 #. type: tbl table
14642 #: build/C/man2/syscalls.2:370
14643 #, no-wrap
14644 msgid "B<personality>(2)\t1.2\n"
14645 msgstr ""
14646
14647 #.  \fBperfctr\fP(2)    ???     Sparc32, Sparc64
14648 #.  \fBperfmonctl\fP(2) ???     ia64
14649 #. type: tbl table
14650 #: build/C/man2/syscalls.2:373
14651 #, no-wrap
14652 msgid "B<pipe>(2)\n"
14653 msgstr ""
14654
14655 #. type: tbl table
14656 #: build/C/man2/syscalls.2:374
14657 #, no-wrap
14658 msgid "B<pipe2>(2)\t2.6.27\n"
14659 msgstr ""
14660
14661 #. type: tbl table
14662 #: build/C/man2/syscalls.2:375
14663 #, no-wrap
14664 msgid "B<pivot_root>(2)\t2.4\n"
14665 msgstr ""
14666
14667 #. type: tbl table
14668 #: build/C/man2/syscalls.2:376
14669 #, no-wrap
14670 msgid "B<poll>(2)\t2.2\n"
14671 msgstr ""
14672
14673 #. type: tbl table
14674 #: build/C/man2/syscalls.2:377
14675 #, no-wrap
14676 msgid "B<ppoll>(2)\t2.6.16\n"
14677 msgstr ""
14678
14679 #. type: tbl table
14680 #: build/C/man2/syscalls.2:378
14681 #, no-wrap
14682 msgid "B<prctl>(2)\t2.2\n"
14683 msgstr ""
14684
14685 #. type: tbl table
14686 #: build/C/man2/syscalls.2:379
14687 #, no-wrap
14688 msgid "B<pread64>(2)\t\tAdded as \"pread\" in 2.2;\n"
14689 msgstr ""
14690
14691 #. type: tbl table
14692 #: build/C/man2/syscalls.2:380
14693 #, no-wrap
14694 msgid "\t\trenamed \"pread64\" in 2.6\n"
14695 msgstr ""
14696
14697 #. type: tbl table
14698 #: build/C/man2/syscalls.2:381
14699 #, no-wrap
14700 msgid "B<preadv>(2)\t2.6.30\n"
14701 msgstr ""
14702
14703 #. type: tbl table
14704 #: build/C/man2/syscalls.2:382
14705 #, no-wrap
14706 msgid "B<prlimit>(2)\t2.6.36\n"
14707 msgstr ""
14708
14709 #. type: tbl table
14710 #: build/C/man2/syscalls.2:383
14711 #, no-wrap
14712 msgid "B<process_vm_readv(2)>\t3.2\n"
14713 msgstr ""
14714
14715 #. type: tbl table
14716 #: build/C/man2/syscalls.2:384
14717 #, no-wrap
14718 msgid "B<process_vm_writev(2)>\t3.2\n"
14719 msgstr ""
14720
14721 #. type: tbl table
14722 #: build/C/man2/syscalls.2:385
14723 #, no-wrap
14724 msgid "B<pselect6>(2)\t2.6.16\n"
14725 msgstr ""
14726
14727 #.  Implements \fBpselect\fP(2)
14728 #. type: tbl table
14729 #: build/C/man2/syscalls.2:387
14730 #, no-wrap
14731 msgid "B<ptrace>(2)\n"
14732 msgstr ""
14733
14734 #. type: tbl table
14735 #: build/C/man2/syscalls.2:388
14736 #, no-wrap
14737 msgid "B<pwrite64>(2)\t\tAdded as \"pwrite\" in 2.2;\n"
14738 msgstr ""
14739
14740 #. type: tbl table
14741 #: build/C/man2/syscalls.2:389
14742 #, no-wrap
14743 msgid "\t\trenamed \"pwrite64\" in 2.6\n"
14744 msgstr ""
14745
14746 #. type: tbl table
14747 #: build/C/man2/syscalls.2:390
14748 #, no-wrap
14749 msgid "B<pwritev>(2)\t2.6.30\n"
14750 msgstr ""
14751
14752 #. type: tbl table
14753 #: build/C/man2/syscalls.2:391
14754 #, no-wrap
14755 msgid "B<query_module>(2)\t2.2\tRemoved in 2.6\n"
14756 msgstr ""
14757
14758 #. type: tbl table
14759 #: build/C/man2/syscalls.2:392
14760 #, no-wrap
14761 msgid "B<quotactl>(2)\n"
14762 msgstr ""
14763
14764 #. type: tbl table
14765 #: build/C/man2/syscalls.2:393
14766 #, no-wrap
14767 msgid "B<read>(2)\n"
14768 msgstr ""
14769
14770 #. type: tbl table
14771 #: build/C/man2/syscalls.2:394
14772 #, no-wrap
14773 msgid "B<readahead>(2)\t2.4.13\n"
14774 msgstr ""
14775
14776 #. type: tbl table
14777 #: build/C/man2/syscalls.2:395
14778 #, no-wrap
14779 msgid "B<readdir>(2)\n"
14780 msgstr ""
14781
14782 #.  Supersedes \fBgetdents\fP(2)
14783 #. type: tbl table
14784 #: build/C/man2/syscalls.2:397
14785 #, no-wrap
14786 msgid "B<readlink>(2)\n"
14787 msgstr ""
14788
14789 #. type: tbl table
14790 #: build/C/man2/syscalls.2:398
14791 #, no-wrap
14792 msgid "B<readlinkat>(2)\t2.6.16\n"
14793 msgstr ""
14794
14795 #. type: tbl table
14796 #: build/C/man2/syscalls.2:399
14797 #, no-wrap
14798 msgid "B<readv>(2)\t2.0\n"
14799 msgstr ""
14800
14801 #. type: tbl table
14802 #: build/C/man2/syscalls.2:400
14803 #, no-wrap
14804 msgid "B<reboot>(2)\n"
14805 msgstr ""
14806
14807 #. type: tbl table
14808 #: build/C/man2/syscalls.2:401
14809 #, no-wrap
14810 msgid "B<recv>(2)\n"
14811 msgstr ""
14812
14813 #. type: tbl table
14814 #: build/C/man2/syscalls.2:402
14815 #, no-wrap
14816 msgid "B<recvfrom>(2)\n"
14817 msgstr ""
14818
14819 #. type: tbl table
14820 #: build/C/man2/syscalls.2:403
14821 #, no-wrap
14822 msgid "B<recvmsg>(2)\n"
14823 msgstr ""
14824
14825 #. type: tbl table
14826 #: build/C/man2/syscalls.2:404
14827 #, no-wrap
14828 msgid "B<recvmmsg>(2)\t2.6.33\n"
14829 msgstr ""
14830
14831 #. type: tbl table
14832 #: build/C/man2/syscalls.2:405
14833 #, no-wrap
14834 msgid "B<remap_file_pages>(2)\t2.6\n"
14835 msgstr ""
14836
14837 #. type: tbl table
14838 #: build/C/man2/syscalls.2:406
14839 #, no-wrap
14840 msgid "B<removexattr>(2)\t2.6; 2.4.18\n"
14841 msgstr ""
14842
14843 #. type: tbl table
14844 #: build/C/man2/syscalls.2:407
14845 #, no-wrap
14846 msgid "B<rename>(2)\n"
14847 msgstr ""
14848
14849 #. type: tbl table
14850 #: build/C/man2/syscalls.2:408
14851 #, no-wrap
14852 msgid "B<renameat>(2)\t2.6.16\n"
14853 msgstr ""
14854
14855 #. type: tbl table
14856 #: build/C/man2/syscalls.2:409
14857 #, no-wrap
14858 msgid "B<request_key>(2)\t2.6.11\n"
14859 msgstr ""
14860
14861 #. type: tbl table
14862 #: build/C/man2/syscalls.2:410
14863 #, no-wrap
14864 msgid "B<restart_syscall>(2)\t2.6\n"
14865 msgstr ""
14866
14867 #. type: tbl table
14868 #: build/C/man2/syscalls.2:411
14869 #, no-wrap
14870 msgid "B<rmdir>(2)\n"
14871 msgstr ""
14872
14873 #. type: tbl table
14874 #: build/C/man2/syscalls.2:412
14875 #, no-wrap
14876 msgid "B<rt_sigaction>(2)\t2.2\n"
14877 msgstr ""
14878
14879 #. type: tbl table
14880 #: build/C/man2/syscalls.2:413
14881 #, no-wrap
14882 msgid "B<rt_sigpending>(2)\t2.2\n"
14883 msgstr ""
14884
14885 #. type: tbl table
14886 #: build/C/man2/syscalls.2:414
14887 #, no-wrap
14888 msgid "B<rt_sigprocmask>(2)\t2.2\n"
14889 msgstr ""
14890
14891 #. type: tbl table
14892 #: build/C/man2/syscalls.2:415
14893 #, no-wrap
14894 msgid "B<rt_sigqueueinfo>(2)\t2.2\n"
14895 msgstr ""
14896
14897 #. type: tbl table
14898 #: build/C/man2/syscalls.2:416
14899 #, no-wrap
14900 msgid "B<rt_sigreturn>(2)\t2.2\n"
14901 msgstr ""
14902
14903 #. type: tbl table
14904 #: build/C/man2/syscalls.2:417
14905 #, no-wrap
14906 msgid "B<rt_sigsuspend>(2)\t2.2\n"
14907 msgstr ""
14908
14909 #. type: tbl table
14910 #: build/C/man2/syscalls.2:418
14911 #, no-wrap
14912 msgid "B<rt_sigtimedwait>(2)\t2.2\n"
14913 msgstr ""
14914
14915 #. type: tbl table
14916 #: build/C/man2/syscalls.2:419
14917 #, no-wrap
14918 msgid "B<rt_tgsigqueueinfo>(2)\t2.6.31\n"
14919 msgstr ""
14920
14921 #. type: tbl table
14922 #: build/C/man2/syscalls.2:420
14923 #, no-wrap
14924 msgid "B<sched_get_priority_max>(2)\t2.0\n"
14925 msgstr ""
14926
14927 #. type: tbl table
14928 #: build/C/man2/syscalls.2:421
14929 #, no-wrap
14930 msgid "B<sched_get_priority_min>(2)\t2.0\n"
14931 msgstr ""
14932
14933 #. type: tbl table
14934 #: build/C/man2/syscalls.2:422
14935 #, no-wrap
14936 msgid "B<sched_getaffinity>(2)\t2.6\n"
14937 msgstr ""
14938
14939 #. type: tbl table
14940 #: build/C/man2/syscalls.2:423
14941 #, no-wrap
14942 msgid "B<sched_getparam>(2)\t2.0\n"
14943 msgstr ""
14944
14945 #. type: tbl table
14946 #: build/C/man2/syscalls.2:424
14947 #, no-wrap
14948 msgid "B<sched_getscheduler>(2)\t2.0\n"
14949 msgstr ""
14950
14951 #. type: tbl table
14952 #: build/C/man2/syscalls.2:425
14953 #, no-wrap
14954 msgid "B<sched_rr_get_interval>(2)\t2.0\n"
14955 msgstr ""
14956
14957 #. type: tbl table
14958 #: build/C/man2/syscalls.2:426
14959 #, no-wrap
14960 msgid "B<sched_setaffinity>(2)\t2.6\n"
14961 msgstr ""
14962
14963 #. type: tbl table
14964 #: build/C/man2/syscalls.2:427
14965 #, no-wrap
14966 msgid "B<sched_setparam>(2)\t2.0\n"
14967 msgstr ""
14968
14969 #. type: tbl table
14970 #: build/C/man2/syscalls.2:428
14971 #, no-wrap
14972 msgid "B<sched_setscheduler>(2)\t2.0\n"
14973 msgstr ""
14974
14975 #. type: tbl table
14976 #: build/C/man2/syscalls.2:429
14977 #, no-wrap
14978 msgid "B<sched_yield>(2)\t2.0\n"
14979 msgstr ""
14980
14981 #. type: tbl table
14982 #: build/C/man2/syscalls.2:430
14983 #, no-wrap
14984 msgid "B<select>(2)\n"
14985 msgstr ""
14986
14987 #. type: tbl table
14988 #: build/C/man2/syscalls.2:431
14989 #, no-wrap
14990 msgid "B<semctl>(2)\n"
14991 msgstr ""
14992
14993 #. type: tbl table
14994 #: build/C/man2/syscalls.2:432
14995 #, no-wrap
14996 msgid "B<semget>(2)\n"
14997 msgstr ""
14998
14999 #. type: tbl table
15000 #: build/C/man2/syscalls.2:433
15001 #, no-wrap
15002 msgid "B<semop>(2)\n"
15003 msgstr ""
15004
15005 #. type: tbl table
15006 #: build/C/man2/syscalls.2:434
15007 #, no-wrap
15008 msgid "B<semtimedop>(2)\t2.6; 2.4.22\n"
15009 msgstr ""
15010
15011 #. type: tbl table
15012 #: build/C/man2/syscalls.2:435
15013 #, no-wrap
15014 msgid "B<send>(2)\n"
15015 msgstr ""
15016
15017 #. type: tbl table
15018 #: build/C/man2/syscalls.2:436
15019 #, no-wrap
15020 msgid "B<sendfile>(2)\t2.2\n"
15021 msgstr ""
15022
15023 #. type: tbl table
15024 #: build/C/man2/syscalls.2:437
15025 #, no-wrap
15026 msgid "B<sendfile64>(2)\t2.6; 2.4.19\n"
15027 msgstr ""
15028
15029 #. type: tbl table
15030 #: build/C/man2/syscalls.2:438
15031 #, no-wrap
15032 msgid "B<sendmmsg>(2)\t3.0\n"
15033 msgstr ""
15034
15035 #. type: tbl table
15036 #: build/C/man2/syscalls.2:439
15037 #, no-wrap
15038 msgid "B<sendmsg>(2)\n"
15039 msgstr ""
15040
15041 #. type: tbl table
15042 #: build/C/man2/syscalls.2:440
15043 #, no-wrap
15044 msgid "B<sendto>(2)\n"
15045 msgstr ""
15046
15047 #. type: tbl table
15048 #: build/C/man2/syscalls.2:441
15049 #, no-wrap
15050 msgid "B<set_mempolicy>(2)\t2.6.6\n"
15051 msgstr ""
15052
15053 #. type: tbl table
15054 #: build/C/man2/syscalls.2:442
15055 #, no-wrap
15056 msgid "B<set_robust_list>(2)\t2.6.17\n"
15057 msgstr ""
15058
15059 #. type: tbl table
15060 #: build/C/man2/syscalls.2:443
15061 #, no-wrap
15062 msgid "B<set_thread_area>(2)\t2.6\n"
15063 msgstr ""
15064
15065 #. type: tbl table
15066 #: build/C/man2/syscalls.2:444
15067 #, no-wrap
15068 msgid "B<set_tid_address>(2)\t2.6\n"
15069 msgstr ""
15070
15071 #. type: tbl table
15072 #: build/C/man2/syscalls.2:445
15073 #, no-wrap
15074 msgid "B<set_zone_reclaim>(2)\t2.6.13\tRemoved in 2.6.16 (was never\n"
15075 msgstr ""
15076
15077 #. type: tbl table
15078 #: build/C/man2/syscalls.2:446
15079 #, no-wrap
15080 msgid "\t\tavailable to userspace)\n"
15081 msgstr ""
15082
15083 #.  See http://lkml.org/lkml/2005/8/1/83
15084 #.  "[PATCH] remove sys_set_zone_reclaim()"
15085 #. type: tbl table
15086 #: build/C/man2/syscalls.2:449
15087 #, no-wrap
15088 msgid "B<setdomainname>(2)\n"
15089 msgstr ""
15090
15091 #. type: tbl table
15092 #: build/C/man2/syscalls.2:450
15093 #, no-wrap
15094 msgid "B<setfsgid>(2)\t1.2\n"
15095 msgstr ""
15096
15097 #. type: tbl table
15098 #: build/C/man2/syscalls.2:451
15099 #, no-wrap
15100 msgid "B<setfsgid32>(2)\t2.4\n"
15101 msgstr ""
15102
15103 #. type: tbl table
15104 #: build/C/man2/syscalls.2:452
15105 #, no-wrap
15106 msgid "B<setfsuid>(2)\t1.2\n"
15107 msgstr ""
15108
15109 #. type: tbl table
15110 #: build/C/man2/syscalls.2:453
15111 #, no-wrap
15112 msgid "B<setfsuid32>(2)\t2.4\n"
15113 msgstr ""
15114
15115 #. type: tbl table
15116 #: build/C/man2/syscalls.2:454
15117 #, no-wrap
15118 msgid "B<setgid>(2)\n"
15119 msgstr ""
15120
15121 #. type: tbl table
15122 #: build/C/man2/syscalls.2:455
15123 #, no-wrap
15124 msgid "B<setgid32>(2)\t2.4\n"
15125 msgstr ""
15126
15127 #. type: tbl table
15128 #: build/C/man2/syscalls.2:456
15129 #, no-wrap
15130 msgid "B<setgroups>(2)\n"
15131 msgstr ""
15132
15133 #. type: tbl table
15134 #: build/C/man2/syscalls.2:457
15135 #, no-wrap
15136 msgid "B<setgroups32>(2)\t2.4\n"
15137 msgstr ""
15138
15139 #. type: tbl table
15140 #: build/C/man2/syscalls.2:458
15141 #, no-wrap
15142 msgid "B<sethostname>(2)\n"
15143 msgstr ""
15144
15145 #. type: tbl table
15146 #: build/C/man2/syscalls.2:459
15147 #, no-wrap
15148 msgid "B<setitimer>(2)\n"
15149 msgstr ""
15150
15151 #. type: tbl table
15152 #: build/C/man2/syscalls.2:460
15153 #, no-wrap
15154 msgid "B<setns>(2)\t3.0\n"
15155 msgstr ""
15156
15157 #. type: tbl table
15158 #: build/C/man2/syscalls.2:461
15159 #, no-wrap
15160 msgid "B<setpgid>(2)\n"
15161 msgstr ""
15162
15163 #. type: tbl table
15164 #: build/C/man2/syscalls.2:462
15165 #, no-wrap
15166 msgid "B<setpriority>(2)\n"
15167 msgstr ""
15168
15169 #. type: tbl table
15170 #: build/C/man2/syscalls.2:463
15171 #, no-wrap
15172 msgid "B<setregid>(2)\n"
15173 msgstr ""
15174
15175 #. type: tbl table
15176 #: build/C/man2/syscalls.2:464
15177 #, no-wrap
15178 msgid "B<setregid32>(2)\t2.4\n"
15179 msgstr ""
15180
15181 #. type: tbl table
15182 #: build/C/man2/syscalls.2:465
15183 #, no-wrap
15184 msgid "B<setresgid>(2)\t2.2\n"
15185 msgstr ""
15186
15187 #. type: tbl table
15188 #: build/C/man2/syscalls.2:466
15189 #, no-wrap
15190 msgid "B<setresgid32>(2)\t2.4\n"
15191 msgstr ""
15192
15193 #. type: tbl table
15194 #: build/C/man2/syscalls.2:467
15195 #, no-wrap
15196 msgid "B<setresuid>(2)\t2.2\n"
15197 msgstr ""
15198
15199 #. type: tbl table
15200 #: build/C/man2/syscalls.2:468
15201 #, no-wrap
15202 msgid "B<setresuid32>(2)\t2.4\n"
15203 msgstr ""
15204
15205 #. type: tbl table
15206 #: build/C/man2/syscalls.2:469
15207 #, no-wrap
15208 msgid "B<setreuid>(2)\n"
15209 msgstr ""
15210
15211 #. type: tbl table
15212 #: build/C/man2/syscalls.2:470
15213 #, no-wrap
15214 msgid "B<setreuid32>(2)\t2.4\n"
15215 msgstr ""
15216
15217 #. type: tbl table
15218 #: build/C/man2/syscalls.2:471
15219 #, no-wrap
15220 msgid "B<setrlimit>(2)\n"
15221 msgstr ""
15222
15223 #. type: tbl table
15224 #: build/C/man2/syscalls.2:472
15225 #, no-wrap
15226 msgid "B<setsid>(2)\n"
15227 msgstr ""
15228
15229 #. type: tbl table
15230 #: build/C/man2/syscalls.2:473
15231 #, no-wrap
15232 msgid "B<setsockopt>(2)\n"
15233 msgstr ""
15234
15235 #. type: tbl table
15236 #: build/C/man2/syscalls.2:474
15237 #, no-wrap
15238 msgid "B<settimeofday>(2)\n"
15239 msgstr ""
15240
15241 #. type: tbl table
15242 #: build/C/man2/syscalls.2:475
15243 #, no-wrap
15244 msgid "B<setuid>(2)\n"
15245 msgstr ""
15246
15247 #. type: tbl table
15248 #: build/C/man2/syscalls.2:476
15249 #, no-wrap
15250 msgid "B<setuid32>(2)\t2.4\n"
15251 msgstr ""
15252
15253 #. type: tbl table
15254 #: build/C/man2/syscalls.2:477
15255 #, no-wrap
15256 msgid "B<setup>(2)\t\tRemoved in 2.2\n"
15257 msgstr ""
15258
15259 #. type: tbl table
15260 #: build/C/man2/syscalls.2:478
15261 #, no-wrap
15262 msgid "B<setxattr>(2)\t2.6; 2.4.18\n"
15263 msgstr ""
15264
15265 #. type: tbl table
15266 #: build/C/man2/syscalls.2:479
15267 #, no-wrap
15268 msgid "B<sgetmask>(2)\n"
15269 msgstr ""
15270
15271 #. type: tbl table
15272 #: build/C/man2/syscalls.2:480
15273 #, no-wrap
15274 msgid "B<shmat>(2)\n"
15275 msgstr ""
15276
15277 #. type: tbl table
15278 #: build/C/man2/syscalls.2:481
15279 #, no-wrap
15280 msgid "B<shmctl>(2)\n"
15281 msgstr ""
15282
15283 #. type: tbl table
15284 #: build/C/man2/syscalls.2:482
15285 #, no-wrap
15286 msgid "B<shmdt>(2)\n"
15287 msgstr ""
15288
15289 #. type: tbl table
15290 #: build/C/man2/syscalls.2:483
15291 #, no-wrap
15292 msgid "B<shmget>(2)\n"
15293 msgstr ""
15294
15295 #. type: tbl table
15296 #: build/C/man2/syscalls.2:484
15297 #, no-wrap
15298 msgid "B<shutdown>(2)\n"
15299 msgstr ""
15300
15301 #. type: tbl table
15302 #: build/C/man2/syscalls.2:485
15303 #, no-wrap
15304 msgid "B<sigaction>(2)\n"
15305 msgstr ""
15306
15307 #. type: tbl table
15308 #: build/C/man2/syscalls.2:486
15309 #, no-wrap
15310 msgid "B<sigaltstack>(2)\t2.2\n"
15311 msgstr ""
15312
15313 #. type: tbl table
15314 #: build/C/man2/syscalls.2:487
15315 #, no-wrap
15316 msgid "B<signal>(2)\n"
15317 msgstr ""
15318
15319 #. type: tbl table
15320 #: build/C/man2/syscalls.2:488
15321 #, no-wrap
15322 msgid "B<signalfd>(2)\t2.6.22\n"
15323 msgstr ""
15324
15325 #. type: tbl table
15326 #: build/C/man2/syscalls.2:489
15327 #, no-wrap
15328 msgid "B<signalfd4>(2)\t2.6.27\n"
15329 msgstr ""
15330
15331 #. type: tbl table
15332 #: build/C/man2/syscalls.2:490
15333 #, no-wrap
15334 msgid "B<sigpending>(2)\n"
15335 msgstr ""
15336
15337 #. type: tbl table
15338 #: build/C/man2/syscalls.2:491
15339 #, no-wrap
15340 msgid "B<sigprocmask>(2)\n"
15341 msgstr ""
15342
15343 #. type: tbl table
15344 #: build/C/man2/syscalls.2:492
15345 #, no-wrap
15346 msgid "B<sigreturn>(2)\n"
15347 msgstr ""
15348
15349 #. type: tbl table
15350 #: build/C/man2/syscalls.2:493
15351 #, no-wrap
15352 msgid "B<sigsuspend>(2)\n"
15353 msgstr ""
15354
15355 #. type: tbl table
15356 #: build/C/man2/syscalls.2:494
15357 #, no-wrap
15358 msgid "B<socket>(2)\n"
15359 msgstr ""
15360
15361 #. type: tbl table
15362 #: build/C/man2/syscalls.2:495
15363 #, no-wrap
15364 msgid "B<socketcall>(2)\n"
15365 msgstr ""
15366
15367 #.  Implements BSD socket calls
15368 #. type: tbl table
15369 #: build/C/man2/syscalls.2:497
15370 #, no-wrap
15371 msgid "B<socketpair>(2)\n"
15372 msgstr ""
15373
15374 #. type: tbl table
15375 #: build/C/man2/syscalls.2:498
15376 #, no-wrap
15377 msgid "B<splice>(2)\t2.6.17\n"
15378 msgstr ""
15379
15380 #. type: tbl table
15381 #: build/C/man2/syscalls.2:499
15382 #, no-wrap
15383 msgid "B<spu_create>(2)\t2.6.16\tPowerPC only\n"
15384 msgstr ""
15385
15386 #. type: tbl table
15387 #: build/C/man2/syscalls.2:500
15388 #, no-wrap
15389 msgid "B<spu_run>(2)\t2.6.16\tPowerPC only\n"
15390 msgstr ""
15391
15392 #. type: tbl table
15393 #: build/C/man2/syscalls.2:501
15394 #, no-wrap
15395 msgid "B<ssetmask>(2)\n"
15396 msgstr ""
15397
15398 #. type: tbl table
15399 #: build/C/man2/syscalls.2:502
15400 #, no-wrap
15401 msgid "B<stat>(2)\n"
15402 msgstr ""
15403
15404 #. type: tbl table
15405 #: build/C/man2/syscalls.2:503
15406 #, no-wrap
15407 msgid "B<stat64>(2)\t2.4\n"
15408 msgstr ""
15409
15410 #. type: tbl table
15411 #: build/C/man2/syscalls.2:504
15412 #, no-wrap
15413 msgid "B<statfs>(2)\n"
15414 msgstr ""
15415
15416 #. type: tbl table
15417 #: build/C/man2/syscalls.2:505
15418 #, no-wrap
15419 msgid "B<statfs64>(2)\t2.6\n"
15420 msgstr ""
15421
15422 #. type: tbl table
15423 #: build/C/man2/syscalls.2:506
15424 #, no-wrap
15425 msgid "B<stime>(2)\n"
15426 msgstr ""
15427
15428 #. type: tbl table
15429 #: build/C/man2/syscalls.2:507
15430 #, no-wrap
15431 msgid "B<subpage_prot>(2)\t2.6.25\tPowerPC if CONFIG_PPC_64K_PAGES\n"
15432 msgstr ""
15433
15434 #. type: tbl table
15435 #: build/C/man2/syscalls.2:508
15436 #, no-wrap
15437 msgid "B<swapoff>(2)\n"
15438 msgstr ""
15439
15440 #. type: tbl table
15441 #: build/C/man2/syscalls.2:509
15442 #, no-wrap
15443 msgid "B<swapon>(2)\n"
15444 msgstr ""
15445
15446 #. type: tbl table
15447 #: build/C/man2/syscalls.2:510
15448 #, no-wrap
15449 msgid "B<symlink>(2)\n"
15450 msgstr ""
15451
15452 #. type: tbl table
15453 #: build/C/man2/syscalls.2:511
15454 #, no-wrap
15455 msgid "B<symlinkat>(2)\t2.6.16\n"
15456 msgstr ""
15457
15458 #. type: tbl table
15459 #: build/C/man2/syscalls.2:512
15460 #, no-wrap
15461 msgid "B<sync>(2)\n"
15462 msgstr ""
15463
15464 #. type: tbl table
15465 #: build/C/man2/syscalls.2:513
15466 #, no-wrap
15467 msgid "B<sync_file_range>(2)\t2.6.17\n"
15468 msgstr ""
15469
15470 #. type: tbl table
15471 #: build/C/man2/syscalls.2:514
15472 #, no-wrap
15473 msgid "B<sync_file_range2>(2)\t2.6.22\tArchitecture-specific variant\n"
15474 msgstr ""
15475
15476 #.  PowerPC, ARM, tile
15477 #.  First appeared on ARM, as arm_sync_file_range(), but later renamed
15478 #. type: tbl table
15479 #: build/C/man2/syscalls.2:517
15480 #, no-wrap
15481 msgid "\t\tof B<sync_file_range>(2)\n"
15482 msgstr ""
15483
15484 #.  \fBsys_debug_setcontext\fP(2)       ???     PowerPC if CONFIG_PPC32
15485 #. type: tbl table
15486 #: build/C/man2/syscalls.2:519
15487 #, no-wrap
15488 msgid "B<syncfs>(2)\t2.6.39\n"
15489 msgstr ""
15490
15491 #. type: tbl table
15492 #: build/C/man2/syscalls.2:520
15493 #, no-wrap
15494 msgid "B<sysfs>(2)\t1.2\n"
15495 msgstr ""
15496
15497 #. type: tbl table
15498 #: build/C/man2/syscalls.2:521
15499 #, no-wrap
15500 msgid "B<sysinfo>(2)\n"
15501 msgstr ""
15502
15503 #. type: tbl table
15504 #: build/C/man2/syscalls.2:522
15505 #, no-wrap
15506 msgid "B<syslog>(2)\n"
15507 msgstr ""
15508
15509 #.  glibc interface is \fBklogctl\fP(3)
15510 #. type: tbl table
15511 #: build/C/man2/syscalls.2:524
15512 #, no-wrap
15513 msgid "B<tee>(2)\t2.6.17\n"
15514 msgstr ""
15515
15516 #. type: tbl table
15517 #: build/C/man2/syscalls.2:525
15518 #, no-wrap
15519 msgid "B<tgkill>(2)\t2.6\n"
15520 msgstr ""
15521
15522 #. type: tbl table
15523 #: build/C/man2/syscalls.2:526
15524 #, no-wrap
15525 msgid "B<time>(2)\n"
15526 msgstr ""
15527
15528 #. type: tbl table
15529 #: build/C/man2/syscalls.2:527
15530 #, no-wrap
15531 msgid "B<timer_create>(2)\t2.6\n"
15532 msgstr ""
15533
15534 #. type: tbl table
15535 #: build/C/man2/syscalls.2:528
15536 #, no-wrap
15537 msgid "B<timer_delete>(2)\t2.6\n"
15538 msgstr ""
15539
15540 #. type: tbl table
15541 #: build/C/man2/syscalls.2:529
15542 #, no-wrap
15543 msgid "B<timer_getoverrun>(2)\t2.6\n"
15544 msgstr ""
15545
15546 #. type: tbl table
15547 #: build/C/man2/syscalls.2:530
15548 #, no-wrap
15549 msgid "B<timer_gettime>(2)\t2.6\n"
15550 msgstr ""
15551
15552 #. type: tbl table
15553 #: build/C/man2/syscalls.2:531
15554 #, no-wrap
15555 msgid "B<timer_settime>(2)\t2.6\n"
15556 msgstr ""
15557
15558 #. type: tbl table
15559 #: build/C/man2/syscalls.2:532
15560 #, no-wrap
15561 msgid "B<timerfd_create>(2)\t2.6.25\n"
15562 msgstr ""
15563
15564 #. type: tbl table
15565 #: build/C/man2/syscalls.2:533
15566 #, no-wrap
15567 msgid "B<timerfd_gettime>(2)\t2.6.25\n"
15568 msgstr ""
15569
15570 #. type: tbl table
15571 #: build/C/man2/syscalls.2:534
15572 #, no-wrap
15573 msgid "B<timerfd_settime>(2)\t2.6.25\n"
15574 msgstr ""
15575
15576 #. type: tbl table
15577 #: build/C/man2/syscalls.2:535
15578 #, no-wrap
15579 msgid "B<times>(2)\n"
15580 msgstr ""
15581
15582 #. type: tbl table
15583 #: build/C/man2/syscalls.2:536
15584 #, no-wrap
15585 msgid "B<tkill>(2)\t2.6; 2.4.22\n"
15586 msgstr ""
15587
15588 #. type: tbl table
15589 #: build/C/man2/syscalls.2:537
15590 #, no-wrap
15591 msgid "B<truncate>(2)\n"
15592 msgstr ""
15593
15594 #. type: tbl table
15595 #: build/C/man2/syscalls.2:538
15596 #, no-wrap
15597 msgid "B<truncate64>(2)\t2.4\n"
15598 msgstr ""
15599
15600 #. type: tbl table
15601 #: build/C/man2/syscalls.2:539
15602 #, no-wrap
15603 msgid "B<ugetrlimit>(2)\t2.4\n"
15604 msgstr ""
15605
15606 #. type: tbl table
15607 #: build/C/man2/syscalls.2:540
15608 #, no-wrap
15609 msgid "B<umask>(2)\n"
15610 msgstr ""
15611
15612 #. type: tbl table
15613 #: build/C/man2/syscalls.2:541
15614 #, no-wrap
15615 msgid "B<umount>(2)\n"
15616 msgstr ""
15617
15618 #.  sys_oldumount() -- __NR_umount
15619 #. type: tbl table
15620 #: build/C/man2/syscalls.2:543
15621 #, no-wrap
15622 msgid "B<umount2>(2)\t2.2\n"
15623 msgstr ""
15624
15625 #.  sys_umount() -- __NR_umount2
15626 #. type: tbl table
15627 #: build/C/man2/syscalls.2:545
15628 #, no-wrap
15629 msgid "B<uname>(2)\n"
15630 msgstr ""
15631
15632 #. type: tbl table
15633 #: build/C/man2/syscalls.2:546
15634 #, no-wrap
15635 msgid "B<unlink>(2)\n"
15636 msgstr ""
15637
15638 #. type: tbl table
15639 #: build/C/man2/syscalls.2:547
15640 #, no-wrap
15641 msgid "B<unlinkat>(2)\t2.6.16\n"
15642 msgstr ""
15643
15644 #. type: tbl table
15645 #: build/C/man2/syscalls.2:548
15646 #, no-wrap
15647 msgid "B<unshare>(2)\t2.6.16\n"
15648 msgstr ""
15649
15650 #. type: tbl table
15651 #: build/C/man2/syscalls.2:549
15652 #, no-wrap
15653 msgid "B<uselib>(2)\n"
15654 msgstr ""
15655
15656 #. type: tbl table
15657 #: build/C/man2/syscalls.2:550
15658 #, no-wrap
15659 msgid "B<ustat>(2)\n"
15660 msgstr ""
15661
15662 #. type: tbl table
15663 #: build/C/man2/syscalls.2:551
15664 #, no-wrap
15665 msgid "B<utime>(2)\n"
15666 msgstr ""
15667
15668 #. type: tbl table
15669 #: build/C/man2/syscalls.2:552
15670 #, no-wrap
15671 msgid "B<utimensat>(2)\t2.6.22\n"
15672 msgstr ""
15673
15674 #. type: tbl table
15675 #: build/C/man2/syscalls.2:553
15676 #, no-wrap
15677 msgid "B<utimes>(2)\t2.2\n"
15678 msgstr ""
15679
15680 #. type: tbl table
15681 #: build/C/man2/syscalls.2:554
15682 #, no-wrap
15683 msgid "B<vfork>(2)\n"
15684 msgstr ""
15685
15686 #. type: tbl table
15687 #: build/C/man2/syscalls.2:555
15688 #, no-wrap
15689 msgid "B<vhangup>(2)\n"
15690 msgstr ""
15691
15692 #. type: tbl table
15693 #: build/C/man2/syscalls.2:556
15694 #, no-wrap
15695 msgid "B<vm86old>(2)\n"
15696 msgstr ""
15697
15698 #.  Superseded by \fBvm86\fP(2)
15699 #. type: tbl table
15700 #: build/C/man2/syscalls.2:558
15701 #, no-wrap
15702 msgid "B<vmsplice>(2)\t2.6.17\n"
15703 msgstr ""
15704
15705 #. type: tbl table
15706 #: build/C/man2/syscalls.2:559
15707 #, no-wrap
15708 msgid "B<wait4>(2)\n"
15709 msgstr ""
15710
15711 #. type: tbl table
15712 #: build/C/man2/syscalls.2:560
15713 #, no-wrap
15714 msgid "B<waitid>(2)\t2.6.10\n"
15715 msgstr ""
15716
15717 #. type: tbl table
15718 #: build/C/man2/syscalls.2:561
15719 #, no-wrap
15720 msgid "B<waitpid>(2)\n"
15721 msgstr ""
15722
15723 #. type: tbl table
15724 #: build/C/man2/syscalls.2:562
15725 #, no-wrap
15726 msgid "B<write>(2)\n"
15727 msgstr ""
15728
15729 #. type: tbl table
15730 #: build/C/man2/syscalls.2:563
15731 #, no-wrap
15732 msgid "B<writev>(2)\t2.0\n"
15733 msgstr ""
15734
15735 #. type: Plain text
15736 #: build/C/man2/syscalls.2:571
15737 msgid ""
15738 "On many platforms, including i386, socket calls are all multiplexed (via "
15739 "glibc wrapper functions) through B<socketcall>(2)  and similarly System V "
15740 "IPC calls are multiplexed through B<ipc>(2)."
15741 msgstr ""
15742
15743 #.  __NR_afs_syscall is 53 on Linux 2.6.22/i386
15744 #.  __NR_break is 17 on Linux 2.6.22/i386
15745 #.  __NR_ftime is 35 on Linux 2.6.22/i386
15746 #.  __NR_getpmsg is 188 on Linux 2.6.22/i386
15747 #.  __NR_gtty is 32 on Linux 2.6.22/i386
15748 #.  __NR_idle is 112 on Linux 2.6.22/i386
15749 #.  __NR_lock is 53 on Linux 2.6.22/i386
15750 #.  __NR_madvise1 is 219 on Linux 2.6.22/i386
15751 #.  __NR_mpx is 66 on Linux 2.6.22/i386
15752 #.  Slot has been reused
15753 #.  __NR_prof is 44 on Linux 2.6.22/i386
15754 #.  __NR_profil is 98 on Linux 2.6.22/i386
15755 #.  __NR_putpmsg is 189 on Linux 2.6.22/i386
15756 #.  __NR_security is 223 on Linux 2.4/i386
15757 #.  __NR_security is 223 on Linux 2.4/i386; absent on 2.6/i386, present
15758 #.  on a couple of 2.6 architectures
15759 #.  __NR_stty is 31 on Linux 2.6.22/i386
15760 #.  The security call is for future use.
15761 #.  __NR_tuxcall is 184 on x86_64, also on PPC and alpha
15762 #.  __NR_ulimit is 58 on Linux 2.6.22/i386
15763 #.  __NR_vserver is 273 on Linux 2.6.22/i386
15764 #. type: Plain text
15765 #: build/C/man2/syscalls.2:616
15766 msgid ""
15767 "Although slots are reserved for them in the system call table, the following "
15768 "system calls are not implemented in the standard kernel: B<afs_syscall>(2), "
15769 "B<break>(2), B<ftime>(2), B<getpmsg>(2), B<gtty>(2), B<idle>(2), B<lock>(2), "
15770 "B<madvise1>(2), B<mpx>(2), B<phys>(2), B<prof>(2), B<profil>(2), "
15771 "B<putpmsg>(2), B<security>(2), B<stty>(2), B<tuxcall>(2), B<ulimit>(2), and "
15772 "B<vserver>(2)  (see also B<unimplemented>(2)).  However, B<ftime>(3), "
15773 "B<profil>(3)  and B<ulimit>(3)  exist as library routines.  The slot for "
15774 "B<phys>(2)  is in use since kernel 2.1.116 for B<umount>(2); B<phys>(2)  "
15775 "will never be implemented.  The B<getpmsg>(2)  and B<putpmsg>(2)  calls are "
15776 "for kernels patched to support STREAMS, and may never be in the standard "
15777 "kernel."
15778 msgstr ""
15779
15780 #. type: Plain text
15781 #: build/C/man2/syscalls.2:632
15782 msgid ""
15783 "Roughly speaking, the code belonging to the system call with number __NR_xxx "
15784 "defined in I</usr/include/asm/unistd.h> can be found in the kernel source in "
15785 "the routine I<sys_xxx>().  (The dispatch table for i386 can be found in "
15786 "I</usr/src/linux/arch/i386/kernel/entry.S>.)  There are many exceptions, "
15787 "however, mostly because older system calls were superseded by newer ones, "
15788 "and this has been treated somewhat unsystematically.  On platforms with "
15789 "proprietary OS emulation, such as parisc, sparc, sparc64 and alpha, there "
15790 "are many additional system calls; mips64 also contains a full set of 32-bit "
15791 "system calls."
15792 msgstr ""
15793
15794 #. type: Plain text
15795 #: build/C/man2/syscalls.2:651
15796 msgid ""
15797 "Over time, changes to the interfaces of some system calls have been "
15798 "necessary.  One reason for such changes was the need to increase the size of "
15799 "structures or scalar values passed to the system call.  Because of these "
15800 "changes, there are now various groups of related system calls (e.g., "
15801 "B<truncate>(2)  and B<truncate64>(2))  which perform similar tasks, but "
15802 "which vary in details such as the size of their arguments.  (As noted "
15803 "earlier, applications are generally unaware of this: the glibc wrapper "
15804 "functions do some work to ensure that the right system call is invoked, and "
15805 "that ABI compatibility is preserved for old binaries.)  Examples of systems "
15806 "calls that exist in multiple versions are the following:"
15807 msgstr ""
15808
15809 #.  e.g., on 2.6.22/i386: __NR_oldstat 18, __NR_stat 106, __NR_stat64 195
15810 #.  The stat system calls deal with three different data structures,
15811 #.  defined in include/asm-i386/stat.h: __old_kernel_stat, stat, stat64
15812 #. type: Plain text
15813 #: build/C/man2/syscalls.2:672
15814 msgid ""
15815 "By now there are three different versions of B<stat>(2): I<sys_stat>()  "
15816 "(slot I<__NR_oldstat>), I<sys_newstat>()  (slot I<__NR_stat>), and "
15817 "I<sys_stat64>()  (slot I<__NR_stat64>), with the last being the most "
15818 "current.  A similar story applies for B<lstat>(2)  and B<fstat>(2)."
15819 msgstr ""
15820
15821 #. type: Plain text
15822 #: build/C/man2/syscalls.2:683
15823 msgid ""
15824 "Similarly, the defines I<__NR_oldolduname>, I<__NR_olduname>, and "
15825 "I<__NR_uname> refer to the routines I<sys_olduname>(), I<sys_uname>()  and "
15826 "I<sys_newuname>()."
15827 msgstr ""
15828
15829 #. type: Plain text
15830 #: build/C/man2/syscalls.2:690
15831 msgid ""
15832 "In Linux 2.0, a new version of B<vm86>(2)  appeared, with the old and the "
15833 "new kernel routines being named I<sys_vm86old>()  and I<sys_vm86>()."
15834 msgstr ""
15835
15836 #. type: Plain text
15837 #: build/C/man2/syscalls.2:701
15838 msgid ""
15839 "In Linux 2.4, a new version of B<getrlimit>(2)  appeared, with the old and "
15840 "the new kernel routines being named I<sys_old_getrlimit>()  (slot "
15841 "I<__NR_getrlimit>)  and I<sys_getrlimit>()  (slot I<__NR_ugetrlimit>)."
15842 msgstr ""
15843
15844 #.  64-bit off_t changes: ftruncate64, *stat64,
15845 #.  fcntl64 (because of the flock structure), getdents64, *statfs64
15846 #. type: Plain text
15847 #: build/C/man2/syscalls.2:713
15848 msgid ""
15849 "Linux 2.4 increased the size of user and group IDs from 16 to 32 bits.  To "
15850 "support this change, a range of system calls were added (e.g., "
15851 "B<chown32>(2), B<getuid32>(2), B<getgroups32>(2), B<setresuid32>(2)), "
15852 "superseding earlier calls of the same name without the \"32\" suffix."
15853 msgstr ""
15854
15855 #. type: Plain text
15856 #: build/C/man2/syscalls.2:730
15857 msgid ""
15858 "Linux 2.4 added support for applications on 32-bit architectures to access "
15859 "large files (i.e., files for which the sizes and file offsets can't be "
15860 "represented in 32 bits.)  To support this change, replacements were required "
15861 "for system calls that deal with file offsets and sizes.  Thus the following "
15862 "system calls were added: B<fcntl64>(2), B<ftruncate64>(2), B<getdents64>(2), "
15863 "B<stat64>(2), B<statfs64>(2), and their analogs that work with file "
15864 "descriptors or symbolic links.  These system calls supersede the older "
15865 "system calls which, except in the case of the \"stat\" calls, have the same "
15866 "name without the \"64\" suffix."
15867 msgstr ""
15868
15869 #. type: Plain text
15870 #: build/C/man2/syscalls.2:734
15871 msgid ""
15872 "On newer platforms that only have 64-bit file access and 32-bit uids (e.g., "
15873 "alpha, ia64, s390x) there are no *64 or *32 calls.  Where the *64 and *32 "
15874 "calls exist, the other versions are obsolete."
15875 msgstr ""
15876
15877 #. type: Plain text
15878 #: build/C/man2/syscalls.2:742
15879 msgid ""
15880 "The I<rt_sig*> calls were added in kernel 2.2 to support the addition of "
15881 "real-time signals (see B<signal>(7)).  These system calls supersede the "
15882 "older system calls of the same name without the \"rt_\" prefix."
15883 msgstr ""
15884
15885 #.  (used by libc 6)
15886 #.  .PP
15887 #.  Two system call numbers,
15888 #.  .IR __NR__llseek
15889 #.  and
15890 #.  .IR __NR__sysctl
15891 #.  have an additional underscore absent in
15892 #.  .IR sys_llseek ()
15893 #.  and
15894 #.  .IR sys_sysctl ().
15895 #
15896 #.  In kernel 2.1.81,
15897 #.  .BR lchown (2)
15898 #.  and
15899 #.  .BR chown (2)
15900 #.  were swapped; that is,
15901 #.  .BR lchown (2)
15902 #.  was added with the semantics that were then current for
15903 #.  .BR chown (2),
15904 #.  and the semantics of the latter call were changed to what
15905 #.  they are today.
15906 #. type: Plain text
15907 #: build/C/man2/syscalls.2:792
15908 msgid ""
15909 "The B<select>(2)  and B<mmap>(2)  system calls use five or more arguments, "
15910 "which caused problems the way argument passing on the i386 used to be set "
15911 "up.  Thus, while other architectures have I<sys_select>()  and I<sys_mmap>()  "
15912 "corresponding to I<__NR_select> and I<__NR_mmap>, on i386 one finds "
15913 "I<old_select>()  and I<old_mmap>()  (routines that use a pointer to a "
15914 "argument block) instead.  These days passing five arguments is not a problem "
15915 "any more, and there is a I<__NR__newselect> that corresponds directly to "
15916 "I<sys_select>()  and similarly I<__NR_mmap2>."
15917 msgstr ""
15918
15919 #. type: Plain text
15920 #: build/C/man2/syscalls.2:796
15921 msgid "B<syscall>(2), B<unimplemented>(2), B<libc>(7)"
15922 msgstr ""
15923
15924 #. type: TH
15925 #: build/C/man3/sysconf.3:25
15926 #, no-wrap
15927 msgid "SYSCONF"
15928 msgstr ""
15929
15930 #. type: TH
15931 #: build/C/man3/sysconf.3:25
15932 #, no-wrap
15933 msgid "2007-12-12"
15934 msgstr ""
15935
15936 #. type: Plain text
15937 #: build/C/man3/sysconf.3:28
15938 msgid "sysconf - Get configuration information at runtime"
15939 msgstr ""
15940
15941 #. type: Plain text
15942 #: build/C/man3/sysconf.3:33
15943 #, no-wrap
15944 msgid "B<long sysconf(int >I<name>B<);>\n"
15945 msgstr ""
15946
15947 #. type: Plain text
15948 #: build/C/man3/sysconf.3:38
15949 msgid ""
15950 "POSIX allows an application to test at compile or run time whether certain "
15951 "options are supported, or what the value is of certain configurable "
15952 "constants or limits."
15953 msgstr ""
15954
15955 #. type: Plain text
15956 #: build/C/man3/sysconf.3:44
15957 msgid ""
15958 "At compile time this is done by including I<E<lt>unistd.hE<gt>> and/or "
15959 "I<E<lt>limits.hE<gt>> and testing the value of certain macros."
15960 msgstr ""
15961
15962 #. type: Plain text
15963 #: build/C/man3/sysconf.3:54
15964 msgid ""
15965 "At run time, one can ask for numerical values using the present function "
15966 "B<sysconf>().  One can ask for numerical values that may depend on the file "
15967 "system a file is in using the calls B<fpathconf>(3)  and B<pathconf>(3).  "
15968 "One can ask for string values using B<confstr>(3)."
15969 msgstr ""
15970
15971 #.  except that sysconf(_SC_OPEN_MAX) may change answer after a call
15972 #.  to setrlimit( ) which changes the RLIMIT_NOFILE soft limit
15973 #. type: Plain text
15974 #: build/C/man3/sysconf.3:59
15975 msgid ""
15976 "The values obtained from these functions are system configuration "
15977 "constants.  They do not change during the lifetime of a process."
15978 msgstr ""
15979
15980 #.  and 999 to indicate support for options no longer present in the latest
15981 #.  standard. (?)
15982 #. type: Plain text
15983 #: build/C/man3/sysconf.3:82
15984 msgid ""
15985 "For options, typically, there is a constant B<_POSIX_FOO> that may be "
15986 "defined in I<E<lt>unistd.hE<gt>>.  If it is undefined, one should ask at run "
15987 "time.  If it is defined to -1, then the option is not supported.  If it is "
15988 "defined to 0, then relevant functions and headers exist, but one has to ask "
15989 "at runtime what degree of support is available.  If it is defined to a value "
15990 "other than -1 or 0, then the option is supported.  Usually the value (such "
15991 "as 200112L) indicates the year and month of the POSIX revision describing "
15992 "the option.  Glibc uses the value 1 to indicate support as long as the POSIX "
15993 "revision has not been published yet.  The B<sysconf>()  argument will be "
15994 "B<_SC_FOO>.  For a list of options, see B<posixoptions>(7)."
15995 msgstr ""
15996
15997 #. type: Plain text
15998 #: build/C/man3/sysconf.3:102
15999 msgid ""
16000 "For variables or limits, typically, there is a constant B<_FOO>, maybe "
16001 "defined in I<E<lt>limits.hE<gt>>, or B<_POSIX_FOO>, maybe defined in "
16002 "I<E<lt>unistd.hE<gt>>.  The constant will not be defined if the limit is "
16003 "unspecified.  If the constant is defined, it gives a guaranteed value, and a "
16004 "greater value might actually be supported.  If an application wants to take "
16005 "advantage of values which may change between systems, a call to B<sysconf>()  "
16006 "can be made.  The B<sysconf>()  argument will be B<_SC_FOO>."
16007 msgstr ""
16008
16009 #. type: SS
16010 #: build/C/man3/sysconf.3:102
16011 #, no-wrap
16012 msgid "POSIX.1 Variables"
16013 msgstr ""
16014
16015 #. type: Plain text
16016 #: build/C/man3/sysconf.3:107
16017 msgid ""
16018 "We give the name of the variable, the name of the B<sysconf>()  argument "
16019 "used to inquire about its value, and a short description."
16020 msgstr ""
16021
16022 #.  [for the moment: only the things that are unconditionally present]
16023 #.  .TP
16024 #.  .BR AIO_LISTIO_MAX " - " _SC_AIO_LISTIO_MAX
16025 #.  (if _POSIX_ASYNCHRONOUS_IO)
16026 #.  Maximum number of I/O operations in a single list I/O call.
16027 #.  Must not be less than _POSIX_AIO_LISTIO_MAX.
16028 #.  .TP
16029 #.  .BR AIO_MAX " - " _SC_AIO_MAX
16030 #.  (if _POSIX_ASYNCHRONOUS_IO)
16031 #.  Maximum number of outstanding asynchronous I/O operations.
16032 #.  Must not be less than _POSIX_AIO_MAX.
16033 #.  .TP
16034 #.  .BR AIO_PRIO_DELTA_MAX " - " _SC_AIO_PRIO_DELTA_MAX
16035 #.  (if _POSIX_ASYNCHRONOUS_IO)
16036 #.  The maximum amount by which a process can decrease its
16037 #.  asynchronous I/O priority level from its own scheduling priority.
16038 #.  Must be nonnegative.
16039 #. type: Plain text
16040 #: build/C/man3/sysconf.3:126
16041 msgid "First, the POSIX.1 compatible values."
16042 msgstr ""
16043
16044 #. type: TP
16045 #: build/C/man3/sysconf.3:126
16046 #, no-wrap
16047 msgid "B<ARG_MAX> - B<_SC_ARG_MAX>"
16048 msgstr ""
16049
16050 #. type: Plain text
16051 #: build/C/man3/sysconf.3:134
16052 msgid ""
16053 "The maximum length of the arguments to the B<exec>(3)  family of functions.  "
16054 "Must not be less than B<_POSIX_ARG_MAX> (4096)."
16055 msgstr ""
16056
16057 #. type: TP
16058 #: build/C/man3/sysconf.3:134
16059 #, no-wrap
16060 msgid "B<CHILD_MAX> - B<_SC_CHILD_MAX>"
16061 msgstr ""
16062
16063 #. type: Plain text
16064 #: build/C/man3/sysconf.3:140
16065 msgid ""
16066 "The max number of simultaneous processes per user ID.  Must not be less than "
16067 "B<_POSIX_CHILD_MAX> (25)."
16068 msgstr ""
16069
16070 #. type: TP
16071 #: build/C/man3/sysconf.3:140
16072 #, no-wrap
16073 msgid "B<HOST_NAME_MAX> - B<_SC_HOST_NAME_MAX>"
16074 msgstr ""
16075
16076 #. type: Plain text
16077 #: build/C/man3/sysconf.3:148
16078 msgid ""
16079 "Max length of a hostname, not including the terminating null byte, as "
16080 "returned by B<gethostname>(2).  Must not be less than "
16081 "B<_POSIX_HOST_NAME_MAX> (255)."
16082 msgstr ""
16083
16084 #. type: TP
16085 #: build/C/man3/sysconf.3:148
16086 #, no-wrap
16087 msgid "B<LOGIN_NAME_MAX> - B<_SC_LOGIN_NAME_MAX>"
16088 msgstr ""
16089
16090 #. type: Plain text
16091 #: build/C/man3/sysconf.3:154
16092 msgid ""
16093 "Maximum length of a login name, including the terminating null byte.  Must "
16094 "not be less than B<_POSIX_LOGIN_NAME_MAX> (9)."
16095 msgstr ""
16096
16097 #. type: TP
16098 #: build/C/man3/sysconf.3:154
16099 #, no-wrap
16100 msgid "clock ticks - B<_SC_CLK_TCK>"
16101 msgstr ""
16102
16103 #. type: Plain text
16104 #: build/C/man3/sysconf.3:163
16105 msgid ""
16106 "The number of clock ticks per second.  The corresponding variable is "
16107 "obsolete.  It was of course called B<CLK_TCK>.  (Note: the macro "
16108 "B<CLOCKS_PER_SEC> does not give information: it must equal 1000000.)"
16109 msgstr ""
16110
16111 #. type: TP
16112 #: build/C/man3/sysconf.3:163
16113 #, no-wrap
16114 msgid "B<OPEN_MAX> - B<_SC_OPEN_MAX>"
16115 msgstr ""
16116
16117 #. type: Plain text
16118 #: build/C/man3/sysconf.3:169
16119 msgid ""
16120 "The maximum number of files that a process can have open at any time.  Must "
16121 "not be less than B<_POSIX_OPEN_MAX> (20)."
16122 msgstr ""
16123
16124 #. type: TP
16125 #: build/C/man3/sysconf.3:169
16126 #, no-wrap
16127 msgid "B<PAGESIZE> - B<_SC_PAGESIZE>"
16128 msgstr ""
16129
16130 #. type: Plain text
16131 #: build/C/man3/sysconf.3:174
16132 msgid ""
16133 "Size of a page in bytes.  Must not be less than 1.  (Some systems use "
16134 "PAGE_SIZE instead.)"
16135 msgstr ""
16136
16137 #. type: TP
16138 #: build/C/man3/sysconf.3:174 build/C/man3/sysconf.3:261
16139 #, no-wrap
16140 msgid "B<RE_DUP_MAX> - B<_SC_RE_DUP_MAX>"
16141 msgstr ""
16142
16143 #. type: Plain text
16144 #: build/C/man3/sysconf.3:183
16145 msgid ""
16146 "The number of repeated occurrences of a BRE permitted by B<regexec>(3)  and "
16147 "B<regcomp>(3).  Must not be less than B<_POSIX2_RE_DUP_MAX> (255)."
16148 msgstr ""
16149
16150 #. type: TP
16151 #: build/C/man3/sysconf.3:183
16152 #, no-wrap
16153 msgid "B<STREAM_MAX> - B<_SC_STREAM_MAX>"
16154 msgstr ""
16155
16156 #. type: Plain text
16157 #: build/C/man3/sysconf.3:192
16158 msgid ""
16159 "The maximum number of streams that a process can have open at any time.  If "
16160 "defined, it has the same value as the standard C macro B<FOPEN_MAX>.  Must "
16161 "not be less than B<_POSIX_STREAM_MAX> (8)."
16162 msgstr ""
16163
16164 #. type: TP
16165 #: build/C/man3/sysconf.3:192
16166 #, no-wrap
16167 msgid "B<SYMLOOP_MAX>"
16168 msgstr ""
16169
16170 #. type: Plain text
16171 #: build/C/man3/sysconf.3:200
16172 msgid ""
16173 "The maximum number of symbolic links seen in a pathname before resolution "
16174 "returns B<ELOOP>.  Must not be less than B<_POSIX_SYMLOOP_MAX> (8)."
16175 msgstr ""
16176
16177 #. type: TP
16178 #: build/C/man3/sysconf.3:200
16179 #, no-wrap
16180 msgid "B<TTY_NAME_MAX> - B<_SC_TTY_NAME_MAX>"
16181 msgstr ""
16182
16183 #. type: Plain text
16184 #: build/C/man3/sysconf.3:207
16185 msgid ""
16186 "The maximum length of terminal device name, including the terminating null "
16187 "byte.  Must not be less than B<_POSIX_TTY_NAME_MAX> (9)."
16188 msgstr ""
16189
16190 #. type: TP
16191 #: build/C/man3/sysconf.3:207
16192 #, no-wrap
16193 msgid "B<TZNAME_MAX> - B<_SC_TZNAME_MAX>"
16194 msgstr ""
16195
16196 #. type: Plain text
16197 #: build/C/man3/sysconf.3:213
16198 msgid ""
16199 "The maximum number of bytes in a timezone name.  Must not be less than "
16200 "B<_POSIX_TZNAME_MAX> (6)."
16201 msgstr ""
16202
16203 #. type: TP
16204 #: build/C/man3/sysconf.3:213
16205 #, no-wrap
16206 msgid "B<_POSIX_VERSION> - B<_SC_VERSION>"
16207 msgstr ""
16208
16209 #. type: Plain text
16210 #: build/C/man3/sysconf.3:221
16211 msgid ""
16212 "indicates the year and month the POSIX.1 standard was approved in the format "
16213 "B<YYYYMML>; the value B<199009L> indicates the Sept. 1990 revision."
16214 msgstr ""
16215
16216 #. type: SS
16217 #: build/C/man3/sysconf.3:221
16218 #, no-wrap
16219 msgid "POSIX.2 Variables"
16220 msgstr ""
16221
16222 #. type: Plain text
16223 #: build/C/man3/sysconf.3:223
16224 msgid "Next, the POSIX.2 values, giving limits for utilities."
16225 msgstr ""
16226
16227 #. type: TP
16228 #: build/C/man3/sysconf.3:223
16229 #, no-wrap
16230 msgid "B<BC_BASE_MAX> - B<_SC_BC_BASE_MAX>"
16231 msgstr ""
16232
16233 #. type: Plain text
16234 #: build/C/man3/sysconf.3:230
16235 msgid "indicates the maximum I<obase> value accepted by the B<bc>(1)  utility."
16236 msgstr ""
16237
16238 #. type: TP
16239 #: build/C/man3/sysconf.3:230
16240 #, no-wrap
16241 msgid "B<BC_DIM_MAX> - B<_SC_BC_DIM_MAX>"
16242 msgstr ""
16243
16244 #. type: Plain text
16245 #: build/C/man3/sysconf.3:234
16246 msgid "indicates the maximum value of elements permitted in an array by B<bc>(1)."
16247 msgstr ""
16248
16249 #. type: TP
16250 #: build/C/man3/sysconf.3:234
16251 #, no-wrap
16252 msgid "B<BC_SCALE_MAX> - B<_SC_BC_SCALE_MAX>"
16253 msgstr ""
16254
16255 #. type: Plain text
16256 #: build/C/man3/sysconf.3:240
16257 msgid "indicates the maximum I<scale> value allowed by B<bc>(1)."
16258 msgstr ""
16259
16260 #. type: TP
16261 #: build/C/man3/sysconf.3:240
16262 #, no-wrap
16263 msgid "B<BC_STRING_MAX> - B<_SC_BC_STRING_MAX>"
16264 msgstr ""
16265
16266 #. type: Plain text
16267 #: build/C/man3/sysconf.3:244
16268 msgid "indicates the maximum length of a string accepted by B<bc>(1)."
16269 msgstr ""
16270
16271 #. type: TP
16272 #: build/C/man3/sysconf.3:244
16273 #, no-wrap
16274 msgid "B<COLL_WEIGHTS_MAX> - B<_SC_COLL_WEIGHTS_MAX>"
16275 msgstr ""
16276
16277 #. type: Plain text
16278 #: build/C/man3/sysconf.3:250
16279 msgid ""
16280 "indicates the maximum numbers of weights that can be assigned to an entry of "
16281 "the B<LC_COLLATE order> keyword in the locale definition file,"
16282 msgstr ""
16283
16284 #. type: TP
16285 #: build/C/man3/sysconf.3:250
16286 #, no-wrap
16287 msgid "B<EXPR_NEST_MAX> - B<_SC_EXPR_NEST_MAX>"
16288 msgstr ""
16289
16290 #. type: Plain text
16291 #: build/C/man3/sysconf.3:255
16292 msgid ""
16293 "is the maximum number of expressions which can be nested within parentheses "
16294 "by B<expr>(1)."
16295 msgstr ""
16296
16297 #. type: TP
16298 #: build/C/man3/sysconf.3:255
16299 #, no-wrap
16300 msgid "B<LINE_MAX> - B<_SC_LINE_MAX>"
16301 msgstr ""
16302
16303 #. type: Plain text
16304 #: build/C/man3/sysconf.3:261
16305 msgid ""
16306 "The maximum length of a utility's input line, either from standard input or "
16307 "from a file.  This includes space for a trailing newline."
16308 msgstr ""
16309
16310 #. type: Plain text
16311 #: build/C/man3/sysconf.3:267
16312 msgid ""
16313 "The maximum number of repeated occurrences of a regular expression when the "
16314 "interval notation B<\\e{m,n\\e}> is used."
16315 msgstr ""
16316
16317 #. type: TP
16318 #: build/C/man3/sysconf.3:267
16319 #, no-wrap
16320 msgid "B<POSIX2_VERSION> - B<_SC_2_VERSION>"
16321 msgstr ""
16322
16323 #. type: Plain text
16324 #: build/C/man3/sysconf.3:271
16325 msgid "indicates the version of the POSIX.2 standard in the format of YYYYMML."
16326 msgstr ""
16327
16328 #. type: TP
16329 #: build/C/man3/sysconf.3:271
16330 #, no-wrap
16331 msgid "B<POSIX2_C_DEV> - B<_SC_2_C_DEV>"
16332 msgstr ""
16333
16334 #. type: Plain text
16335 #: build/C/man3/sysconf.3:275
16336 msgid ""
16337 "indicates whether the POSIX.2 C language development facilities are "
16338 "supported."
16339 msgstr ""
16340
16341 #. type: TP
16342 #: build/C/man3/sysconf.3:275
16343 #, no-wrap
16344 msgid "B<POSIX2_FORT_DEV> - B<_SC_2_FORT_DEV>"
16345 msgstr ""
16346
16347 #. type: Plain text
16348 #: build/C/man3/sysconf.3:279
16349 msgid "indicates whether the POSIX.2 FORTRAN development utilities are supported."
16350 msgstr ""
16351
16352 #. type: TP
16353 #: build/C/man3/sysconf.3:279
16354 #, no-wrap
16355 msgid "B<POSIX2_FORT_RUN> - B<_SC_2_FORT_RUN>"
16356 msgstr ""
16357
16358 #. type: Plain text
16359 #: build/C/man3/sysconf.3:282
16360 msgid "indicates whether the POSIX.2 FORTRAN runtime utilities are supported."
16361 msgstr ""
16362
16363 #. type: TP
16364 #: build/C/man3/sysconf.3:282
16365 #, no-wrap
16366 msgid "B<_POSIX2_LOCALEDEF> - B<_SC_2_LOCALEDEF>"
16367 msgstr ""
16368
16369 #. type: Plain text
16370 #: build/C/man3/sysconf.3:287
16371 msgid ""
16372 "indicates whether the POSIX.2 creation of locates via B<localedef>(1)  is "
16373 "supported."
16374 msgstr ""
16375
16376 #. type: TP
16377 #: build/C/man3/sysconf.3:287
16378 #, no-wrap
16379 msgid "B<POSIX2_SW_DEV> - B<_SC_2_SW_DEV>"
16380 msgstr ""
16381
16382 #. type: Plain text
16383 #: build/C/man3/sysconf.3:291
16384 msgid ""
16385 "indicates whether the POSIX.2 software development utilities option is "
16386 "supported."
16387 msgstr ""
16388
16389 #. type: Plain text
16390 #: build/C/man3/sysconf.3:293
16391 msgid "These values also exist, but may not be standard."
16392 msgstr ""
16393
16394 #. type: TP
16395 #: build/C/man3/sysconf.3:293
16396 #, no-wrap
16397 msgid " - B<_SC_PHYS_PAGES>"
16398 msgstr ""
16399
16400 #. type: Plain text
16401 #: build/C/man3/sysconf.3:300
16402 msgid ""
16403 "The number of pages of physical memory.  Note that it is possible for the "
16404 "product of this value and the value of B<_SC_PAGE_SIZE> to overflow."
16405 msgstr ""
16406
16407 #. type: TP
16408 #: build/C/man3/sysconf.3:300
16409 #, no-wrap
16410 msgid " - B<_SC_AVPHYS_PAGES>"
16411 msgstr ""
16412
16413 #. type: Plain text
16414 #: build/C/man3/sysconf.3:303
16415 msgid "The number of currently available pages of physical memory."
16416 msgstr ""
16417
16418 #. type: TP
16419 #: build/C/man3/sysconf.3:303
16420 #, no-wrap
16421 msgid " - B<_SC_NPROCESSORS_CONF>"
16422 msgstr ""
16423
16424 #. type: Plain text
16425 #: build/C/man3/sysconf.3:306
16426 msgid "The number of processors configured."
16427 msgstr ""
16428
16429 #. type: TP
16430 #: build/C/man3/sysconf.3:306
16431 #, no-wrap
16432 msgid " - B<_SC_NPROCESSORS_ONLN>"
16433 msgstr ""
16434
16435 #. type: Plain text
16436 #: build/C/man3/sysconf.3:309
16437 msgid "The number of processors currently online (available)."
16438 msgstr ""
16439
16440 #. type: Plain text
16441 #: build/C/man3/sysconf.3:322
16442 msgid ""
16443 "If I<name> is invalid, -1 is returned, and I<errno> is set to B<EINVAL>.  "
16444 "Otherwise, the value returned is the value of the system resource and "
16445 "I<errno> is not changed.  In the case of options, a positive value is "
16446 "returned if a queried option is available, and -1 if it is not.  In the case "
16447 "of limits, -1 means that there is no definite limit."
16448 msgstr ""
16449
16450 #. type: Plain text
16451 #: build/C/man3/sysconf.3:330
16452 msgid ""
16453 "It is difficult to use B<ARG_MAX> because it is not specified how much of "
16454 "the argument space for B<exec>(3)  is consumed by the user's environment "
16455 "variables."
16456 msgstr ""
16457
16458 #. type: Plain text
16459 #: build/C/man3/sysconf.3:341
16460 msgid ""
16461 "B<bc>(1), B<expr>(1), B<getconf>(1), B<locale>(1), B<fpathconf>(3), "
16462 "B<pathconf>(3), B<posixoptions>(7)"
16463 msgstr ""
16464
16465 #. type: TH
16466 #: build/C/man2/sysctl.2:28
16467 #, no-wrap
16468 msgid "SYSCTL"
16469 msgstr ""
16470
16471 #. type: TH
16472 #: build/C/man2/sysctl.2:28
16473 #, no-wrap
16474 msgid "2008-11-20"
16475 msgstr ""
16476
16477 #. type: Plain text
16478 #: build/C/man2/sysctl.2:31
16479 msgid "sysctl - read/write system parameters"
16480 msgstr ""
16481
16482 #. type: Plain text
16483 #: build/C/man2/sysctl.2:36
16484 #, no-wrap
16485 msgid "B<#include E<lt>linux/sysctl.hE<gt>>\n"
16486 msgstr ""
16487
16488 #. type: Plain text
16489 #: build/C/man2/sysctl.2:38
16490 #, no-wrap
16491 msgid "B<int _sysctl(struct __sysctl_args *>I<args>B<);>\n"
16492 msgstr ""
16493
16494 #. type: Plain text
16495 #: build/C/man2/sysctl.2:42
16496 msgid "B<Do not use this system call!> See NOTES."
16497 msgstr ""
16498
16499 #. type: Plain text
16500 #: build/C/man2/sysctl.2:49
16501 msgid ""
16502 "The B<_sysctl>()  call reads and/or writes kernel parameters.  For example, "
16503 "the hostname, or the maximum number of open files.  The argument has the "
16504 "form"
16505 msgstr ""
16506
16507 #. type: Plain text
16508 #: build/C/man2/sysctl.2:61
16509 #, no-wrap
16510 msgid ""
16511 "struct __sysctl_args {\n"
16512 "    int    *name;    /* integer vector describing variable */\n"
16513 "    int     nlen;    /* length of this vector */\n"
16514 "    void   *oldval;  /* 0 or address where to store old value */\n"
16515 "    size_t *oldlenp; /* available room for old value,\n"
16516 "                        overwritten by actual size of old value */\n"
16517 "    void   *newval;  /* 0 or address of new value */\n"
16518 "    size_t  newlen;  /* size of new value */\n"
16519 "};\n"
16520 msgstr ""
16521
16522 #. type: Plain text
16523 #: build/C/man2/sysctl.2:69
16524 msgid ""
16525 "This call does a search in a tree structure, possibly resembling a directory "
16526 "tree under I</proc/sys>, and if the requested item is found calls some "
16527 "appropriate routine to read or modify the value."
16528 msgstr ""
16529
16530 #. type: Plain text
16531 #: build/C/man2/sysctl.2:76
16532 msgid ""
16533 "Upon successful completion, B<_sysctl>()  returns 0.  Otherwise, a value of "
16534 "-1 is returned and I<errno> is set to indicate the error."
16535 msgstr ""
16536
16537 #. type: Plain text
16538 #: build/C/man2/sysctl.2:83
16539 msgid ""
16540 "The invocation asked for the previous value by setting I<oldval> non-NULL, "
16541 "but allowed zero room in I<oldlenp>."
16542 msgstr ""
16543
16544 #. type: Plain text
16545 #: build/C/man2/sysctl.2:87
16546 msgid "I<name> was not found."
16547 msgstr ""
16548
16549 #. type: Plain text
16550 #: build/C/man2/sysctl.2:95
16551 msgid ""
16552 "No search permission for one of the encountered \"directories\", or no read "
16553 "permission where I<oldval> was nonzero, or no write permission where "
16554 "I<newval> was nonzero."
16555 msgstr ""
16556
16557 #. type: Plain text
16558 #: build/C/man2/sysctl.2:109
16559 msgid ""
16560 "This call is Linux-specific, and should not be used in programs intended to "
16561 "be portable.  A B<sysctl>()  call has been present in Linux since version "
16562 "1.3.57.  It originated in 4.4BSD.  Only Linux has the I</proc/sys> mirror, "
16563 "and the object naming schemes differ between Linux and 4.4BSD, but the "
16564 "declaration of the B<sysctl>()  function is the same in both."
16565 msgstr ""
16566
16567 #.  See http://lwn.net/Articles/247243/
16568 #. type: Plain text
16569 #: build/C/man2/sysctl.2:121
16570 msgid ""
16571 "Or rather... don't call it: use of this system call has long been "
16572 "discouraged, and it is so unloved that B<it is likely to disappear in a "
16573 "future kernel version>.  Remove it from your programs now; use the "
16574 "I</proc/sys> interface instead."
16575 msgstr ""
16576
16577 #. type: Plain text
16578 #: build/C/man2/sysctl.2:124
16579 msgid ""
16580 "The object names vary between kernel versions, making this system call "
16581 "worthless for applications."
16582 msgstr ""
16583
16584 #. type: Plain text
16585 #: build/C/man2/sysctl.2:126
16586 msgid "Not all available objects are properly documented."
16587 msgstr ""
16588
16589 #. type: Plain text
16590 #: build/C/man2/sysctl.2:129
16591 msgid ""
16592 "It is not yet possible to change operating system by writing to "
16593 "I</proc/sys/kernel/ostype>."
16594 msgstr ""
16595
16596 #. type: Plain text
16597 #: build/C/man2/sysctl.2:138
16598 #, no-wrap
16599 msgid ""
16600 "#define _GNU_SOURCE\n"
16601 "#include E<lt>unistd.hE<gt>\n"
16602 "#include E<lt>sys/syscall.hE<gt>\n"
16603 "#include E<lt>string.hE<gt>\n"
16604 "#include E<lt>stdio.hE<gt>\n"
16605 "#include E<lt>stdlib.hE<gt>\n"
16606 "#include E<lt>linux/sysctl.hE<gt>\n"
16607 msgstr ""
16608
16609 #. type: Plain text
16610 #: build/C/man2/sysctl.2:140
16611 #, no-wrap
16612 msgid "int _sysctl(struct __sysctl_args *args );\n"
16613 msgstr ""
16614
16615 #. type: Plain text
16616 #: build/C/man2/sysctl.2:142
16617 #, no-wrap
16618 msgid "#define OSNAMESZ 100\n"
16619 msgstr ""
16620
16621 #. type: Plain text
16622 #: build/C/man2/sysctl.2:150
16623 #, no-wrap
16624 msgid ""
16625 "int\n"
16626 "main(void)\n"
16627 "{\n"
16628 "    struct __sysctl_args args;\n"
16629 "    char osname[OSNAMESZ];\n"
16630 "    size_t osnamelth;\n"
16631 "    int name[] = { CTL_KERN, KERN_OSTYPE };\n"
16632 msgstr ""
16633
16634 #. type: Plain text
16635 #: build/C/man2/sysctl.2:156
16636 #, no-wrap
16637 msgid ""
16638 "    memset(&args, 0, sizeof(struct __sysctl_args));\n"
16639 "    args.name = name;\n"
16640 "    args.nlen = sizeof(name)/sizeof(name[0]);\n"
16641 "    args.oldval = osname;\n"
16642 "    args.oldlenp = &osnamelth;\n"
16643 msgstr ""
16644
16645 #. type: Plain text
16646 #: build/C/man2/sysctl.2:158
16647 #, no-wrap
16648 msgid "    osnamelth = sizeof(osname);\n"
16649 msgstr ""
16650
16651 #. type: Plain text
16652 #: build/C/man2/sysctl.2:166
16653 #, no-wrap
16654 msgid ""
16655 "    if (syscall(SYS__sysctl, &args) == -1) {\n"
16656 "        perror(\"_sysctl\");\n"
16657 "        exit(EXIT_FAILURE);\n"
16658 "    }\n"
16659 "    printf(\"This machine is running %*s\\en\", osnamelth, osname);\n"
16660 "    exit(EXIT_SUCCESS);\n"
16661 "}\n"
16662 msgstr ""
16663
16664 #. type: Plain text
16665 #: build/C/man2/sysctl.2:169 build/C/man2/sysinfo.2:96
16666 msgid "B<proc>(5)"
16667 msgstr ""
16668
16669 #. type: TH
16670 #: build/C/man2/sysinfo.2:14
16671 #, no-wrap
16672 msgid "SYSINFO"
16673 msgstr ""
16674
16675 #. type: TH
16676 #: build/C/man2/sysinfo.2:14
16677 #, no-wrap
16678 msgid "2007-11-15"
16679 msgstr ""
16680
16681 #. type: Plain text
16682 #: build/C/man2/sysinfo.2:17
16683 msgid "sysinfo - returns information on overall system statistics"
16684 msgstr ""
16685
16686 #. type: Plain text
16687 #: build/C/man2/sysinfo.2:19
16688 msgid "B<#include E<lt>sys/sysinfo.hE<gt>>"
16689 msgstr ""
16690
16691 #. type: Plain text
16692 #: build/C/man2/sysinfo.2:21
16693 msgid "B<int sysinfo(struct sysinfo *>I<info>B<);>"
16694 msgstr ""
16695
16696 #. type: Plain text
16697 #: build/C/man2/sysinfo.2:25
16698 msgid ""
16699 "Until Linux 2.3.16, B<sysinfo>()  used to return information in the "
16700 "following structure:"
16701 msgstr ""
16702
16703 #. type: Plain text
16704 #: build/C/man2/sysinfo.2:40
16705 #, no-wrap
16706 msgid ""
16707 "struct sysinfo {\n"
16708 "    long uptime;             /* Seconds since boot */\n"
16709 "    unsigned long loads[3];  /* 1, 5, and 15 minute load averages */\n"
16710 "    unsigned long totalram;  /* Total usable main memory size */\n"
16711 "    unsigned long freeram;   /* Available memory size */\n"
16712 "    unsigned long sharedram; /* Amount of shared memory */\n"
16713 "    unsigned long bufferram; /* Memory used by buffers */\n"
16714 "    unsigned long totalswap; /* Total swap space size */\n"
16715 "    unsigned long freeswap;  /* swap space still available */\n"
16716 "    unsigned short procs;    /* Number of current processes */\n"
16717 "    char _f[22];             /* Pads structure to 64 bytes */\n"
16718 "};\n"
16719 msgstr ""
16720
16721 #. type: Plain text
16722 #: build/C/man2/sysinfo.2:44
16723 msgid "and the sizes were given in bytes."
16724 msgstr ""
16725
16726 #. type: Plain text
16727 #: build/C/man2/sysinfo.2:47
16728 msgid "Since Linux 2.3.23 (i386), 2.3.48 (all architectures) the structure is:"
16729 msgstr ""
16730
16731 #. type: Plain text
16732 #: build/C/man2/sysinfo.2:65
16733 #, no-wrap
16734 msgid ""
16735 "struct sysinfo {\n"
16736 "    long uptime;             /* Seconds since boot */\n"
16737 "    unsigned long loads[3];  /* 1, 5, and 15 minute load averages */\n"
16738 "    unsigned long totalram;  /* Total usable main memory size */\n"
16739 "    unsigned long freeram;   /* Available memory size */\n"
16740 "    unsigned long sharedram; /* Amount of shared memory */\n"
16741 "    unsigned long bufferram; /* Memory used by buffers */\n"
16742 "    unsigned long totalswap; /* Total swap space size */\n"
16743 "    unsigned long freeswap;  /* swap space still available */\n"
16744 "    unsigned short procs;    /* Number of current processes */\n"
16745 "    unsigned long totalhigh; /* Total high memory size */\n"
16746 "    unsigned long freehigh;  /* Available high memory size */\n"
16747 "    unsigned int mem_unit;   /* Memory unit size in bytes */\n"
16748 "    char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding for libc5 */\n"
16749 "};\n"
16750 msgstr ""
16751
16752 #. type: Plain text
16753 #: build/C/man2/sysinfo.2:69
16754 msgid "and the sizes are given as multiples of I<mem_unit> bytes."
16755 msgstr ""
16756
16757 #. type: Plain text
16758 #: build/C/man2/sysinfo.2:74
16759 msgid ""
16760 "B<sysinfo>()  provides a simple way of getting overall system statistics.  "
16761 "This is more portable than reading I</dev/kmem>."
16762 msgstr ""
16763
16764 #. type: Plain text
16765 #: build/C/man2/sysinfo.2:83
16766 msgid "pointer to I<struct\\ sysinfo> is invalid"
16767 msgstr ""
16768
16769 #. type: Plain text
16770 #: build/C/man2/sysinfo.2:94
16771 msgid ""
16772 "The Linux kernel has a B<sysinfo>()  system call since 0.98.pl6.  Linux libc "
16773 "contains a B<sysinfo>()  routine since 5.3.5, and glibc has one since 1.90."
16774 msgstr ""
16775
16776 #. type: TH
16777 #: build/C/man3/tcgetpgrp.3:23
16778 #, no-wrap
16779 msgid "TCGETPGRP"
16780 msgstr ""
16781
16782 #. type: TH
16783 #: build/C/man3/tcgetpgrp.3:23
16784 #, no-wrap
16785 msgid "2003-01-28"
16786 msgstr ""
16787
16788 #. type: Plain text
16789 #: build/C/man3/tcgetpgrp.3:26
16790 msgid "tcgetpgrp, tcsetpgrp - get and set terminal foreground process group"
16791 msgstr ""
16792
16793 #. type: Plain text
16794 #: build/C/man3/tcgetpgrp.3:30
16795 msgid "B<pid_t tcgetpgrp(int >I<fd>B<);>"
16796 msgstr ""
16797
16798 #. type: Plain text
16799 #: build/C/man3/tcgetpgrp.3:32
16800 msgid "B<int tcsetpgrp(int >I<fd>B<, pid_t >I<pgrp>B<);>"
16801 msgstr ""
16802
16803 #.  The process itself may be a background process.
16804 #. type: Plain text
16805 #: build/C/man3/tcgetpgrp.3:40
16806 msgid ""
16807 "The function B<tcgetpgrp>()  returns the process group ID of the foreground "
16808 "process group on the terminal associated to I<fd>, which must be the "
16809 "controlling terminal of the calling process."
16810 msgstr ""
16811
16812 #. type: Plain text
16813 #: build/C/man3/tcgetpgrp.3:50
16814 msgid ""
16815 "The function B<tcsetpgrp>()  makes the process group with process group ID "
16816 "I<pgrp> the foreground process group on the terminal associated to I<fd>, "
16817 "which must be the controlling terminal of the calling process, and still be "
16818 "associated with its session.  Moreover, I<pgrp> must be a (nonempty) process "
16819 "group belonging to the same session as the calling process."
16820 msgstr ""
16821
16822 #. type: Plain text
16823 #: build/C/man3/tcgetpgrp.3:59
16824 msgid ""
16825 "If B<tcsetpgrp>()  is called by a member of a background process group in "
16826 "its session, and the calling process is not blocking or ignoring B<SIGTTOU>, "
16827 "a B<SIGTTOU> signal is sent to all members of this background process group."
16828 msgstr ""
16829
16830 #. type: Plain text
16831 #: build/C/man3/tcgetpgrp.3:74
16832 msgid ""
16833 "When I<fd> refers to the controlling terminal of the calling process, the "
16834 "function B<tcgetpgrp>()  will return the foreground process group ID of that "
16835 "terminal if there is one, and some value larger than 1 that is not presently "
16836 "a process group ID otherwise.  When I<fd> does not refer to the controlling "
16837 "terminal of the calling process, -1 is returned, and I<errno> is set "
16838 "appropriately."
16839 msgstr ""
16840
16841 #. type: Plain text
16842 #: build/C/man3/tcgetpgrp.3:81
16843 msgid ""
16844 "When successful, B<tcsetpgrp>()  returns 0.  Otherwise, it returns -1, and "
16845 "I<errno> is set appropriately."
16846 msgstr ""
16847
16848 #. type: Plain text
16849 #: build/C/man3/tcgetpgrp.3:90
16850 msgid "I<pgrp> has an unsupported value."
16851 msgstr ""
16852
16853 #. type: Plain text
16854 #: build/C/man3/tcgetpgrp.3:99
16855 msgid ""
16856 "The calling process does not have a controlling terminal, or it has one but "
16857 "it is not described by I<fd>, or, for B<tcsetpgrp>(), this controlling "
16858 "terminal is no longer associated with the session of the calling process."
16859 msgstr ""
16860
16861 #. type: Plain text
16862 #: build/C/man3/tcgetpgrp.3:104
16863 msgid ""
16864 "I<pgrp> has a supported value, but is not the process group ID of a process "
16865 "in the same session as the calling process."
16866 msgstr ""
16867
16868 #. type: Plain text
16869 #: build/C/man3/tcgetpgrp.3:112
16870 msgid ""
16871 "These functions are implemented via the B<TIOCGPGRP> and B<TIOCSPGRP> "
16872 "ioctls."
16873 msgstr ""
16874
16875 #. type: SS
16876 #: build/C/man3/tcgetpgrp.3:112 build/C/man2/vfork.2:233
16877 #, no-wrap
16878 msgid "History"
16879 msgstr ""
16880
16881 #. type: Plain text
16882 #: build/C/man3/tcgetpgrp.3:115
16883 msgid "The ioctls appeared in 4.2BSD.  The functions are POSIX inventions."
16884 msgstr ""
16885
16886 #. type: Plain text
16887 #: build/C/man3/tcgetpgrp.3:119
16888 msgid "B<setpgid>(2), B<setsid>(2), B<credentials>(7)"
16889 msgstr ""
16890
16891 #. type: TH
16892 #: build/C/man2/truncate.2:41
16893 #, no-wrap
16894 msgid "TRUNCATE"
16895 msgstr ""
16896
16897 #. type: TH
16898 #: build/C/man2/truncate.2:41
16899 #, no-wrap
16900 msgid "2011-09-08"
16901 msgstr ""
16902
16903 #. type: Plain text
16904 #: build/C/man2/truncate.2:44
16905 msgid "truncate, ftruncate - truncate a file to a specified length"
16906 msgstr ""
16907
16908 #. type: Plain text
16909 #: build/C/man2/truncate.2:50
16910 msgid "B<int truncate(const char *>I<path>B<, off_t >I<length>B<);>"
16911 msgstr ""
16912
16913 #. type: Plain text
16914 #: build/C/man2/truncate.2:52
16915 msgid "B<int ftruncate(int >I<fd>B<, off_t >I<length>B<);>"
16916 msgstr ""
16917
16918 #. type: Plain text
16919 #: build/C/man2/truncate.2:61
16920 msgid "B<truncate>():"
16921 msgstr ""
16922
16923 #. type: Plain text
16924 #: build/C/man2/truncate.2:69
16925 msgid "B<ftruncate>():"
16926 msgstr ""
16927
16928 #. type: Plain text
16929 #: build/C/man2/truncate.2:74
16930 msgid "|| /* Since glibc 2.3.5: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200112L"
16931 msgstr ""
16932
16933 #. type: Plain text
16934 #: build/C/man2/truncate.2:89
16935 msgid ""
16936 "The B<truncate>()  and B<ftruncate>()  functions cause the regular file "
16937 "named by I<path> or referenced by I<fd> to be truncated to a size of "
16938 "precisely I<length> bytes."
16939 msgstr ""
16940
16941 #. type: Plain text
16942 #: build/C/man2/truncate.2:93
16943 msgid ""
16944 "If the file previously was larger than this size, the extra data is lost.  "
16945 "If the file previously was shorter, it is extended, and the extended part "
16946 "reads as null bytes (\\(aq\\e0\\(aq)."
16947 msgstr ""
16948
16949 #. type: Plain text
16950 #: build/C/man2/truncate.2:95
16951 msgid "The file offset is not changed."
16952 msgstr ""
16953
16954 #. type: Plain text
16955 #: build/C/man2/truncate.2:102
16956 msgid ""
16957 "If the size changed, then the st_ctime and st_mtime fields (respectively, "
16958 "time of last status change and time of last modification; see B<stat>(2))  "
16959 "for the file are updated, and the set-user-ID and set-group-ID permission "
16960 "bits may be cleared."
16961 msgstr ""
16962
16963 #. type: Plain text
16964 #: build/C/man2/truncate.2:108
16965 msgid ""
16966 "With B<ftruncate>(), the file must be open for writing; with B<truncate>(), "
16967 "the file must be writable."
16968 msgstr ""
16969
16970 #. type: Plain text
16971 #: build/C/man2/truncate.2:116
16972 msgid "For B<truncate>():"
16973 msgstr ""
16974
16975 #. type: Plain text
16976 #: build/C/man2/truncate.2:122
16977 msgid ""
16978 "Search permission is denied for a component of the path prefix, or the named "
16979 "file is not writable by the user.  (See also B<path_resolution>(7).)"
16980 msgstr ""
16981
16982 #. type: Plain text
16983 #: build/C/man2/truncate.2:126
16984 msgid "I<Path> points outside the process's allocated address space."
16985 msgstr ""
16986
16987 #. type: TP
16988 #: build/C/man2/truncate.2:126
16989 #, no-wrap
16990 msgid "B<EFBIG>"
16991 msgstr ""
16992
16993 #. type: Plain text
16994 #: build/C/man2/truncate.2:131
16995 msgid "The argument I<length> is larger than the maximum file size. (XSI)"
16996 msgstr ""
16997
16998 #. type: Plain text
16999 #: build/C/man2/truncate.2:138
17000 msgid ""
17001 "While blocked waiting to complete, the call was interrupted by a signal "
17002 "handler; see B<fcntl>(2)  and B<signal>(7)."
17003 msgstr ""
17004
17005 #. type: Plain text
17006 #: build/C/man2/truncate.2:143
17007 msgid "The argument I<length> is negative or larger than the maximum file size."
17008 msgstr ""
17009
17010 #. type: Plain text
17011 #: build/C/man2/truncate.2:146
17012 msgid "An I/O error occurred updating the inode."
17013 msgstr ""
17014
17015 #. type: Plain text
17016 #: build/C/man2/truncate.2:149
17017 msgid "The named file is a directory."
17018 msgstr ""
17019
17020 #. type: Plain text
17021 #: build/C/man2/truncate.2:152
17022 msgid "Too many symbolic links were encountered in translating the pathname."
17023 msgstr ""
17024
17025 #. type: Plain text
17026 #: build/C/man2/truncate.2:156
17027 msgid ""
17028 "A component of a pathname exceeded 255 characters, or an entire pathname "
17029 "exceeded 1023 characters."
17030 msgstr ""
17031
17032 #. type: Plain text
17033 #: build/C/man2/truncate.2:159
17034 msgid "The named file does not exist."
17035 msgstr ""
17036
17037 #.  This happens for at least MSDOS and VFAT file systems
17038 #.  on kernel 2.6.13
17039 #. type: Plain text
17040 #: build/C/man2/truncate.2:168
17041 msgid ""
17042 "The underlying file system does not support extending a file beyond its "
17043 "current size."
17044 msgstr ""
17045
17046 #. type: Plain text
17047 #: build/C/man2/truncate.2:174
17048 msgid "The file is a pure procedure (shared text) file that is being executed."
17049 msgstr ""
17050
17051 #. type: Plain text
17052 #: build/C/man2/truncate.2:181
17053 msgid ""
17054 "For B<ftruncate>()  the same errors apply, but instead of things that can be "
17055 "wrong with I<path>, we now have things that can be wrong with the file "
17056 "descriptor, I<fd>:"
17057 msgstr ""
17058
17059 #. type: Plain text
17060 #: build/C/man2/truncate.2:185
17061 msgid "I<fd> is not a valid descriptor."
17062 msgstr ""
17063
17064 #. type: TP
17065 #: build/C/man2/truncate.2:185
17066 #, no-wrap
17067 msgid "B<EBADF> or B<EINVAL>"
17068 msgstr ""
17069
17070 #. type: Plain text
17071 #: build/C/man2/truncate.2:189
17072 msgid "I<fd> is not open for writing."
17073 msgstr ""
17074
17075 #. type: Plain text
17076 #: build/C/man2/truncate.2:193
17077 msgid "I<fd> does not reference a regular file."
17078 msgstr ""
17079
17080 #.  POSIX.1-1996 has
17081 #.  .BR ftruncate ().
17082 #.  POSIX.1-2001 also has
17083 #.  .BR truncate (),
17084 #.  as an XSI extension.
17085 #.  .LP
17086 #.  SVr4 documents additional
17087 #.  .BR truncate ()
17088 #.  error conditions EMFILE, EMULTIHP, ENFILE, ENOLINK.  SVr4 documents for
17089 #.  .BR ftruncate ()
17090 #.  an additional EAGAIN error condition.
17091 #. type: Plain text
17092 #: build/C/man2/truncate.2:206
17093 msgid "4.4BSD, SVr4, POSIX.1-2001 (these calls first appeared in 4.2BSD)."
17094 msgstr ""
17095
17096 #.  At the very least: OSF/1, Solaris 7, and FreeBSD conform, mtk, Jan 2002
17097 #. type: Plain text
17098 #: build/C/man2/truncate.2:227
17099 msgid ""
17100 "The details in DESCRIPTION are for XSI-compliant systems.  For "
17101 "non-XSI-compliant systems, the POSIX standard allows two behaviors for "
17102 "B<ftruncate>()  when I<length> exceeds the file length (note that "
17103 "B<truncate>()  is not specified at all in such an environment): either "
17104 "returning an error, or extending the file.  Like most UNIX implementations, "
17105 "Linux follows the XSI requirement when dealing with native file systems.  "
17106 "However, some nonnative file systems do not permit B<truncate>()  and "
17107 "B<ftruncate>()  to be used to extend a file beyond its current length: a "
17108 "notable example on Linux is VFAT."
17109 msgstr ""
17110
17111 #. type: Plain text
17112 #: build/C/man2/truncate.2:241
17113 msgid ""
17114 "The original Linux B<truncate>()  and B<ftruncate>()  system calls were not "
17115 "designed to handle large file offsets.  Consequently, Linux 2.4 added "
17116 "B<truncate64>()  and B<ftruncate64>()  system calls that handle large "
17117 "files.  However, these details can be ignored by applications using glibc, "
17118 "whose wrapper functions transparently employ the more recent system calls "
17119 "where they are available."
17120 msgstr ""
17121
17122 #.  http://sourceware.org/bugzilla/show_bug.cgi?id=12037
17123 #. type: Plain text
17124 #: build/C/man2/truncate.2:249
17125 msgid ""
17126 "A header file bug in glibc 2.12 meant that the minimum value of "
17127 "B<_POSIX_C_SOURCE> required to expose the declaration of B<ftruncate>()  was "
17128 "200809L instead of 200112L.  This has been fixed in later glibc versions."
17129 msgstr ""
17130
17131 #. type: Plain text
17132 #: build/C/man2/truncate.2:253
17133 msgid "B<open>(2), B<stat>(2), B<path_resolution>(7)"
17134 msgstr ""
17135
17136 #. type: TH
17137 #: build/C/man3/ualarm.3:23
17138 #, no-wrap
17139 msgid "UALARM"
17140 msgstr ""
17141
17142 #. type: Plain text
17143 #: build/C/man3/ualarm.3:26
17144 msgid "ualarm - schedule signal after given number of microseconds"
17145 msgstr ""
17146
17147 #. type: Plain text
17148 #: build/C/man3/ualarm.3:31
17149 #, no-wrap
17150 msgid "B<useconds_t ualarm(useconds_t >I<usecs>B<, useconds_t >I<interval>B<);>\n"
17151 msgstr ""
17152
17153 #. type: Plain text
17154 #: build/C/man3/ualarm.3:39
17155 msgid "B<ualarm>():"
17156 msgstr ""
17157
17158 #. type: Plain text
17159 #: build/C/man3/ualarm.3:68
17160 msgid ""
17161 "The B<ualarm>()  function causes the signal B<SIGALRM> to be sent to the "
17162 "invoking process after (not less than)  I<usecs> microseconds.  The delay "
17163 "may be lengthened slightly by any system activity or by the time spent "
17164 "processing the call or by the granularity of system timers."
17165 msgstr ""
17166
17167 #. type: Plain text
17168 #: build/C/man3/ualarm.3:72
17169 msgid "Unless caught or ignored, the B<SIGALRM> signal will terminate the process."
17170 msgstr ""
17171
17172 #. type: Plain text
17173 #: build/C/man3/ualarm.3:80
17174 msgid ""
17175 "If the I<interval> argument is nonzero, further B<SIGALRM> signals will be "
17176 "sent every I<interval> microseconds after the first."
17177 msgstr ""
17178
17179 #. type: Plain text
17180 #: build/C/man3/ualarm.3:83
17181 msgid ""
17182 "This function returns the number of microseconds remaining for any alarm "
17183 "that was previously set, or 0 if no alarm was pending."
17184 msgstr ""
17185
17186 #. type: Plain text
17187 #: build/C/man3/ualarm.3:87
17188 msgid "Interrupted by a signal."
17189 msgstr ""
17190
17191 #. type: Plain text
17192 #: build/C/man3/ualarm.3:91
17193 msgid ""
17194 "I<usecs> or I<interval> is not smaller than 1000000.  (On systems where that "
17195 "is considered an error.)"
17196 msgstr ""
17197
17198 #. type: Plain text
17199 #: build/C/man3/ualarm.3:99
17200 msgid ""
17201 "4.3BSD, POSIX.1-2001.  POSIX.1-2001 marks B<ualarm>()  as obsolete.  "
17202 "POSIX.1-2008 removes the specification of B<ualarm>().  4.3BSD, SUSv2, and "
17203 "POSIX do not define any errors."
17204 msgstr ""
17205
17206 #. type: Plain text
17207 #: build/C/man3/ualarm.3:112
17208 msgid ""
17209 "The type I<useconds_t> is an unsigned integer type capable of holding "
17210 "integers in the range [0,1000000].  On the original BSD implementation, and "
17211 "in glibc before version 2.1, the arguments to B<ualarm>()  were instead "
17212 "typed as I<unsigned int>.  Programs will be more portable if they never "
17213 "mention I<useconds_t> explicitly."
17214 msgstr ""
17215
17216 #. type: Plain text
17217 #: build/C/man3/ualarm.3:126
17218 msgid ""
17219 "The interaction of this function with other timer functions such as "
17220 "B<alarm>(2), B<sleep>(3), B<nanosleep>(2), B<setitimer>(2), "
17221 "B<timer_create>(2), B<timer_delete>(2), B<timer_getoverrun>(2), "
17222 "B<timer_gettime>(2), B<timer_settime>(2), B<usleep>(3)  is unspecified."
17223 msgstr ""
17224
17225 #. type: Plain text
17226 #: build/C/man3/ualarm.3:134
17227 msgid ""
17228 "This function is obsolete.  Use B<setitimer>(2)  or POSIX interval timers "
17229 "(B<timer_create>(2), etc.)  instead."
17230 msgstr ""
17231
17232 #. type: Plain text
17233 #: build/C/man3/ualarm.3:142
17234 msgid ""
17235 "B<alarm>(2), B<getitimer>(2), B<nanosleep>(2), B<select>(2), "
17236 "B<setitimer>(2), B<usleep>(3), B<time>(7)"
17237 msgstr ""
17238
17239 #. type: TH
17240 #: build/C/man2/umask.2:34
17241 #, no-wrap
17242 msgid "UMASK"
17243 msgstr ""
17244
17245 #. type: TH
17246 #: build/C/man2/umask.2:34
17247 #, no-wrap
17248 msgid "2008-01-09"
17249 msgstr ""
17250
17251 #. type: Plain text
17252 #: build/C/man2/umask.2:37
17253 msgid "umask - set file mode creation mask"
17254 msgstr ""
17255
17256 #. type: Plain text
17257 #: build/C/man2/umask.2:43
17258 msgid "B<mode_t umask(mode_t >I<mask>B<);>"
17259 msgstr ""
17260
17261 #. type: Plain text
17262 #: build/C/man2/umask.2:50
17263 msgid ""
17264 "B<umask>()  sets the calling process's file mode creation mask (umask) to "
17265 "I<mask> & 0777 (i.e., only the file permission bits of I<mask> are used), "
17266 "and returns the previous value of the mask."
17267 msgstr ""
17268
17269 #.  e.g., mkfifo(), creat(), mknod(), sem_open(), mq_open(), shm_open()
17270 #.  but NOT the System V IPC *get() calls
17271 #. type: Plain text
17272 #: build/C/man2/umask.2:63
17273 msgid ""
17274 "The umask is used by B<open>(2), B<mkdir>(2), and other system calls that "
17275 "create files to modify the permissions placed on newly created files or "
17276 "directories.  Specifically, permissions in the umask are turned off from the "
17277 "I<mode> argument to B<open>(2)  and B<mkdir>(2)."
17278 msgstr ""
17279
17280 #. type: Plain text
17281 #: build/C/man2/umask.2:68
17282 msgid ""
17283 "The constants that should be used to specify I<mask> are described under "
17284 "B<stat>(2)."
17285 msgstr ""
17286
17287 #. type: Plain text
17288 #: build/C/man2/umask.2:77
17289 msgid ""
17290 "The typical default value for the process umask is I<S_IWGRP\\ |\\ S_IWOTH> "
17291 "(octal 022).  In the usual case where the I<mode> argument to B<open>(2)  is "
17292 "specified as:"
17293 msgstr ""
17294
17295 #. type: Plain text
17296 #: build/C/man2/umask.2:80
17297 #, no-wrap
17298 msgid "    S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH\n"
17299 msgstr ""
17300
17301 #. type: Plain text
17302 #: build/C/man2/umask.2:84
17303 msgid ""
17304 "(octal 0666) when creating a new file, the permissions on the resulting file "
17305 "will be:"
17306 msgstr ""
17307
17308 #. type: Plain text
17309 #: build/C/man2/umask.2:87
17310 #, no-wrap
17311 msgid "    S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH\n"
17312 msgstr ""
17313
17314 #. type: Plain text
17315 #: build/C/man2/umask.2:90
17316 msgid "(because 0666 & ~022 = 0644; i.e., rw-r--r--)."
17317 msgstr ""
17318
17319 #. type: Plain text
17320 #: build/C/man2/umask.2:93
17321 msgid ""
17322 "This system call always succeeds and the previous value of the mask is "
17323 "returned."
17324 msgstr ""
17325
17326 #. type: Plain text
17327 #: build/C/man2/umask.2:101
17328 msgid ""
17329 "A child process created via B<fork>(2)  inherits its parent's umask.  The "
17330 "umask is left unchanged by B<execve>(2)."
17331 msgstr ""
17332
17333 #. type: Plain text
17334 #: build/C/man2/umask.2:116
17335 msgid ""
17336 "The umask setting also affects the permissions assigned to POSIX IPC objects "
17337 "(B<mq_open>(3), B<sem_open>(3), B<shm_open>(3)), FIFOs (B<mkfifo>(3)), and "
17338 "UNIX domain sockets (B<unix>(7))  created by the process.  The umask does "
17339 "not affect the permissions assigned to System V IPC objects created by the "
17340 "process (using B<msgget>(2), B<semget>(2), B<shmget>(2))."
17341 msgstr ""
17342
17343 #.  FIXME . eventually: .BR acl (5)
17344 #. type: Plain text
17345 #: build/C/man2/umask.2:122
17346 msgid "B<chmod>(2), B<mkdir>(2), B<open>(2), B<stat>(2)"
17347 msgstr ""
17348
17349 #. type: TH
17350 #: build/C/man2/uname.2:25
17351 #, no-wrap
17352 msgid "UNAME"
17353 msgstr ""
17354
17355 #. type: Plain text
17356 #: build/C/man2/uname.2:28
17357 msgid "uname - get name and information about current kernel"
17358 msgstr ""
17359
17360 #. type: Plain text
17361 #: build/C/man2/uname.2:30
17362 msgid "B<#include E<lt>sys/utsname.hE<gt>>"
17363 msgstr ""
17364
17365 #. type: Plain text
17366 #: build/C/man2/uname.2:32
17367 msgid "B<int uname(struct utsname *>I<buf>B<);>"
17368 msgstr ""
17369
17370 #. type: Plain text
17371 #: build/C/man2/uname.2:40
17372 msgid ""
17373 "B<uname>()  returns system information in the structure pointed to by "
17374 "I<buf>.  The I<utsname> struct is defined in I<E<lt>sys/utsname.hE<gt>>:"
17375 msgstr ""
17376
17377 #. type: Plain text
17378 #: build/C/man2/uname.2:54
17379 #, no-wrap
17380 msgid ""
17381 "struct utsname {\n"
17382 "    char sysname[];    /* Operating system name (e.g., \"Linux\") */\n"
17383 "    char nodename[];   /* Name within \"some implementation-defined\n"
17384 "                          network\" */\n"
17385 "    char release[];    /* OS release (e.g., \"2.6.28\") */\n"
17386 "    char version[];    /* OS version */\n"
17387 "    char machine[];    /* Hardware identifier */\n"
17388 "#ifdef _GNU_SOURCE\n"
17389 "    char domainname[]; /* NIS or YP domain name */\n"
17390 "#endif\n"
17391 "};\n"
17392 msgstr ""
17393
17394 #. type: Plain text
17395 #: build/C/man2/uname.2:61
17396 msgid ""
17397 "The length of the arrays in a I<struct utsname> is unspecified (see NOTES); "
17398 "the fields are terminated by a null byte (\\(aq\\e0\\(aq)."
17399 msgstr ""
17400
17401 #. type: Plain text
17402 #: build/C/man2/uname.2:71
17403 msgid "I<buf> is not valid."
17404 msgstr ""
17405
17406 #. type: Plain text
17407 #: build/C/man2/uname.2:76
17408 msgid "SVr4, POSIX.1-2001.  There is no B<uname>()  call in 4.3BSD."
17409 msgstr ""
17410
17411 #. type: Plain text
17412 #: build/C/man2/uname.2:80
17413 msgid "The I<domainname> member (the NIS or YP domain name) is a GNU extension."
17414 msgstr ""
17415
17416 #. type: Plain text
17417 #: build/C/man2/uname.2:92
17418 msgid ""
17419 "This is a system call, and the operating system presumably knows its name, "
17420 "release and version.  It also knows what hardware it runs on.  So, four of "
17421 "the fields of the struct are meaningful.  On the other hand, the field "
17422 "I<nodename> is meaningless: it gives the name of the present machine in some "
17423 "undefined network, but typically machines are in more than one network and "
17424 "have several names.  Moreover, the kernel has no way of knowing about such "
17425 "things, so it has to be told what to answer here.  The same holds for the "
17426 "additional I<domainname> field."
17427 msgstr ""
17428
17429 #. type: Plain text
17430 #: build/C/man2/uname.2:106
17431 msgid ""
17432 "To this end Linux uses the system calls B<sethostname>(2)  and "
17433 "B<setdomainname>(2).  Note that there is no standard that says that the "
17434 "hostname set by B<sethostname>(2)  is the same string as the I<nodename> "
17435 "field of the struct returned by B<uname>()  (indeed, some systems allow a "
17436 "256-byte hostname and an 8-byte nodename), but this is true on Linux.  The "
17437 "same holds for B<setdomainname>(2)  and the I<domainname> field."
17438 msgstr ""
17439
17440 #. type: Plain text
17441 #: build/C/man2/uname.2:121
17442 msgid ""
17443 "The length of the fields in the struct varies.  Some operating systems or "
17444 "libraries use a hardcoded 9 or 33 or 65 or 257.  Other systems use "
17445 "B<SYS_NMLN> or B<_SYS_NMLN> or B<UTSLEN> or B<_UTSNAME_LENGTH>.  Clearly, it "
17446 "is a bad idea to use any of these constants; just use sizeof(...).  Often "
17447 "257 is chosen in order to have room for an internet hostname."
17448 msgstr ""
17449
17450 #. type: Plain text
17451 #: build/C/man2/uname.2:128
17452 msgid ""
17453 "Part of the utsname information is also accessible via "
17454 "I</proc/sys/kernel/>{I<ostype>, I<hostname>, I<osrelease>, I<version>, "
17455 "I<domainname>}."
17456 msgstr ""
17457
17458 #. type: SS
17459 #: build/C/man2/uname.2:128
17460 #, no-wrap
17461 msgid "Underlying kernel interface"
17462 msgstr ""
17463
17464 #.  That was back before Linux 1.0
17465 #.  That was also back before Linux 1.0
17466 #. type: Plain text
17467 #: build/C/man2/uname.2:155
17468 msgid ""
17469 "Over time, increases in the size of the I<utsname> structure have led to "
17470 "three successive versions of B<uname>(): I<sys_olduname>()  (slot "
17471 "I<__NR_oldolduname>), I<sys_uname>()  (slot I<__NR_olduname>), and "
17472 "I<sys_newuname>()  (slot I<__NR_uname)>.  The first one used length 9 for "
17473 "all fields; the second used 65; the third also uses 65 but adds the "
17474 "I<domainname> field.  The glibc B<uname>()  wrapper function hides these "
17475 "details from applications, invoking the most recent version of the system "
17476 "call provided by the kernel."
17477 msgstr ""
17478
17479 #. type: Plain text
17480 #: build/C/man2/uname.2:159
17481 msgid "B<uname>(1), B<getdomainname>(2), B<gethostname>(2)"
17482 msgstr ""
17483
17484 #. type: TH
17485 #: build/C/man2/uselib.2:31
17486 #, no-wrap
17487 msgid "USELIB"
17488 msgstr ""
17489
17490 #. type: TH
17491 #: build/C/man2/uselib.2:31
17492 #, no-wrap
17493 msgid "2005-01-09"
17494 msgstr ""
17495
17496 #. type: Plain text
17497 #: build/C/man2/uselib.2:34
17498 msgid "uselib - load shared library"
17499 msgstr ""
17500
17501 #. type: Plain text
17502 #: build/C/man2/uselib.2:38
17503 msgid "B<int uselib(const char *>I<library>B<);>"
17504 msgstr ""
17505
17506 #. type: Plain text
17507 #: build/C/man2/uselib.2:48
17508 msgid ""
17509 "The system call B<uselib>()  serves to load a shared library to be used by "
17510 "the calling process.  It is given a pathname.  The address where to load is "
17511 "found in the library itself.  The library can have any recognized binary "
17512 "format."
17513 msgstr ""
17514
17515 #. type: Plain text
17516 #: build/C/man2/uselib.2:59
17517 msgid ""
17518 "In addition to all of the error codes returned by B<open>(2)  and "
17519 "B<mmap>(2), the following may also be returned:"
17520 msgstr ""
17521
17522 #. type: Plain text
17523 #: build/C/man2/uselib.2:67
17524 msgid ""
17525 "The library specified by I<library> does not have read or execute "
17526 "permission, or the caller does not have search permission for one of the "
17527 "directories in the path prefix.  (See also B<path_resolution>(7).)"
17528 msgstr ""
17529
17530 #. type: Plain text
17531 #: build/C/man2/uselib.2:76
17532 msgid ""
17533 "The file specified by I<library> is not an executable of known type, e.g., "
17534 "does not have the correct magic numbers."
17535 msgstr ""
17536
17537 #. type: Plain text
17538 #: build/C/man2/uselib.2:80
17539 msgid ""
17540 "B<uselib>()  is Linux-specific, and should not be used in programs intended "
17541 "to be portable."
17542 msgstr ""
17543
17544 #. type: Plain text
17545 #: build/C/man2/uselib.2:85
17546 msgid ""
17547 "B<uselib>()  was used by early libc startup code to load the shared "
17548 "libraries with names found in an array of names in the binary."
17549 msgstr ""
17550
17551 #.  libc 4.3.1f - changelog 1993-03-02
17552 #.  libc 4.3.4 - changelog 1993-04-21
17553 #. type: Plain text
17554 #: build/C/man2/uselib.2:95
17555 msgid ""
17556 "Since libc 4.3.2, startup code tries to prefix these names with "
17557 "\"/usr/lib\", \"/lib\" and \"\" before giving up.  In libc 4.3.4 and later "
17558 "these names are looked for in the directories found in B<LD_LIBRARY_PATH>, "
17559 "and if not found there, prefixes \"/usr/lib\", \"/lib\" and \"/\" are tried."
17560 msgstr ""
17561
17562 #. type: Plain text
17563 #: build/C/man2/uselib.2:100
17564 msgid ""
17565 "From libc 4.4.4 on only the library \"/lib/ld.so\" is loaded, so that this "
17566 "dynamic library can load the remaining libraries needed (again using this "
17567 "call).  This is also the state of affairs in libc5."
17568 msgstr ""
17569
17570 #. type: Plain text
17571 #: build/C/man2/uselib.2:102
17572 msgid "glibc2 does not use this call."
17573 msgstr ""
17574
17575 #. type: Plain text
17576 #: build/C/man2/uselib.2:112
17577 msgid ""
17578 "B<ar>(1), B<gcc>(1), B<ld>(1), B<ldd>(1), B<mmap>(2), B<open>(2), "
17579 "B<dlopen>(3), B<capabilities>(7), B<ld.so>(8)"
17580 msgstr ""
17581
17582 #. type: TH
17583 #: build/C/man3/usleep.3:31
17584 #, no-wrap
17585 msgid "USLEEP"
17586 msgstr ""
17587
17588 #. type: TH
17589 #: build/C/man3/usleep.3:31
17590 #, no-wrap
17591 msgid "2010-12-03"
17592 msgstr ""
17593
17594 #. type: Plain text
17595 #: build/C/man3/usleep.3:34
17596 msgid "usleep - suspend execution for microsecond intervals"
17597 msgstr ""
17598
17599 #. type: Plain text
17600 #: build/C/man3/usleep.3:39
17601 #, no-wrap
17602 msgid "B<int usleep(useconds_t >I<usec>B<);>\n"
17603 msgstr ""
17604
17605 #. type: Plain text
17606 #: build/C/man3/usleep.3:47
17607 msgid "B<usleep>():"
17608 msgstr ""
17609
17610 #. type: Plain text
17611 #: build/C/man3/usleep.3:73
17612 msgid ""
17613 "The B<usleep>()  function suspends execution of the calling thread for (at "
17614 "least) I<usec> microseconds.  The sleep may be lengthened slightly by any "
17615 "system activity or by the time spent processing the call or by the "
17616 "granularity of system timers."
17617 msgstr ""
17618
17619 #. type: Plain text
17620 #: build/C/man3/usleep.3:75
17621 msgid "0 on success, -1 on error."
17622 msgstr ""
17623
17624 #. type: Plain text
17625 #: build/C/man3/usleep.3:80
17626 msgid "Interrupted by a signal; see B<signal>(7)."
17627 msgstr ""
17628
17629 #. type: Plain text
17630 #: build/C/man3/usleep.3:84
17631 msgid ""
17632 "I<usec> is not smaller than 1000000.  (On systems where that is considered "
17633 "an error.)"
17634 msgstr ""
17635
17636 #. type: Plain text
17637 #: build/C/man3/usleep.3:91
17638 msgid ""
17639 "4.3BSD, POSIX.1-2001.  POSIX.1-2001 declares this function obsolete; use "
17640 "B<nanosleep>(2)  instead.  POSIX.1-2008 removes the specification of "
17641 "B<usleep>()."
17642 msgstr ""
17643
17644 #. type: Plain text
17645 #: build/C/man3/usleep.3:98
17646 msgid ""
17647 "On the original BSD implementation, and in glibc before version 2.2.2, the "
17648 "return type of this function is I<void>.  The POSIX version returns I<int>, "
17649 "and this is also the prototype used since glibc 2.2.2."
17650 msgstr ""
17651
17652 #. type: Plain text
17653 #: build/C/man3/usleep.3:102
17654 msgid "Only the B<EINVAL> error return is documented by SUSv2 and POSIX.1-2001."
17655 msgstr ""
17656
17657 #. type: Plain text
17658 #: build/C/man3/usleep.3:110
17659 msgid ""
17660 "The type I<useconds_t> is an unsigned integer type capable of holding "
17661 "integers in the range [0,1000000].  Programs will be more portable if they "
17662 "never mention this type explicitly.  Use"
17663 msgstr ""
17664
17665 #. type: Plain text
17666 #: build/C/man3/usleep.3:118
17667 #, no-wrap
17668 msgid ""
17669 "#include E<lt>unistd.hE<gt>\n"
17670 "\\&...\n"
17671 "    unsigned int usecs;\n"
17672 "\\&...\n"
17673 "    usleep(usecs);\n"
17674 msgstr ""
17675
17676 #. type: Plain text
17677 #: build/C/man3/usleep.3:135
17678 msgid ""
17679 "The interaction of this function with the B<SIGALRM> signal, and with other "
17680 "timer functions such as B<alarm>(2), B<sleep>(3), B<nanosleep>(2), "
17681 "B<setitimer>(2), B<timer_create>(2), B<timer_delete>(2), "
17682 "B<timer_getoverrun>(2), B<timer_gettime>(2), B<timer_settime>(2), "
17683 "B<ualarm>(3)  is unspecified."
17684 msgstr ""
17685
17686 #. type: Plain text
17687 #: build/C/man3/usleep.3:144
17688 msgid ""
17689 "B<alarm>(2), B<getitimer>(2), B<nanosleep>(2), B<select>(2), "
17690 "B<setitimer>(2), B<sleep>(3), B<ualarm>(3), B<time>(7)"
17691 msgstr ""
17692
17693 #. type: TH
17694 #: build/C/man2/vfork.2:26
17695 #, no-wrap
17696 msgid "VFORK"
17697 msgstr ""
17698
17699 #. type: TH
17700 #: build/C/man2/vfork.2:26
17701 #, no-wrap
17702 msgid "2012-02-08"
17703 msgstr ""
17704
17705 #. type: Plain text
17706 #: build/C/man2/vfork.2:29
17707 msgid "vfork - create a child process and block parent"
17708 msgstr ""
17709
17710 #. type: Plain text
17711 #: build/C/man2/vfork.2:35
17712 msgid "B<pid_t vfork(void);>"
17713 msgstr ""
17714
17715 #. type: Plain text
17716 #: build/C/man2/vfork.2:42
17717 msgid "B<vfork>():"
17718 msgstr ""
17719
17720 #. type: SS
17721 #: build/C/man2/vfork.2:61
17722 #, no-wrap
17723 msgid "Standard Description"
17724 msgstr ""
17725
17726 #. type: Plain text
17727 #: build/C/man2/vfork.2:80
17728 msgid ""
17729 "(From POSIX.1)  The B<vfork>()  function has the same effect as B<fork>(2), "
17730 "except that the behavior is undefined if the process created by B<vfork>()  "
17731 "either modifies any data other than a variable of type I<pid_t> used to "
17732 "store the return value from B<vfork>(), or returns from the function in "
17733 "which B<vfork>()  was called, or calls any other function before "
17734 "successfully calling B<_exit>(2)  or one of the B<exec>(3)  family of "
17735 "functions."
17736 msgstr ""
17737
17738 #. type: SS
17739 #: build/C/man2/vfork.2:80
17740 #, no-wrap
17741 msgid "Linux Description"
17742 msgstr ""
17743
17744 #. type: Plain text
17745 #: build/C/man2/vfork.2:87
17746 msgid ""
17747 "B<vfork>(), just like B<fork>(2), creates a child process of the calling "
17748 "process.  For details and return value and errors, see B<fork>(2)."
17749 msgstr ""
17750
17751 #. type: Plain text
17752 #: build/C/man2/vfork.2:96
17753 msgid ""
17754 "B<vfork>()  is a special case of B<clone>(2).  It is used to create new "
17755 "processes without copying the page tables of the parent process.  It may be "
17756 "useful in performance-sensitive applications where a child is created which "
17757 "then immediately issues an B<execve>(2)."
17758 msgstr ""
17759
17760 #. type: Plain text
17761 #: build/C/man2/vfork.2:113
17762 msgid ""
17763 "B<vfork>()  differs from B<fork>(2)  in that the calling thread is suspended "
17764 "until the child terminates (either normally, by calling B<_exit>(2), or "
17765 "abnormally, after delivery of a fatal signal), or it makes a call to "
17766 "B<execve>(2).  Until that point, the child shares all memory with its "
17767 "parent, including the stack.  The child must not return from the current "
17768 "function or call B<exit>(3), but may call B<_exit>(2)."
17769 msgstr ""
17770
17771 #. type: Plain text
17772 #: build/C/man2/vfork.2:124
17773 msgid ""
17774 "As with B<fork>(2), the child process created by B<vfork>()  inherits copies "
17775 "of various of the caller's process attributes (e.g., file descriptors, "
17776 "signal dispositions, and current working directory); the B<vfork>()  call "
17777 "differs only in the treatment of the virtual address space, as described "
17778 "above."
17779 msgstr ""
17780
17781 #. type: Plain text
17782 #: build/C/man2/vfork.2:130
17783 msgid ""
17784 "Signals sent to the parent arrive after the child releases the parent's "
17785 "memory (i.e., after the child terminates or calls B<execve>(2))."
17786 msgstr ""
17787
17788 #. type: SS
17789 #: build/C/man2/vfork.2:130
17790 #, no-wrap
17791 msgid "Historic Description"
17792 msgstr ""
17793
17794 #. type: Plain text
17795 #: build/C/man2/vfork.2:157
17796 msgid ""
17797 "Under Linux, B<fork>(2)  is implemented using copy-on-write pages, so the "
17798 "only penalty incurred by B<fork>(2)  is the time and memory required to "
17799 "duplicate the parent's page tables, and to create a unique task structure "
17800 "for the child.  However, in the bad old days a B<fork>(2)  would require "
17801 "making a complete copy of the caller's data space, often needlessly, since "
17802 "usually immediately afterward an B<exec>(3)  is done.  Thus, for greater "
17803 "efficiency, BSD introduced the B<vfork>()  system call, which did not fully "
17804 "copy the address space of the parent process, but borrowed the parent's "
17805 "memory and thread of control until a call to B<execve>(2)  or an exit "
17806 "occurred.  The parent process was suspended while the child was using its "
17807 "resources.  The use of B<vfork>()  was tricky: for example, not modifying "
17808 "data in the parent process depended on knowing which variables were held in "
17809 "a register."
17810 msgstr ""
17811
17812 #. type: Plain text
17813 #: build/C/man2/vfork.2:161
17814 msgid ""
17815 "4.3BSD; POSIX.1-2001 (but marked OBSOLETE).  POSIX.1-2008 removes the "
17816 "specification of B<vfork>()."
17817 msgstr ""
17818
17819 #.  In AIXv3.1 vfork is equivalent to fork.
17820 #. type: Plain text
17821 #: build/C/man2/vfork.2:172
17822 msgid ""
17823 "The requirements put on B<vfork>()  by the standards are weaker than those "
17824 "put on B<fork>(2), so an implementation where the two are synonymous is "
17825 "compliant.  In particular, the programmer cannot rely on the parent "
17826 "remaining blocked until the child either terminates or calls B<execve>(2), "
17827 "and cannot rely on any specific behavior with respect to shared memory."
17828 msgstr ""
17829
17830 #. type: Plain text
17831 #: build/C/man2/vfork.2:191
17832 msgid ""
17833 "Some consider the semantics of B<vfork>()  to be an architectural blemish, "
17834 "and the 4.2BSD man page stated: \"This system call will be eliminated when "
17835 "proper system sharing mechanisms are implemented.  Users should not depend "
17836 "on the memory sharing semantics of B<vfork>()  as it will, in that case, be "
17837 "made synonymous to B<fork>(2).\" However, even though modern memory "
17838 "management hardware has decreased the performance difference between "
17839 "B<fork>(2)  and B<vfork>(), there are various reasons why Linux and other "
17840 "systems have retained B<vfork>():"
17841 msgstr ""
17842
17843 #. type: Plain text
17844 #: build/C/man2/vfork.2:195
17845 msgid ""
17846 "Some performance-critical applications require the small performance "
17847 "advantage conferred by B<vfork>()."
17848 msgstr ""
17849
17850 #.  http://stackoverflow.com/questions/4259629/what-is-the-difference-between-fork-and-vfork
17851 #.  http://developers.sun.com/solaris/articles/subprocess/subprocess.html
17852 #.  http://mailman.uclinux.org/pipermail/uclinux-dev/2009-April/000684.html
17853 #. type: Plain text
17854 #: build/C/man2/vfork.2:211
17855 msgid ""
17856 "B<vfork>()  can be implemented on systems that lack a memory-management unit "
17857 "(MMU), but B<fork>(2)  can't be implemented on such systems.  (POSIX.1-2008 "
17858 "removed B<vfork>()  from the standard; the POSIX rationale for the "
17859 "B<posix_spawn>(3)  function notes that that function, which provides "
17860 "functionality equivalent to B<fork>(2)+B<exec>(3), is designed to be "
17861 "implementable on systems that lack an MMU.)"
17862 msgstr ""
17863
17864 #. type: Plain text
17865 #: build/C/man2/vfork.2:222
17866 msgid ""
17867 "Fork handlers established using B<pthread_atfork>(3)  are not called when a "
17868 "multithreaded program employing the NPTL threading library calls "
17869 "B<vfork>().  Fork handlers are called in this case in a program using the "
17870 "LinuxThreads threading library.  (See B<pthreads>(7)  for a description of "
17871 "Linux threading libraries.)"
17872 msgstr ""
17873
17874 #. type: Plain text
17875 #: build/C/man2/vfork.2:230
17876 msgid ""
17877 "A call to B<vfork>()  is equivalent to calling B<clone>(2)  with I<flags> "
17878 "specified as:"
17879 msgstr ""
17880
17881 #. type: Plain text
17882 #: build/C/man2/vfork.2:232
17883 #, no-wrap
17884 msgid "     CLONE_VM | CLONE_VFORK | SIGCHLD\n"
17885 msgstr ""
17886
17887 #.  In the release notes for 4.2BSD Sam Leffler wrote: `vfork: Is still
17888 #.  present, but definitely on its way out'.
17889 #. type: Plain text
17890 #: build/C/man2/vfork.2:249
17891 msgid ""
17892 "The B<vfork>()  system call appeared in 3.0BSD.  In 4.4BSD it was made "
17893 "synonymous to B<fork>(2)  but NetBSD introduced it again, "
17894 "cf. http://www.netbsd.org/Documentation/kernel/vfork.html .  In Linux, it "
17895 "has been equivalent to B<fork>(2)  until 2.2.0-pre6 or so.  Since 2.2.0-pre9 "
17896 "(on i386, somewhat later on other architectures) it is an independent system "
17897 "call.  Support was added in glibc 2.0.112."
17898 msgstr ""
17899
17900 #
17901 #.  As far as I can tell, the following is not true in 2.6.19:
17902 #.  Currently (Linux 2.3.25),
17903 #.  .BR strace (1)
17904 #.  cannot follow
17905 #.  .BR vfork ()
17906 #.  and requires a kernel patch.
17907 #. type: Plain text
17908 #: build/C/man2/vfork.2:270
17909 msgid ""
17910 "Details of the signal handling are obscure and differ between systems.  The "
17911 "BSD man page states: \"To avoid a possible deadlock situation, processes "
17912 "that are children in the middle of a B<vfork>()  are never sent B<SIGTTOU> "
17913 "or B<SIGTTIN> signals; rather, output or I<ioctl>s are allowed and input "
17914 "attempts result in an end-of-file indication.\""
17915 msgstr ""
17916
17917 #. type: Plain text
17918 #: build/C/man2/vfork.2:276
17919 msgid "B<clone>(2), B<execve>(2), B<fork>(2), B<unshare>(2), B<wait>(2)"
17920 msgstr ""
17921
17922 #. type: TH
17923 #: build/C/man2/vhangup.2:27
17924 #, no-wrap
17925 msgid "VHANGUP"
17926 msgstr ""
17927
17928 #. type: Plain text
17929 #: build/C/man2/vhangup.2:30
17930 msgid "vhangup - virtually hangup the current tty"
17931 msgstr ""
17932
17933 #. type: Plain text
17934 #: build/C/man2/vhangup.2:34
17935 msgid "B<int vhangup(void);>"
17936 msgstr ""
17937
17938 #. type: Plain text
17939 #: build/C/man2/vhangup.2:43
17940 msgid "B<vhangup>(): _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\\ E<lt>\\ 500)"
17941 msgstr ""
17942
17943 #. type: Plain text
17944 #: build/C/man2/vhangup.2:49
17945 msgid ""
17946 "B<vhangup>()  simulates a hangup on the current terminal.  This call "
17947 "arranges for other users to have a ``clean'' tty at login time."
17948 msgstr ""
17949
17950 #. type: Plain text
17951 #: build/C/man2/vhangup.2:62
17952 msgid ""
17953 "The calling process has insufficient privilege to call B<vhangup>(); the "
17954 "B<CAP_SYS_TTY_CONFIG> capability is required."
17955 msgstr ""
17956
17957 #. type: Plain text
17958 #: build/C/man2/vhangup.2:65
17959 msgid ""
17960 "This call is Linux-specific, and should not be used in programs intended to "
17961 "be portable."
17962 msgstr ""
17963
17964 #. type: Plain text
17965 #: build/C/man2/vhangup.2:68
17966 msgid "B<capabilities>(7), B<init>(8)"
17967 msgstr ""