| 1 |
# Arabic translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# زايد السعيدي <[email protected]>, 2026. |
| 5 |
msgid "" |
| 6 |
msgstr "" |
| 7 |
"Project-Id-Version: manpages-l10n 4.30.1\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:50+0200\n" |
| 9 |
"PO-Revision-Date: 2026-05-12 18:47+0400\n" |
| 10 |
"Last-Translator: Zayed Al-Saidi <[email protected]>\n" |
| 11 |
"Language-Team: Arabic <[email protected]>\n" |
| 12 |
"Language: ar\n" |
| 13 |
"MIME-Version: 1.0\n" |
| 14 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 15 |
"Content-Transfer-Encoding: 8bit\n" |
| 16 |
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " |
| 17 |
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 18 |
"X-Generator: Lokalize 23.08.5\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 فبراير 2026" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable |
| 36 |
#, no-wrap |
| 37 |
msgid "Linux man-pages 6.18" |
| 38 |
msgstr "صفحات دليل لينكس 6.18" |
| 39 |
|
| 40 |
#. type: SH |
| 41 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 42 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "NAME" |
| 45 |
msgstr "الاسم" |
| 46 |
|
| 47 |
#. type: Plain text |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
msgid "unix - sockets for local interprocess communication" |
| 51 |
msgstr "unix - مقابس للتواصل بين العمليات محلياً" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "SYNOPSIS" |
| 58 |
msgstr "موجز" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 62 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
#, no-wrap |
| 64 |
msgid "" |
| 65 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 66 |
"B<#include E<lt>sys/un.hE<gt>>\n" |
| 67 |
msgstr "" |
| 68 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 69 |
"B<#include E<lt>sys/un.hE<gt>>\n" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "" |
| 76 |
"I<unix_socket>B< = socket(AF_UNIX, type, 0);>\n" |
| 77 |
"I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>\n" |
| 78 |
msgstr "" |
| 79 |
"I<unix_socket>B< = socket(AF_UNIX, type, 0);>\n" |
| 80 |
"I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>\n" |
| 81 |
|
| 82 |
#. type: SH |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "DESCRIPTION" |
| 87 |
msgstr "الوصف" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
msgid "" |
| 93 |
"The B<AF_UNIX> (also known as B<AF_LOCAL>) socket family is used to " |
| 94 |
"communicate between processes on the same machine efficiently. " |
| 95 |
"Traditionally, UNIX domain sockets can be either unnamed, or bound to a " |
| 96 |
"filesystem pathname (marked as being of type socket). Linux also supports " |
| 97 |
"an abstract namespace which is independent of the filesystem." |
| 98 |
msgstr "" |
| 99 |
"عائلة المقبس B<AF_UNIX> (المعروفة أيضًا باسم B<AF_LOCAL>) تُستخدم للتواصل بين " |
| 100 |
"العمليات على نفس الجهاز بكفاءة. تقليدياً، يمكن أن تكون مقابس نطاق UNIX إما " |
| 101 |
"غير مسماة أو مرتبطة بمسار اسم ملف (مُعلّم كنوع مقبس). يدعم Linux أيضًا مساحة " |
| 102 |
"اسم مجردة مستقلة عن نظام الملفات." |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
msgid "" |
| 108 |
"Valid socket types in the UNIX domain are: B<SOCK_STREAM>, for a stream-" |
| 109 |
"oriented socket; B<SOCK_DGRAM>, for a datagram-oriented socket that " |
| 110 |
"preserves message boundaries (as on most UNIX implementations, UNIX domain " |
| 111 |
"datagram sockets are always reliable and don't reorder datagrams); and " |
| 112 |
"(since Linux 2.6.4) B<SOCK_SEQPACKET>, for a sequenced-packet socket that " |
| 113 |
"is connection-oriented, preserves message boundaries, and delivers messages " |
| 114 |
"in the order that they were sent." |
| 115 |
msgstr "" |
| 116 |
"أنواع المقابس الصالحة في نطاق UNIX هي: B<SOCK_STREAM>، لمقبس موجه للتيار؛ " |
| 117 |
"B<SOCK_DGRAM>، لمقبس موجه للبيانات يحافظ على حدود الرسائل (كما في معظم " |
| 118 |
"تطبيقات UNIX، مقابس بيانات نطاق UNIX موثوقة دائماً ولا تعيد ترتيب البيانات)؛ " |
| 119 |
"و (منذ Linux 2.6.4) B<SOCK_SEQPACKET>، لمقبس حزم متسلسل موجه للاتصال، يحافظ " |
| 120 |
"على حدود الرسائل، ويُسلم الرسائل بالترتيب الذي أُرسلت به." |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
msgid "" |
| 126 |
"UNIX domain sockets support passing file descriptors or process credentials " |
| 127 |
"to other processes using ancillary data." |
| 128 |
msgstr "" |
| 129 |
"تدعم مقابس نطاق UNIX تمرير واصفات الملفات أو بيانات اعتماد العملية إلى " |
| 130 |
"عمليات أخرى باستخدام البيانات المساعدة." |
| 131 |
|
| 132 |
#. type: SS |
| 133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 134 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 135 |
#, no-wrap |
| 136 |
msgid "Address format" |
| 137 |
msgstr "تنسيق العنوان" |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
msgid "A UNIX domain socket address is represented in the following structure:" |
| 143 |
msgstr "يُمثل عنوان مقبس نطاق UNIX في الهيكل التالي:" |
| 144 |
|
| 145 |
#. #define UNIX_PATH_MAX 108 |
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
#, no-wrap |
| 150 |
msgid "" |
| 151 |
"struct sockaddr_un {\n" |
| 152 |
" sa_family_t sun_family; /* AF_UNIX */\n" |
| 153 |
" char sun_path[108]; /* Pathname */\n" |
| 154 |
"};\n" |
| 155 |
msgstr "" |
| 156 |
"struct sockaddr_un {\n" |
| 157 |
" sa_family_t sun_family; /* AF_UNIX */\n" |
| 158 |
" char sun_path[108]; /* Pathname */\n" |
| 159 |
"};\n" |
| 160 |
|
| 161 |
#. type: Plain text |
| 162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 164 |
msgid "" |
| 165 |
"The I<sun_family> field always contains B<AF_UNIX>. On Linux, I<sun_path> " |
| 166 |
"is 108 bytes in size; see also BUGS, below." |
| 167 |
msgstr "" |
| 168 |
"حقل I<sun_family> يحتوي دائماً على B<AF_UNIX>. في Linux، حجم I<sun_path> هو " |
| 169 |
"108 بايت؛ انظر أيضًا BUGS، أدناه." |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"Various system calls (for example, B<bind>(2), B<connect>(2), and " |
| 176 |
"B<sendto>(2)) take a I<sockaddr_un> argument as input. Some other system " |
| 177 |
"calls (for example, B<getsockname>(2), B<getpeername>(2), B<recvfrom>(2), " |
| 178 |
"and B<accept>(2)) return an argument of this type." |
| 179 |
msgstr "" |
| 180 |
"تأخذ استدعاءات نظام متنوعة (مثل B<bind>(2)، B<connect>(2)، و B<sendto>(2)) " |
| 181 |
"وسيط I<sockaddr_un> كمدخل. تُرجع بعض استدعاءات النظام الأخرى (مثل " |
| 182 |
"B<getsockname>(2)، B<getpeername>(2)، B<recvfrom>(2)، و B<accept>(2)) وسيطاً " |
| 183 |
"من هذا النوع." |
| 184 |
|
| 185 |
#. type: Plain text |
| 186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 188 |
msgid "" |
| 189 |
"Three types of address are distinguished in the I<sockaddr_un> structure:" |
| 190 |
msgstr "يُميز ثلاثة أنواع من العناوين في هيكل I<sockaddr_un>:" |
| 191 |
|
| 192 |
#. type: TP |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
#, no-wrap |
| 196 |
msgid "pathname" |
| 197 |
msgstr "pathname" |
| 198 |
|
| 199 |
#. type: Plain text |
| 200 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 201 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 202 |
msgid "" |
| 203 |
"a UNIX domain socket can be bound to a null-terminated filesystem pathname " |
| 204 |
"using B<bind>(2). When the address of a pathname socket is returned (by one " |
| 205 |
"of the system calls noted above), its length is" |
| 206 |
msgstr "" |
| 207 |
"يمكن ربط مقبس نطاق UNIX بمسار اسم ملف منتهي بقيمة فارغة باستخدام B<bind>(2). " |
| 208 |
"عندما يُعاد عنوان مقبس مسار اسم (بواسطة أحد استدعاءات النظام المذكورة أعلاه)، " |
| 209 |
"يكون طوله" |
| 210 |
|
| 211 |
#. type: Plain text |
| 212 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 213 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 214 |
#, no-wrap |
| 215 |
msgid "offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n" |
| 216 |
msgstr "offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n" |
| 217 |
|
| 218 |
#. type: Plain text |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
msgid "" |
| 222 |
"and I<sun_path> contains the null-terminated pathname. (On Linux, the above " |
| 223 |
"B<offsetof>() expression equates to the same value as " |
| 224 |
"I<sizeof(sa_family_t)>, but some other implementations include other fields " |
| 225 |
"before I<sun_path>, so the B<offsetof>() expression more portably describes " |
| 226 |
"the size of the address structure.)" |
| 227 |
msgstr "" |
| 228 |
"و I<sun_path> يحتوي على مسار الاسم المنتهي بقيمة فارغة. (في Linux، تعبير " |
| 229 |
"B<offsetof>() أعلاه يساوي نفس قيمة I<sizeof(sa_family_t)>، لكن بعض التطبيقات " |
| 230 |
"الأخرى تتضمن حقولاً أخرى قبل I<sun_path>، لذا فإن تعبير B<offsetof>() يصف حجم " |
| 231 |
"هيكل العنوان بشكل أكثر قابلية للنقل.)" |
| 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 "unnamed" |
| 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 |
"مقبس تيار لم يُربط بمسار اسم باستخدام B<bind>(2) ليس له اسم. بالمثل، المقبسان " |
| 258 |
"اللذان يُنشآن بواسطة B<socketpair>(2) غير مسميين. عندما يُعاد عنوان مقبس غير " |
| 259 |
"مسمى، يكون طوله I<sizeof(sa_family_t)>، ولا يجب فحص I<sun_path>." |
| 260 |
|
| 261 |
#. type: TP |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
#, no-wrap |
| 265 |
msgid "abstract" |
| 266 |
msgstr "abstract" |
| 267 |
|
| 268 |
#. type: Plain text |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
msgid "" |
| 272 |
"an abstract socket address is distinguished (from a pathname socket) by the " |
| 273 |
"fact that I<sun_path[0]> is a null byte (\\[aq]\\[rs]0\\[aq]). The socket's " |
| 274 |
"address in this namespace is given by the additional bytes in I<sun_path> " |
| 275 |
"that are covered by the specified length of the address structure. (Null " |
| 276 |
"bytes in the name have no special significance.) The name has no connection " |
| 277 |
"with filesystem pathnames. When the address of an abstract socket is " |
| 278 |
"returned, the returned I<addrlen> is greater than I<sizeof(sa_family_t)> (i." |
| 279 |
"e., greater than 2), and the name of the socket is contained in the first " |
| 280 |
"I<(addrlen - sizeof(sa_family_t))> bytes of I<sun_path>." |
| 281 |
msgstr "" |
| 282 |
"يُميز عنوان مقبس مجرد (عن مقبس مسار اسم) بحقيقة أن I<sun_path[0]> هو بايت " |
| 283 |
"فارغ (\\[aq]\\[rs]0\\[aq]). عنوان المقبس في هذه المساحة الاسمية يُعطى " |
| 284 |
"بالبايتات الإضافية في I<sun_path> التي تُغطى بالطول المحدد لهيكل العنوان. " |
| 285 |
"(البايتات الفارغة في الاسم ليس لها دلالة خاصة.) الاسم ليس له اتصال بمسارات " |
| 286 |
"أسماء الملفات. عندما يُعاد عنوان مقبس مجرد، يكون I<addrlen> المُعاد أكبر من " |
| 287 |
"I<sizeof(sa_family_t)> (أي أكبر من 2)، واسم المقبس موجود في أول I<(addrlen - " |
| 288 |
"sizeof(sa_family_t))> بايت من I<sun_path>." |
| 289 |
|
| 290 |
#. type: SS |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
#, no-wrap |
| 294 |
msgid "Pathname sockets" |
| 295 |
msgstr "مقابس مسار الاسم" |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
msgid "" |
| 301 |
"When binding a socket to a pathname, a few rules should be observed for " |
| 302 |
"maximum portability and ease of coding:" |
| 303 |
msgstr "" |
| 304 |
"عند ربط مقبس بمسار اسم، يجب مراعاة بعض القواعد لتحقيق أقصى قابلية للنقل " |
| 305 |
"وسهولة البرمجة:" |
| 306 |
|
| 307 |
#. type: IP |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
#, no-wrap |
| 311 |
msgid "\\[bu]" |
| 312 |
msgstr "\\[bu]" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
msgid "The pathname in I<sun_path> should be null-terminated." |
| 318 |
msgstr "مسار الاسم في I<sun_path> يجب أن يكون منتهياً بقيمة فارغة." |
| 319 |
|
| 320 |
#. type: Plain text |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
msgid "" |
| 324 |
"The length of the pathname, including the terminating null byte, should not " |
| 325 |
"exceed the size of I<sun_path>." |
| 326 |
msgstr "" |
| 327 |
"طول مسار الاسم، بما في ذلك البايت الفارغ الختامي، يجب ألا يتجاوز حجم " |
| 328 |
"I<sun_path>." |
| 329 |
|
| 330 |
#. type: Plain text |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
msgid "" |
| 334 |
"The I<addrlen> argument that describes the enclosing I<sockaddr_un> " |
| 335 |
"structure should have a value of at least:" |
| 336 |
msgstr "" |
| 337 |
"وسيط I<addrlen> الذي يصف هيكل I<sockaddr_un> المحيط يجب أن يكون له قيمة على " |
| 338 |
"الأقل:" |
| 339 |
|
| 340 |
#. type: Plain text |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
#, no-wrap |
| 344 |
msgid "offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n" |
| 345 |
msgstr "offsetof(struct sockaddr_un, sun_path)+strlen(addr.sun_path)+1\n" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
msgid "" |
| 351 |
"or, more simply, I<addrlen> can be specified as I<sizeof(struct " |
| 352 |
"sockaddr_un)>." |
| 353 |
msgstr "أو، بشكل أبسط، يمكن تحديد I<addrlen> كـ I<sizeof(struct sockaddr_un)>." |
| 354 |
|
| 355 |
#. Linux does this, including for the case where the supplied path |
| 356 |
#. is 108 bytes |
| 357 |
#. type: Plain text |
| 358 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 359 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 360 |
msgid "" |
| 361 |
"There is some variation in how implementations handle UNIX domain socket " |
| 362 |
"addresses that do not follow the above rules. For example, some (but not " |
| 363 |
"all) implementations append a null terminator if none is present in the " |
| 364 |
"supplied I<sun_path>." |
| 365 |
msgstr "" |
| 366 |
"هناك بعض الاختلاف في كيفية معالجة التطبيقات لعناوين مقابس نطاق UNIX التي لا " |
| 367 |
"تتبع القواعد أعلاه. على سبيل المثال، بعض التطبيقات (وليس كلها) تُلحق فاصلاً " |
| 368 |
"فارغاً إذا لم يكن موجوداً في I<sun_path> المُقدم." |
| 369 |
|
| 370 |
#. HP-UX |
| 371 |
#. Modern BSDs generally have 104, Tru64 and AIX have 104, |
| 372 |
#. Solaris and Irix have 108 |
| 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 |
"When coding portable applications, keep in mind that some implementations " |
| 378 |
"have I<sun_path> as short as 92 bytes." |
| 379 |
msgstr "" |
| 380 |
"عند برمجة تطبيقات قابلة للنقل، ضع في اعتبارك أن بعض التطبيقات لديها " |
| 381 |
"I<sun_path> بطول 92 بايت فقط." |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
msgid "" |
| 387 |
"Various system calls (B<accept>(2), B<recvfrom>(2), B<getsockname>(2), " |
| 388 |
"B<getpeername>(2)) return socket address structures. When applied to UNIX " |
| 389 |
"domain sockets, the value-result I<addrlen> argument supplied to the call " |
| 390 |
"should be initialized as above. Upon return, the argument is set to " |
| 391 |
"indicate the I<actual> size of the address structure. The caller should " |
| 392 |
"check the value returned in this argument: if the output value exceeds the " |
| 393 |
"input value, then there is no guarantee that a null terminator is present in " |
| 394 |
"I<sun_path>. (See BUGS.)" |
| 395 |
msgstr "" |
| 396 |
"تُرجع استدعاءات نظام متنوعة (B<accept>(2)، B<recvfrom>(2)، B<getsockname>(2)، " |
| 397 |
"B<getpeername>(2)) هياكل عنوان مقبس. عند تطبيقها على مقابس نطاق UNIX، يجب " |
| 398 |
"تهيئة وسيط I<addrlen> ذو القيمة-النتيجة المُقدم للاستدعاء كما هو مذكور أعلاه. " |
| 399 |
"عند العودة، يُضبط الوسيط للإشارة إلى I<الحجم الفعلي> لهيكل العنوان. يجب على " |
| 400 |
"المستدعي التحقق من القيمة المُعادة في هذا الوسيط: إذا تجاوزت قيمة الإخراج " |
| 401 |
"قيمة الإدخال، فلا يوجد ضمان بوجود فاصل فارغ في I<sun_path>. (انظر BUGS.)" |
| 402 |
|
| 403 |
#. type: SS |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
#, no-wrap |
| 407 |
msgid "Pathname socket ownership and permissions" |
| 408 |
msgstr "ملكية وصلات أسماء المسارات وأذوناتها" |
| 409 |
|
| 410 |
#. type: Plain text |
| 411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
msgid "" |
| 414 |
"In the Linux implementation, pathname sockets honor the permissions of the " |
| 415 |
"directory they are in. Creation of a new socket fails if the process does " |
| 416 |
"not have write and search (execute) permission on the directory in which the " |
| 417 |
"socket is created." |
| 418 |
msgstr "" |
| 419 |
"في تطبيق لينكس، تلتزم وصلات أسماء المسارات بأذونات الدليل الذي توجد فيه. " |
| 420 |
"يفشل إنشاء وصلة جديدة إذا لم تمتلك العملية إذن الكتابة والبحث (التنفيذ) على " |
| 421 |
"الدليل الذي تُنشأ فيه الوصلة." |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
msgid "" |
| 427 |
"On Linux, connecting to a stream socket object requires write permission on " |
| 428 |
"that socket; sending a datagram to a datagram socket likewise requires write " |
| 429 |
"permission on that socket. POSIX does not make any statement about the " |
| 430 |
"effect of the permissions on a socket file, and on some systems (e.g., older " |
| 431 |
"BSDs), the socket permissions are ignored. Portable programs should not " |
| 432 |
"rely on this feature for security." |
| 433 |
msgstr "" |
| 434 |
"في لينكس، يتطلب الاتصال بكائن وصلة دفق إذن كتابة على تلك الوصلة؛ إرسال مخطط " |
| 435 |
"بيانات إلى وصلة مخطط بيانات يتطلب بالمثل إذن كتابة على تلك الوصلة. لا يُدلي " |
| 436 |
"POSIX بأي بيان حول تأثير الأذونات على ملف وصلة، وفي بعض الأنظمة (مثل أنظمة " |
| 437 |
"BSD القديمة)، تُتجاهل أذونات الوصلة. لا ينبغي للبرامج المحمولة الاعتماد على " |
| 438 |
"هذه الميزة للأمان." |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "" |
| 444 |
"When creating a new socket, the owner and group of the socket file are set " |
| 445 |
"according to the usual rules. The socket file has all permissions enabled, " |
| 446 |
"other than those that are turned off by the process B<umask>(2)." |
| 447 |
msgstr "" |
| 448 |
"عند إنشاء وصلة جديدة، يُعيّن المالك والمجموعة لملف الوصلة وفقًا للقواعد " |
| 449 |
"المعتادة. يمتلك ملف الوصلة جميع الأذونات المُمكّنة، باستثناء تلك التي تُعطّل " |
| 450 |
"بواسطة B<umask>(2) للعملية." |
| 451 |
|
| 452 |
#. However, fchown() and fchmod() do not seem to have an effect |
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 455 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 456 |
msgid "" |
| 457 |
"The owner, group, and permissions of a pathname socket can be changed (using " |
| 458 |
"B<chown>(2) and B<chmod>(2))." |
| 459 |
msgstr "" |
| 460 |
"يمكن تغيير المالك والمجموعة وأذونات وصلة اسم المسار (باستخدام B<chown>(2) " |
| 461 |
"وB<chmod>(2))." |
| 462 |
|
| 463 |
#. type: SS |
| 464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 465 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 466 |
#, no-wrap |
| 467 |
msgid "Abstract sockets" |
| 468 |
msgstr "الوصلات المجردة" |
| 469 |
|
| 470 |
#. type: Plain text |
| 471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 473 |
msgid "" |
| 474 |
"Socket permissions have no meaning for abstract sockets: the process " |
| 475 |
"B<umask>(2) has no effect when binding an abstract socket, and changing the " |
| 476 |
"ownership and permissions of the object (via B<fchown>(2) and " |
| 477 |
"B<fchmod>(2)) has no effect on the accessibility of the socket." |
| 478 |
msgstr "" |
| 479 |
"لا معنى لأذونات الوصلة للوصلات المجردة: ليس لـ B<umask>(2) للعملية أي تأثير " |
| 480 |
"عند ربط وصلة مجردة، وتغيير ملكية وأذونات الكائن (عبر B<fchown>(2) " |
| 481 |
"وB<fchmod>(2)) ليس له أي تأثير على إمكانية الوصول إلى الوصلة." |
| 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 |
msgid "" |
| 487 |
"Abstract sockets automatically disappear when all open references to the " |
| 488 |
"socket are closed." |
| 489 |
msgstr "تختفي الوصلات المجردة آليًا عند إغلاق جميع المراجع المفتوحة للوصلة." |
| 490 |
|
| 491 |
#. type: Plain text |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
msgid "The abstract socket namespace is a nonportable Linux extension." |
| 495 |
msgstr "مساحة أسماء الوصلة المجردة هي امتداد لينكس غير محمول." |
| 496 |
|
| 497 |
#. type: SS |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
#, no-wrap |
| 501 |
msgid "Socket options" |
| 502 |
msgstr "خيارات المقبس" |
| 503 |
|
| 504 |
#. type: Plain text |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
msgid "" |
| 508 |
"For historical reasons, these socket options are specified with a " |
| 509 |
"B<SOL_SOCKET> type even though they are B<AF_UNIX> specific. They can be " |
| 510 |
"set with B<setsockopt>(2) and read with B<getsockopt>(2) by specifying " |
| 511 |
"B<SOL_SOCKET> as the socket family." |
| 512 |
msgstr "" |
| 513 |
"لأسباب تاريخية، تُحدد خيارات الوصلة هذه بنوع B<SOL_SOCKET> على الرغم من أنها " |
| 514 |
"خاصة بـ B<AF_UNIX>. يمكن تعيينها باستخدام B<setsockopt>(2) وقراءتها باستخدام " |
| 515 |
"B<getsockopt>(2) بتحديد B<SOL_SOCKET> كعائلة الوصلة." |
| 516 |
|
| 517 |
#. type: TP |
| 518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 520 |
#, no-wrap |
| 521 |
msgid "B<SO_PASSCRED>" |
| 522 |
msgstr "B<SO_PASSCRED>" |
| 523 |
|
| 524 |
#. type: Plain text |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
msgid "" |
| 528 |
"Enabling this socket option causes receipt of the credentials of the sending " |
| 529 |
"process in an B<SCM_CREDENTIALS ancillary> message in each subsequently " |
| 530 |
"received message. The returned credentials are those specified by the " |
| 531 |
"sender using B<SCM_CREDENTIALS>, or a default that includes the sender's " |
| 532 |
"PID, real user ID, and real group ID, if the sender did not specify " |
| 533 |
"B<SCM_CREDENTIALS> ancillary data." |
| 534 |
msgstr "" |
| 535 |
"يؤدي تمكين خيار الوصلة هذا إلى استلام بيانات اعتماد العملية المرسلة في رسالة " |
| 536 |
"B<SCM_CREDENTIALS التابعة> في كل رسالة تُستلم لاحقًا. بيانات الاعتماد المُعادة " |
| 537 |
"هي تلك التي حددها المرسل باستخدام B<SCM_CREDENTIALS>، أو مبدئي يتضمن معرف " |
| 538 |
"العملية ومعرف المستخدم الحقيقي ومعرف المجموعة الحقيقي للمرسل، إذا لم يحدد " |
| 539 |
"المرسل بيانات B<SCM_CREDENTIALS> التابعة." |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 543 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 544 |
msgid "" |
| 545 |
"When this option is set and the socket is not yet connected, a unique name " |
| 546 |
"in the abstract namespace will be generated automatically." |
| 547 |
msgstr "" |
| 548 |
"عند تعيين هذا الخيار ولم تكن الوصلة متصلة بعد، يُنشأ اسم فريد في مساحة " |
| 549 |
"الأسماء المجردة آليًا." |
| 550 |
|
| 551 |
#. type: Plain text |
| 552 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 553 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 554 |
msgid "" |
| 555 |
"The value given as an argument to B<setsockopt>(2) and returned as the " |
| 556 |
"result of B<getsockopt>(2) is an integer boolean flag." |
| 557 |
msgstr "" |
| 558 |
"القيمة المعطاة كمعامل لـ B<setsockopt>(2) والراجعة كنتيجة لـ " |
| 559 |
"B<getsockopt>(2) هي علامة منطقية صحيحة." |
| 560 |
|
| 561 |
#. type: TP |
| 562 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 563 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 564 |
#, no-wrap |
| 565 |
msgid "B<SO_PASSSEC>" |
| 566 |
msgstr "B<SO_PASSSEC>" |
| 567 |
|
| 568 |
#. type: Plain text |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
msgid "" |
| 572 |
"Enables receiving of the SELinux security label of the peer socket in an " |
| 573 |
"ancillary message of type B<SCM_SECURITY> (see below)." |
| 574 |
msgstr "" |
| 575 |
"يُمكّن استلام تسمية أمان SELinux لوصلة النظير في رسالة تابعة من النوع " |
| 576 |
"B<SCM_SECURITY> (انظر أدناه)." |
| 577 |
|
| 578 |
#. commit 877ce7c1b3afd69a9b1caeb1b9964c992641f52a |
| 579 |
#. commit 37a9a8df8ce9de6ea73349c9ac8bdf6ba4ec4f70 |
| 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 B<SO_PASSSEC> option is supported for UNIX domain datagram sockets since " |
| 585 |
"Linux 2.6.18; support for UNIX domain stream sockets was added in Linux 4.2." |
| 586 |
msgstr "" |
| 587 |
"خيار B<SO_PASSSEC> مدعوم لوصلات مخطط بيانات نطاق يونكس منذ لينكس 2.6.18؛ " |
| 588 |
"أُضيف الدعم لوصلات دفق نطاق يونكس في لينكس 4.2." |
| 589 |
|
| 590 |
#. type: TP |
| 591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 592 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 593 |
#, no-wrap |
| 594 |
msgid "B<SO_PEEK_OFF>" |
| 595 |
msgstr "B<SO_PEEK_OFF>" |
| 596 |
|
| 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 "See B<socket>(7)." |
| 601 |
msgstr "انظر B<socket>(7)." |
| 602 |
|
| 603 |
#. type: TP |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
#, no-wrap |
| 607 |
msgid "B<SO_PEERCRED>" |
| 608 |
msgstr "B<SO_PEERCRED>" |
| 609 |
|
| 610 |
#. type: Plain text |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
msgid "" |
| 614 |
"This read-only socket option returns the credentials of the peer process " |
| 615 |
"connected to this socket. The returned credentials are those that were in " |
| 616 |
"effect at the time of the call to B<connect>(2), B<listen>(2), or " |
| 617 |
"B<socketpair>(2)." |
| 618 |
msgstr "" |
| 619 |
"خيار الوصلة القابل للقراءة فقط هذا يُرجع بيانات اعتماد عملية النظير المتصلة " |
| 620 |
"بهذه الوصلة. بيانات الاعتماد المُعادة هي تلك التي كانت سارية المفعول في وقت " |
| 621 |
"استدعاء B<connect>(2) أو B<listen>(2) أو B<socketpair>(2)." |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 625 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 626 |
msgid "" |
| 627 |
"The argument to B<getsockopt>(2) is a pointer to a I<ucred> structure; " |
| 628 |
"define the B<_GNU_SOURCE> feature test macro to obtain the definition of " |
| 629 |
"that structure from I<E<lt>sys/socket.hE<gt>>." |
| 630 |
msgstr "" |
| 631 |
"الوسيط لـ B<getsockopt>(2) هو مؤشر لبنية I<ucred>؛ عرّف ماكرو اختبار الميزة " |
| 632 |
"B<_GNU_SOURCE> للحصول على تعريف تلك البنية من I<E<lt>sys/socket.hE<gt>>." |
| 633 |
|
| 634 |
#. type: Plain text |
| 635 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 636 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 637 |
msgid "" |
| 638 |
"The use of this option is possible only for connected B<AF_UNIX> stream " |
| 639 |
"sockets and for B<AF_UNIX> stream and datagram socket pairs created using " |
| 640 |
"B<socketpair>(2)." |
| 641 |
msgstr "" |
| 642 |
"استخدام هذا الخيار ممكن فقط لوصلات دفق B<AF_UNIX> المتصلة ولأزواج وصلات دفق " |
| 643 |
"ومخطط بيانات B<AF_UNIX> المُنشأة باستخدام B<socketpair>(2)." |
| 644 |
|
| 645 |
#. type: SS |
| 646 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 647 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 648 |
#, no-wrap |
| 649 |
msgid "Autobind feature" |
| 650 |
msgstr "ميزة الربط الآلي" |
| 651 |
|
| 652 |
#. i.e., sizeof(short) |
| 653 |
#. type: Plain text |
| 654 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 655 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 656 |
msgid "" |
| 657 |
"If a B<bind>(2) call specifies I<addrlen> as I<sizeof(sa_family_t)>, or the " |
| 658 |
"B<SO_PASSCRED> socket option was specified for a socket that was not " |
| 659 |
"explicitly bound to an address, then the socket is autobound to an abstract " |
| 660 |
"address. The address consists of a null byte followed by 5 bytes in the " |
| 661 |
"character set I<[0-9a-f]>. Thus, there is a limit of 2\\[ha]20 autobind " |
| 662 |
"addresses. (From Linux 2.1.15, when the autobind feature was added, 8 bytes " |
| 663 |
"were used, and the limit was thus 2\\[ha]32 autobind addresses. The change " |
| 664 |
"to 5 bytes came in Linux 2.3.15.)" |
| 665 |
msgstr "" |
| 666 |
"إذا حدد استدعاء B<bind>(2) I<addrlen> كـ I<sizeof(sa_family_t)>، أو تم تحديد " |
| 667 |
"خيار الوصلة B<SO_PASSCRED> لوصلة لم تُربط صراحة بعنوان، فتُربط الوصلة آليًا " |
| 668 |
"بعنوان مجرد. يتكون العنوان من بايت فارغ متبوع بـ 5 بايتات في مجموعة الأحرف " |
| 669 |
"I<[0-9a-f]>. وبالتالي، هناك حد يبلغ 2\\[ha]20 عنوان ربط آلي. (من لينكس " |
| 670 |
"2.1.15، عند إضافة ميزة الربط الآلي، استُخدمت 8 بايتات، وبالتالي كان الحد " |
| 671 |
"2\\[ha]32 عنوان ربط آلي. جاء التغيير إلى 5 بايتات في لينكس 2.3.15.)" |
| 672 |
|
| 673 |
#. type: SS |
| 674 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 675 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 676 |
#, no-wrap |
| 677 |
msgid "Sockets API" |
| 678 |
msgstr "واجهة برمجة تطبيقات المقابس (Sockets API)" |
| 679 |
|
| 680 |
#. type: Plain text |
| 681 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 682 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 683 |
msgid "" |
| 684 |
"The following paragraphs describe domain-specific details and unsupported " |
| 685 |
"features of the sockets API for UNIX domain sockets on Linux." |
| 686 |
msgstr "" |
| 687 |
"تصف الفقرات التالية تفاصيل خاصة بالنطاق وميزات غير مدعومة لواجهة برمجة " |
| 688 |
"تطبيقات الوصلات لوصلات نطاق يونكس في لينكس." |
| 689 |
|
| 690 |
#. type: Plain text |
| 691 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 692 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 693 |
msgid "" |
| 694 |
"UNIX domain sockets do not support the transmission of out-of-band data (the " |
| 695 |
"B<MSG_OOB> flag for B<send>(2) and B<recv>(2))." |
| 696 |
msgstr "" |
| 697 |
"لا تدعم وصلات نطاق يونكس إرسال البيانات خارج النطاق (علامة B<MSG_OOB> لـ " |
| 698 |
"B<send>(2) وB<recv>(2))." |
| 699 |
|
| 700 |
#. type: Plain text |
| 701 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 702 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 703 |
msgid "" |
| 704 |
"The B<send>(2) B<MSG_MORE> flag is not supported by UNIX domain sockets." |
| 705 |
msgstr "علامة B<MSG_MORE> لـ B<send>(2) غير مدعومة بواسطة وصلات نطاق يونكس." |
| 706 |
|
| 707 |
#. commit 9f6f9af7694ede6314bed281eec74d588ba9474f |
| 708 |
#. type: Plain text |
| 709 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 710 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 711 |
msgid "" |
| 712 |
"Before Linux 3.4, the use of B<MSG_TRUNC> in the I<flags> argument of " |
| 713 |
"B<recv>(2) was not supported by UNIX domain sockets." |
| 714 |
msgstr "" |
| 715 |
"قبل لينكس 3.4، لم يكن استخدام B<MSG_TRUNC> في وسيط I<flags> لـ B<recv>(2) " |
| 716 |
"مدعومًا بواسطة وصلات نطاق يونكس." |
| 717 |
|
| 718 |
#. type: Plain text |
| 719 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 720 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 721 |
msgid "" |
| 722 |
"The B<SO_SNDBUF> socket option does have an effect for UNIX domain sockets, " |
| 723 |
"but the B<SO_RCVBUF> option does not. For datagram sockets, the " |
| 724 |
"B<SO_SNDBUF> value imposes an upper limit on the size of outgoing " |
| 725 |
"datagrams. This limit is calculated as the doubled (see B<socket>(7)) " |
| 726 |
"option value less 32 bytes used for overhead." |
| 727 |
msgstr "" |
| 728 |
"خيار الوصلة B<SO_SNDBUF> له تأثير على وصلات نطاق يونكس، لكن خيار " |
| 729 |
"B<SO_RCVBUF> ليس له تأثير. لوصلات مخطط البيانات، تفرض قيمة B<SO_SNDBUF> حدًا " |
| 730 |
"أعلى على حجم مخططات البيانات الصادرة. يُحسب هذا الحد كقيمة الخيار المضاعفة " |
| 731 |
"(انظر B<socket>(7)) ناقص 32 بايتًا مستخدمة للنفقات العامة." |
| 732 |
|
| 733 |
#. type: SS |
| 734 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 735 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 736 |
#, no-wrap |
| 737 |
msgid "Ancillary messages" |
| 738 |
msgstr "رسائل مساعدة" |
| 739 |
|
| 740 |
#. type: Plain text |
| 741 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 742 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 743 |
msgid "" |
| 744 |
"Ancillary data is sent and received using B<sendmsg>(2) and B<recvmsg>(2). " |
| 745 |
"For historical reasons, the ancillary message types listed below are " |
| 746 |
"specified with a B<SOL_SOCKET> type even though they are B<AF_UNIX> " |
| 747 |
"specific. To send them, set the I<cmsg_level> field of the struct " |
| 748 |
"I<cmsghdr> to B<SOL_SOCKET> and the I<cmsg_type> field to the type. For " |
| 749 |
"more information, see B<cmsg>(3)." |
| 750 |
msgstr "" |
| 751 |
"تُرسَل وتُستقبَل البيانات المساعدة باستخدام B<sendmsg>(2) وB<recvmsg>(2). لأسباب " |
| 752 |
"تاريخية، تُحدَّد أنواع الرسائل المساعدة المدرجة أدناه بنوع B<SOL_SOCKET> رغم " |
| 753 |
"أنها خاصة بـB<AF_UNIX>. لإرسالها، اضبط حقل I<cmsg_level> من البنية " |
| 754 |
"I<cmsghdr> على B<SOL_SOCKET> وحقل I<cmsg_type> على النوع. لمزيد من " |
| 755 |
"المعلومات، انظر B<cmsg>(3)." |
| 756 |
|
| 757 |
#. type: TP |
| 758 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 759 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 760 |
#, no-wrap |
| 761 |
msgid "B<SCM_RIGHTS>" |
| 762 |
msgstr "B<SCM_RIGHTS>" |
| 763 |
|
| 764 |
#. type: Plain text |
| 765 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 766 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 767 |
msgid "" |
| 768 |
"Send or receive a set of open file descriptors from another process. The " |
| 769 |
"data portion contains an integer array of the file descriptors." |
| 770 |
msgstr "" |
| 771 |
"أرسل أو استقبل مجموعة من واصفات الملفات المفتوحة من عملية أخرى. يحتوي جزء " |
| 772 |
"البيانات على مصفوفة أعداد صحيحة لواصفات الملفات." |
| 773 |
|
| 774 |
#. type: Plain text |
| 775 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 776 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 777 |
msgid "" |
| 778 |
"Commonly, this operation is referred to as \"passing a file descriptor\" to " |
| 779 |
"another process. However, more accurately, what is being passed is a " |
| 780 |
"reference to an open file description (see B<open>(2)), and in the receiving " |
| 781 |
"process it is likely that a different file descriptor number will be used. " |
| 782 |
"Semantically, this operation is equivalent to duplicating (B<dup>(2)) a " |
| 783 |
"file descriptor into the file descriptor table of another process." |
| 784 |
msgstr "" |
| 785 |
"يُشار إلى هذه العملية عادةً باسم \"تمرير واصف ملف\" إلى عملية أخرى. لكن، بشكل " |
| 786 |
"أكثر دقة، ما يُمرَّر هو مرجع إلى وصف ملف مفتوح (انظر B<open>(2))، ومن المحتمل " |
| 787 |
"أن يُستخدم رقم واصف ملف مختلف في العملية المستقبلة. دلاليًا، هذه العملية " |
| 788 |
"مكافئة لنسخ (B<dup>(2)) واصف ملف في جدول واصفات الملفات لعملية أخرى." |
| 789 |
|
| 790 |
#. type: Plain text |
| 791 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 792 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 793 |
msgid "" |
| 794 |
"If the buffer used to receive the ancillary data containing file descriptors " |
| 795 |
"is too small (or is absent), then the ancillary data is truncated (or " |
| 796 |
"discarded) and the excess file descriptors are automatically closed in the " |
| 797 |
"receiving process." |
| 798 |
msgstr "" |
| 799 |
"إذا كانت المخبأة المستخدمة لاستقبال البيانات المساعدة المحتوية على واصفات " |
| 800 |
"الملفات صغيرة جدًا (أو غائبة)، فتُبتَر البيانات المساعدة (أو تُهمَل) وتُغلَق واصفات " |
| 801 |
"الملفات الزائدة آليًا في العملية المستقبلة." |
| 802 |
|
| 803 |
#. type: Plain text |
| 804 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 805 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 806 |
msgid "" |
| 807 |
"If the number of file descriptors received in the ancillary data would cause " |
| 808 |
"the process to exceed its B<RLIMIT_NOFILE> resource limit (see " |
| 809 |
"B<getrlimit>(2)), the excess file descriptors are automatically closed in " |
| 810 |
"the receiving process." |
| 811 |
msgstr "" |
| 812 |
"إذا تسبب عدد واصفات الملفات المستلمة في البيانات المساعدة في تجاوز العملية " |
| 813 |
"لحد مواردها B<RLIMIT_NOFILE> (انظر B<getrlimit>(2))، فتُغلَق واصفات الملفات " |
| 814 |
"الزائدة آليًا في العملية المستقبلة." |
| 815 |
|
| 816 |
#. commit bba14de98753cb6599a2dae0e520714b2153522d |
| 817 |
#. type: Plain text |
| 818 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 819 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 820 |
msgid "" |
| 821 |
"The kernel constant B<SCM_MAX_FD> defines a limit on the number of file " |
| 822 |
"descriptors in the array. Attempting to send an array larger than this " |
| 823 |
"limit causes B<sendmsg>(2) to fail with the error B<EINVAL>. B<SCM_MAX_FD> " |
| 824 |
"has the value 253 (or 255 before Linux 2.6.38)." |
| 825 |
msgstr "" |
| 826 |
"يُعرِّف الثابت النواة B<SCM_MAX_FD> حدًا لعدد واصفات الملفات في المصفوفة. تؤدي " |
| 827 |
"محاولة إرسال مصفوفة أكبر من هذا الحد إلى فشل B<sendmsg>(2) مع الخطأ " |
| 828 |
"B<EINVAL>. قيمة B<SCM_MAX_FD> هي 253 (أو 255 قبل Linux 2.6.38)." |
| 829 |
|
| 830 |
#. type: TP |
| 831 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 832 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 833 |
#, no-wrap |
| 834 |
msgid "B<SCM_CREDENTIALS>" |
| 835 |
msgstr "B<SCM_CREDENTIALS>" |
| 836 |
|
| 837 |
#. type: Plain text |
| 838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 839 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 840 |
msgid "" |
| 841 |
"Send or receive UNIX credentials. This can be used for authentication. The " |
| 842 |
"credentials are passed as a I<struct ucred> ancillary message. This " |
| 843 |
"structure is defined in I<E<lt>sys/socket.hE<gt>> as follows:" |
| 844 |
msgstr "" |
| 845 |
"أرسل أو استقبل بيانات اعتماد UNIX. يمكن استخدام هذا للاستيثاق. تُمرَّر بيانات " |
| 846 |
"الاعتماد كرسالة مساعدة من نوع I<struct ucred>. تُعرَّف هذه البنية في I<E<lt>sys/" |
| 847 |
"socket.hE<gt>> كما يلي:" |
| 848 |
|
| 849 |
#. type: Plain text |
| 850 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 851 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 852 |
#, no-wrap |
| 853 |
msgid "" |
| 854 |
"struct ucred {\n" |
| 855 |
" pid_t pid; /* Process ID of the sending process */\n" |
| 856 |
" uid_t uid; /* User ID of the sending process */\n" |
| 857 |
" gid_t gid; /* Group ID of the sending process */\n" |
| 858 |
"};\n" |
| 859 |
msgstr "" |
| 860 |
"struct ucred {\n" |
| 861 |
" pid_t pid; /* Process ID of the sending process */\n" |
| 862 |
" uid_t uid; /* User ID of the sending process */\n" |
| 863 |
" gid_t gid; /* Group ID of the sending process */\n" |
| 864 |
"};\n" |
| 865 |
|
| 866 |
#. type: Plain text |
| 867 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 868 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 869 |
msgid "" |
| 870 |
"Since glibc 2.8, the B<_GNU_SOURCE> feature test macro must be defined " |
| 871 |
"(before including I<any> header files) in order to obtain the definition of " |
| 872 |
"this structure." |
| 873 |
msgstr "" |
| 874 |
"منذ glibc 2.8، يجب تعريف ماكرو اختبار الميزة B<_GNU_SOURCE> (قبل تضمين I<أي> " |
| 875 |
"ملفات رأس) للحصول على تعريف هذه البنية." |
| 876 |
|
| 877 |
#. type: Plain text |
| 878 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 879 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 880 |
msgid "" |
| 881 |
"The credentials which the sender specifies are checked by the kernel. A " |
| 882 |
"privileged process is allowed to specify values that do not match its own. " |
| 883 |
"The sender must specify its own process ID (unless it has the capability " |
| 884 |
"B<CAP_SYS_ADMIN>, in which case the PID of any existing process may be " |
| 885 |
"specified), its real user ID, effective user ID, or saved set-user-ID " |
| 886 |
"(unless it has B<CAP_SETUID>), and its real group ID, effective group ID, or " |
| 887 |
"saved set-group-ID (unless it has B<CAP_SETGID>)." |
| 888 |
msgstr "" |
| 889 |
"تُفحَص بيانات الاعتماد التي يُحدِّدها المرسل بواسطة النواة. يُسمح لعملية متميزة " |
| 890 |
"بتحديد قيم لا تطابق قيمها الخاصة. يجب على المرسل تحديد معرف العملية الخاص به " |
| 891 |
"(إلا إذا كان لديه القدرة B<CAP_SYS_ADMIN>، وفي هذه الحالة يمكن تحديد PID لأي " |
| 892 |
"عملية موجودة)، ومعرف المستخدم الحقيقي، أو معرف المستخدم الفعال، أو معرف " |
| 893 |
"المستخدم المحفوظ (إلا إذا كان لديه B<CAP_SETUID>)، ومعرف المجموعة الحقيقي، " |
| 894 |
"أو معرف المجموعة الفعال، أو معرف المجموعة المحفوظ (إلا إذا كان لديه " |
| 895 |
"B<CAP_SETGID>)." |
| 896 |
|
| 897 |
#. type: Plain text |
| 898 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 899 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 900 |
msgid "" |
| 901 |
"To receive a I<struct ucred> message, the B<SO_PASSCRED> option must be " |
| 902 |
"enabled on the socket." |
| 903 |
msgstr "" |
| 904 |
"لاستقبال رسالة I<struct ucred>، يجب تمكين الخيار B<SO_PASSCRED> على المقبس." |
| 905 |
|
| 906 |
#. type: TP |
| 907 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 908 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 909 |
#, no-wrap |
| 910 |
msgid "B<SCM_SECURITY>" |
| 911 |
msgstr "B<SCM_SECURITY>" |
| 912 |
|
| 913 |
#. type: Plain text |
| 914 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 915 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 916 |
msgid "" |
| 917 |
"Receive the SELinux security context (the security label) of the peer " |
| 918 |
"socket. The received ancillary data is a null-terminated string containing " |
| 919 |
"the security context. The receiver should allocate at least B<NAME_MAX> " |
| 920 |
"bytes in the data portion of the ancillary message for this data." |
| 921 |
msgstr "" |
| 922 |
"استقبل سياق أمان SELinux (وسم الأمان) لمقبس النظير. البيانات المساعدة " |
| 923 |
"المستلمة هي سلسلة منتهية بقيمة خالية تحتوي على سياق الأمان. يجب على المستقبل " |
| 924 |
"تخصيص B<NAME_MAX> بايت على الأقل في جزء البيانات من الرسالة المساعدة لهذه " |
| 925 |
"البيانات." |
| 926 |
|
| 927 |
#. type: Plain text |
| 928 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 929 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 930 |
msgid "" |
| 931 |
"To receive the security context, the B<SO_PASSSEC> option must be enabled on " |
| 932 |
"the socket (see above)." |
| 933 |
msgstr "" |
| 934 |
"لاستقبال سياق الأمان، يجب تمكين الخيار B<SO_PASSSEC> على المقبس (انظر أعلاه)." |
| 935 |
|
| 936 |
#. type: Plain text |
| 937 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 938 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 939 |
msgid "" |
| 940 |
"When sending ancillary data with B<sendmsg>(2), only one item of each of the " |
| 941 |
"above types may be included in the sent message." |
| 942 |
msgstr "" |
| 943 |
"عند إرسال بيانات مساعدة باستخدام B<sendmsg>(2)، يمكن تضمين عنصر واحد فقط من " |
| 944 |
"كل نوع من الأنواع المذكورة أعلاه في الرسالة المرسلة." |
| 945 |
|
| 946 |
#. type: Plain text |
| 947 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 948 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 949 |
msgid "" |
| 950 |
"At least one byte of real data should be sent when sending ancillary data. " |
| 951 |
"On Linux, this is required to successfully send ancillary data over a UNIX " |
| 952 |
"domain stream socket. When sending ancillary data over a UNIX domain " |
| 953 |
"datagram socket, it is not necessary on Linux to send any accompanying real " |
| 954 |
"data. However, portable applications should also include at least one byte " |
| 955 |
"of real data when sending ancillary data over a datagram socket." |
| 956 |
msgstr "" |
| 957 |
"يجب إرسال بايت واحد على الأقل من البيانات الحقيقية عند إرسال بيانات مساعدة. " |
| 958 |
"على Linux، هذا مطلوب لإرسال البيانات المساعدة بنجاح عبر مقبس دفق نطاق UNIX. " |
| 959 |
"عند إرسال بيانات مساعدة عبر مقبس مخطط بيانات نطاق UNIX، ليس من الضروري على " |
| 960 |
"Linux إرسال أي بيانات حقيقية مصاحبة. لكن، يجب على التطبيقات المحمولة تضمين " |
| 961 |
"بايت واحد على الأقل من البيانات الحقيقية عند إرسال بيانات مساعدة عبر مقبس " |
| 962 |
"مخطط بيانات." |
| 963 |
|
| 964 |
#. type: Plain text |
| 965 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 966 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 967 |
msgid "" |
| 968 |
"When receiving from a stream socket, ancillary data forms a kind of barrier " |
| 969 |
"for the received data. For example, suppose that the sender transmits as " |
| 970 |
"follows:" |
| 971 |
msgstr "" |
| 972 |
"عند الاستقبال من مقبس دفق، تشكل البيانات المساعدة نوعًا من الحاجز للبيانات " |
| 973 |
"المستلمة. على سبيل المثال، افترض أن المرسل يُرسل كما يلي:" |
| 974 |
|
| 975 |
#. type: IP |
| 976 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 977 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 978 |
#, no-wrap |
| 979 |
msgid "(1)" |
| 980 |
msgstr "(1)" |
| 981 |
|
| 982 |
#. type: Plain text |
| 983 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 984 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 985 |
msgid "B<sendmsg>(2) of four bytes, with no ancillary data." |
| 986 |
msgstr "B<sendmsg>(2) لأربعة بايتات، بدون بيانات مساعدة." |
| 987 |
|
| 988 |
#. type: IP |
| 989 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 990 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 991 |
#, no-wrap |
| 992 |
msgid "(2)" |
| 993 |
msgstr "(2)" |
| 994 |
|
| 995 |
#. type: Plain text |
| 996 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 997 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 998 |
msgid "B<sendmsg>(2) of one byte, with ancillary data." |
| 999 |
msgstr "B<sendmsg>(2) لبايت واحد، مع بيانات مساعدة." |
| 1000 |
|
| 1001 |
#. type: IP |
| 1002 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1003 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1004 |
#, no-wrap |
| 1005 |
msgid "(3)" |
| 1006 |
msgstr "(3)" |
| 1007 |
|
| 1008 |
#. type: Plain text |
| 1009 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1010 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1011 |
msgid "" |
| 1012 |
"Suppose that the receiver now performs B<recvmsg>(2) calls each with a " |
| 1013 |
"buffer size of 20 bytes. The first call will receive five bytes of data, " |
| 1014 |
"along with the ancillary data sent by the second B<sendmsg>(2) call. The " |
| 1015 |
"next call will receive the remaining four bytes of data." |
| 1016 |
msgstr "" |
| 1017 |
"افترض أن المستقبل يُنفِّذ الآن استدعاءات B<recvmsg>(2) كل منها بحجم مخبأة 20 " |
| 1018 |
"بايت. سيستقبل الاستدعاء الأول خمسة بايتات من البيانات، إلى جانب البيانات " |
| 1019 |
"المساعدة المرسلة بواسطة استدعاء B<sendmsg>(2) الثاني. سيستقبل الاستدعاء " |
| 1020 |
"التالي البايتات الأربعة المتبقية من البيانات." |
| 1021 |
|
| 1022 |
#. type: Plain text |
| 1023 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1024 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1025 |
msgid "" |
| 1026 |
"If the space allocated for receiving incoming ancillary data is too small " |
| 1027 |
"then the ancillary data is truncated to the number of headers that will fit " |
| 1028 |
"in the supplied buffer (or, in the case of an B<SCM_RIGHTS> file descriptor " |
| 1029 |
"list, the list of file descriptors may be truncated). If no buffer is " |
| 1030 |
"provided for incoming ancillary data (i.e., the I<msg_control> field of the " |
| 1031 |
"I<msghdr> structure supplied to B<recvmsg>(2) is NULL), then the incoming " |
| 1032 |
"ancillary data is discarded. In both of these cases, the B<MSG_CTRUNC> flag " |
| 1033 |
"will be set in the I<msg.msg_flags> value returned by B<recvmsg>(2)." |
| 1034 |
msgstr "" |
| 1035 |
"إذا كانت المساحة المخصصة لاستقبال البيانات المساعدة الواردة صغيرة جدًا، فتُبتَر " |
| 1036 |
"البيانات المساعدة إلى عدد الرؤوس التي تناسب المخبأة المقدمة (أو، في حالة " |
| 1037 |
"قائمة واصفات ملفات B<SCM_RIGHTS>، قد تُبتَر قائمة واصفات الملفات). إذا لم تُقدم " |
| 1038 |
"مخبأة للبيانات المساعدة الواردة (أي، حقل I<msg_control> من بنية I<msghdr> " |
| 1039 |
"المقدمة إلى B<recvmsg>(2) هو NULL)، فتُهمَل البيانات المساعدة الواردة. في كلتا " |
| 1040 |
"هاتين الحالتين، سيُضبط العلم B<MSG_CTRUNC> في قيمة I<msg.msg_flags> التي " |
| 1041 |
"يُرجعها B<recvmsg>(2)." |
| 1042 |
|
| 1043 |
#. type: SS |
| 1044 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1045 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1046 |
#, no-wrap |
| 1047 |
msgid "Ioctls" |
| 1048 |
msgstr "Ioctls" |
| 1049 |
|
| 1050 |
#. type: Plain text |
| 1051 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1052 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1053 |
msgid "" |
| 1054 |
"The following B<ioctl>(2) calls return information in I<value>. The " |
| 1055 |
"correct syntax is:" |
| 1056 |
msgstr "" |
| 1057 |
"استدعاءات B<ioctl>(2) التالية تعيد معلومات في I<value>. الصيغة الصحيحة هي:" |
| 1058 |
|
| 1059 |
#. type: Plain text |
| 1060 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1061 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1062 |
#, no-wrap |
| 1063 |
msgid "" |
| 1064 |
"B<int>I< value>B<;>\n" |
| 1065 |
"I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n" |
| 1066 |
msgstr "" |
| 1067 |
"B<int>I< value>B<;>\n" |
| 1068 |
"I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n" |
| 1069 |
|
| 1070 |
#. type: Plain text |
| 1071 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1072 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1073 |
msgid "I<ioctl_type> can be:" |
| 1074 |
msgstr "يمكن أن يكون I<ioctl_type>:" |
| 1075 |
|
| 1076 |
#. type: TP |
| 1077 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1078 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1079 |
#, no-wrap |
| 1080 |
msgid "B<SIOCINQ>" |
| 1081 |
msgstr "B<SIOCINQ>" |
| 1082 |
|
| 1083 |
#. #-#-#-#-# archlinux: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1084 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1085 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1086 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1087 |
#. quite what userland might expect. It seems to return the number |
| 1088 |
#. of bytes allocated for buffers containing pending output. |
| 1089 |
#. That number is normally larger than the number of bytes of pending |
| 1090 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1091 |
#. and it may well change, probably best not to document this now. |
| 1092 |
#. type: Plain text |
| 1093 |
#. #-#-#-#-# debian-trixie: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1094 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1095 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1096 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1097 |
#. quite what userland might expect. It seems to return the number |
| 1098 |
#. of bytes allocated for buffers containing pending output. |
| 1099 |
#. That number is normally larger than the number of bytes of pending |
| 1100 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1101 |
#. and it may well change, probably best not to document this now. |
| 1102 |
#. type: Plain text |
| 1103 |
#. #-#-#-#-# debian-unstable: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1104 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1105 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1106 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1107 |
#. quite what userland might expect. It seems to return the number |
| 1108 |
#. of bytes allocated for buffers containing pending output. |
| 1109 |
#. That number is normally larger than the number of bytes of pending |
| 1110 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1111 |
#. and it may well change, probably best not to document this now. |
| 1112 |
#. type: Plain text |
| 1113 |
#. #-#-#-#-# fedora-44: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1114 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1115 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1116 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1117 |
#. quite what userland might expect. It seems to return the number |
| 1118 |
#. of bytes allocated for buffers containing pending output. |
| 1119 |
#. That number is normally larger than the number of bytes of pending |
| 1120 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1121 |
#. and it may well change, probably best not to document this now. |
| 1122 |
#. type: Plain text |
| 1123 |
#. #-#-#-#-# fedora-rawhide: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1124 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1125 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1126 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1127 |
#. quite what userland might expect. It seems to return the number |
| 1128 |
#. of bytes allocated for buffers containing pending output. |
| 1129 |
#. That number is normally larger than the number of bytes of pending |
| 1130 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1131 |
#. and it may well change, probably best not to document this now. |
| 1132 |
#. type: Plain text |
| 1133 |
#. #-#-#-#-# mageia-cauldron: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1134 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1135 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1136 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1137 |
#. quite what userland might expect. It seems to return the number |
| 1138 |
#. of bytes allocated for buffers containing pending output. |
| 1139 |
#. That number is normally larger than the number of bytes of pending |
| 1140 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1141 |
#. and it may well change, probably best not to document this now. |
| 1142 |
#. type: Plain text |
| 1143 |
#. #-#-#-#-# opensuse-leap-16-1: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1144 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1145 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1146 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1147 |
#. quite what userland might expect. It seems to return the number |
| 1148 |
#. of bytes allocated for buffers containing pending output. |
| 1149 |
#. That number is normally larger than the number of bytes of pending |
| 1150 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1151 |
#. and it may well change, probably best not to document this now. |
| 1152 |
#. type: Plain text |
| 1153 |
#. #-#-#-#-# opensuse-tumbleweed: unix.7.pot (PACKAGE VERSION) #-#-#-#-# |
| 1154 |
#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12002, |
| 1155 |
#. filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers |
| 1156 |
#. SIOCOUTQ also has an effect for UNIX domain sockets, but not |
| 1157 |
#. quite what userland might expect. It seems to return the number |
| 1158 |
#. of bytes allocated for buffers containing pending output. |
| 1159 |
#. That number is normally larger than the number of bytes of pending |
| 1160 |
#. output. Since this info is, from userland's point of view, imprecise, |
| 1161 |
#. and it may well change, probably best not to document this now. |
| 1162 |
#. type: Plain text |
| 1163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1164 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1165 |
msgid "" |
| 1166 |
"For B<SOCK_STREAM> sockets, this call returns the number of unread bytes in " |
| 1167 |
"the receive buffer. The socket must not be in LISTEN state, otherwise an " |
| 1168 |
"error (B<EINVAL>) is returned. B<SIOCINQ> is defined in I<E<lt>linux/" |
| 1169 |
"sockios.hE<gt>>. Alternatively, you can use the synonymous B<FIONREAD>, " |
| 1170 |
"defined in I<E<lt>sys/ioctl.hE<gt>>. For B<SOCK_DGRAM> sockets, the " |
| 1171 |
"returned value is the same as for Internet domain datagram sockets; see " |
| 1172 |
"B<udp>(7)." |
| 1173 |
msgstr "" |
| 1174 |
"بالنسبة لمقابس B<SOCK_STREAM>، يُرجع هذا الاستدعاء عدد البايتات غير المقروءة " |
| 1175 |
"في مخبأة الاستقبال. يجب ألا يكون المقبس في حالة LISTEN، وإلا يُرجع خطأ " |
| 1176 |
"(B<EINVAL>). يُعرَّف B<SIOCINQ> في I<E<lt>linux/sockios.hE<gt>>. بدلاً من ذلك، " |
| 1177 |
"يمكنك استخدام B<FIONREAD> المترادف، المُعرَّف في I<E<lt>sys/ioctl.hE<gt>>. " |
| 1178 |
"بالنسبة لمقابس B<SOCK_DGRAM>، القيمة المُرجَعة هي نفسها لمقابس مخطط بيانات " |
| 1179 |
"نطاق الإنترنت؛ انظر B<udp>(7)." |
| 1180 |
|
| 1181 |
#. type: SH |
| 1182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1184 |
#, no-wrap |
| 1185 |
msgid "ERRORS" |
| 1186 |
msgstr "الأخطاء" |
| 1187 |
|
| 1188 |
#. type: TP |
| 1189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1190 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1191 |
#, no-wrap |
| 1192 |
msgid "B<EADDRINUSE>" |
| 1193 |
msgstr "B<EADDRINUSE>" |
| 1194 |
|
| 1195 |
#. type: Plain text |
| 1196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1197 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1198 |
msgid "" |
| 1199 |
"The specified local address is already in use or the filesystem socket " |
| 1200 |
"object already exists." |
| 1201 |
msgstr "" |
| 1202 |
"العنوان المحلي المحدد قيد الاستخدام بالفعل أو كائن مقبس نظام الملفات موجود " |
| 1203 |
"بالفعل." |
| 1204 |
|
| 1205 |
#. type: TP |
| 1206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1208 |
#, no-wrap |
| 1209 |
msgid "B<EBADF>" |
| 1210 |
msgstr "B<EBADF>" |
| 1211 |
|
| 1212 |
#. type: Plain text |
| 1213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1215 |
msgid "" |
| 1216 |
"This error can occur for B<sendmsg>(2) when sending a file descriptor as " |
| 1217 |
"ancillary data over a UNIX domain socket (see the description of " |
| 1218 |
"B<SCM_RIGHTS>, above), and indicates that the file descriptor number that is " |
| 1219 |
"being sent is not valid (e.g., it is not an open file descriptor)." |
| 1220 |
msgstr "" |
| 1221 |
"يمكن أن يحدث هذا الخطأ لـB<sendmsg>(2) عند إرسال واصف ملف كبيانات مساعدة عبر " |
| 1222 |
"مقبس نطاق UNIX (انظر وصف B<SCM_RIGHTS> أعلاه)، ويشير إلى أن رقم واصف الملف " |
| 1223 |
"الذي يُرسَل غير صالح (مثلًا، ليس واصف ملف مفتوح)." |
| 1224 |
|
| 1225 |
#. type: TP |
| 1226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1228 |
#, no-wrap |
| 1229 |
msgid "B<ECONNREFUSED>" |
| 1230 |
msgstr "B<ECONNREFUSED>" |
| 1231 |
|
| 1232 |
#. type: Plain text |
| 1233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1235 |
msgid "" |
| 1236 |
"The remote address specified by B<connect>(2) was not a listening socket. " |
| 1237 |
"This error can also occur if the target pathname is not a socket." |
| 1238 |
msgstr "" |
| 1239 |
"العنوان البعيد المحدد بواسطة B<connect>(2) لم يكن مقبس استماع. يمكن أن يحدث " |
| 1240 |
"هذا الخطأ أيضًا إذا لم يكن اسم المسار الهدف مقبسًا." |
| 1241 |
|
| 1242 |
#. type: TP |
| 1243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1245 |
#, no-wrap |
| 1246 |
msgid "B<ECONNRESET>" |
| 1247 |
msgstr "B<ECONNRESET>" |
| 1248 |
|
| 1249 |
#. type: Plain text |
| 1250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1252 |
msgid "Remote socket was unexpectedly closed." |
| 1253 |
msgstr "أُغلقت المقبس البعيد بشكل غير متوقع." |
| 1254 |
|
| 1255 |
#. type: TP |
| 1256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1258 |
#, no-wrap |
| 1259 |
msgid "B<EFAULT>" |
| 1260 |
msgstr "B<EFAULT>" |
| 1261 |
|
| 1262 |
#. type: Plain text |
| 1263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1265 |
msgid "User memory address was not valid." |
| 1266 |
msgstr "عنوان ذاكرة المستخدم لم يكن صالحًا." |
| 1267 |
|
| 1268 |
#. type: TP |
| 1269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1271 |
#, no-wrap |
| 1272 |
msgid "B<EINVAL>" |
| 1273 |
msgstr "B<EINVAL>" |
| 1274 |
|
| 1275 |
#. type: Plain text |
| 1276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1278 |
msgid "" |
| 1279 |
"Invalid argument passed. A common cause is that the value B<AF_UNIX> was " |
| 1280 |
"not specified in the I<sun_type> field of passed addresses, or the socket " |
| 1281 |
"was in an invalid state for the applied operation." |
| 1282 |
msgstr "" |
| 1283 |
"مُمررت وسيطة غير صالحة. سبب شائع هو أن القيمة B<AF_UNIX> لم تُحدد في حقل " |
| 1284 |
"I<sun_type> للعناوين المُمررة، أو أن المقبس كان في حالة غير صالحة للعملية " |
| 1285 |
"المطبقة." |
| 1286 |
|
| 1287 |
#. type: TP |
| 1288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1290 |
#, no-wrap |
| 1291 |
msgid "B<EISCONN>" |
| 1292 |
msgstr "B<EISCONN>" |
| 1293 |
|
| 1294 |
#. type: Plain text |
| 1295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1297 |
msgid "" |
| 1298 |
"B<connect>(2) called on an already connected socket or a target address was " |
| 1299 |
"specified on a connected socket." |
| 1300 |
msgstr "" |
| 1301 |
"استُدعيت B<connect>(2) على مقبس موصول بالفعل أو حُدد عنوان هدف على مقبس موصول." |
| 1302 |
|
| 1303 |
#. type: TP |
| 1304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1306 |
#, no-wrap |
| 1307 |
msgid "B<ENFILE>" |
| 1308 |
msgstr "B<ENFILE>" |
| 1309 |
|
| 1310 |
#. type: Plain text |
| 1311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1313 |
msgid "" |
| 1314 |
"The system-wide limit on the total number of open files has been reached." |
| 1315 |
msgstr "وُصل إلى الحد الأقصى لإجمالي عدد الملفات المفتوحة على مستوى النظام." |
| 1316 |
|
| 1317 |
#. type: TP |
| 1318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1320 |
#, no-wrap |
| 1321 |
msgid "B<ENOENT>" |
| 1322 |
msgstr "B<ENOENT>" |
| 1323 |
|
| 1324 |
#. type: Plain text |
| 1325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1327 |
msgid "" |
| 1328 |
"The pathname in the remote address specified to B<connect>(2) did not exist." |
| 1329 |
msgstr "اسم المسار في العنوان البعيد المُحدد لـ B<connect>(2) لم يكن موجودًا." |
| 1330 |
|
| 1331 |
#. type: TP |
| 1332 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1333 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1334 |
#, no-wrap |
| 1335 |
msgid "B<ENOMEM>" |
| 1336 |
msgstr "B<ENOMEM>" |
| 1337 |
|
| 1338 |
#. type: Plain text |
| 1339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1341 |
msgid "Out of memory." |
| 1342 |
msgstr "نفدت الذاكرة." |
| 1343 |
|
| 1344 |
#. type: TP |
| 1345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1347 |
#, no-wrap |
| 1348 |
msgid "B<ENOTCONN>" |
| 1349 |
msgstr "B<ENOTCONN>" |
| 1350 |
|
| 1351 |
#. type: Plain text |
| 1352 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1353 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1354 |
msgid "" |
| 1355 |
"Socket operation needs a target address, but the socket is not connected." |
| 1356 |
msgstr "عملية المقبس تحتاج عنوان هدف، لكن المقبس غير موصول." |
| 1357 |
|
| 1358 |
#. type: TP |
| 1359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1360 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1361 |
#, no-wrap |
| 1362 |
msgid "B<EOPNOTSUPP>" |
| 1363 |
msgstr "B<EOPNOTSUPP>" |
| 1364 |
|
| 1365 |
#. type: Plain text |
| 1366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1368 |
msgid "" |
| 1369 |
"Stream operation called on non-stream oriented socket or tried to use the " |
| 1370 |
"out-of-band data option." |
| 1371 |
msgstr "" |
| 1372 |
"استُدعيت عملية دفق على مقبس غير موجه للدفق أو حُاول استخدام خيار البيانات خارج " |
| 1373 |
"النطاق." |
| 1374 |
|
| 1375 |
#. type: TP |
| 1376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1378 |
#, no-wrap |
| 1379 |
msgid "B<EPERM>" |
| 1380 |
msgstr "B<EPERM>" |
| 1381 |
|
| 1382 |
#. type: Plain text |
| 1383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1385 |
msgid "The sender passed invalid credentials in the I<struct ucred>." |
| 1386 |
msgstr "مُمرر المرسل بيانات استيثاق غير صالحة في I<struct ucred>." |
| 1387 |
|
| 1388 |
#. type: TP |
| 1389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1391 |
#, no-wrap |
| 1392 |
msgid "B<EPIPE>" |
| 1393 |
msgstr "B<EPIPE>" |
| 1394 |
|
| 1395 |
#. type: Plain text |
| 1396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1397 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1398 |
msgid "" |
| 1399 |
"Remote socket was closed on a stream socket. If enabled, a B<SIGPIPE> is " |
| 1400 |
"sent as well. This can be avoided by passing the B<MSG_NOSIGNAL> flag to " |
| 1401 |
"B<send>(2) or B<sendmsg>(2)." |
| 1402 |
msgstr "" |
| 1403 |
"أُغلق المقبس البعيد على مقبس دفق. إذا كان مُفعلاً، يُرسل B<SIGPIPE> أيضًا. يمكن " |
| 1404 |
"تجنب ذلك بتمرير العلم B<MSG_NOSIGNAL> إلى B<send>(2) أو B<sendmsg>(2)." |
| 1405 |
|
| 1406 |
#. type: TP |
| 1407 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1408 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1409 |
#, no-wrap |
| 1410 |
msgid "B<EPROTONOSUPPORT>" |
| 1411 |
msgstr "B<EPROTONOSUPPORT>" |
| 1412 |
|
| 1413 |
#. type: Plain text |
| 1414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1416 |
msgid "Passed protocol is not B<AF_UNIX>." |
| 1417 |
msgstr "البروتوكول المُمرر ليس B<AF_UNIX>." |
| 1418 |
|
| 1419 |
#. type: TP |
| 1420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1422 |
#, no-wrap |
| 1423 |
msgid "B<EPROTOTYPE>" |
| 1424 |
msgstr "B<EPROTOTYPE>" |
| 1425 |
|
| 1426 |
#. type: Plain text |
| 1427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1429 |
msgid "" |
| 1430 |
"Remote socket does not match the local socket type (B<SOCK_DGRAM> versus " |
| 1431 |
"B<SOCK_STREAM>)." |
| 1432 |
msgstr "" |
| 1433 |
"المقبس البعيد لا يطابق نوع المقبس المحلي (B<SOCK_DGRAM> مقابل " |
| 1434 |
"B<SOCK_STREAM>)." |
| 1435 |
|
| 1436 |
#. type: TP |
| 1437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1439 |
#, no-wrap |
| 1440 |
msgid "B<ESOCKTNOSUPPORT>" |
| 1441 |
msgstr "B<ESOCKTNOSUPPORT>" |
| 1442 |
|
| 1443 |
#. type: Plain text |
| 1444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1446 |
msgid "Unknown socket type." |
| 1447 |
msgstr "نوع مقبس غير معروف." |
| 1448 |
|
| 1449 |
#. type: TP |
| 1450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1452 |
#, no-wrap |
| 1453 |
msgid "B<ESRCH>" |
| 1454 |
msgstr "B<ESRCH>" |
| 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 |
"While sending an ancillary message containing credentials " |
| 1461 |
"(B<SCM_CREDENTIALS>), the caller specified a PID that does not match any " |
| 1462 |
"existing process." |
| 1463 |
msgstr "" |
| 1464 |
"أثناء إرسال رسالة مساعدة تحتوي على بيانات استيثاق (B<SCM_CREDENTIALS>)، حدد " |
| 1465 |
"المتصل PID لا يطابق أي عملية موجودة." |
| 1466 |
|
| 1467 |
#. type: TP |
| 1468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1470 |
#, no-wrap |
| 1471 |
msgid "B<ETOOMANYREFS>" |
| 1472 |
msgstr "B<ETOOMANYREFS>" |
| 1473 |
|
| 1474 |
#. type: Plain text |
| 1475 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1476 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1477 |
msgid "" |
| 1478 |
"This error can occur for B<sendmsg>(2) when sending a file descriptor as " |
| 1479 |
"ancillary data over a UNIX domain socket (see the description of " |
| 1480 |
"B<SCM_RIGHTS>, above). It occurs if the number of \"in-flight\" file " |
| 1481 |
"descriptors exceeds the B<RLIMIT_NOFILE> resource limit and the caller does " |
| 1482 |
"not have the B<CAP_SYS_RESOURCE> capability. An in-flight file descriptor " |
| 1483 |
"is one that has been sent using B<sendmsg>(2) but has not yet been accepted " |
| 1484 |
"in the recipient process using B<recvmsg>(2)." |
| 1485 |
msgstr "" |
| 1486 |
"يمكن أن يحدث هذا الخطأ لـ B<sendmsg>(2) عند إرسال واصف ملف كبيانات مساعدة " |
| 1487 |
"عبر مقبس نطاق UNIX (انظر وصف B<SCM_RIGHTS>، أعلاه). يحدث إذا تجاوز عدد " |
| 1488 |
"واصفات الملفات \"قيد الطيران\" حد المورد B<RLIMIT_NOFILE> ولم يكن لدى المتصل " |
| 1489 |
"القدرة B<CAP_SYS_RESOURCE>. واصف الملف قيد الطيران هو الذي أُرسل باستخدام " |
| 1490 |
"B<sendmsg>(2) لكن لم يُقبل بعد في عملية المستلم باستخدام B<recvmsg>(2)." |
| 1491 |
|
| 1492 |
#. commit 712f4aad406bb1ed67f3f98d04c044191f0ff593 |
| 1493 |
#. type: Plain text |
| 1494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1496 |
msgid "" |
| 1497 |
"This error is diagnosed since mainline Linux 4.5 (and in some earlier kernel " |
| 1498 |
"versions where the fix has been backported). In earlier kernel versions, it " |
| 1499 |
"was possible to place an unlimited number of file descriptors in flight, by " |
| 1500 |
"sending each file descriptor with B<sendmsg>(2) and then closing the file " |
| 1501 |
"descriptor so that it was not accounted against the B<RLIMIT_NOFILE> " |
| 1502 |
"resource limit." |
| 1503 |
msgstr "" |
| 1504 |
"شُخص هذا الخطأ منذ النواة الرئيسية Linux 4.5 (وفي بعض إصدارات النواة السابقة " |
| 1505 |
"حيث رُجع الإصلاح). في إصدارات النواة السابقة، كان من الممكن وضع عدد غير محدود " |
| 1506 |
"من واصفات الملفات قيد الطيران، بإرسال كل واصف ملف مع B<sendmsg>(2) ثم إغلاق " |
| 1507 |
"واصف الملف بحيث لا يُحتسب ضد حد المورد B<RLIMIT_NOFILE>." |
| 1508 |
|
| 1509 |
#. type: Plain text |
| 1510 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1511 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1512 |
msgid "" |
| 1513 |
"Other errors can be generated by the generic socket layer or by the " |
| 1514 |
"filesystem while generating a filesystem socket object. See the appropriate " |
| 1515 |
"manual pages for more information." |
| 1516 |
msgstr "" |
| 1517 |
"يمكن توليد أخطاء أخرى بواسطة طبقة المقابس العامة أو بواسطة نظام الملفات " |
| 1518 |
"أثناء توليد كائن مقبس نظام الملفات. راجع صفحات الدليل المناسبة لمزيد من " |
| 1519 |
"المعلومات." |
| 1520 |
|
| 1521 |
#. type: SH |
| 1522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1524 |
#, no-wrap |
| 1525 |
msgid "VERSIONS" |
| 1526 |
msgstr "الإصدارات" |
| 1527 |
|
| 1528 |
#. type: Plain text |
| 1529 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1530 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1531 |
msgid "" |
| 1532 |
"B<SCM_CREDENTIALS> and the abstract namespace were introduced with Linux 2.2 " |
| 1533 |
"and should not be used in portable programs. (Some BSD-derived systems also " |
| 1534 |
"support credential passing, but the implementation details differ.)" |
| 1535 |
msgstr "" |
| 1536 |
"قُدما B<SCM_CREDENTIALS> ومساحة الاسم المجردة مع Linux 2.2 ولا ينبغي " |
| 1537 |
"استخدامهما في البرامج المحمولة. (بعض الأنظمة المشتقة من BSD تدعم أيضًا تمرير " |
| 1538 |
"بيانات الاستيثاق، لكن تفاصيل التنفيذ تختلف.)" |
| 1539 |
|
| 1540 |
#. type: SH |
| 1541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1543 |
#, no-wrap |
| 1544 |
msgid "NOTES" |
| 1545 |
msgstr "ملاحظات" |
| 1546 |
|
| 1547 |
#. type: Plain text |
| 1548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1550 |
msgid "" |
| 1551 |
"Binding to a socket with a filename creates a socket in the filesystem that " |
| 1552 |
"must be deleted by the caller when it is no longer needed (using " |
| 1553 |
"B<unlink>(2)). The usual UNIX close-behind semantics apply; the socket can " |
| 1554 |
"be unlinked at any time and will be finally removed from the filesystem when " |
| 1555 |
"the last reference to it is closed." |
| 1556 |
msgstr "" |
| 1557 |
"الربط بمقبس باسم ملف ينشئ مقبسًا في نظام الملفات يجب حذفه بواسطة المتصل عندما " |
| 1558 |
"لا يعود مطلوبًا (باستخدام B<unlink>(2)). تنطبق دلالات الإغلاق اللاحق المعتادة " |
| 1559 |
"لـ UNIX؛ يمكن فك ربط المقبس في أي وقت وسيُزال نهائيًا من نظام الملفات عند " |
| 1560 |
"إغلاق آخر مرجع له." |
| 1561 |
|
| 1562 |
#. type: Plain text |
| 1563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1564 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1565 |
msgid "" |
| 1566 |
"To pass file descriptors or credentials over a B<SOCK_STREAM> socket, you " |
| 1567 |
"must send or receive at least one byte of nonancillary data in the same " |
| 1568 |
"B<sendmsg>(2) or B<recvmsg>(2) call." |
| 1569 |
msgstr "" |
| 1570 |
"لتمرير واصفات ملفات أو بيانات استيثاق عبر مقبس B<SOCK_STREAM>، يجب إرسال أو " |
| 1571 |
"استقبال بايت واحد على الأقل من بيانات غير مساعدة في نفس استدعاء " |
| 1572 |
"B<sendmsg>(2) أو B<recvmsg>(2)." |
| 1573 |
|
| 1574 |
#. type: Plain text |
| 1575 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1576 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1577 |
msgid "" |
| 1578 |
"UNIX domain stream sockets do not support the notion of out-of-band data." |
| 1579 |
msgstr "مقابس دفق نطاق UNIX لا تدعم مفهوم البيانات خارج النطاق." |
| 1580 |
|
| 1581 |
#. type: SH |
| 1582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1583 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1584 |
#, no-wrap |
| 1585 |
msgid "BUGS" |
| 1586 |
msgstr "العلل" |
| 1587 |
|
| 1588 |
#. The behavior on Solaris is quite similar. |
| 1589 |
#. type: Plain text |
| 1590 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1591 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1592 |
msgid "" |
| 1593 |
"When binding a socket to an address, Linux is one of the implementations " |
| 1594 |
"that append a null terminator if none is supplied in I<sun_path>. In most " |
| 1595 |
"cases this is unproblematic: when the socket address is retrieved, it will " |
| 1596 |
"be one byte longer than that supplied when the socket was bound. However, " |
| 1597 |
"there is one case where confusing behavior can result: if 108 non-null bytes " |
| 1598 |
"are supplied when a socket is bound, then the addition of the null " |
| 1599 |
"terminator takes the length of the pathname beyond I<sizeof(sun_path)>. " |
| 1600 |
"Consequently, when retrieving the socket address (for example, via " |
| 1601 |
"B<accept>(2)), if the input I<addrlen> argument for the retrieving call is " |
| 1602 |
"specified as I<sizeof(struct sockaddr_un)>, then the returned address " |
| 1603 |
"structure I<won't> have a null terminator in I<sun_path>." |
| 1604 |
msgstr "" |
| 1605 |
"عند ربط مقبس بعنوان، Linux هو أحد التطبيقات التي تُلحق مُنهيًا فارغًا إذا لم " |
| 1606 |
"يُقدم أي في I<sun_path>. في معظم الحالات هذا غير إشكالي: عند استرجاع عنوان " |
| 1607 |
"المقبس، سيكون أطول ببايت واحد مما قُدم عند ربط المقبس. لكن، هناك حالة واحدة " |
| 1608 |
"يمكن أن ينتج عنها سلوك مربك: إذا قُدمت 108 بايتات غير فارغة عند ربط مقبس، فإن " |
| 1609 |
"إضافة المُنهي الفارغ تأخذ طول اسم المسار إلى ما بعد I<sizeof(sun_path)>. " |
| 1610 |
"وبالتالي، عند استرجاع عنوان المقبس (مثلاً، عبر B<accept>(2))، إذا حُددت وسيطة " |
| 1611 |
"I<addrlen> المدخلة لاستدعاء الاسترجاع كـ I<sizeof(struct sockaddr_un)>، فإن " |
| 1612 |
"بنية العنوان المُعادة I<لن> تحتوي على مُنهٍ فارغ في I<sun_path>." |
| 1613 |
|
| 1614 |
#. i.e., traditional BSD |
| 1615 |
#. type: Plain text |
| 1616 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1617 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1618 |
msgid "" |
| 1619 |
"In addition, some implementations don't require a null terminator when " |
| 1620 |
"binding a socket (the I<addrlen> argument is used to determine the length of " |
| 1621 |
"I<sun_path>) and when the socket address is retrieved on these " |
| 1622 |
"implementations, there is no null terminator in I<sun_path>." |
| 1623 |
msgstr "" |
| 1624 |
"بالإضافة إلى ذلك، بعض التطبيقات لا تتطلب مُنهيًا فارغًا عند ربط مقبس (تُستخدم " |
| 1625 |
"وسيطة I<addrlen> لتحديد طول I<sun_path>) وعند استرجاع عنوان المقبس على هذه " |
| 1626 |
"التطبيقات، لا يوجد مُنهٍ فارغ في I<sun_path>." |
| 1627 |
|
| 1628 |
#. type: Plain text |
| 1629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1630 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1631 |
msgid "" |
| 1632 |
"Applications that retrieve socket addresses can (portably) code to handle " |
| 1633 |
"the possibility that there is no null terminator in I<sun_path> by " |
| 1634 |
"respecting the fact that the number of valid bytes in the pathname is:" |
| 1635 |
msgstr "" |
| 1636 |
"يمكن للتطبيقات التي تسترجع عناوين المقابس أن تُبرمج (بشكل محمول) للتعامل مع " |
| 1637 |
"احتمالية عدم وجود مُنهٍ فارغ في I<sun_path> باحترام حقيقة أن عدد البايتات " |
| 1638 |
"الصالحة في اسم المسار هو:" |
| 1639 |
|
| 1640 |
#. type: Plain text |
| 1641 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1642 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1643 |
#, no-wrap |
| 1644 |
msgid "strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n" |
| 1645 |
msgstr "strnlen(addr.sun_path, addrlen - offsetof(sockaddr_un, sun_path))\n" |
| 1646 |
|
| 1647 |
#. type: Plain text |
| 1648 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1649 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1650 |
msgid "" |
| 1651 |
"Alternatively, an application can retrieve the socket address by allocating " |
| 1652 |
"a buffer of size I<sizeof(struct sockaddr_un)+1> that is zeroed out before " |
| 1653 |
"the retrieval. The retrieving call can specify I<addrlen> as " |
| 1654 |
"I<sizeof(struct sockaddr_un)>, and the extra zero byte ensures that there " |
| 1655 |
"will be a null terminator for the string returned in I<sun_path>:" |
| 1656 |
msgstr "" |
| 1657 |
"بدلاً من ذلك، يمكن للتطبيق استرجاع عنوان المقبس بتخصيص مخزن مؤقت بحجم " |
| 1658 |
"I<sizeof(struct sockaddr_un)+1> يُصفّر قبل الاسترجاع. يمكن لاستدعاء الاسترجاع " |
| 1659 |
"تحديد I<addrlen> كـ I<sizeof(struct sockaddr_un)>، والبايت الصفري الإضافي " |
| 1660 |
"يضمن وجود مُنهٍ فارغ للسلسلة المُعادة في I<sun_path>:" |
| 1661 |
|
| 1662 |
#. type: Plain text |
| 1663 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1664 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1665 |
#, no-wrap |
| 1666 |
msgid "" |
| 1667 |
"void *addrp;\n" |
| 1668 |
"\\&\n" |
| 1669 |
"addrlen = sizeof(struct sockaddr_un);\n" |
| 1670 |
"addrp = malloc(addrlen + 1);\n" |
| 1671 |
"if (addrp == NULL)\n" |
| 1672 |
" /* Handle error */ ;\n" |
| 1673 |
"memset(addrp, 0, addrlen + 1);\n" |
| 1674 |
"\\&\n" |
| 1675 |
"if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) == -1)\n" |
| 1676 |
" /* handle error */ ;\n" |
| 1677 |
"\\&\n" |
| 1678 |
"printf(\"sun_path = %s\\[rs]n\", ((struct sockaddr_un *) addrp)-E<gt>sun_path);\n" |
| 1679 |
msgstr "" |
| 1680 |
"void *addrp;\n" |
| 1681 |
"\\&\n" |
| 1682 |
"addrlen = sizeof(struct sockaddr_un);\n" |
| 1683 |
"addrp = malloc(addrlen + 1);\n" |
| 1684 |
"if (addrp == NULL)\n" |
| 1685 |
" /* Handle error */ ;\n" |
| 1686 |
"memset(addrp, 0, addrlen + 1);\n" |
| 1687 |
"\\&\n" |
| 1688 |
"if (getsockname(sfd, (struct sockaddr *) addrp, &addrlen)) == -1)\n" |
| 1689 |
" /* handle error */ ;\n" |
| 1690 |
"\\&\n" |
| 1691 |
"printf(\"sun_path = %s\\[rs]n\", ((struct sockaddr_un *) addrp)-E<gt>sun_path);\n" |
| 1692 |
|
| 1693 |
#. type: Plain text |
| 1694 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1695 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1696 |
msgid "" |
| 1697 |
"This sort of messiness can be avoided if it is guaranteed that the " |
| 1698 |
"applications that I<create> pathname sockets follow the rules outlined above " |
| 1699 |
"under I<Pathname sockets>." |
| 1700 |
msgstr "" |
| 1701 |
"يمكن تجنب هذا النوع من الفوضى إذا تم ضمان أن التطبيقات التي I<تنشئ> مقابس " |
| 1702 |
"اسم المسار تتبع القواعد الموضحة أعلاه تحت I<مقابس اسم المسار>." |
| 1703 |
|
| 1704 |
#. type: SH |
| 1705 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1706 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1707 |
#, no-wrap |
| 1708 |
msgid "EXAMPLES" |
| 1709 |
msgstr "أمثلة" |
| 1710 |
|
| 1711 |
#. type: Plain text |
| 1712 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1713 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1714 |
msgid "" |
| 1715 |
"The following code demonstrates the use of sequenced-packet sockets for " |
| 1716 |
"local interprocess communication. It consists of two programs. The server " |
| 1717 |
"program waits for a connection from the client program. The client sends " |
| 1718 |
"each of its command-line arguments in separate messages. The server treats " |
| 1719 |
"the incoming messages as integers and adds them up. The client sends the " |
| 1720 |
"command string \"END\". The server sends back a message containing the sum " |
| 1721 |
"of the client's integers. The client prints the sum and exits. The server " |
| 1722 |
"waits for the next client to connect. To stop the server, the client is " |
| 1723 |
"called with the command-line argument \"DOWN\"." |
| 1724 |
msgstr "" |
| 1725 |
"يظهر الكود التالي استخدام مقابس الحزم المتسلسلة للاتصال بين العمليات " |
| 1726 |
"المحلية. يتكون من برنامجين. ينتظر برنامج الخادم اتصالاً من برنامج العميل. " |
| 1727 |
"يرسل العميل كل وسيط من وسائط سطر الأوامر في رسائل منفصلة. يعامل الخادم " |
| 1728 |
"الرسائل الواردة كأعداد صحيحة ويجمعها. يرسل العميل سلسلة الأمر \"END\". " |
| 1729 |
"يرسل الخادم رسالة تحتوي على مجموع أعداد العميل الصحيحة. يطبع العميل المجموع " |
| 1730 |
"ويخرج. ينتظر الخادم اتصال العميل التالي. لإيقاف الخادم، يُستدعى العميل مع " |
| 1731 |
"وسيط سطر الأوامر \"DOWN\"." |
| 1732 |
|
| 1733 |
#. type: Plain text |
| 1734 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1735 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1736 |
msgid "" |
| 1737 |
"The following output was recorded while running the server in the background " |
| 1738 |
"and repeatedly executing the client. Execution of the server program ends " |
| 1739 |
"when it receives the \"DOWN\" command." |
| 1740 |
msgstr "" |
| 1741 |
"تم تسجيل المخرجات التالية أثناء تشغيل الخادم في الخلفية وتنفيذ العميل بشكل " |
| 1742 |
"متكرر. ينتهي تنفيذ برنامج الخادم عند استلامه الأمر \"DOWN\"." |
| 1743 |
|
| 1744 |
#. type: SS |
| 1745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1746 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1747 |
#, no-wrap |
| 1748 |
msgid "Example output" |
| 1749 |
msgstr "مثال على الخرج" |
| 1750 |
|
| 1751 |
#. type: Plain text |
| 1752 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1753 |
#: opensuse-tumbleweed |
| 1754 |
#, no-wrap |
| 1755 |
msgid "" |
| 1756 |
"$B< ./server &>\n" |
| 1757 |
"[1] 25887\n" |
| 1758 |
"$B< ./client 3 4>;\n" |
| 1759 |
"Result = 7\n" |
| 1760 |
"$B< ./client 11 -5>;\n" |
| 1761 |
"Result = 6\n" |
| 1762 |
"$B< ./client DOWN>;\n" |
| 1763 |
"Result = 0\n" |
| 1764 |
"[1]+ Done ./server\n" |
| 1765 |
"$\n" |
| 1766 |
msgstr "" |
| 1767 |
"$B< ./server &>\n" |
| 1768 |
"[1] 25887\n" |
| 1769 |
"$B< ./client 3 4>;\n" |
| 1770 |
"Result = 7\n" |
| 1771 |
"$B< ./client 11 -5>;\n" |
| 1772 |
"Result = 6\n" |
| 1773 |
"$B< ./client DOWN>;\n" |
| 1774 |
"Result = 0\n" |
| 1775 |
"[1]+ Done ./server\n" |
| 1776 |
"$\n" |
| 1777 |
|
| 1778 |
#. type: SS |
| 1779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1781 |
#, no-wrap |
| 1782 |
msgid "Program source" |
| 1783 |
msgstr "مصدر البرنامج" |
| 1784 |
|
| 1785 |
#. type: Plain text |
| 1786 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1787 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1788 |
#, no-wrap |
| 1789 |
msgid "" |
| 1790 |
"/*\n" |
| 1791 |
" * File connection.h\n" |
| 1792 |
" */\n" |
| 1793 |
"#ifndef CONNECTION_H\n" |
| 1794 |
"#define CONNECTION_H\n" |
| 1795 |
"\\&\n" |
| 1796 |
"#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n" |
| 1797 |
"#define BUFFER_SIZE 12\n" |
| 1798 |
"\\&\n" |
| 1799 |
"#endif // include guard\n" |
| 1800 |
msgstr "" |
| 1801 |
"/*\n" |
| 1802 |
" * File connection.h\n" |
| 1803 |
" */\n" |
| 1804 |
"#ifndef CONNECTION_H\n" |
| 1805 |
"#define CONNECTION_H\n" |
| 1806 |
"\\&\n" |
| 1807 |
"#define SOCKET_NAME \"/tmp/9Lq7BNBnBycd6nxy.socket\"\n" |
| 1808 |
"#define BUFFER_SIZE 12\n" |
| 1809 |
"\\&\n" |
| 1810 |
"#endif // include guard\n" |
| 1811 |
|
| 1812 |
#. type: Plain text |
| 1813 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1814 |
#: opensuse-tumbleweed |
| 1815 |
#, no-wrap |
| 1816 |
msgid "" |
| 1817 |
"/*\n" |
| 1818 |
" * File server.c\n" |
| 1819 |
" */\n" |
| 1820 |
"\\&\n" |
| 1821 |
"#include E<lt>stdio.hE<gt>\n" |
| 1822 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1823 |
"#include E<lt>string.hE<gt>\n" |
| 1824 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1825 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1826 |
"#include E<lt>sys/un.hE<gt>\n" |
| 1827 |
"#include E<lt>unistd.hE<gt>\n" |
| 1828 |
"\\&\n" |
| 1829 |
"#include \"connection.h\"\n" |
| 1830 |
"\\&\n" |
| 1831 |
"int\n" |
| 1832 |
"main(void)\n" |
| 1833 |
"{\n" |
| 1834 |
" int down_flag = 0;\n" |
| 1835 |
" int ret;\n" |
| 1836 |
" int connection_socket;\n" |
| 1837 |
" int data_socket;\n" |
| 1838 |
" int result;\n" |
| 1839 |
" ssize_t r, w;\n" |
| 1840 |
" struct sockaddr_un name;\n" |
| 1841 |
" char buffer[BUFFER_SIZE];\n" |
| 1842 |
"\\&\n" |
| 1843 |
" /* Create local socket. */\n" |
| 1844 |
"\\&\n" |
| 1845 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 1846 |
" if (connection_socket == -1) {\n" |
| 1847 |
" perror(\"socket\");\n" |
| 1848 |
" exit(EXIT_FAILURE);\n" |
| 1849 |
" }\n" |
| 1850 |
"\\&\n" |
| 1851 |
" /*\n" |
| 1852 |
" * For portability clear the whole structure, since some\n" |
| 1853 |
" * implementations have additional (nonstandard) fields in\n" |
| 1854 |
" * the structure.\n" |
| 1855 |
" */\n" |
| 1856 |
"\\&\n" |
| 1857 |
" memset(&name, 0, sizeof(name));\n" |
| 1858 |
"\\&\n" |
| 1859 |
" /* Bind socket to socket name. */\n" |
| 1860 |
"\\&\n" |
| 1861 |
" name.sun_family = AF_UNIX;\n" |
| 1862 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 1863 |
"\\&\n" |
| 1864 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 1865 |
" sizeof(name));\n" |
| 1866 |
" if (ret == -1) {\n" |
| 1867 |
" perror(\"bind\");\n" |
| 1868 |
" exit(EXIT_FAILURE);\n" |
| 1869 |
" }\n" |
| 1870 |
"\\&\n" |
| 1871 |
" /*\n" |
| 1872 |
" * Prepare for accepting connections. The backlog size is set\n" |
| 1873 |
" * to 20. So while one request is being processed other requests\n" |
| 1874 |
" * can be waiting.\n" |
| 1875 |
" */\n" |
| 1876 |
"\\&\n" |
| 1877 |
" ret = listen(connection_socket, 20);\n" |
| 1878 |
" if (ret == -1) {\n" |
| 1879 |
" perror(\"listen\");\n" |
| 1880 |
" exit(EXIT_FAILURE);\n" |
| 1881 |
" }\n" |
| 1882 |
"\\&\n" |
| 1883 |
" /* This is the main loop for handling connections. */\n" |
| 1884 |
"\\&\n" |
| 1885 |
" for (;;) {\n" |
| 1886 |
"\\&\n" |
| 1887 |
" /* Wait for incoming connection. */\n" |
| 1888 |
"\\&\n" |
| 1889 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 1890 |
" if (data_socket == -1) {\n" |
| 1891 |
" perror(\"accept\");\n" |
| 1892 |
" exit(EXIT_FAILURE);\n" |
| 1893 |
" }\n" |
| 1894 |
"\\&\n" |
| 1895 |
" result = 0;\n" |
| 1896 |
" for (;;) {\n" |
| 1897 |
"\\&\n" |
| 1898 |
" /* Wait for next data packet. */\n" |
| 1899 |
"\\&\n" |
| 1900 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 1901 |
" if (r == -1) {\n" |
| 1902 |
" perror(\"read\");\n" |
| 1903 |
" exit(EXIT_FAILURE);\n" |
| 1904 |
" }\n" |
| 1905 |
"\\&\n" |
| 1906 |
" /* Ensure buffer is 0-terminated. */\n" |
| 1907 |
"\\&\n" |
| 1908 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 1909 |
"\\&\n" |
| 1910 |
" /* Handle commands. */\n" |
| 1911 |
"\\&\n" |
| 1912 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 1913 |
" down_flag = 1;\n" |
| 1914 |
" continue;\n" |
| 1915 |
" }\n" |
| 1916 |
"\\&\n" |
| 1917 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 1918 |
" break;\n" |
| 1919 |
" }\n" |
| 1920 |
"\\&\n" |
| 1921 |
" if (down_flag) {\n" |
| 1922 |
" continue;\n" |
| 1923 |
" }\n" |
| 1924 |
"\\&\n" |
| 1925 |
" /* Add received summand. */\n" |
| 1926 |
"\\&\n" |
| 1927 |
" result += atoi(buffer);\n" |
| 1928 |
" }\n" |
| 1929 |
"\\&\n" |
| 1930 |
" /* Send result. */\n" |
| 1931 |
"\\&\n" |
| 1932 |
" sprintf(buffer, \"%d\", result);\n" |
| 1933 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 1934 |
" if (w == -1) {\n" |
| 1935 |
" perror(\"write\");\n" |
| 1936 |
" exit(EXIT_FAILURE);\n" |
| 1937 |
" }\n" |
| 1938 |
"\\&\n" |
| 1939 |
" /* Close socket. */\n" |
| 1940 |
"\\&\n" |
| 1941 |
" close(data_socket);\n" |
| 1942 |
"\\&\n" |
| 1943 |
" /* Quit on DOWN command. */\n" |
| 1944 |
"\\&\n" |
| 1945 |
" if (down_flag) {\n" |
| 1946 |
" break;\n" |
| 1947 |
" }\n" |
| 1948 |
" }\n" |
| 1949 |
"\\&\n" |
| 1950 |
" close(connection_socket);\n" |
| 1951 |
"\\&\n" |
| 1952 |
" /* Unlink the socket. */\n" |
| 1953 |
"\\&\n" |
| 1954 |
" unlink(SOCKET_NAME);\n" |
| 1955 |
"\\&\n" |
| 1956 |
" exit(EXIT_SUCCESS);\n" |
| 1957 |
"}\n" |
| 1958 |
msgstr "" |
| 1959 |
"/*\n" |
| 1960 |
" * File server.c\n" |
| 1961 |
" */\n" |
| 1962 |
"\\&\n" |
| 1963 |
"#include E<lt>stdio.hE<gt>\n" |
| 1964 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1965 |
"#include E<lt>string.hE<gt>\n" |
| 1966 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 1967 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1968 |
"#include E<lt>sys/un.hE<gt>\n" |
| 1969 |
"#include E<lt>unistd.hE<gt>\n" |
| 1970 |
"\\&\n" |
| 1971 |
"#include \"connection.h\"\n" |
| 1972 |
"\\&\n" |
| 1973 |
"int\n" |
| 1974 |
"main(void)\n" |
| 1975 |
"{\n" |
| 1976 |
" int down_flag = 0;\n" |
| 1977 |
" int ret;\n" |
| 1978 |
" int connection_socket;\n" |
| 1979 |
" int data_socket;\n" |
| 1980 |
" int result;\n" |
| 1981 |
" ssize_t r, w;\n" |
| 1982 |
" struct sockaddr_un name;\n" |
| 1983 |
" char buffer[BUFFER_SIZE];\n" |
| 1984 |
"\\&\n" |
| 1985 |
" /* Create local socket. */\n" |
| 1986 |
"\\&\n" |
| 1987 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 1988 |
" if (connection_socket == -1) {\n" |
| 1989 |
" perror(\"socket\");\n" |
| 1990 |
" exit(EXIT_FAILURE);\n" |
| 1991 |
" }\n" |
| 1992 |
"\\&\n" |
| 1993 |
" /*\n" |
| 1994 |
" * For portability clear the whole structure, since some\n" |
| 1995 |
" * implementations have additional (nonstandard) fields in\n" |
| 1996 |
" * the structure.\n" |
| 1997 |
" */\n" |
| 1998 |
"\\&\n" |
| 1999 |
" memset(&name, 0, sizeof(name));\n" |
| 2000 |
"\\&\n" |
| 2001 |
" /* Bind socket to socket name. */\n" |
| 2002 |
"\\&\n" |
| 2003 |
" name.sun_family = AF_UNIX;\n" |
| 2004 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 2005 |
"\\&\n" |
| 2006 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 2007 |
" sizeof(name));\n" |
| 2008 |
" if (ret == -1) {\n" |
| 2009 |
" perror(\"bind\");\n" |
| 2010 |
" exit(EXIT_FAILURE);\n" |
| 2011 |
" }\n" |
| 2012 |
"\\&\n" |
| 2013 |
" /*\n" |
| 2014 |
" * Prepare for accepting connections. The backlog size is set\n" |
| 2015 |
" * to 20. So while one request is being processed other requests\n" |
| 2016 |
" * can be waiting.\n" |
| 2017 |
" */\n" |
| 2018 |
"\\&\n" |
| 2019 |
" ret = listen(connection_socket, 20);\n" |
| 2020 |
" if (ret == -1) {\n" |
| 2021 |
" perror(\"listen\");\n" |
| 2022 |
" exit(EXIT_FAILURE);\n" |
| 2023 |
" }\n" |
| 2024 |
"\\&\n" |
| 2025 |
" /* This is the main loop for handling connections. */\n" |
| 2026 |
"\\&\n" |
| 2027 |
" for (;;) {\n" |
| 2028 |
"\\&\n" |
| 2029 |
" /* Wait for incoming connection. */\n" |
| 2030 |
"\\&\n" |
| 2031 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 2032 |
" if (data_socket == -1) {\n" |
| 2033 |
" perror(\"accept\");\n" |
| 2034 |
" exit(EXIT_FAILURE);\n" |
| 2035 |
" }\n" |
| 2036 |
"\\&\n" |
| 2037 |
" result = 0;\n" |
| 2038 |
" for (;;) {\n" |
| 2039 |
"\\&\n" |
| 2040 |
" /* Wait for next data packet. */\n" |
| 2041 |
"\\&\n" |
| 2042 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2043 |
" if (r == -1) {\n" |
| 2044 |
" perror(\"read\");\n" |
| 2045 |
" exit(EXIT_FAILURE);\n" |
| 2046 |
" }\n" |
| 2047 |
"\\&\n" |
| 2048 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2049 |
"\\&\n" |
| 2050 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2051 |
"\\&\n" |
| 2052 |
" /* Handle commands. */\n" |
| 2053 |
"\\&\n" |
| 2054 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 2055 |
" down_flag = 1;\n" |
| 2056 |
" continue;\n" |
| 2057 |
" }\n" |
| 2058 |
"\\&\n" |
| 2059 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2060 |
" break;\n" |
| 2061 |
" }\n" |
| 2062 |
"\\&\n" |
| 2063 |
" if (down_flag) {\n" |
| 2064 |
" continue;\n" |
| 2065 |
" }\n" |
| 2066 |
"\\&\n" |
| 2067 |
" /* Add received summand. */\n" |
| 2068 |
"\\&\n" |
| 2069 |
" result += atoi(buffer);\n" |
| 2070 |
" }\n" |
| 2071 |
"\\&\n" |
| 2072 |
" /* Send result. */\n" |
| 2073 |
"\\&\n" |
| 2074 |
" sprintf(buffer, \"%d\", result);\n" |
| 2075 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2076 |
" if (w == -1) {\n" |
| 2077 |
" perror(\"write\");\n" |
| 2078 |
" exit(EXIT_FAILURE);\n" |
| 2079 |
" }\n" |
| 2080 |
"\\&\n" |
| 2081 |
" /* Close socket. */\n" |
| 2082 |
"\\&\n" |
| 2083 |
" close(data_socket);\n" |
| 2084 |
"\\&\n" |
| 2085 |
" /* Quit on DOWN command. */\n" |
| 2086 |
"\\&\n" |
| 2087 |
" if (down_flag) {\n" |
| 2088 |
" break;\n" |
| 2089 |
" }\n" |
| 2090 |
" }\n" |
| 2091 |
"\\&\n" |
| 2092 |
" close(connection_socket);\n" |
| 2093 |
"\\&\n" |
| 2094 |
" /* Unlink the socket. */\n" |
| 2095 |
"\\&\n" |
| 2096 |
" unlink(SOCKET_NAME);\n" |
| 2097 |
"\\&\n" |
| 2098 |
" exit(EXIT_SUCCESS);\n" |
| 2099 |
"}\n" |
| 2100 |
|
| 2101 |
#. type: Plain text |
| 2102 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 2103 |
#: opensuse-tumbleweed |
| 2104 |
#, no-wrap |
| 2105 |
msgid "" |
| 2106 |
"/*\n" |
| 2107 |
" * File client.c\n" |
| 2108 |
" */\n" |
| 2109 |
"\\&\n" |
| 2110 |
"#include E<lt>stdio.hE<gt>\n" |
| 2111 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2112 |
"#include E<lt>string.hE<gt>\n" |
| 2113 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2114 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2115 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2116 |
"#include E<lt>unistd.hE<gt>\n" |
| 2117 |
"\\&\n" |
| 2118 |
"#include \"connection.h\"\n" |
| 2119 |
"\\&\n" |
| 2120 |
"int\n" |
| 2121 |
"main(int argc, char *argv[])\n" |
| 2122 |
"{\n" |
| 2123 |
" int ret;\n" |
| 2124 |
" int data_socket;\n" |
| 2125 |
" ssize_t r, w;\n" |
| 2126 |
" struct sockaddr_un addr;\n" |
| 2127 |
" char buffer[BUFFER_SIZE];\n" |
| 2128 |
"\\&\n" |
| 2129 |
" /* Create local socket. */\n" |
| 2130 |
"\\&\n" |
| 2131 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2132 |
" if (data_socket == -1) {\n" |
| 2133 |
" perror(\"socket\");\n" |
| 2134 |
" exit(EXIT_FAILURE);\n" |
| 2135 |
" }\n" |
| 2136 |
"\\&\n" |
| 2137 |
" /*\n" |
| 2138 |
" * For portability clear the whole structure, since some\n" |
| 2139 |
" * implementations have additional (nonstandard) fields in\n" |
| 2140 |
" * the structure.\n" |
| 2141 |
" */\n" |
| 2142 |
"\\&\n" |
| 2143 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2144 |
"\\&\n" |
| 2145 |
" /* Connect socket to socket address. */\n" |
| 2146 |
"\\&\n" |
| 2147 |
" addr.sun_family = AF_UNIX;\n" |
| 2148 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2149 |
"\\&\n" |
| 2150 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2151 |
" sizeof(addr));\n" |
| 2152 |
" if (ret == -1) {\n" |
| 2153 |
" fprintf(stderr, \"The server is down.\\[rs]n\");\n" |
| 2154 |
" exit(EXIT_FAILURE);\n" |
| 2155 |
" }\n" |
| 2156 |
"\\&\n" |
| 2157 |
" /* Send arguments. */\n" |
| 2158 |
"\\&\n" |
| 2159 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2160 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2161 |
" if (w == -1) {\n" |
| 2162 |
" perror(\"write\");\n" |
| 2163 |
" break;\n" |
| 2164 |
" }\n" |
| 2165 |
" }\n" |
| 2166 |
"\\&\n" |
| 2167 |
" /* Request result. */\n" |
| 2168 |
"\\&\n" |
| 2169 |
" strcpy(buffer, \"END\");\n" |
| 2170 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2171 |
" if (w == -1) {\n" |
| 2172 |
" perror(\"write\");\n" |
| 2173 |
" exit(EXIT_FAILURE);\n" |
| 2174 |
" }\n" |
| 2175 |
"\\&\n" |
| 2176 |
" /* Receive result. */\n" |
| 2177 |
"\\&\n" |
| 2178 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2179 |
" if (r == -1) {\n" |
| 2180 |
" perror(\"read\");\n" |
| 2181 |
" exit(EXIT_FAILURE);\n" |
| 2182 |
" }\n" |
| 2183 |
"\\&\n" |
| 2184 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2185 |
"\\&\n" |
| 2186 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2187 |
"\\&\n" |
| 2188 |
" printf(\"Result = %s\\[rs]n\", buffer);\n" |
| 2189 |
"\\&\n" |
| 2190 |
" /* Close socket. */\n" |
| 2191 |
"\\&\n" |
| 2192 |
" close(data_socket);\n" |
| 2193 |
"\\&\n" |
| 2194 |
" exit(EXIT_SUCCESS);\n" |
| 2195 |
"}\n" |
| 2196 |
msgstr "" |
| 2197 |
"/*\n" |
| 2198 |
" * File client.c\n" |
| 2199 |
" */\n" |
| 2200 |
"\\&\n" |
| 2201 |
"#include E<lt>stdio.hE<gt>\n" |
| 2202 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2203 |
"#include E<lt>string.hE<gt>\n" |
| 2204 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2205 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2206 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2207 |
"#include E<lt>unistd.hE<gt>\n" |
| 2208 |
"\\&\n" |
| 2209 |
"#include \"connection.h\"\n" |
| 2210 |
"\\&\n" |
| 2211 |
"int\n" |
| 2212 |
"main(int argc, char *argv[])\n" |
| 2213 |
"{\n" |
| 2214 |
" int ret;\n" |
| 2215 |
" int data_socket;\n" |
| 2216 |
" ssize_t r, w;\n" |
| 2217 |
" struct sockaddr_un addr;\n" |
| 2218 |
" char buffer[BUFFER_SIZE];\n" |
| 2219 |
"\\&\n" |
| 2220 |
" /* Create local socket. */\n" |
| 2221 |
"\\&\n" |
| 2222 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2223 |
" if (data_socket == -1) {\n" |
| 2224 |
" perror(\"socket\");\n" |
| 2225 |
" exit(EXIT_FAILURE);\n" |
| 2226 |
" }\n" |
| 2227 |
"\\&\n" |
| 2228 |
" /*\n" |
| 2229 |
" * For portability clear the whole structure, since some\n" |
| 2230 |
" * implementations have additional (nonstandard) fields in\n" |
| 2231 |
" * the structure.\n" |
| 2232 |
" */\n" |
| 2233 |
"\\&\n" |
| 2234 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2235 |
"\\&\n" |
| 2236 |
" /* Connect socket to socket address. */\n" |
| 2237 |
"\\&\n" |
| 2238 |
" addr.sun_family = AF_UNIX;\n" |
| 2239 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2240 |
"\\&\n" |
| 2241 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2242 |
" sizeof(addr));\n" |
| 2243 |
" if (ret == -1) {\n" |
| 2244 |
" fprintf(stderr, \"The server is down.\\[rs]n\");\n" |
| 2245 |
" exit(EXIT_FAILURE);\n" |
| 2246 |
" }\n" |
| 2247 |
"\\&\n" |
| 2248 |
" /* Send arguments. */\n" |
| 2249 |
"\\&\n" |
| 2250 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2251 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2252 |
" if (w == -1) {\n" |
| 2253 |
" perror(\"write\");\n" |
| 2254 |
" break;\n" |
| 2255 |
" }\n" |
| 2256 |
" }\n" |
| 2257 |
"\\&\n" |
| 2258 |
" /* Request result. */\n" |
| 2259 |
"\\&\n" |
| 2260 |
" strcpy(buffer, \"END\");\n" |
| 2261 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2262 |
" if (w == -1) {\n" |
| 2263 |
" perror(\"write\");\n" |
| 2264 |
" exit(EXIT_FAILURE);\n" |
| 2265 |
" }\n" |
| 2266 |
"\\&\n" |
| 2267 |
" /* Receive result. */\n" |
| 2268 |
"\\&\n" |
| 2269 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2270 |
" if (r == -1) {\n" |
| 2271 |
" perror(\"read\");\n" |
| 2272 |
" exit(EXIT_FAILURE);\n" |
| 2273 |
" }\n" |
| 2274 |
"\\&\n" |
| 2275 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2276 |
"\\&\n" |
| 2277 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2278 |
"\\&\n" |
| 2279 |
" printf(\"Result = %s\\[rs]n\", buffer);\n" |
| 2280 |
"\\&\n" |
| 2281 |
" /* Close socket. */\n" |
| 2282 |
"\\&\n" |
| 2283 |
" close(data_socket);\n" |
| 2284 |
"\\&\n" |
| 2285 |
" exit(EXIT_SUCCESS);\n" |
| 2286 |
"}\n" |
| 2287 |
|
| 2288 |
#. type: Plain text |
| 2289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2291 |
msgid "" |
| 2292 |
"For examples of the use of B<SCM_RIGHTS>, see B<cmsg>(3) and " |
| 2293 |
"B<seccomp_unotify>(2)." |
| 2294 |
msgstr "" |
| 2295 |
"للحصول على أمثلة لاستخدام B<SCM_RIGHTS>، انظر B<cmsg>(3) و " |
| 2296 |
"B<seccomp_unotify>(2)." |
| 2297 |
|
| 2298 |
#. type: SH |
| 2299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2301 |
#, no-wrap |
| 2302 |
msgid "SEE ALSO" |
| 2303 |
msgstr "انظر أيضًا" |
| 2304 |
|
| 2305 |
#. type: Plain text |
| 2306 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 2307 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 2308 |
msgid "" |
| 2309 |
"B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), " |
| 2310 |
"B<capabilities>(7), B<credentials>(7), B<socket>(7), B<udp>(7)" |
| 2311 |
msgstr "" |
| 2312 |
"B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), " |
| 2313 |
"B<capabilities>(7), B<credentials>(7), B<socket>(7), B<udp>(7)" |
| 2314 |
|
| 2315 |
#. type: TH |
| 2316 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2317 |
#, no-wrap |
| 2318 |
msgid "2024-06-15" |
| 2319 |
msgstr "15 يونيو 2024" |
| 2320 |
|
| 2321 |
#. type: TH |
| 2322 |
#: debian-trixie |
| 2323 |
#, no-wrap |
| 2324 |
msgid "Linux man-pages 6.9.1" |
| 2325 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 2326 |
|
| 2327 |
#. type: TP |
| 2328 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2329 |
#, no-wrap |
| 2330 |
msgid "B<SO_PEERSEC>" |
| 2331 |
msgstr "B<SO_PEERSEC>" |
| 2332 |
|
| 2333 |
#. type: Plain text |
| 2334 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2335 |
msgid "" |
| 2336 |
"This read-only socket option returns the security context of the peer socket " |
| 2337 |
"connected to this socket. By default, this will be the same as the security " |
| 2338 |
"context of the process that created the peer socket unless overridden by the " |
| 2339 |
"policy or by a process with the required permissions." |
| 2340 |
msgstr "" |
| 2341 |
"يعيد خيار المقبس للقراءة فقط هذا سياق الأمان لمقبس النظير المتصل بهذا " |
| 2342 |
"المقبس. مبدئيًا، سيكون هذا مماثلاً لسياق الأمان للعملية التي أنشأت مقبس " |
| 2343 |
"النظير ما لم يتم تجاوزه بواسطة السياسة أو بواسطة عملية تمتلك الصلاحيات " |
| 2344 |
"المطلوبة." |
| 2345 |
|
| 2346 |
#. type: Plain text |
| 2347 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2348 |
msgid "" |
| 2349 |
"The argument to B<getsockopt>(2) is a pointer to a buffer of the specified " |
| 2350 |
"length in bytes into which the security context string will be copied. If " |
| 2351 |
"the buffer length is less than the length of the security context string, " |
| 2352 |
"then B<getsockopt>(2) returns -1, sets I<errno> to B<ERANGE>, and returns " |
| 2353 |
"the required length via I<optlen>. The caller should allocate at least " |
| 2354 |
"B<NAME_MAX> bytes for the buffer initially, although this is not guaranteed " |
| 2355 |
"to be sufficient. Resizing the buffer to the returned length and retrying " |
| 2356 |
"may be necessary." |
| 2357 |
msgstr "" |
| 2358 |
"المعامل لـ B<getsockopt>(2) هو مؤشر لمخزن مؤقت بالطول المحدد بالبايت والذي " |
| 2359 |
"ستُنسخ إليه سلسلة سياق الأمان. إذا كان طول المخزن المؤقت أقل من طول سلسلة " |
| 2360 |
"سياق الأمان، فإن B<getsockopt>(2) يعيد -1، ويضبط I<errno> على B<ERANGE>، " |
| 2361 |
"ويعيد الطول المطلوب عبر I<optlen>. يجب على المستدعي تخصيص B<NAME_MAX> بايت " |
| 2362 |
"على الأقل للمخزن المؤقت في البداية، على الرغم من أن هذا غير مضمون ليكون " |
| 2363 |
"كافيًا. قد يكون من الضروري تغيير حجم المخزن المؤقت إلى الطول المعاد وإعادة " |
| 2364 |
"المحاولة." |
| 2365 |
|
| 2366 |
#. type: Plain text |
| 2367 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2368 |
msgid "" |
| 2369 |
"The security context string may include a terminating null character in the " |
| 2370 |
"returned length, but is not guaranteed to do so: a security context \"foo\" " |
| 2371 |
"might be represented as either {'f','o','o'} of length 3 or " |
| 2372 |
"{'f','o','o','\\e0'} of length 4, which are considered to be " |
| 2373 |
"interchangeable. The string is printable, does not contain non-terminating " |
| 2374 |
"null characters, and is in an unspecified encoding (in particular, it is not " |
| 2375 |
"guaranteed to be ASCII or UTF-8)." |
| 2376 |
msgstr "" |
| 2377 |
"قد تتضمن سلسلة سياق الأمان محرف null نهائياً في الطول المرجع، ولكن ليس مضموناً " |
| 2378 |
"القيام بذلك: سياق الأمان \"foo\" قد يُمثل إما كـ {'f','o','o'} بطول 3 أو " |
| 2379 |
"{'f','o','o','\\e0'} بطول 4، واللذان يعتبران قابلين للتبادل. السلسلة قابلة " |
| 2380 |
"للطباعة، ولا تحتوي على محارف null غير نهائية، وهي بترميز غير محدد (على وجه " |
| 2381 |
"الخصوص، ليس مضموناً أن تكون ASCII أو UTF-8)." |
| 2382 |
|
| 2383 |
#. commit 0b811db2cb2aabc910e53d34ebb95a15997c33e7 |
| 2384 |
#. type: Plain text |
| 2385 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2386 |
msgid "" |
| 2387 |
"The use of this option for sockets in the B<AF_UNIX> address family is " |
| 2388 |
"supported since Linux 2.6.2 for connected stream sockets, and since Linux " |
| 2389 |
"4.18 also for stream and datagram socket pairs created using " |
| 2390 |
"B<socketpair>(2)." |
| 2391 |
msgstr "" |
| 2392 |
"استخدام هذا الخيار للمقابس في عائلة العناوين B<AF_UNIX> مدعوم منذ Linux " |
| 2393 |
"2.6.2 لمقابس التدفق المتصلة، ومنذ Linux 4.18 أيضًا لأزواج مقابس التدفق " |
| 2394 |
"والبيانات التي تم إنشاؤها باستخدام B<socketpair>(2)." |
| 2395 |
|
| 2396 |
#. type: Plain text |
| 2397 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2398 |
#, no-wrap |
| 2399 |
msgid "" |
| 2400 |
"$ B<./server &>\n" |
| 2401 |
"[1] 25887\n" |
| 2402 |
"$ B<./client 3 4>\n" |
| 2403 |
"Result = 7\n" |
| 2404 |
"$ B<./client 11 -5>\n" |
| 2405 |
"Result = 6\n" |
| 2406 |
"$ B<./client DOWN>\n" |
| 2407 |
"Result = 0\n" |
| 2408 |
"[1]+ Done ./server\n" |
| 2409 |
"$\n" |
| 2410 |
msgstr "" |
| 2411 |
"$ B<./server &>\n" |
| 2412 |
"[1] 25887\n" |
| 2413 |
"$ B<./client 3 4>\n" |
| 2414 |
"Result = 7\n" |
| 2415 |
"$ B<./client 11 -5>\n" |
| 2416 |
"Result = 6\n" |
| 2417 |
"$ B<./client DOWN>\n" |
| 2418 |
"Result = 0\n" |
| 2419 |
"[1]+ Done ./server\n" |
| 2420 |
"$\n" |
| 2421 |
|
| 2422 |
#. type: Plain text |
| 2423 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2424 |
#, no-wrap |
| 2425 |
msgid "" |
| 2426 |
"/*\n" |
| 2427 |
" * File server.c\n" |
| 2428 |
" */\n" |
| 2429 |
"\\&\n" |
| 2430 |
"#include E<lt>stdio.hE<gt>\n" |
| 2431 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2432 |
"#include E<lt>string.hE<gt>\n" |
| 2433 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2434 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2435 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2436 |
"#include E<lt>unistd.hE<gt>\n" |
| 2437 |
"\\&\n" |
| 2438 |
"#include \"connection.h\"\n" |
| 2439 |
"\\&\n" |
| 2440 |
"int\n" |
| 2441 |
"main(void)\n" |
| 2442 |
"{\n" |
| 2443 |
" int down_flag = 0;\n" |
| 2444 |
" int ret;\n" |
| 2445 |
" int connection_socket;\n" |
| 2446 |
" int data_socket;\n" |
| 2447 |
" int result;\n" |
| 2448 |
" ssize_t r, w;\n" |
| 2449 |
" struct sockaddr_un name;\n" |
| 2450 |
" char buffer[BUFFER_SIZE];\n" |
| 2451 |
"\\&\n" |
| 2452 |
" /* Create local socket. */\n" |
| 2453 |
"\\&\n" |
| 2454 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2455 |
" if (connection_socket == -1) {\n" |
| 2456 |
" perror(\"socket\");\n" |
| 2457 |
" exit(EXIT_FAILURE);\n" |
| 2458 |
" }\n" |
| 2459 |
"\\&\n" |
| 2460 |
" /*\n" |
| 2461 |
" * For portability clear the whole structure, since some\n" |
| 2462 |
" * implementations have additional (nonstandard) fields in\n" |
| 2463 |
" * the structure.\n" |
| 2464 |
" */\n" |
| 2465 |
"\\&\n" |
| 2466 |
" memset(&name, 0, sizeof(name));\n" |
| 2467 |
"\\&\n" |
| 2468 |
" /* Bind socket to socket name. */\n" |
| 2469 |
"\\&\n" |
| 2470 |
" name.sun_family = AF_UNIX;\n" |
| 2471 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 2472 |
"\\&\n" |
| 2473 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 2474 |
" sizeof(name));\n" |
| 2475 |
" if (ret == -1) {\n" |
| 2476 |
" perror(\"bind\");\n" |
| 2477 |
" exit(EXIT_FAILURE);\n" |
| 2478 |
" }\n" |
| 2479 |
"\\&\n" |
| 2480 |
" /*\n" |
| 2481 |
" * Prepare for accepting connections. The backlog size is set\n" |
| 2482 |
" * to 20. So while one request is being processed other requests\n" |
| 2483 |
" * can be waiting.\n" |
| 2484 |
" */\n" |
| 2485 |
"\\&\n" |
| 2486 |
" ret = listen(connection_socket, 20);\n" |
| 2487 |
" if (ret == -1) {\n" |
| 2488 |
" perror(\"listen\");\n" |
| 2489 |
" exit(EXIT_FAILURE);\n" |
| 2490 |
" }\n" |
| 2491 |
"\\&\n" |
| 2492 |
" /* This is the main loop for handling connections. */\n" |
| 2493 |
"\\&\n" |
| 2494 |
" for (;;) {\n" |
| 2495 |
"\\&\n" |
| 2496 |
" /* Wait for incoming connection. */\n" |
| 2497 |
"\\&\n" |
| 2498 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 2499 |
" if (data_socket == -1) {\n" |
| 2500 |
" perror(\"accept\");\n" |
| 2501 |
" exit(EXIT_FAILURE);\n" |
| 2502 |
" }\n" |
| 2503 |
"\\&\n" |
| 2504 |
" result = 0;\n" |
| 2505 |
" for (;;) {\n" |
| 2506 |
"\\&\n" |
| 2507 |
" /* Wait for next data packet. */\n" |
| 2508 |
"\\&\n" |
| 2509 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2510 |
" if (r == -1) {\n" |
| 2511 |
" perror(\"read\");\n" |
| 2512 |
" exit(EXIT_FAILURE);\n" |
| 2513 |
" }\n" |
| 2514 |
"\\&\n" |
| 2515 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2516 |
"\\&\n" |
| 2517 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2518 |
"\\&\n" |
| 2519 |
" /* Handle commands. */\n" |
| 2520 |
"\\&\n" |
| 2521 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 2522 |
" down_flag = 1;\n" |
| 2523 |
" continue;\n" |
| 2524 |
" }\n" |
| 2525 |
"\\&\n" |
| 2526 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2527 |
" break;\n" |
| 2528 |
" }\n" |
| 2529 |
"\\&\n" |
| 2530 |
" if (down_flag) {\n" |
| 2531 |
" continue;\n" |
| 2532 |
" }\n" |
| 2533 |
"\\&\n" |
| 2534 |
" /* Add received summand. */\n" |
| 2535 |
"\\&\n" |
| 2536 |
" result += atoi(buffer);\n" |
| 2537 |
" }\n" |
| 2538 |
"\\&\n" |
| 2539 |
" /* Send result. */\n" |
| 2540 |
"\\&\n" |
| 2541 |
" sprintf(buffer, \"%d\", result);\n" |
| 2542 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2543 |
" if (w == -1) {\n" |
| 2544 |
" perror(\"write\");\n" |
| 2545 |
" exit(EXIT_FAILURE);\n" |
| 2546 |
" }\n" |
| 2547 |
"\\&\n" |
| 2548 |
" /* Close socket. */\n" |
| 2549 |
"\\&\n" |
| 2550 |
" close(data_socket);\n" |
| 2551 |
"\\&\n" |
| 2552 |
" /* Quit on DOWN command. */\n" |
| 2553 |
"\\&\n" |
| 2554 |
" if (down_flag) {\n" |
| 2555 |
" break;\n" |
| 2556 |
" }\n" |
| 2557 |
" }\n" |
| 2558 |
"\\&\n" |
| 2559 |
" close(connection_socket);\n" |
| 2560 |
"\\&\n" |
| 2561 |
" /* Unlink the socket. */\n" |
| 2562 |
"\\&\n" |
| 2563 |
" unlink(SOCKET_NAME);\n" |
| 2564 |
"\\&\n" |
| 2565 |
" exit(EXIT_SUCCESS);\n" |
| 2566 |
"}\n" |
| 2567 |
msgstr "" |
| 2568 |
"/*\n" |
| 2569 |
" * File server.c\n" |
| 2570 |
" */\n" |
| 2571 |
"\\&\n" |
| 2572 |
"#include E<lt>stdio.hE<gt>\n" |
| 2573 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2574 |
"#include E<lt>string.hE<gt>\n" |
| 2575 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2576 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2577 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2578 |
"#include E<lt>unistd.hE<gt>\n" |
| 2579 |
"\\&\n" |
| 2580 |
"#include \"connection.h\"\n" |
| 2581 |
"\\&\n" |
| 2582 |
"int\n" |
| 2583 |
"main(void)\n" |
| 2584 |
"{\n" |
| 2585 |
" int down_flag = 0;\n" |
| 2586 |
" int ret;\n" |
| 2587 |
" int connection_socket;\n" |
| 2588 |
" int data_socket;\n" |
| 2589 |
" int result;\n" |
| 2590 |
" ssize_t r, w;\n" |
| 2591 |
" struct sockaddr_un name;\n" |
| 2592 |
" char buffer[BUFFER_SIZE];\n" |
| 2593 |
"\\&\n" |
| 2594 |
" /* Create local socket. */\n" |
| 2595 |
"\\&\n" |
| 2596 |
" connection_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2597 |
" if (connection_socket == -1) {\n" |
| 2598 |
" perror(\"socket\");\n" |
| 2599 |
" exit(EXIT_FAILURE);\n" |
| 2600 |
" }\n" |
| 2601 |
"\\&\n" |
| 2602 |
" /*\n" |
| 2603 |
" * For portability clear the whole structure, since some\n" |
| 2604 |
" * implementations have additional (nonstandard) fields in\n" |
| 2605 |
" * the structure.\n" |
| 2606 |
" */\n" |
| 2607 |
"\\&\n" |
| 2608 |
" memset(&name, 0, sizeof(name));\n" |
| 2609 |
"\\&\n" |
| 2610 |
" /* Bind socket to socket name. */\n" |
| 2611 |
"\\&\n" |
| 2612 |
" name.sun_family = AF_UNIX;\n" |
| 2613 |
" strncpy(name.sun_path, SOCKET_NAME, sizeof(name.sun_path) - 1);\n" |
| 2614 |
"\\&\n" |
| 2615 |
" ret = bind(connection_socket, (const struct sockaddr *) &name,\n" |
| 2616 |
" sizeof(name));\n" |
| 2617 |
" if (ret == -1) {\n" |
| 2618 |
" perror(\"bind\");\n" |
| 2619 |
" exit(EXIT_FAILURE);\n" |
| 2620 |
" }\n" |
| 2621 |
"\\&\n" |
| 2622 |
" /*\n" |
| 2623 |
" * Prepare for accepting connections. The backlog size is set\n" |
| 2624 |
" * to 20. So while one request is being processed other requests\n" |
| 2625 |
" * can be waiting.\n" |
| 2626 |
" */\n" |
| 2627 |
"\\&\n" |
| 2628 |
" ret = listen(connection_socket, 20);\n" |
| 2629 |
" if (ret == -1) {\n" |
| 2630 |
" perror(\"listen\");\n" |
| 2631 |
" exit(EXIT_FAILURE);\n" |
| 2632 |
" }\n" |
| 2633 |
"\\&\n" |
| 2634 |
" /* This is the main loop for handling connections. */\n" |
| 2635 |
"\\&\n" |
| 2636 |
" for (;;) {\n" |
| 2637 |
"\\&\n" |
| 2638 |
" /* Wait for incoming connection. */\n" |
| 2639 |
"\\&\n" |
| 2640 |
" data_socket = accept(connection_socket, NULL, NULL);\n" |
| 2641 |
" if (data_socket == -1) {\n" |
| 2642 |
" perror(\"accept\");\n" |
| 2643 |
" exit(EXIT_FAILURE);\n" |
| 2644 |
" }\n" |
| 2645 |
"\\&\n" |
| 2646 |
" result = 0;\n" |
| 2647 |
" for (;;) {\n" |
| 2648 |
"\\&\n" |
| 2649 |
" /* Wait for next data packet. */\n" |
| 2650 |
"\\&\n" |
| 2651 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2652 |
" if (r == -1) {\n" |
| 2653 |
" perror(\"read\");\n" |
| 2654 |
" exit(EXIT_FAILURE);\n" |
| 2655 |
" }\n" |
| 2656 |
"\\&\n" |
| 2657 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2658 |
"\\&\n" |
| 2659 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2660 |
"\\&\n" |
| 2661 |
" /* Handle commands. */\n" |
| 2662 |
"\\&\n" |
| 2663 |
" if (!strncmp(buffer, \"DOWN\", sizeof(buffer))) {\n" |
| 2664 |
" down_flag = 1;\n" |
| 2665 |
" continue;\n" |
| 2666 |
" }\n" |
| 2667 |
"\\&\n" |
| 2668 |
" if (!strncmp(buffer, \"END\", sizeof(buffer))) {\n" |
| 2669 |
" break;\n" |
| 2670 |
" }\n" |
| 2671 |
"\\&\n" |
| 2672 |
" if (down_flag) {\n" |
| 2673 |
" continue;\n" |
| 2674 |
" }\n" |
| 2675 |
"\\&\n" |
| 2676 |
" /* Add received summand. */\n" |
| 2677 |
"\\&\n" |
| 2678 |
" result += atoi(buffer);\n" |
| 2679 |
" }\n" |
| 2680 |
"\\&\n" |
| 2681 |
" /* Send result. */\n" |
| 2682 |
"\\&\n" |
| 2683 |
" sprintf(buffer, \"%d\", result);\n" |
| 2684 |
" w = write(data_socket, buffer, sizeof(buffer));\n" |
| 2685 |
" if (w == -1) {\n" |
| 2686 |
" perror(\"write\");\n" |
| 2687 |
" exit(EXIT_FAILURE);\n" |
| 2688 |
" }\n" |
| 2689 |
"\\&\n" |
| 2690 |
" /* Close socket. */\n" |
| 2691 |
"\\&\n" |
| 2692 |
" close(data_socket);\n" |
| 2693 |
"\\&\n" |
| 2694 |
" /* Quit on DOWN command. */\n" |
| 2695 |
"\\&\n" |
| 2696 |
" if (down_flag) {\n" |
| 2697 |
" break;\n" |
| 2698 |
" }\n" |
| 2699 |
" }\n" |
| 2700 |
"\\&\n" |
| 2701 |
" close(connection_socket);\n" |
| 2702 |
"\\&\n" |
| 2703 |
" /* Unlink the socket. */\n" |
| 2704 |
"\\&\n" |
| 2705 |
" unlink(SOCKET_NAME);\n" |
| 2706 |
"\\&\n" |
| 2707 |
" exit(EXIT_SUCCESS);\n" |
| 2708 |
"}\n" |
| 2709 |
|
| 2710 |
#. type: Plain text |
| 2711 |
#: debian-trixie fedora-44 fedora-rawhide |
| 2712 |
#, no-wrap |
| 2713 |
msgid "" |
| 2714 |
"/*\n" |
| 2715 |
" * File client.c\n" |
| 2716 |
" */\n" |
| 2717 |
"\\&\n" |
| 2718 |
"#include E<lt>stdio.hE<gt>\n" |
| 2719 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2720 |
"#include E<lt>string.hE<gt>\n" |
| 2721 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2722 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2723 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2724 |
"#include E<lt>unistd.hE<gt>\n" |
| 2725 |
"\\&\n" |
| 2726 |
"#include \"connection.h\"\n" |
| 2727 |
"\\&\n" |
| 2728 |
"int\n" |
| 2729 |
"main(int argc, char *argv[])\n" |
| 2730 |
"{\n" |
| 2731 |
" int ret;\n" |
| 2732 |
" int data_socket;\n" |
| 2733 |
" ssize_t r, w;\n" |
| 2734 |
" struct sockaddr_un addr;\n" |
| 2735 |
" char buffer[BUFFER_SIZE];\n" |
| 2736 |
"\\&\n" |
| 2737 |
" /* Create local socket. */\n" |
| 2738 |
"\\&\n" |
| 2739 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2740 |
" if (data_socket == -1) {\n" |
| 2741 |
" perror(\"socket\");\n" |
| 2742 |
" exit(EXIT_FAILURE);\n" |
| 2743 |
" }\n" |
| 2744 |
"\\&\n" |
| 2745 |
" /*\n" |
| 2746 |
" * For portability clear the whole structure, since some\n" |
| 2747 |
" * implementations have additional (nonstandard) fields in\n" |
| 2748 |
" * the structure.\n" |
| 2749 |
" */\n" |
| 2750 |
"\\&\n" |
| 2751 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2752 |
"\\&\n" |
| 2753 |
" /* Connect socket to socket address. */\n" |
| 2754 |
"\\&\n" |
| 2755 |
" addr.sun_family = AF_UNIX;\n" |
| 2756 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2757 |
"\\&\n" |
| 2758 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2759 |
" sizeof(addr));\n" |
| 2760 |
" if (ret == -1) {\n" |
| 2761 |
" fprintf(stderr, \"The server is down.\\[rs]n\");\n" |
| 2762 |
" exit(EXIT_FAILURE);\n" |
| 2763 |
" }\n" |
| 2764 |
"\\&\n" |
| 2765 |
" /* Send arguments. */\n" |
| 2766 |
"\\&\n" |
| 2767 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2768 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2769 |
" if (w == -1) {\n" |
| 2770 |
" perror(\"write\");\n" |
| 2771 |
" break;\n" |
| 2772 |
" }\n" |
| 2773 |
" }\n" |
| 2774 |
"\\&\n" |
| 2775 |
" /* Request result. */\n" |
| 2776 |
"\\&\n" |
| 2777 |
" strcpy(buffer, \"END\");\n" |
| 2778 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2779 |
" if (w == -1) {\n" |
| 2780 |
" perror(\"write\");\n" |
| 2781 |
" exit(EXIT_FAILURE);\n" |
| 2782 |
" }\n" |
| 2783 |
"\\&\n" |
| 2784 |
" /* Receive result. */\n" |
| 2785 |
"\\&\n" |
| 2786 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2787 |
" if (r == -1) {\n" |
| 2788 |
" perror(\"read\");\n" |
| 2789 |
" exit(EXIT_FAILURE);\n" |
| 2790 |
" }\n" |
| 2791 |
"\\&\n" |
| 2792 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2793 |
"\\&\n" |
| 2794 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2795 |
"\\&\n" |
| 2796 |
" printf(\"Result = %s\\[rs]n\", buffer);\n" |
| 2797 |
"\\&\n" |
| 2798 |
" /* Close socket. */\n" |
| 2799 |
"\\&\n" |
| 2800 |
" close(data_socket);\n" |
| 2801 |
"\\&\n" |
| 2802 |
" exit(EXIT_SUCCESS);\n" |
| 2803 |
"}\n" |
| 2804 |
msgstr "" |
| 2805 |
"/*\n" |
| 2806 |
" * File client.c\n" |
| 2807 |
" */\n" |
| 2808 |
"\\&\n" |
| 2809 |
"#include E<lt>stdio.hE<gt>\n" |
| 2810 |
"#include E<lt>stdlib.hE<gt>\n" |
| 2811 |
"#include E<lt>string.hE<gt>\n" |
| 2812 |
"#include E<lt>sys/socket.hE<gt>\n" |
| 2813 |
"#include E<lt>sys/types.hE<gt>\n" |
| 2814 |
"#include E<lt>sys/un.hE<gt>\n" |
| 2815 |
"#include E<lt>unistd.hE<gt>\n" |
| 2816 |
"\\&\n" |
| 2817 |
"#include \"connection.h\"\n" |
| 2818 |
"\\&\n" |
| 2819 |
"int\n" |
| 2820 |
"main(int argc, char *argv[])\n" |
| 2821 |
"{\n" |
| 2822 |
" int ret;\n" |
| 2823 |
" int data_socket;\n" |
| 2824 |
" ssize_t r, w;\n" |
| 2825 |
" struct sockaddr_un addr;\n" |
| 2826 |
" char buffer[BUFFER_SIZE];\n" |
| 2827 |
"\\&\n" |
| 2828 |
" /* Create local socket. */\n" |
| 2829 |
"\\&\n" |
| 2830 |
" data_socket = socket(AF_UNIX, SOCK_SEQPACKET, 0);\n" |
| 2831 |
" if (data_socket == -1) {\n" |
| 2832 |
" perror(\"socket\");\n" |
| 2833 |
" exit(EXIT_FAILURE);\n" |
| 2834 |
" }\n" |
| 2835 |
"\\&\n" |
| 2836 |
" /*\n" |
| 2837 |
" * For portability clear the whole structure, since some\n" |
| 2838 |
" * implementations have additional (nonstandard) fields in\n" |
| 2839 |
" * the structure.\n" |
| 2840 |
" */\n" |
| 2841 |
"\\&\n" |
| 2842 |
" memset(&addr, 0, sizeof(addr));\n" |
| 2843 |
"\\&\n" |
| 2844 |
" /* Connect socket to socket address. */\n" |
| 2845 |
"\\&\n" |
| 2846 |
" addr.sun_family = AF_UNIX;\n" |
| 2847 |
" strncpy(addr.sun_path, SOCKET_NAME, sizeof(addr.sun_path) - 1);\n" |
| 2848 |
"\\&\n" |
| 2849 |
" ret = connect(data_socket, (const struct sockaddr *) &addr,\n" |
| 2850 |
" sizeof(addr));\n" |
| 2851 |
" if (ret == -1) {\n" |
| 2852 |
" fprintf(stderr, \"The server is down.\\[rs]n\");\n" |
| 2853 |
" exit(EXIT_FAILURE);\n" |
| 2854 |
" }\n" |
| 2855 |
"\\&\n" |
| 2856 |
" /* Send arguments. */\n" |
| 2857 |
"\\&\n" |
| 2858 |
" for (int i = 1; i E<lt> argc; ++i) {\n" |
| 2859 |
" w = write(data_socket, argv[i], strlen(argv[i]) + 1);\n" |
| 2860 |
" if (w == -1) {\n" |
| 2861 |
" perror(\"write\");\n" |
| 2862 |
" break;\n" |
| 2863 |
" }\n" |
| 2864 |
" }\n" |
| 2865 |
"\\&\n" |
| 2866 |
" /* Request result. */\n" |
| 2867 |
"\\&\n" |
| 2868 |
" strcpy(buffer, \"END\");\n" |
| 2869 |
" w = write(data_socket, buffer, strlen(buffer) + 1);\n" |
| 2870 |
" if (w == -1) {\n" |
| 2871 |
" perror(\"write\");\n" |
| 2872 |
" exit(EXIT_FAILURE);\n" |
| 2873 |
" }\n" |
| 2874 |
"\\&\n" |
| 2875 |
" /* Receive result. */\n" |
| 2876 |
"\\&\n" |
| 2877 |
" r = read(data_socket, buffer, sizeof(buffer));\n" |
| 2878 |
" if (r == -1) {\n" |
| 2879 |
" perror(\"read\");\n" |
| 2880 |
" exit(EXIT_FAILURE);\n" |
| 2881 |
" }\n" |
| 2882 |
"\\&\n" |
| 2883 |
" /* Ensure buffer is 0-terminated. */\n" |
| 2884 |
"\\&\n" |
| 2885 |
" buffer[sizeof(buffer) - 1] = 0;\n" |
| 2886 |
"\\&\n" |
| 2887 |
" printf(\"Result = %s\\[rs]n\", buffer);\n" |
| 2888 |
"\\&\n" |
| 2889 |
" /* Close socket. */\n" |
| 2890 |
"\\&\n" |
| 2891 |
" close(data_socket);\n" |
| 2892 |
"\\&\n" |
| 2893 |
" exit(EXIT_SUCCESS);\n" |
| 2894 |
"}\n" |
| 2895 |
|
| 2896 |
#. type: TH |
| 2897 |
#: fedora-44 fedora-rawhide |
| 2898 |
#, no-wrap |
| 2899 |
msgid "Linux man-pages 6.13" |
| 2900 |
msgstr "صفحات دليل لينكس 6.13" |
| 2901 |
|
| 2902 |
#. type: TH |
| 2903 |
#: mageia-cauldron |
| 2904 |
#, no-wrap |
| 2905 |
msgid "Linux man-pages 6.17" |
| 2906 |
msgstr "صفحات دليل لينكس 6.17" |
| 2907 |
|
| 2908 |
#. type: TH |
| 2909 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 2910 |
#, no-wrap |
| 2911 |
msgid "Linux man-pages (unreleased)" |
| 2912 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |