Debian Codegraph @

po/es/man7/unix.7.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Juan Piernas <[email protected]>, 1999-2000.
5 # Miguel Pérez Ibars <[email protected]>, 2005.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
10 "PO-Revision-Date: 2005-06-26 19:53+0200\n"
11 "Last-Translator: Miguel Pérez Ibars <[email protected]>\n"
12 "Language-Team: Spanish <[email protected]>\n"
13 "Language: es\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18 "X-Generator: Lokalize 20.04.1\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "UNIX"
25 msgstr "UNIX"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 Febrero 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Páginas de Manual de Linux 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOMBRE"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "unix - sockets for local interprocess communication"
52 msgstr "unix - Conectores para la comunicación local entre procesos."
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "SYNOPSIS"
59 msgstr "SINOPSIS"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, fuzzy, no-wrap
65 #| msgid ""
66 #| "B<#include E<lt>sys/types.hE<gt>>\n"
67 #| "B<#include E<lt>sys/xattr.hE<gt>>\n"
68 msgid ""
69 "B<#include E<lt>sys/socket.hE<gt>>\n"
70 "B<#include E<lt>sys/un.hE<gt>>\n"
71 msgstr ""
72 "B<#include E<lt>sys/types.hE<gt>>\n"
73 "B<#include E<lt>sys/xattr.hE<gt>>\n"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, fuzzy, no-wrap
79 #| msgid "I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>"
80 msgid ""
81 "I<unix_socket>B< = socket(AF_UNIX, type, 0);>\n"
82 "I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>\n"
83 msgstr "I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>"
84
85 #. type: SH
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "DESCRIPTION"
90 msgstr "DESCRIPCIÓN"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, fuzzy
96 #| msgid ""
97 #| "The B<PF_UNIX> (also known as B<PF_LOCAL>) socket family is used to "
98 #| "communicate between processes on the same machine efficiently. Unix "
99 #| "sockets can be either anonymous (created by B<socketpair>(2)) or "
100 #| "associated with a file of type socket. Linux also supports an abstract "
101 #| "namespace which is independent of the file system."
102 msgid ""
103 "The B<AF_UNIX> (also known as B<AF_LOCAL>) socket family is used to "
104 "communicate between processes on the same machine efficiently. "
105 "Traditionally, UNIX domain sockets can be either unnamed, or bound to a "
106 "filesystem pathname (marked as being of type socket). Linux also supports "
107 "an abstract namespace which is independent of the filesystem."
108 msgstr ""
109 "La familia de conectores B<PF_UNIX> (también conocida como B<PF_LOCAL>) se "
110 "usa para comunicar procesos en la misma máquina de manera eficiente. Los "
111 "conectores Unix pueden ser o bien anónimos (creados mediante "
112 "B<socketpair>(2)) o bien estar asociados con un fichero de tipo conector. "
113 "Linux también soporta un espacio de nombres abstracto que es independiente "
114 "del sistema de ficheros."
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "Valid socket types in the UNIX domain are: B<SOCK_STREAM>, for a stream-"
121 "oriented socket; B<SOCK_DGRAM>, for a datagram-oriented socket that "
122 "preserves message boundaries (as on most UNIX implementations, UNIX domain "
123 "datagram sockets are always reliable and don't reorder datagrams); and "
124 "(since Linux 2.6.4) B<SOCK_SEQPACKET>, for a sequenced-packet socket that "
125 "is connection-oriented, preserves message boundaries, and delivers messages "
126 "in the order that they were sent."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, fuzzy
133 #| msgid ""
134 #| "Unix sockets support passing file descriptors or process credentials to "
135 #| "other processes using ancillary data."
136 msgid ""
137 "UNIX domain sockets support passing file descriptors or process credentials "
138 "to other processes using ancillary data."
139 msgstr ""
140 "Los conectores Unix soportan el paso de descriptores de fichero o "
141 "credenciales de proceso a otros procesos, usando datos auxiliares."
142
143 #. type: SS
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "Address format"
148 msgstr "Formato de las direcciones"
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid "A UNIX domain socket address is represented in the following structure:"
154 msgstr ""
155
156 #. #define UNIX_PATH_MAX 108
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid ""
162 "struct sockaddr_un {\n"
163 " sa_family_t sun_family; /* AF_UNIX */\n"
164 " char sun_path[108]; /* Pathname */\n"
165 "};\n"
166 msgstr ""
167 "struct sockaddr_un {\n"
168 " sa_family_t sun_family; /* AF_UNIX */\n"
169 " char sun_path[108]; /* nombre de la ruta */\n"
170 "};\n"
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "The I<sun_family> field always contains B<AF_UNIX>. On Linux, I<sun_path> "
177 "is 108 bytes in size; see also BUGS, below."
178 msgstr ""
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "Various system calls (for example, B<bind>(2), B<connect>(2), and "
185 "B<sendto>(2)) take a I<sockaddr_un> argument as input. Some other system "
186 "calls (for example, B<getsockname>(2), B<getpeername>(2), B<recvfrom>(2), "
187 "and B<accept>(2)) return an argument of this type."
188 msgstr ""
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "Three types of address are distinguished in the I<sockaddr_un> structure:"
195 msgstr ""
196
197 #. type: TP
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 #, fuzzy, no-wrap
201 #| msgid "Pathnames"
202 msgid "pathname"
203 msgstr "Nombres de Ruta"
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "a UNIX domain socket can be bound to a null-terminated filesystem pathname "
210 "using B<bind>(2). When the address of a pathname socket is returned (by one "
211 "of the system calls noted above), its length is"
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, fuzzy, no-wrap
218 #| msgid " offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n"
219 msgid "offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n"
220 msgstr " offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n"
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "and I<sun_path> contains the null-terminated pathname. (On Linux, the above "
227 "B<offsetof>() expression equates to the same value as "
228 "I<sizeof(sa_family_t)>, but some other implementations include other fields "
229 "before I<sun_path>, so the B<offsetof>() expression more portably describes "
230 "the size of the address structure.)"
231 msgstr ""
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid "For further details of pathname sockets, see below."
237 msgstr ""
238
239 #. type: TP
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "unnamed"
244 msgstr ""
245
246 #. There is quite some variation across implementations: FreeBSD
247 #. says the length is 16 bytes, HP-UX 11 says it's zero bytes.
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "A stream socket that has not been bound to a pathname using B<bind>(2) has "
253 "no name. Likewise, the two sockets created by B<socketpair>(2) are "
254 "unnamed. When the address of an unnamed socket is returned, its length is "
255 "I<sizeof(sa_family_t)>, and I<sun_path> should not be inspected."
256 msgstr ""
257
258 #. type: TP
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "abstract"
263 msgstr ""
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "an abstract socket address is distinguished (from a pathname socket) by the "
270 "fact that I<sun_path[0]> is a null byte (\\[aq]\\[rs]0\\[aq]). The socket's "
271 "address in this namespace is given by the additional bytes in I<sun_path> "
272 "that are covered by the specified length of the address structure. (Null "
273 "bytes in the name have no special significance.) The name has no connection "
274 "with filesystem pathnames. When the address of an abstract socket is "
275 "returned, the returned I<addrlen> is greater than I<sizeof(sa_family_t)> "
276 "(i.e., greater than 2), and the name of the socket is contained in the first "
277 "I<(addrlen - sizeof(sa_family_t))> bytes of I<sun_path>."
278 msgstr ""
279
280 #. type: SS
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "Pathname sockets"
285 msgstr ""
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid ""
291 "When binding a socket to a pathname, a few rules should be observed for "
292 "maximum portability and ease of coding:"
293 msgstr ""
294
295 #. type: IP
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "\\[bu]"
300 msgstr "\\[bu]"
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid "The pathname in I<sun_path> should be null-terminated."
306 msgstr ""
307
308 #. type: Plain text
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 msgid ""
312 "The length of the pathname, including the terminating null byte, should not "
313 "exceed the size of I<sun_path>."
314 msgstr ""
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "The I<addrlen> argument that describes the enclosing I<sockaddr_un> "
321 "structure should have a value of at least:"
322 msgstr ""
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, fuzzy, no-wrap
328 #| msgid " offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n"
329 msgid "offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n"
330 msgstr " offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid ""
336 "or, more simply, I<addrlen> can be specified as I<sizeof(struct "
337 "sockaddr_un)>."
338 msgstr ""
339
340 #. Linux does this, including for the case where the supplied path
341 #. is 108 bytes
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "There is some variation in how implementations handle UNIX domain socket "
347 "addresses that do not follow the above rules. For example, some (but not "
348 "all) implementations append a null terminator if none is present in the "
349 "supplied I<sun_path>."
350 msgstr ""
351
352 #. HP-UX
353 #. Modern BSDs generally have 104, Tru64 and AIX have 104,
354 #. Solaris and Irix have 108
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid ""
359 "When coding portable applications, keep in mind that some implementations "
360 "have I<sun_path> as short as 92 bytes."
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 "Various system calls (B<accept>(2), B<recvfrom>(2), B<getsockname>(2), "
368 "B<getpeername>(2)) return socket address structures. When applied to UNIX "
369 "domain sockets, the value-result I<addrlen> argument supplied to the call "
370 "should be initialized as above. Upon return, the argument is set to "
371 "indicate the I<actual> size of the address structure. The caller should "
372 "check the value returned in this argument: if the output value exceeds the "
373 "input value, then there is no guarantee that a null terminator is present in "
374 "I<sun_path>. (See BUGS.)"
375 msgstr ""
376
377 #. type: SS
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "Pathname socket ownership and permissions"
382 msgstr ""
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid ""
388 "In the Linux implementation, pathname sockets honor the permissions of the "
389 "directory they are in. Creation of a new socket fails if the process does "
390 "not have write and search (execute) permission on the directory in which the "
391 "socket is created."
392 msgstr ""
393
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 msgid ""
398 "On Linux, connecting to a stream socket object requires write permission on "
399 "that socket; sending a datagram to a datagram socket likewise requires write "
400 "permission on that socket. POSIX does not make any statement about the "
401 "effect of the permissions on a socket file, and on some systems (e.g., older "
402 "BSDs), the socket permissions are ignored. Portable programs should not "
403 "rely on this feature for security."
404 msgstr ""
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "When creating a new socket, the owner and group of the socket file are set "
411 "according to the usual rules. The socket file has all permissions enabled, "
412 "other than those that are turned off by the process B<umask>(2)."
413 msgstr ""
414
415 #. However, fchown() and fchmod() do not seem to have an effect
416 #. type: Plain text
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 msgid ""
420 "The owner, group, and permissions of a pathname socket can be changed (using "
421 "B<chown>(2) and B<chmod>(2))."
422 msgstr ""
423
424 #. type: SS
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid "Abstract sockets"
429 msgstr ""
430
431 #. type: Plain text
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 msgid ""
435 "Socket permissions have no meaning for abstract sockets: the process "
436 "B<umask>(2) has no effect when binding an abstract socket, and changing the "
437 "ownership and permissions of the object (via B<fchown>(2) and "
438 "B<fchmod>(2)) has no effect on the accessibility of the socket."
439 msgstr ""
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid ""
445 "Abstract sockets automatically disappear when all open references to the "
446 "socket are closed."
447 msgstr ""
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid "The abstract socket namespace is a nonportable Linux extension."
453 msgstr ""
454
455 #. type: SS
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "Socket options"
460 msgstr "Opciones de los conectores"
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ""
466 "For historical reasons, these socket options are specified with a "
467 "B<SOL_SOCKET> type even though they are B<AF_UNIX> specific. They can be "
468 "set with B<setsockopt>(2) and read with B<getsockopt>(2) by specifying "
469 "B<SOL_SOCKET> as the socket family."
470 msgstr ""
471 "Por razones históricas estas opciones de los conectores se especifican con "
472 "un tipo B<SOL_SOCKET>, aunque sean específicas de B<AF_UNIX>. Se pueden "
473 "configurar con B<setsockopt>(2) y leer con B<getsockopt>(2) especificando "
474 "B<SOL_SOCKET> como familia del conector."
475
476 #. type: TP
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, no-wrap
480 msgid "B<SO_PASSCRED>"
481 msgstr "B<SO_PASSCRED>"
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 #, fuzzy
487 msgid ""
488 "Enabling this socket option causes receipt of the credentials of the sending "
489 "process in an B<SCM_CREDENTIALS ancillary> message in each subsequently "
490 "received message. The returned credentials are those specified by the "
491 "sender using B<SCM_CREDENTIALS>, or a default that includes the sender's "
492 "PID, real user ID, and real group ID, if the sender did not specify "
493 "B<SCM_CREDENTIALS> ancillary data."
494 msgstr ""
495 "Habilita la recepción de las credenciales del proceso emisor en un mensaje "
496 "auxiliar."
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "When this option is set and the socket is not yet connected, a unique name "
503 "in the abstract namespace will be generated automatically."
504 msgstr ""
505 "Cuando esta opción está activa y el conector no está conectado aún, se "
506 "genera automáticamente un nombre único en el espacio de nombres abstracto."
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid ""
512 "The value given as an argument to B<setsockopt>(2) and returned as the "
513 "result of B<getsockopt>(2) is an integer boolean flag."
514 msgstr ""
515
516 #. type: TP
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 #, no-wrap
520 msgid "B<SO_PASSSEC>"
521 msgstr "B<SO_PASSSEC>"
522
523 #. type: Plain text
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 msgid ""
527 "Enables receiving of the SELinux security label of the peer socket in an "
528 "ancillary message of type B<SCM_SECURITY> (see below)."
529 msgstr ""
530
531 #. commit 877ce7c1b3afd69a9b1caeb1b9964c992641f52a
532 #. commit 37a9a8df8ce9de6ea73349c9ac8bdf6ba4ec4f70
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 msgid ""
537 "The B<SO_PASSSEC> option is supported for UNIX domain datagram sockets since "
538 "Linux 2.6.18; support for UNIX domain stream sockets was added in Linux 4.2."
539 msgstr ""
540
541 #. type: TP
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 #, no-wrap
545 msgid "B<SO_PEEK_OFF>"
546 msgstr "B<SO_PEEK_OFF>"
547
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid "See B<socket>(7)."
552 msgstr "Vea B<socket>(7)."
553
554 #. type: TP
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid "B<SO_PEERCRED>"
559 msgstr "B<SO_PEERCRED>"
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "This read-only socket option returns the credentials of the peer process "
566 "connected to this socket. The returned credentials are those that were in "
567 "effect at the time of the call to B<connect>(2), B<listen>(2), or "
568 "B<socketpair>(2)."
569 msgstr ""
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 msgid ""
575 "The argument to B<getsockopt>(2) is a pointer to a I<ucred> structure; "
576 "define the B<_GNU_SOURCE> feature test macro to obtain the definition of "
577 "that structure from I<E<lt>sys/socket.hE<gt>>."
578 msgstr ""
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 msgid ""
584 "The use of this option is possible only for connected B<AF_UNIX> stream "
585 "sockets and for B<AF_UNIX> stream and datagram socket pairs created using "
586 "B<socketpair>(2)."
587 msgstr ""
588
589 #. type: SS
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 #, no-wrap
593 msgid "Autobind feature"
594 msgstr ""
595
596 #. i.e., sizeof(short)
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid ""
601 "If a B<bind>(2) call specifies I<addrlen> as I<sizeof(sa_family_t)>, or the "
602 "B<SO_PASSCRED> socket option was specified for a socket that was not "
603 "explicitly bound to an address, then the socket is autobound to an abstract "
604 "address. The address consists of a null byte followed by 5 bytes in the "
605 "character set I<[0-9a-f]>. Thus, there is a limit of 2\\[ha]20 autobind "
606 "addresses. (From Linux 2.1.15, when the autobind feature was added, 8 bytes "
607 "were used, and the limit was thus 2\\[ha]32 autobind addresses. The change "
608 "to 5 bytes came in Linux 2.3.15.)"
609 msgstr ""
610
611 #. type: SS
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 #, no-wrap
615 msgid "Sockets API"
616 msgstr ""
617
618 #. type: Plain text
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 msgid ""
622 "The following paragraphs describe domain-specific details and unsupported "
623 "features of the sockets API for UNIX domain sockets on Linux."
624 msgstr ""
625
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 #, fuzzy
630 #| msgid ""
631 #| "Unix domain stream sockets do not support the notion of out-of-band data."
632 msgid ""
633 "UNIX domain sockets do not support the transmission of out-of-band data (the "
634 "B<MSG_OOB> flag for B<send>(2) and B<recv>(2))."
635 msgstr ""
636 "Los conectores orientados a conexión del dominio Unix no soportan la noción "
637 "de \"datos fuera de orden\"."
638
639 #. type: Plain text
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 msgid ""
643 "The B<send>(2) B<MSG_MORE> flag is not supported by UNIX domain sockets."
644 msgstr ""
645
646 #. commit 9f6f9af7694ede6314bed281eec74d588ba9474f
647 #. type: Plain text
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 msgid ""
651 "Before Linux 3.4, the use of B<MSG_TRUNC> in the I<flags> argument of "
652 "B<recv>(2) was not supported by UNIX domain sockets."
653 msgstr ""
654
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid ""
659 "The B<SO_SNDBUF> socket option does have an effect for UNIX domain sockets, "
660 "but the B<SO_RCVBUF> option does not. For datagram sockets, the "
661 "B<SO_SNDBUF> value imposes an upper limit on the size of outgoing "
662 "datagrams. This limit is calculated as the doubled (see B<socket>(7)) "
663 "option value less 32 bytes used for overhead."
664 msgstr ""
665
666 #. type: SS
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 #, no-wrap
670 msgid "Ancillary messages"
671 msgstr ""
672
673 #. type: Plain text
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 msgid ""
677 "Ancillary data is sent and received using B<sendmsg>(2) and B<recvmsg>(2). "
678 "For historical reasons, the ancillary message types listed below are "
679 "specified with a B<SOL_SOCKET> type even though they are B<AF_UNIX> "
680 "specific. To send them, set the I<cmsg_level> field of the struct "
681 "I<cmsghdr> to B<SOL_SOCKET> and the I<cmsg_type> field to the type. For "
682 "more information, see B<cmsg>(3)."
683 msgstr ""
684 "Los datos auxiliares se envían y reciben usando B<sendmsg>(2) y "
685 "B<recvmsg>(2). Por razones históricas, estos los tipos de mensajes "
686 "auxiliares listados arriba se especifican con un tipo B<SOL_SOCKET>, aunque "
687 "son específicos de B<AF_UNIX>. Para enviarlos, asigne al campo I<cmsg_level> "
688 "de la estructura I<cmsghdr> el valor B<SOL_SOCKET> y al campo I<cmsg_type> "
689 "el tipo. Para más información, vea B<cmsg>(3)."
690
691 #. type: TP
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 #, no-wrap
695 msgid "B<SCM_RIGHTS>"
696 msgstr "B<SCM_RIGHTS>"
697
698 #. type: Plain text
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 #, fuzzy
702 #| msgid ""
703 #| "Send or receive a set of open file descriptors from another process. The "
704 #| "data portion contains an integer array of the file descriptors. The "
705 #| "passed file descriptors behave as though they have been created with "
706 #| "B<dup>(2)."
707 msgid ""
708 "Send or receive a set of open file descriptors from another process. The "
709 "data portion contains an integer array of the file descriptors."
710 msgstr ""
711 "Enviar o recibir un conjunto de descriptores de fichero abiertos a/desde "
712 "otro proceso. La parte de datos contiene un array de enteros con los "
713 "descriptores de fichero. Los descriptores de fichero pasados se comportan "
714 "como si hubieran sido creados con B<dup>(2)."
715
716 #. type: Plain text
717 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
718 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
719 msgid ""
720 "Commonly, this operation is referred to as \"passing a file descriptor\" to "
721 "another process. However, more accurately, what is being passed is a "
722 "reference to an open file description (see B<open>(2)), and in the receiving "
723 "process it is likely that a different file descriptor number will be used. "
724 "Semantically, this operation is equivalent to duplicating (B<dup>(2)) a "
725 "file descriptor into the file descriptor table of another process."
726 msgstr ""
727
728 #. type: Plain text
729 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
730 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
731 msgid ""
732 "If the buffer used to receive the ancillary data containing file descriptors "
733 "is too small (or is absent), then the ancillary data is truncated (or "
734 "discarded) and the excess file descriptors are automatically closed in the "
735 "receiving process."
736 msgstr ""
737
738 #. type: Plain text
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 msgid ""
742 "If the number of file descriptors received in the ancillary data would cause "
743 "the process to exceed its B<RLIMIT_NOFILE> resource limit (see "
744 "B<getrlimit>(2)), the excess file descriptors are automatically closed in "
745 "the receiving process."
746 msgstr ""
747
748 #. commit bba14de98753cb6599a2dae0e520714b2153522d
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid ""
753 "The kernel constant B<SCM_MAX_FD> defines a limit on the number of file "
754 "descriptors in the array. Attempting to send an array larger than this "
755 "limit causes B<sendmsg>(2) to fail with the error B<EINVAL>. B<SCM_MAX_FD> "
756 "has the value 253 (or 255 before Linux 2.6.38)."
757 msgstr ""
758
759 #. type: TP
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 #, no-wrap
763 msgid "B<SCM_CREDENTIALS>"
764 msgstr "B<SCM_CREDENTIALS>"
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 #, fuzzy
770 #| msgid ""
771 #| "Send or receive unix credentials. This can be used for authentication. "
772 #| "The credentials are passed as a B<struct ucred> ancillary message."
773 msgid ""
774 "Send or receive UNIX credentials. This can be used for authentication. The "
775 "credentials are passed as a I<struct ucred> ancillary message. This "
776 "structure is defined in I<E<lt>sys/socket.hE<gt>> as follows:"
777 msgstr ""
778 "Enviar o recibir credenciales Unix. Esto se puede usar para autenticación. "
779 "Las credenciales se pasan como un mensaje auxiliar B<struct ucred>."
780
781 #. type: Plain text
782 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
783 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
784 #, no-wrap
785 msgid ""
786 "struct ucred {\n"
787 " pid_t pid; /* Process ID of the sending process */\n"
788 " uid_t uid; /* User ID of the sending process */\n"
789 " gid_t gid; /* Group ID of the sending process */\n"
790 "};\n"
791 msgstr ""
792 "struct ucred {\n"
793 " pid_t pid; /* PID del proceso emisor */\n"
794 " uid_t uid; /* UID del proceso emisor */\n"
795 " gid_t gid; /* GID del proceso emisor */\n"
796 "};\n"
797
798 #. type: Plain text
799 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
800 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
801 msgid ""
802 "Since glibc 2.8, the B<_GNU_SOURCE> feature test macro must be defined "
803 "(before including I<any> header files) in order to obtain the definition of "
804 "this structure."
805 msgstr ""
806
807 #. type: Plain text
808 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
809 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
810 #, fuzzy
811 #| msgid ""
812 #| "The credentials which the sender specifies are checked by the kernel. A "
813 #| "process with effective user ID 0 is allowed to specify values that do not "
814 #| "match his own. The sender must specify its own process ID (unless it has "
815 #| "the capability B<CAP_SYS_ADMIN>), its user ID, effective user ID or set "
816 #| "user ID (unless it has B<CAP_SETUID>), and its group id, effective group "
817 #| "ID or set group ID (unless it has B<CAP_SETGID>). To receive a B<struct "
818 #| "ucred> message the B<SO_PASSCRED> option must be enabled on the socket."
819 msgid ""
820 "The credentials which the sender specifies are checked by the kernel. A "
821 "privileged process is allowed to specify values that do not match its own. "
822 "The sender must specify its own process ID (unless it has the capability "
823 "B<CAP_SYS_ADMIN>, in which case the PID of any existing process may be "
824 "specified), its real user ID, effective user ID, or saved set-user-ID "
825 "(unless it has B<CAP_SETUID>), and its real group ID, effective group ID, or "
826 "saved set-group-ID (unless it has B<CAP_SETGID>)."
827 msgstr ""
828 "El núcleo comprueba las credenciales que el emisor especifíca. Un proceso "
829 "con identificador de usuario efectivo 0 puede especificar valores que no "
830 "coincidan con los suyos. El emisor debe especificar su propio identificador "
831 "de proceso (a menos que posea la capacidad B<CAP_SYS_ADMIN>), sus "
832 "identificador de usuario, identificador de usuario efectivo o identificador "
833 "de usuario de conjunto (a menos que posea la capacidad B<CAP_SETUID>) y sus "
834 "identificador de grupo, identificador de grupo efectivo o identificador de "
835 "grupo de conjunto (a menos que posea la capacidad B<CAP_SETGID>). Para "
836 "recibir un mensaje B<struct ucred> la opción B<SO_PASSCRED> debe estar "
837 "activa en el conector."
838
839 #. type: Plain text
840 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
841 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
842 msgid ""
843 "To receive a I<struct ucred> message, the B<SO_PASSCRED> option must be "
844 "enabled on the socket."
845 msgstr ""
846
847 #. type: TP
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 #, no-wrap
851 msgid "B<SCM_SECURITY>"
852 msgstr "B<SCM_SECURITY>"
853
854 #. type: Plain text
855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
857 msgid ""
858 "Receive the SELinux security context (the security label) of the peer "
859 "socket. The received ancillary data is a null-terminated string containing "
860 "the security context. The receiver should allocate at least B<NAME_MAX> "
861 "bytes in the data portion of the ancillary message for this data."
862 msgstr ""
863
864 #. type: Plain text
865 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
866 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
867 msgid ""
868 "To receive the security context, the B<SO_PASSSEC> option must be enabled on "
869 "the socket (see above)."
870 msgstr ""
871
872 #. type: Plain text
873 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
874 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
875 msgid ""
876 "When sending ancillary data with B<sendmsg>(2), only one item of each of the "
877 "above types may be included in the sent message."
878 msgstr ""
879
880 #. type: Plain text
881 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
882 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
883 msgid ""
884 "At least one byte of real data should be sent when sending ancillary data. "
885 "On Linux, this is required to successfully send ancillary data over a UNIX "
886 "domain stream socket. When sending ancillary data over a UNIX domain "
887 "datagram socket, it is not necessary on Linux to send any accompanying real "
888 "data. However, portable applications should also include at least one byte "
889 "of real data when sending ancillary data over a datagram socket."
890 msgstr ""
891
892 #. type: Plain text
893 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
894 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
895 msgid ""
896 "When receiving from a stream socket, ancillary data forms a kind of barrier "
897 "for the received data. For example, suppose that the sender transmits as "
898 "follows:"
899 msgstr ""
900
901 #. type: IP
902 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
903 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
904 #, no-wrap
905 msgid "(1)"
906 msgstr "(1)"
907
908 #. type: Plain text
909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
911 msgid "B<sendmsg>(2) of four bytes, with no ancillary data."
912 msgstr ""
913
914 #. type: IP
915 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
916 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
917 #, no-wrap
918 msgid "(2)"
919 msgstr "(2)"
920
921 #. type: Plain text
922 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
923 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
924 msgid "B<sendmsg>(2) of one byte, with ancillary data."
925 msgstr ""
926
927 #. type: IP
928 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
929 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
930 #, no-wrap
931 msgid "(3)"
932 msgstr "(3)"
933
934 #. type: Plain text
935 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
936 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
937 msgid ""
938 "Suppose that the receiver now performs B<recvmsg>(2) calls each with a "
939 "buffer size of 20 bytes. The first call will receive five bytes of data, "
940 "along with the ancillary data sent by the second B<sendmsg>(2) call. The "
941 "next call will receive the remaining four bytes of data."
942 msgstr ""
943
944 #. type: Plain text
945 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
946 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
947 msgid ""
948 "If the space allocated for receiving incoming ancillary data is too small "
949 "then the ancillary data is truncated to the number of headers that will fit "
950 "in the supplied buffer (or, in the case of an B<SCM_RIGHTS> file descriptor "
951 "list, the list of file descriptors may be truncated). If no buffer is "
952 "provided for incoming ancillary data (i.e., the I<msg_control> field of the "
953 "I<msghdr> structure supplied to B<recvmsg>(2) is NULL), then the incoming "
954 "ancillary data is discarded. In both of these cases, the B<MSG_CTRUNC> flag "
955 "will be set in the I<msg.msg_flags> value returned by B<recvmsg>(2)."
956 msgstr ""
957
958 #. type: SS
959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
961 #, no-wrap
962 msgid "Ioctls"
963 msgstr "Ioctls"
964
965 #. type: Plain text
966 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
967 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
968 msgid ""
969 "The following B<ioctl>(2) calls return information in I<value>. The "
970 "correct syntax is:"
971 msgstr ""
972
973 #. type: Plain text
974 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
975 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
976 #, no-wrap
977 msgid ""
978 "B<int>I< value>B<;>\n"
979 "I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
980 msgstr ""
981 "B<int>I< value>B<;>\n"
982 "I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
983
984 #. type: Plain text
985 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
986 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
987 msgid "I<ioctl_type> can be:"
988 msgstr ""
989
990 #. type: TP
991 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
992 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
993 #, no-wrap
994 msgid "B<SIOCINQ>"
995 msgstr "B<SIOCINQ>"
996
997 #. #-#-#-#-# archlinux: unix.7.pot (PACKAGE VERSION) #-#-#-#-#
998 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002,
999 #. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
1000 #. SIOCOUTQ also has an effect for UNIX domain sockets, but not
1001 #. quite what userland might expect. It seems to return the number
1002 #. of bytes allocated for buffers containing pending output.
1003 #. That number is normally larger than the number of bytes of pending
1004 #. output. Since this info is, from userland's point of view, imprecise,
1005 #. and it may well change, probably best not to document this now.
1006 #. type: Plain text
1007 #. #-#-#-#-# debian-trixie: unix.7.pot (PACKAGE VERSION) #-#-#-#-#
1008 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002,
1009 #. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
1010 #. SIOCOUTQ also has an effect for UNIX domain sockets, but not
1011 #. quite what userland might expect. It seems to return the number
1012 #. of bytes allocated for buffers containing pending output.
1013 #. That number is normally larger than the number of bytes of pending
1014 #. output. Since this info is, from userland's point of view, imprecise,
1015 #. and it may well change, probably best not to document this now.
1016 #. type: Plain text
1017 #. #-#-#-#-# debian-unstable: unix.7.pot (PACKAGE VERSION) #-#-#-#-#
1018 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002,
1019 #. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
1020 #. SIOCOUTQ also has an effect for UNIX domain sockets, but not
1021 #. quite what userland might expect. It seems to return the number
1022 #. of bytes allocated for buffers containing pending output.
1023 #. That number is normally larger than the number of bytes of pending
1024 #. output. Since this info is, from userland's point of view, imprecise,
1025 #. and it may well change, probably best not to document this now.
1026 #. type: Plain text
1027 #. #-#-#-#-# fedora-44: unix.7.pot (PACKAGE VERSION) #-#-#-#-#
1028 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002,
1029 #. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
1030 #. SIOCOUTQ also has an effect for UNIX domain sockets, but not
1031 #. quite what userland might expect. It seems to return the number
1032 #. of bytes allocated for buffers containing pending output.
1033 #. That number is normally larger than the number of bytes of pending
1034 #. output. Since this info is, from userland's point of view, imprecise,
1035 #. and it may well change, probably best not to document this now.
1036 #. type: Plain text
1037 #. #-#-#-#-# fedora-rawhide: unix.7.pot (PACKAGE VERSION) #-#-#-#-#
1038 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002,
1039 #. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
1040 #. SIOCOUTQ also has an effect for UNIX domain sockets, but not
1041 #. quite what userland might expect. It seems to return the number
1042 #. of bytes allocated for buffers containing pending output.
1043 #. That number is normally larger than the number of bytes of pending
1044 #. output. Since this info is, from userland's point of view, imprecise,
1045 #. and it may well change, probably best not to document this now.
1046 #. type: Plain text
1047 #. #-#-#-#-# mageia-cauldron: unix.7.pot (PACKAGE VERSION) #-#-#-#-#
1048 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002,
1049 #. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
1050 #. SIOCOUTQ also has an effect for UNIX domain sockets, but not
1051 #. quite what userland might expect. It seems to return the number
1052 #. of bytes allocated for buffers containing pending output.
1053 #. That number is normally larger than the number of bytes of pending
1054 #. output. Since this info is, from userland's point of view, imprecise,
1055 #. and it may well change, probably best not to document this now.
1056 #. type: Plain text
1057 #. #-#-#-#-# opensuse-leap-16-1: unix.7.pot (PACKAGE VERSION) #-#-#-#-#
1058 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002,
1059 #. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
1060 #. SIOCOUTQ also has an effect for UNIX domain sockets, but not
1061 #. quite what userland might expect. It seems to return the number
1062 #. of bytes allocated for buffers containing pending output.
1063 #. That number is normally larger than the number of bytes of pending
1064 #. output. Since this info is, from userland's point of view, imprecise,
1065 #. and it may well change, probably best not to document this now.
1066 #. type: Plain text
1067 #. #-#-#-#-# opensuse-tumbleweed: unix.7.pot (PACKAGE VERSION) #-#-#-#-#
1068 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002,
1069 #. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
1070 #. SIOCOUTQ also has an effect for UNIX domain sockets, but not
1071 #. quite what userland might expect. It seems to return the number
1072 #. of bytes allocated for buffers containing pending output.
1073 #. That number is normally larger than the number of bytes of pending
1074 #. output. Since this info is, from userland's point of view, imprecise,
1075 #. and it may well change, probably best not to document this now.
1076 #. type: Plain text
1077 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1078 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1079 msgid ""
1080 "For B<SOCK_STREAM> sockets, this call returns the number of unread bytes in "
1081 "the receive buffer. The socket must not be in LISTEN state, otherwise an "
1082 "error (B<EINVAL>) is returned. B<SIOCINQ> is defined in I<E<lt>linux/"
1083 "sockios.hE<gt>>. Alternatively, you can use the synonymous B<FIONREAD>, "
1084 "defined in I<E<lt>sys/ioctl.hE<gt>>. For B<SOCK_DGRAM> sockets, the "
1085 "returned value is the same as for Internet domain datagram sockets; see "
1086 "B<udp>(7)."
1087 msgstr ""
1088
1089 #. type: SH
1090 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1091 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1092 #, no-wrap
1093 msgid "ERRORS"
1094 msgstr "ERRORES"
1095
1096 #. type: TP
1097 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1098 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1099 #, no-wrap
1100 msgid "B<EADDRINUSE>"
1101 msgstr "B<EADDRINUSE>"
1102
1103 #. type: Plain text
1104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1106 #, fuzzy
1107 #| msgid ""
1108 #| "Selected local address is already taken or filesystem socket object "
1109 #| "already exists."
1110 msgid ""
1111 "The specified local address is already in use or the filesystem socket "
1112 "object already exists."
1113 msgstr ""
1114 "La dirección local seleccionada ya está en uso o el objeto conector del "
1115 "sistema de ficheros ya existe."
1116
1117 #. type: TP
1118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1120 #, no-wrap
1121 msgid "B<EBADF>"
1122 msgstr "B<EBADF>"
1123
1124 #. type: Plain text
1125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1127 msgid ""
1128 "This error can occur for B<sendmsg>(2) when sending a file descriptor as "
1129 "ancillary data over a UNIX domain socket (see the description of "
1130 "B<SCM_RIGHTS>, above), and indicates that the file descriptor number that is "
1131 "being sent is not valid (e.g., it is not an open file descriptor)."
1132 msgstr ""
1133
1134 #. type: TP
1135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1137 #, no-wrap
1138 msgid "B<ECONNREFUSED>"
1139 msgstr "B<ECONNREFUSED>"
1140
1141 #. type: Plain text
1142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1144 msgid ""
1145 "The remote address specified by B<connect>(2) was not a listening socket. "
1146 "This error can also occur if the target pathname is not a socket."
1147 msgstr ""
1148
1149 #. type: TP
1150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1152 #, no-wrap
1153 msgid "B<ECONNRESET>"
1154 msgstr "B<ECONNRESET>"
1155
1156 #. type: Plain text
1157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1159 msgid "Remote socket was unexpectedly closed."
1160 msgstr "Se ha cerrado inesperadamente el conector remoto."
1161
1162 #. type: TP
1163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1165 #, no-wrap
1166 msgid "B<EFAULT>"
1167 msgstr "B<EFAULT>"
1168
1169 #. type: Plain text
1170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1172 msgid "User memory address was not valid."
1173 msgstr "La dirección de memoria de usuario no es válida."
1174
1175 #. type: TP
1176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1178 #, no-wrap
1179 msgid "B<EINVAL>"
1180 msgstr "B<EINVAL>"
1181
1182 #. type: Plain text
1183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1185 #, fuzzy
1186 #| msgid ""
1187 #| "Invalid argument passed. A common cause is the missing setting of AF_UNIX "
1188 #| "in the sun_type field of passed addresses or the socket being in an "
1189 #| "invalid state for the applied operation."
1190 msgid ""
1191 "Invalid argument passed. A common cause is that the value B<AF_UNIX> was "
1192 "not specified in the I<sun_type> field of passed addresses, or the socket "
1193 "was in an invalid state for the applied operation."
1194 msgstr ""
1195 "Se ha pasado un argumento inválido. Una causa común es olvidar asignar "
1196 "AF_UNIX al campo sun_type de las direcciones pasadas o que el conector se "
1197 "encuentre en un estado inválido para la operación aplicada."
1198
1199 #. type: TP
1200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1202 #, no-wrap
1203 msgid "B<EISCONN>"
1204 msgstr "B<EISCONN>"
1205
1206 #. type: Plain text
1207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1209 msgid ""
1210 "B<connect>(2) called on an already connected socket or a target address was "
1211 "specified on a connected socket."
1212 msgstr ""
1213 "Se ha llamado a B<connect>(2) sobre un conector ya conectado o se ha "
1214 "especificado una dirección de destino en un conector conectado."
1215
1216 #. type: TP
1217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1219 #, no-wrap
1220 msgid "B<ENFILE>"
1221 msgstr "B<ENFILE>"
1222
1223 #. type: Plain text
1224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1226 msgid ""
1227 "The system-wide limit on the total number of open files has been reached."
1228 msgstr ""
1229 "Se ha alcanzado el límite máximo de archivos abiertos para el conjunto del "
1230 "sistema."
1231
1232 #. type: TP
1233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1235 #, no-wrap
1236 msgid "B<ENOENT>"
1237 msgstr "B<ENOENT>"
1238
1239 #. type: Plain text
1240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1242 msgid ""
1243 "The pathname in the remote address specified to B<connect>(2) did not exist."
1244 msgstr ""
1245
1246 #. type: TP
1247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1249 #, no-wrap
1250 msgid "B<ENOMEM>"
1251 msgstr "B<ENOMEM>"
1252
1253 #. type: Plain text
1254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1256 msgid "Out of memory."
1257 msgstr "Sin memoria."
1258
1259 #. type: TP
1260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1262 #, no-wrap
1263 msgid "B<ENOTCONN>"
1264 msgstr "B<ENOTCONN>"
1265
1266 #. type: Plain text
1267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1269 msgid ""
1270 "Socket operation needs a target address, but the socket is not connected."
1271 msgstr ""
1272 "La operación del conector necesita una dirección de destino pero el conector "
1273 "no está conectado."
1274
1275 #. type: TP
1276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1278 #, no-wrap
1279 msgid "B<EOPNOTSUPP>"
1280 msgstr "B<EOPNOTSUPP>"
1281
1282 #. type: Plain text
1283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1285 msgid ""
1286 "Stream operation called on non-stream oriented socket or tried to use the "
1287 "out-of-band data option."
1288 msgstr ""
1289 "Se ha invocado una operación orientada a conexión sobre un conector no "
1290 "orientado a conexión o se ha intentado usar la opción de \"datos fuera de "
1291 "orden\"."
1292
1293 #. type: TP
1294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1296 #, no-wrap
1297 msgid "B<EPERM>"
1298 msgstr "B<EPERM>"
1299
1300 #. type: Plain text
1301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1303 msgid "The sender passed invalid credentials in the I<struct ucred>."
1304 msgstr "El emisor ha pasado credenciales inválidas en I<struct ucred>."
1305
1306 #. type: TP
1307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1309 #, no-wrap
1310 msgid "B<EPIPE>"
1311 msgstr "B<EPIPE>"
1312
1313 #. type: Plain text
1314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1316 msgid ""
1317 "Remote socket was closed on a stream socket. If enabled, a B<SIGPIPE> is "
1318 "sent as well. This can be avoided by passing the B<MSG_NOSIGNAL> flag to "
1319 "B<send>(2) or B<sendmsg>(2)."
1320 msgstr ""
1321 "Se ha cerrado el conector remoto de un conector orientado a conexión. Si se "
1322 "ha activado, también se enviará una señal B<SIGPIPE>. Esto se puede evitar "
1323 "pasando la opción B<MSG_NOSIGNAL> a B<send>(2) o a B<sendmsg>(2)."
1324
1325 #. type: TP
1326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1328 #, no-wrap
1329 msgid "B<EPROTONOSUPPORT>"
1330 msgstr "B<EPROTONOSUPPORT>"
1331
1332 #. type: Plain text
1333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1335 msgid "Passed protocol is not B<AF_UNIX>."
1336 msgstr "El protocolo pasado no es B<AF_UNIX>."
1337
1338 #. type: TP
1339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1341 #, no-wrap
1342 msgid "B<EPROTOTYPE>"
1343 msgstr "B<EPROTOTYPE>"
1344
1345 #. type: Plain text
1346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1348 msgid ""
1349 "Remote socket does not match the local socket type (B<SOCK_DGRAM> versus "
1350 "B<SOCK_STREAM>)."
1351 msgstr ""
1352 "El tipo del conector remoto no coincide con el tipo del conector local "
1353 "(B<SOCK_DGRAM> contra B<SOCK_STREAM>)."
1354
1355 #. type: TP
1356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1358 #, no-wrap
1359 msgid "B<ESOCKTNOSUPPORT>"
1360 msgstr "B<ESOCKTNOSUPPORT>"
1361
1362 #. type: Plain text
1363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1365 msgid "Unknown socket type."
1366 msgstr "Tipo de conector desconocido."
1367
1368 #. type: TP
1369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1371 #, no-wrap
1372 msgid "B<ESRCH>"
1373 msgstr "B<ESRCH>"
1374
1375 #. type: Plain text
1376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1378 msgid ""
1379 "While sending an ancillary message containing credentials "
1380 "(B<SCM_CREDENTIALS>), the caller specified a PID that does not match any "
1381 "existing process."
1382 msgstr ""
1383
1384 #. type: TP
1385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1387 #, no-wrap
1388 msgid "B<ETOOMANYREFS>"
1389 msgstr "B<ETOOMANYREFS>"
1390
1391 #. type: Plain text
1392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1394 msgid ""
1395 "This error can occur for B<sendmsg>(2) when sending a file descriptor as "
1396 "ancillary data over a UNIX domain socket (see the description of "
1397 "B<SCM_RIGHTS>, above). It occurs if the number of \"in-flight\" file "
1398 "descriptors exceeds the B<RLIMIT_NOFILE> resource limit and the caller does "
1399 "not have the B<CAP_SYS_RESOURCE> capability. An in-flight file descriptor "
1400 "is one that has been sent using B<sendmsg>(2) but has not yet been accepted "
1401 "in the recipient process using B<recvmsg>(2)."
1402 msgstr ""
1403
1404 #. commit 712f4aad406bb1ed67f3f98d04c044191f0ff593
1405 #. type: Plain text
1406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1408 msgid ""
1409 "This error is diagnosed since mainline Linux 4.5 (and in some earlier kernel "
1410 "versions where the fix has been backported). In earlier kernel versions, it "
1411 "was possible to place an unlimited number of file descriptors in flight, by "
1412 "sending each file descriptor with B<sendmsg>(2) and then closing the file "
1413 "descriptor so that it was not accounted against the B<RLIMIT_NOFILE> "
1414 "resource limit."
1415 msgstr ""
1416
1417 #. type: Plain text
1418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1420 msgid ""
1421 "Other errors can be generated by the generic socket layer or by the "
1422 "filesystem while generating a filesystem socket object. See the appropriate "
1423 "manual pages for more information."
1424 msgstr ""
1425 "La capa de conectores genérica, o el sistema de ficheros al generar un "
1426 "objeto conector en el sistema de fichero, pueden producir otros errores. Vea "
1427 "las páginas de manual adecuadas para más información."
1428
1429 #. type: SH
1430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1432 #, no-wrap
1433 msgid "VERSIONS"
1434 msgstr "VERSIONES"
1435
1436 #. type: Plain text
1437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1439 msgid ""
1440 "B<SCM_CREDENTIALS> and the abstract namespace were introduced with Linux 2.2 "
1441 "and should not be used in portable programs. (Some BSD-derived systems also "
1442 "support credential passing, but the implementation details differ.)"
1443 msgstr ""
1444 "B<SCM_CREDENTIALS> y el espacio de nombres abstracto fueron introducidos en "
1445 "la versión 2.2 de Linux y no deberían usarse en programas transportables. "
1446 "(Algunos sistemas derivados de BSD también soportan el paso de credenciales, "
1447 "pero los detalles de implementación difieren.)"
1448
1449 #. type: SH
1450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1452 #, no-wrap
1453 msgid "NOTES"
1454 msgstr "NOTAS"
1455
1456 #. type: Plain text
1457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1459 msgid ""
1460 "Binding to a socket with a filename creates a socket in the filesystem that "
1461 "must be deleted by the caller when it is no longer needed (using "
1462 "B<unlink>(2)). The usual UNIX close-behind semantics apply; the socket can "
1463 "be unlinked at any time and will be finally removed from the filesystem when "
1464 "the last reference to it is closed."
1465 msgstr ""
1466 "Ligar un conector con un nombre de fichero crea un conector en el sistema de "
1467 "ficheros que debe ser borrado por el invocador cuando no se necesite más "
1468 "(usando B<unlink>(2)). Se aplica la semántica habitual de UNIX detrás de una "
1469 "operación de cierre: el conector puede ser desligado en cualquier instante y "
1470 "será finalmente eliminado del sistema de ficheros cuando se cierre la última "
1471 "referecia a él."
1472
1473 #. type: Plain text
1474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1476 msgid ""
1477 "To pass file descriptors or credentials over a B<SOCK_STREAM> socket, you "
1478 "must send or receive at least one byte of nonancillary data in the same "
1479 "B<sendmsg>(2) or B<recvmsg>(2) call."
1480 msgstr ""
1481
1482 #. type: Plain text
1483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1485 msgid ""
1486 "UNIX domain stream sockets do not support the notion of out-of-band data."
1487 msgstr ""
1488 "Los conectores orientados a conexión del dominio UNIX no soportan la noción "
1489 "de \"datos fuera de orden\"."
1490
1491 #. type: SH
1492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1494 #, no-wrap
1495 msgid "BUGS"
1496 msgstr "ERRORES"
1497
1498 #. The behavior on Solaris is quite similar.
1499 #. type: Plain text
1500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1502 msgid ""
1503 "When binding a socket to an address, Linux is one of the implementations "
1504 "that append a null terminator if none is supplied in I<sun_path>. In most "
1505 "cases this is unproblematic: when the socket address is retrieved, it will "
1506 "be one byte longer than that supplied when the socket was bound. However, "
1507 "there is one case where confusing behavior can result: if 108 non-null bytes "
1508 "are supplied when a socket is bound, then the addition of the null "
1509 "terminator takes the length of the pathname beyond I<sizeof(sun_path)>. "
1510 "Consequently, when retrieving the socket address (for example, via "
1511 "B<accept>(2)), if the input I<addrlen> argument for the retrieving call is "
1512 "specified as I<sizeof(struct sockaddr_un)>, then the returned address "
1513 "structure I<won't> have a null terminator in I<sun_path>."
1514 msgstr ""
1515
1516 #. i.e., traditional BSD
1517 #. type: Plain text
1518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1520 msgid ""
1521 "In addition, some implementations don't require a null terminator when "
1522 "binding a socket (the I<addrlen> argument is used to determine the length of "
1523 "I<sun_path>) and when the socket address is retrieved on these "
1524 "implementations, there is no null terminator in I<sun_path>."
1525 msgstr ""
1526
1527 #. type: Plain text
1528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1530 msgid ""
1531 "Applications that retrieve socket addresses can (portably) code to handle "
1532 "the possibility that there is no null terminator in I<sun_path> by "
1533 "respecting the fact that the number of valid bytes in the pathname is:"
1534 msgstr ""
1535
1536 #
1537 #. type: Plain text
1538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1540 #, fuzzy, no-wrap
1541 #| msgid " strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n"
1542 msgid "strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n"
1543 msgstr " strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n"
1544
1545 #. type: Plain text
1546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1548 msgid ""
1549 "Alternatively, an application can retrieve the socket address by allocating "
1550 "a buffer of size I<sizeof(struct sockaddr_un)+1> that is zeroed out before "
1551 "the retrieval. The retrieving call can specify I<addrlen> as "
1552 "I<sizeof(struct sockaddr_un)>, and the extra zero byte ensures that there "
1553 "will be a null terminator for the string returned in I<sun_path>:"
1554 msgstr ""
1555
1556 #. type: Plain text
1557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1559 #, no-wrap
1560 msgid ""
1561 "void *addrp;\n"
1562 "\\&\n"
1563 "addrlen = sizeof(struct sockaddr_un);\n"
1564 "addrp = malloc(addrlen + 1);\n"
1565 "if (addrp == NULL)\n"
1566 " /* Handle error */ ;\n"
1567 "memset(addrp, 0, addrlen + 1);\n"
1568 "\\&\n"
1569 "if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) == -1)\n"
1570 " /* handle error */ ;\n"
1571 "\\&\n"
1572 "printf(\"sun_path = %s\\[rs]n\", ((struct sockaddr_un *) addrp)-E<gt>sun_path);\n"
1573 msgstr ""
1574
1575 #. type: Plain text
1576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1578 msgid ""
1579 "This sort of messiness can be avoided if it is guaranteed that the "
1580 "applications that I<create> pathname sockets follow the rules outlined above "
1581 "under I<Pathname sockets>."
1582 msgstr ""
1583
1584 #. type: SH
1585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1587 #, no-wrap
1588 msgid "EXAMPLES"
1589 msgstr "EJEMPLOS"
1590
1591 #. type: Plain text
1592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1594 msgid ""
1595 "The following code demonstrates the use of sequenced-packet sockets for "
1596 "local interprocess communication. It consists of two programs. The server "
1597 "program waits for a connection from the client program. The client sends "
1598 "each of its command-line arguments in separate messages. The server treats "
1599 "the incoming messages as integers and adds them up. The client sends the "
1600 "command string \"END\". The server sends back a message containing the sum "
1601 "of the client's integers. The client prints the sum and exits. The server "
1602 "waits for the next client to connect. To stop the server, the client is "
1603 "called with the command-line argument \"DOWN\"."
1604 msgstr ""
1605
1606 #. type: Plain text
1607 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1608 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1609 msgid ""
1610 "The following output was recorded while running the server in the background "
1611 "and repeatedly executing the client. Execution of the server program ends "
1612 "when it receives the \"DOWN\" command."
1613 msgstr ""
1614
1615 #. type: SS
1616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1618 #, no-wrap
1619 msgid "Example output"
1620 msgstr ""
1621
1622 #. type: Plain text
1623 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1624 #: opensuse-tumbleweed
1625 #, no-wrap
1626 msgid ""
1627 "$B< ./server &>\n"
1628 "[1] 25887\n"
1629 "$B< ./client 3 4>;\n"
1630 "Result = 7\n"
1631 "$B< ./client 11 -5>;\n"
1632 "Result = 6\n"
1633 "$B< ./client DOWN>;\n"
1634 "Result = 0\n"
1635 "[1]+ Done ./server\n"
1636 "$\n"
1637 msgstr ""
1638
1639 #. type: SS
1640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1642 #, no-wrap
1643 msgid "Program source"
1644 msgstr "Código fuente"
1645
1646 #. type: Plain text
1647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1649 #, fuzzy, no-wrap
1650 #| msgid ""
1651 #| "#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n"
1652 #| "#define BUFFER_SIZE 12\n"
1653 msgid ""
1654 "/*\n"
1655 " * File connection.h\n"
1656 " */\n"
1657 "#ifndef CONNECTION_H\n"
1658 "#define CONNECTION_H\n"
1659 "\\&\n"
1660 "#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n"
1661 "#define BUFFER_SIZE 12\n"
1662 "\\&\n"
1663 "#endif // include guard\n"
1664 msgstr ""
1665 "#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n"
1666 "#define BUFFER_SIZE 12\n"
1667
1668 #. type: Plain text
1669 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1670 #: opensuse-tumbleweed
1671 #, no-wrap
1672 msgid ""
1673 "/*\n"
1674 " * File server.c\n"
1675 " */\n"
1676 "\\&\n"
1677 "#include E<lt>stdio.hE<gt>\n"
1678 "#include E<lt>stdlib.hE<gt>\n"
1679 "#include E<lt>string.hE<gt>\n"
1680 "#include E<lt>sys/socket.hE<gt>\n"
1681 "#include E<lt>sys/types.hE<gt>\n"
1682 "#include E<lt>sys/un.hE<gt>\n"
1683 "#include E<lt>unistd.hE<gt>\n"
1684 "\\&\n"
1685 "#include \"connection.h\"\n"
1686 "\\&\n"
1687 "int\n"
1688 "main(void)\n"
1689 "{\n"
1690 " int down_flag = 0;\n"
1691 " int ret;\n"
1692 " int connection_socket;\n"
1693 " int data_socket;\n"
1694 " int result;\n"
1695 " ssize_t r, w;\n"
1696 " struct sockaddr_un name;\n"
1697 " char buffer[BUFFER_SIZE];\n"
1698 "\\&\n"
1699 " /* Create local socket. */\n"
1700 "\\&\n"
1701 " connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n"
1702 " if (connection_socket == -1) {\n"
1703 " perror(\"socket\");\n"
1704 " exit(EXIT_FAILURE);\n"
1705 " }\n"
1706 "\\&\n"
1707 " /*\n"
1708 " * For portability clear the whole structure, since some\n"
1709 " * implementations have additional (nonstandard) fields in\n"
1710 " * the structure.\n"
1711 " */\n"
1712 "\\&\n"
1713 " memset(&name, 0, sizeof(name));\n"
1714 "\\&\n"
1715 " /* Bind socket to socket name. */\n"
1716 "\\&\n"
1717 " name.sun_family = AF_UNIX;\n"
1718 " strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n"
1719 "\\&\n"
1720 " ret = bind(connection_socket, (const struct sockaddr *) &name,\n"
1721 " sizeof(name));\n"
1722 " if (ret == -1) {\n"
1723 " perror(\"bind\");\n"
1724 " exit(EXIT_FAILURE);\n"
1725 " }\n"
1726 "\\&\n"
1727 " /*\n"
1728 " * Prepare for accepting connections. The backlog size is set\n"
1729 " * to 20. So while one request is being processed other requests\n"
1730 " * can be waiting.\n"
1731 " */\n"
1732 "\\&\n"
1733 " ret = listen(connection_socket, 20);\n"
1734 " if (ret == -1) {\n"
1735 " perror(\"listen\");\n"
1736 " exit(EXIT_FAILURE);\n"
1737 " }\n"
1738 "\\&\n"
1739 " /* This is the main loop for handling connections. */\n"
1740 "\\&\n"
1741 " for (;;) {\n"
1742 "\\&\n"
1743 " /* Wait for incoming connection. */\n"
1744 "\\&\n"
1745 " data_socket = accept(connection_socket, NULL, NULL);\n"
1746 " if (data_socket == -1) {\n"
1747 " perror(\"accept\");\n"
1748 " exit(EXIT_FAILURE);\n"
1749 " }\n"
1750 "\\&\n"
1751 " result = 0;\n"
1752 " for (;;) {\n"
1753 "\\&\n"
1754 " /* Wait for next data packet. */\n"
1755 "\\&\n"
1756 " r = read(data_socket, buffer, sizeof(buffer));\n"
1757 " if (r == -1) {\n"
1758 " perror(\"read\");\n"
1759 " exit(EXIT_FAILURE);\n"
1760 " }\n"
1761 "\\&\n"
1762 " /* Ensure buffer is 0-terminated. */\n"
1763 "\\&\n"
1764 " buffer[sizeof(buffer) - 1] = 0;\n"
1765 "\\&\n"
1766 " /* Handle commands. */\n"
1767 "\\&\n"
1768 " if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n"
1769 " down_flag = 1;\n"
1770 " continue;\n"
1771 " }\n"
1772 "\\&\n"
1773 " if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n"
1774 " break;\n"
1775 " }\n"
1776 "\\&\n"
1777 " if (down_flag) {\n"
1778 " continue;\n"
1779 " }\n"
1780 "\\&\n"
1781 " /* Add received summand. */\n"
1782 "\\&\n"
1783 " result += atoi(buffer);\n"
1784 " }\n"
1785 "\\&\n"
1786 " /* Send result. */\n"
1787 "\\&\n"
1788 " sprintf(buffer, \"%d\", result);\n"
1789 " w = write(data_socket, buffer, sizeof(buffer));\n"
1790 " if (w == -1) {\n"
1791 " perror(\"write\");\n"
1792 " exit(EXIT_FAILURE);\n"
1793 " }\n"
1794 "\\&\n"
1795 " /* Close socket. */\n"
1796 "\\&\n"
1797 " close(data_socket);\n"
1798 "\\&\n"
1799 " /* Quit on DOWN command. */\n"
1800 "\\&\n"
1801 " if (down_flag) {\n"
1802 " break;\n"
1803 " }\n"
1804 " }\n"
1805 "\\&\n"
1806 " close(connection_socket);\n"
1807 "\\&\n"
1808 " /* Unlink the socket. */\n"
1809 "\\&\n"
1810 " unlink(SOCKET_NAME);\n"
1811 "\\&\n"
1812 " exit(EXIT_SUCCESS);\n"
1813 "}\n"
1814 msgstr ""
1815
1816 #. type: Plain text
1817 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1818 #: opensuse-tumbleweed
1819 #, no-wrap
1820 msgid ""
1821 "/*\n"
1822 " * File client.c\n"
1823 " */\n"
1824 "\\&\n"
1825 "#include E<lt>stdio.hE<gt>\n"
1826 "#include E<lt>stdlib.hE<gt>\n"
1827 "#include E<lt>string.hE<gt>\n"
1828 "#include E<lt>sys/socket.hE<gt>\n"
1829 "#include E<lt>sys/types.hE<gt>\n"
1830 "#include E<lt>sys/un.hE<gt>\n"
1831 "#include E<lt>unistd.hE<gt>\n"
1832 "\\&\n"
1833 "#include \"connection.h\"\n"
1834 "\\&\n"
1835 "int\n"
1836 "main(int argc, char *argv[])\n"
1837 "{\n"
1838 " int ret;\n"
1839 " int data_socket;\n"
1840 " ssize_t r, w;\n"
1841 " struct sockaddr_un addr;\n"
1842 " char buffer[BUFFER_SIZE];\n"
1843 "\\&\n"
1844 " /* Create local socket. */\n"
1845 "\\&\n"
1846 " data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n"
1847 " if (data_socket == -1) {\n"
1848 " perror(\"socket\");\n"
1849 " exit(EXIT_FAILURE);\n"
1850 " }\n"
1851 "\\&\n"
1852 " /*\n"
1853 " * For portability clear the whole structure, since some\n"
1854 " * implementations have additional (nonstandard) fields in\n"
1855 " * the structure.\n"
1856 " */\n"
1857 "\\&\n"
1858 " memset(&addr, 0, sizeof(addr));\n"
1859 "\\&\n"
1860 " /* Connect socket to socket address. */\n"
1861 "\\&\n"
1862 " addr.sun_family = AF_UNIX;\n"
1863 " strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n"
1864 "\\&\n"
1865 " ret = connect(data_socket, (const struct sockaddr *) &addr,\n"
1866 " sizeof(addr));\n"
1867 " if (ret == -1) {\n"
1868 " fprintf(stderr, \"The server is down.\\[rs]n\");\n"
1869 " exit(EXIT_FAILURE);\n"
1870 " }\n"
1871 "\\&\n"
1872 " /* Send arguments. */\n"
1873 "\\&\n"
1874 " for (int i = 1; i E<lt> argc; ++i) {\n"
1875 " w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n"
1876 " if (w == -1) {\n"
1877 " perror(\"write\");\n"
1878 " break;\n"
1879 " }\n"
1880 " }\n"
1881 "\\&\n"
1882 " /* Request result. */\n"
1883 "\\&\n"
1884 " strcpy(buffer, \"END\");\n"
1885 " w = write(data_socket, buffer, strlen(buffer) + 1);\n"
1886 " if (w == -1) {\n"
1887 " perror(\"write\");\n"
1888 " exit(EXIT_FAILURE);\n"
1889 " }\n"
1890 "\\&\n"
1891 " /* Receive result. */\n"
1892 "\\&\n"
1893 " r = read(data_socket, buffer, sizeof(buffer));\n"
1894 " if (r == -1) {\n"
1895 " perror(\"read\");\n"
1896 " exit(EXIT_FAILURE);\n"
1897 " }\n"
1898 "\\&\n"
1899 " /* Ensure buffer is 0-terminated. */\n"
1900 "\\&\n"
1901 " buffer[sizeof(buffer) - 1] = 0;\n"
1902 "\\&\n"
1903 " printf(\"Result = %s\\[rs]n\", buffer);\n"
1904 "\\&\n"
1905 " /* Close socket. */\n"
1906 "\\&\n"
1907 " close(data_socket);\n"
1908 "\\&\n"
1909 " exit(EXIT_SUCCESS);\n"
1910 "}\n"
1911 msgstr ""
1912
1913 #. type: Plain text
1914 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1915 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1916 msgid ""
1917 "For examples of the use of B<SCM_RIGHTS>, see B<cmsg>(3) and "
1918 "B<seccomp_unotify>(2)."
1919 msgstr ""
1920
1921 #. type: SH
1922 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1923 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1924 #, no-wrap
1925 msgid "SEE ALSO"
1926 msgstr "VÉASE TAMBIÉN"
1927
1928 #. type: Plain text
1929 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1930 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1931 msgid ""
1932 "B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), "
1933 "B<capabilities>(7), B<credentials>(7), B<socket>(7), B<udp>(7)"
1934 msgstr ""
1935 "B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), "
1936 "B<capabilities>(7), B<credentials>(7), B<socket>(7), B<udp>(7)"
1937
1938 #. type: TH
1939 #: debian-trixie fedora-44 fedora-rawhide
1940 #, no-wrap
1941 msgid "2024-06-15"
1942 msgstr "15 Junio 2024"
1943
1944 #. type: TH
1945 #: debian-trixie
1946 #, no-wrap
1947 msgid "Linux man-pages 6.9.1"
1948 msgstr "Páginas de Manual de Linux 6.9.1"
1949
1950 #. type: TP
1951 #: debian-trixie fedora-44 fedora-rawhide
1952 #, fuzzy, no-wrap
1953 #| msgid "B<SO_PEERCRED>"
1954 msgid "B<SO_PEERSEC>"
1955 msgstr "B<SO_PEERCRED>"
1956
1957 #. type: Plain text
1958 #: debian-trixie fedora-44 fedora-rawhide
1959 msgid ""
1960 "This read-only socket option returns the security context of the peer socket "
1961 "connected to this socket. By default, this will be the same as the security "
1962 "context of the process that created the peer socket unless overridden by the "
1963 "policy or by a process with the required permissions."
1964 msgstr ""
1965
1966 #. type: Plain text
1967 #: debian-trixie fedora-44 fedora-rawhide
1968 msgid ""
1969 "The argument to B<getsockopt>(2) is a pointer to a buffer of the specified "
1970 "length in bytes into which the security context string will be copied. If "
1971 "the buffer length is less than the length of the security context string, "
1972 "then B<getsockopt>(2) returns -1, sets I<errno> to B<ERANGE>, and returns "
1973 "the required length via I<optlen>. The caller should allocate at least "
1974 "B<NAME_MAX> bytes for the buffer initially, although this is not guaranteed "
1975 "to be sufficient. Resizing the buffer to the returned length and retrying "
1976 "may be necessary."
1977 msgstr ""
1978
1979 #. type: Plain text
1980 #: debian-trixie fedora-44 fedora-rawhide
1981 msgid ""
1982 "The security context string may include a terminating null character in the "
1983 "returned length, but is not guaranteed to do so: a security context \"foo\" "
1984 "might be represented as either {'f','o','o'} of length 3 or "
1985 "{'f','o','o','\\e0'} of length 4, which are considered to be "
1986 "interchangeable. The string is printable, does not contain non-terminating "
1987 "null characters, and is in an unspecified encoding (in particular, it is not "
1988 "guaranteed to be ASCII or UTF-8)."
1989 msgstr ""
1990
1991 #. commit 0b811db2cb2aabc910e53d34ebb95a15997c33e7
1992 #. type: Plain text
1993 #: debian-trixie fedora-44 fedora-rawhide
1994 msgid ""
1995 "The use of this option for sockets in the B<AF_UNIX> address family is "
1996 "supported since Linux 2.6.2 for connected stream sockets, and since Linux "
1997 "4.18 also for stream and datagram socket pairs created using "
1998 "B<socketpair>(2)."
1999 msgstr ""
2000
2001 #. type: Plain text
2002 #: debian-trixie fedora-44 fedora-rawhide
2003 #, no-wrap
2004 msgid ""
2005 "$ B<./server &>\n"
2006 "[1] 25887\n"
2007 "$ B<./client 3 4>\n"
2008 "Result = 7\n"
2009 "$ B<./client 11 -5>\n"
2010 "Result = 6\n"
2011 "$ B<./client DOWN>\n"
2012 "Result = 0\n"
2013 "[1]+ Done ./server\n"
2014 "$\n"
2015 msgstr ""
2016
2017 #. type: Plain text
2018 #: debian-trixie fedora-44 fedora-rawhide
2019 #, no-wrap
2020 msgid ""
2021 "/*\n"
2022 " * File server.c\n"
2023 " */\n"
2024 "\\&\n"
2025 "#include E<lt>stdio.hE<gt>\n"
2026 "#include E<lt>stdlib.hE<gt>\n"
2027 "#include E<lt>string.hE<gt>\n"
2028 "#include E<lt>sys/socket.hE<gt>\n"
2029 "#include E<lt>sys/types.hE<gt>\n"
2030 "#include E<lt>sys/un.hE<gt>\n"
2031 "#include E<lt>unistd.hE<gt>\n"
2032 "\\&\n"
2033 "#include \"connection.h\"\n"
2034 "\\&\n"
2035 "int\n"
2036 "main(void)\n"
2037 "{\n"
2038 " int down_flag = 0;\n"
2039 " int ret;\n"
2040 " int connection_socket;\n"
2041 " int data_socket;\n"
2042 " int result;\n"
2043 " ssize_t r, w;\n"
2044 " struct sockaddr_un name;\n"
2045 " char buffer[BUFFER_SIZE];\n"
2046 "\\&\n"
2047 " /* Create local socket. */\n"
2048 "\\&\n"
2049 " connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n"
2050 " if (connection_socket == -1) {\n"
2051 " perror(\"socket\");\n"
2052 " exit(EXIT_FAILURE);\n"
2053 " }\n"
2054 "\\&\n"
2055 " /*\n"
2056 " * For portability clear the whole structure, since some\n"
2057 " * implementations have additional (nonstandard) fields in\n"
2058 " * the structure.\n"
2059 " */\n"
2060 "\\&\n"
2061 " memset(&name, 0, sizeof(name));\n"
2062 "\\&\n"
2063 " /* Bind socket to socket name. */\n"
2064 "\\&\n"
2065 " name.sun_family = AF_UNIX;\n"
2066 " strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n"
2067 "\\&\n"
2068 " ret = bind(connection_socket, (const struct sockaddr *) &name,\n"
2069 " sizeof(name));\n"
2070 " if (ret == -1) {\n"
2071 " perror(\"bind\");\n"
2072 " exit(EXIT_FAILURE);\n"
2073 " }\n"
2074 "\\&\n"
2075 " /*\n"
2076 " * Prepare for accepting connections. The backlog size is set\n"
2077 " * to 20. So while one request is being processed other requests\n"
2078 " * can be waiting.\n"
2079 " */\n"
2080 "\\&\n"
2081 " ret = listen(connection_socket, 20);\n"
2082 " if (ret == -1) {\n"
2083 " perror(\"listen\");\n"
2084 " exit(EXIT_FAILURE);\n"
2085 " }\n"
2086 "\\&\n"
2087 " /* This is the main loop for handling connections. */\n"
2088 "\\&\n"
2089 " for (;;) {\n"
2090 "\\&\n"
2091 " /* Wait for incoming connection. */\n"
2092 "\\&\n"
2093 " data_socket = accept(connection_socket, NULL, NULL);\n"
2094 " if (data_socket == -1) {\n"
2095 " perror(\"accept\");\n"
2096 " exit(EXIT_FAILURE);\n"
2097 " }\n"
2098 "\\&\n"
2099 " result = 0;\n"
2100 " for (;;) {\n"
2101 "\\&\n"
2102 " /* Wait for next data packet. */\n"
2103 "\\&\n"
2104 " r = read(data_socket, buffer, sizeof(buffer));\n"
2105 " if (r == -1) {\n"
2106 " perror(\"read\");\n"
2107 " exit(EXIT_FAILURE);\n"
2108 " }\n"
2109 "\\&\n"
2110 " /* Ensure buffer is 0-terminated. */\n"
2111 "\\&\n"
2112 " buffer[sizeof(buffer) - 1] = 0;\n"
2113 "\\&\n"
2114 " /* Handle commands. */\n"
2115 "\\&\n"
2116 " if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n"
2117 " down_flag = 1;\n"
2118 " continue;\n"
2119 " }\n"
2120 "\\&\n"
2121 " if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n"
2122 " break;\n"
2123 " }\n"
2124 "\\&\n"
2125 " if (down_flag) {\n"
2126 " continue;\n"
2127 " }\n"
2128 "\\&\n"
2129 " /* Add received summand. */\n"
2130 "\\&\n"
2131 " result += atoi(buffer);\n"
2132 " }\n"
2133 "\\&\n"
2134 " /* Send result. */\n"
2135 "\\&\n"
2136 " sprintf(buffer, \"%d\", result);\n"
2137 " w = write(data_socket, buffer, sizeof(buffer));\n"
2138 " if (w == -1) {\n"
2139 " perror(\"write\");\n"
2140 " exit(EXIT_FAILURE);\n"
2141 " }\n"
2142 "\\&\n"
2143 " /* Close socket. */\n"
2144 "\\&\n"
2145 " close(data_socket);\n"
2146 "\\&\n"
2147 " /* Quit on DOWN command. */\n"
2148 "\\&\n"
2149 " if (down_flag) {\n"
2150 " break;\n"
2151 " }\n"
2152 " }\n"
2153 "\\&\n"
2154 " close(connection_socket);\n"
2155 "\\&\n"
2156 " /* Unlink the socket. */\n"
2157 "\\&\n"
2158 " unlink(SOCKET_NAME);\n"
2159 "\\&\n"
2160 " exit(EXIT_SUCCESS);\n"
2161 "}\n"
2162 msgstr ""
2163
2164 #. type: Plain text
2165 #: debian-trixie fedora-44 fedora-rawhide
2166 #, no-wrap
2167 msgid ""
2168 "/*\n"
2169 " * File client.c\n"
2170 " */\n"
2171 "\\&\n"
2172 "#include E<lt>stdio.hE<gt>\n"
2173 "#include E<lt>stdlib.hE<gt>\n"
2174 "#include E<lt>string.hE<gt>\n"
2175 "#include E<lt>sys/socket.hE<gt>\n"
2176 "#include E<lt>sys/types.hE<gt>\n"
2177 "#include E<lt>sys/un.hE<gt>\n"
2178 "#include E<lt>unistd.hE<gt>\n"
2179 "\\&\n"
2180 "#include \"connection.h\"\n"
2181 "\\&\n"
2182 "int\n"
2183 "main(int argc, char *argv[])\n"
2184 "{\n"
2185 " int ret;\n"
2186 " int data_socket;\n"
2187 " ssize_t r, w;\n"
2188 " struct sockaddr_un addr;\n"
2189 " char buffer[BUFFER_SIZE];\n"
2190 "\\&\n"
2191 " /* Create local socket. */\n"
2192 "\\&\n"
2193 " data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n"
2194 " if (data_socket == -1) {\n"
2195 " perror(\"socket\");\n"
2196 " exit(EXIT_FAILURE);\n"
2197 " }\n"
2198 "\\&\n"
2199 " /*\n"
2200 " * For portability clear the whole structure, since some\n"
2201 " * implementations have additional (nonstandard) fields in\n"
2202 " * the structure.\n"
2203 " */\n"
2204 "\\&\n"
2205 " memset(&addr, 0, sizeof(addr));\n"
2206 "\\&\n"
2207 " /* Connect socket to socket address. */\n"
2208 "\\&\n"
2209 " addr.sun_family = AF_UNIX;\n"
2210 " strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n"
2211 "\\&\n"
2212 " ret = connect(data_socket, (const struct sockaddr *) &addr,\n"
2213 " sizeof(addr));\n"
2214 " if (ret == -1) {\n"
2215 " fprintf(stderr, \"The server is down.\\[rs]n\");\n"
2216 " exit(EXIT_FAILURE);\n"
2217 " }\n"
2218 "\\&\n"
2219 " /* Send arguments. */\n"
2220 "\\&\n"
2221 " for (int i = 1; i E<lt> argc; ++i) {\n"
2222 " w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n"
2223 " if (w == -1) {\n"
2224 " perror(\"write\");\n"
2225 " break;\n"
2226 " }\n"
2227 " }\n"
2228 "\\&\n"
2229 " /* Request result. */\n"
2230 "\\&\n"
2231 " strcpy(buffer, \"END\");\n"
2232 " w = write(data_socket, buffer, strlen(buffer) + 1);\n"
2233 " if (w == -1) {\n"
2234 " perror(\"write\");\n"
2235 " exit(EXIT_FAILURE);\n"
2236 " }\n"
2237 "\\&\n"
2238 " /* Receive result. */\n"
2239 "\\&\n"
2240 " r = read(data_socket, buffer, sizeof(buffer));\n"
2241 " if (r == -1) {\n"
2242 " perror(\"read\");\n"
2243 " exit(EXIT_FAILURE);\n"
2244 " }\n"
2245 "\\&\n"
2246 " /* Ensure buffer is 0-terminated. */\n"
2247 "\\&\n"
2248 " buffer[sizeof(buffer) - 1] = 0;\n"
2249 "\\&\n"
2250 " printf(\"Result = %s\\[rs]n\", buffer);\n"
2251 "\\&\n"
2252 " /* Close socket. */\n"
2253 "\\&\n"
2254 " close(data_socket);\n"
2255 "\\&\n"
2256 " exit(EXIT_SUCCESS);\n"
2257 "}\n"
2258 msgstr ""
2259
2260 #. type: TH
2261 #: fedora-44 fedora-rawhide
2262 #, no-wrap
2263 msgid "Linux man-pages 6.13"
2264 msgstr "Páginas de Manual de Linux 6.13"
2265
2266 #. type: TH
2267 #: mageia-cauldron
2268 #, no-wrap
2269 msgid "Linux man-pages 6.17"
2270 msgstr "Páginas de Manual de Linux 6.17"
2271
2272 #. type: TH
2273 #: opensuse-leap-16-1 opensuse-tumbleweed
2274 #, no-wrap
2275 msgid "Linux man-pages (unreleased)"
2276 msgstr "Páginas de Manual de Linux (no publicadas)"