Debian Codegraph @

templates/man2/ioctl.2.pot

raw
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: 2026-06-05 06:27+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\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 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "ioctl"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-09-21"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "ioctl - control device"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>sys/ioctl.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<int ioctl(int >I<fd>B<, unsigned long >I<op>B<, ...);>\\f[R] /* glibc, BSD */\\fR\n"
85 "B<int ioctl(int >I<fd>B<, int >I<op>B<, ...);>\\f[R] /* musl, other UNIX */\\fR\n"
86 msgstr ""
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "The B<ioctl>() system call manipulates the underlying device parameters of "
100 "special files. In particular, many operating characteristics of character "
101 "special files (e.g., terminals) may be controlled with B<ioctl>() "
102 "operations. The argument I<fd> must be an open file descriptor."
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "The second argument is a device-dependent operation code. The third "
110 "argument is an untyped pointer to memory. It's traditionally B<char "
111 "*>I<argp> (from the days before B<void *> was valid C), and will be so named "
112 "for this discussion."
113 msgstr ""
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "An B<ioctl>() I<op> has encoded in it whether the argument is an I<in> "
120 "parameter or I<out> parameter, and the size of the argument I<argp> in "
121 "bytes. Macros and defines used in specifying an B<ioctl>() I<op> are "
122 "located in the file I<E<lt>sys/ioctl.hE<gt>>. See NOTES."
123 msgstr ""
124
125 #. type: SH
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 #, no-wrap
129 msgid "RETURN VALUE"
130 msgstr ""
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid ""
136 "Usually, on success zero is returned. A few B<ioctl>() operations use the "
137 "return value as an output parameter and return a nonnegative value on "
138 "success. On error, -1 is returned, and I<errno> is set to indicate the "
139 "error."
140 msgstr ""
141
142 #. type: SH
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, no-wrap
146 msgid "ERRORS"
147 msgstr ""
148
149 #. type: TP
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "B<EBADF>"
154 msgstr ""
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid "I<fd> is not a valid file descriptor."
160 msgstr ""
161
162 #. type: TP
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "B<EFAULT>"
167 msgstr ""
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid "I<argp> references an inaccessible memory area."
173 msgstr ""
174
175 #. type: TP
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, no-wrap
179 msgid "B<EINVAL>"
180 msgstr ""
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid "I<op> or I<argp> is not valid."
186 msgstr ""
187
188 #. type: TP
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "B<ENOTTY>"
193 msgstr ""
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid "I<fd> is not associated with a character special device."
199 msgstr ""
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "The specified operation does not apply to the kind of object that the file "
206 "descriptor I<fd> references."
207 msgstr ""
208
209 #. type: SH
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "VERSIONS"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "Arguments, returns, and semantics of B<ioctl>() vary according to the "
221 "device driver in question (the call is used as a catch-all for operations "
222 "that don't cleanly fit the UNIX stream I/O model)."
223 msgstr ""
224
225 #. type: SH
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid "STANDARDS"
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid "None."
236 msgstr ""
237
238 #. type: SH
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "HISTORY"
243 msgstr ""
244
245 #. type: Plain text
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 msgid "Version\\ 7 AT&T UNIX has"
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
253 #: opensuse-tumbleweed
254 #, no-wrap
255 msgid "B<ioctl(int >I<fd>B<, int >I<op>B<, struct sgttyb *>I<argp>B<);>\n"
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "(where B<struct sgttyb> has historically been used by B<stty>(2) and "
263 "B<gtty>(2), and is polymorphic by operation type (like a B<void *> would be, "
264 "if it had been available))."
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid "SysIII documents I<arg> without a type at all."
271 msgstr ""
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid "4.3BSD has"
277 msgstr ""
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "B<ioctl(int >I<d>B<, unsigned long >I<op>B<, char *>I<argp>B<);>\n"
284 msgstr ""
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid "(with B<char *> similarly in for B<void *>)."
290 msgstr ""
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid "SysVr4 has"
296 msgstr ""
297
298 #. type: Plain text
299 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
300 #: opensuse-tumbleweed
301 #, no-wrap
302 msgid "B<int ioctl(int >I<fd>B<, int >I<op>B<, ... /* >I<arg>B< */);>\n"
303 msgstr ""
304
305 #. type: SH
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "NOTES"
310 msgstr ""
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid ""
316 "In order to use this call, one needs an open file descriptor. Often the "
317 "B<open>(2) call has unwanted side effects, that can be avoided under Linux "
318 "by giving it the B<O_NONBLOCK> flag."
319 msgstr ""
320
321 #. type: SS
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "ioctl structure"
326 msgstr ""
327
328 #. added two sections - aeb
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "Ioctl I<op> values are 32-bit constants. In principle these constants are "
334 "completely arbitrary, but people have tried to build some structure into "
335 "them."
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "The old Linux situation was that of mostly 16-bit constants, where the last "
343 "byte is a serial number, and the preceding byte(s) give a type indicating "
344 "the driver. Sometimes the major number was used: 0x03 for the B<HDIO_*> "
345 "ioctls, 0x06 for the B<LP*> ioctls. And sometimes one or more ASCII letters "
346 "were used. For example, B<TCGETS> has value 0x00005401, with 0x54 = \\"
347 "[aq]T\\[aq] indicating the terminal driver, and B<CYGETTIMEOUT> has value "
348 "0x00435906, with 0x43 0x59 = \\[aq]C\\[aq] \\[aq]Y\\[aq] indicating the "
349 "cyclades driver."
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid ""
356 "Later (0.98p5) some more information was built into the number. One has 2 "
357 "direction bits (00: none, 01: write, 10: read, 11: read/write) followed by "
358 "14 size bits (giving the size of the argument), followed by an 8-bit type "
359 "(collecting the ioctls in groups for a common purpose or a common driver), "
360 "and an 8-bit serial number."
361 msgstr ""
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid ""
367 "The macros describing this structure live in I<E<lt>asm/ioctl.hE<gt>> and "
368 "are B<_IO(type,nr)> and B<{_IOR,_IOW,_IOWR}(type,nr,size)>. They use "
369 "I<sizeof(size)> so that size is a misnomer here: this third argument is a "
370 "data type."
371 msgstr ""
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid ""
377 "Note that the size bits are very unreliable: in lots of cases they are "
378 "wrong, either because of buggy macros using I<sizeof(sizeof(struct))>, or "
379 "because of legacy values."
380 msgstr ""
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "Thus, it seems that the new structure only gave disadvantages: it does not "
387 "help in checking, but it causes varying values for the various architectures."
388 msgstr ""
389
390 #. type: SH
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "SEE ALSO"
395 msgstr ""
396
397 #. .BR mt (4),
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "B<execve>(2), B<fcntl>(2), B<ioctl_console>(2), B<ioctl_fat>(2), "
403 "B<ioctl_fs>(2), B<ioctl_fsmap>(2), B<ioctl_nsfs>(2), B<ioctl_tty>(2), "
404 "B<ioctl_userfaultfd>(2), B<ioctl_eventpoll>(2), B<open>(2), B<sd>(4), "
405 "B<tty>(4)"
406 msgstr ""
407
408 #. type: TH
409 #: debian-trixie
410 #, no-wrap
411 msgid "2024-06-13"
412 msgstr ""
413
414 #. type: TH
415 #: debian-trixie
416 #, no-wrap
417 msgid "Linux man-pages 6.9.1"
418 msgstr ""
419
420 #. type: Plain text
421 #: debian-trixie
422 msgid "Standard C library (I<libc>, I<-lc>)"
423 msgstr ""
424
425 #. type: Plain text
426 #: debian-trixie fedora-44 fedora-rawhide
427 #, no-wrap
428 msgid "B<ioctl(int >I<fildes>B<, int >I<op>B<, struct sgttyb *>I<argp>B<);>\n"
429 msgstr ""
430
431 #. type: Plain text
432 #: debian-trixie fedora-44 fedora-rawhide
433 #, no-wrap
434 msgid "B<int ioctl(int >I<fildes>B<, int >I<op>B<, ... /* >I<arg>B< */);>\n"
435 msgstr ""
436
437 #. type: TH
438 #: fedora-44 fedora-rawhide
439 #, no-wrap
440 msgid "2024-07-23"
441 msgstr ""
442
443 #. type: TH
444 #: fedora-44 fedora-rawhide
445 #, no-wrap
446 msgid "Linux man-pages 6.13"
447 msgstr ""
448
449 #. type: TH
450 #: mageia-cauldron
451 #, no-wrap
452 msgid "Linux man-pages 6.17"
453 msgstr ""
454
455 #. type: TH
456 #: opensuse-leap-16-1 opensuse-tumbleweed
457 #, no-wrap
458 msgid "Linux man-pages (unreleased)"
459 msgstr ""