| 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.2\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:35+0200\n" |
| 9 |
"PO-Revision-Date: 2026-06-02 19:58+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 "posix_spawn" |
| 25 |
msgstr "posix_spawn" |
| 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 "posix_spawn, posix_spawnp - spawn a process" |
| 51 |
msgstr "posix_spawn, posix_spawnp - إنجاب عملية" |
| 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 "LIBRARY" |
| 58 |
msgstr "المكتبة" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 62 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 64 |
msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "SYNOPSIS" |
| 71 |
msgstr "موجز" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "B<#include E<lt>spawn.hE<gt>>\n" |
| 78 |
msgstr "B<#include E<lt>spawn.hE<gt>>\n" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "" |
| 85 |
"B<int posix_spawn(pid_t *restrict >I<pid>B<, const char *restrict >I<path>B<,>\n" |
| 86 |
"B< const posix_spawn_file_actions_t *restrict >I<file_actions>B<,>\n" |
| 87 |
"B< const posix_spawnattr_t *restrict >I<attrp>B<,>\n" |
| 88 |
"B< char *const >I<argv>B<[restrict],>\n" |
| 89 |
"B< char *const >I<envp>B<[restrict]);>\n" |
| 90 |
"B<int posix_spawnp(pid_t *restrict >I<pid>B<, const char *restrict >I<file>B<,>\n" |
| 91 |
"B< const posix_spawn_file_actions_t *restrict >I<file_actions>B<,>\n" |
| 92 |
"B< const posix_spawnattr_t *restrict >I<attrp>B<,>\n" |
| 93 |
"B< char *const >I<argv>B<[restrict],>\n" |
| 94 |
"B< char *const >I<envp>B<[restrict]);>\n" |
| 95 |
msgstr "" |
| 96 |
"B<int posix_spawn(pid_t *restrict >I<pid>B<, const char *restrict >I<path>B<,>\n" |
| 97 |
"B< const posix_spawn_file_actions_t *restrict >I<file_actions>B<,>\n" |
| 98 |
"B< const posix_spawnattr_t *restrict >I<attrp>B<,>\n" |
| 99 |
"B< char *const >I<argv>B<[restrict],>\n" |
| 100 |
"B< char *const >I<envp>B<[restrict]);>\n" |
| 101 |
"B<int posix_spawnp(pid_t *restrict >I<pid>B<, const char *restrict >I<file>B<,>\n" |
| 102 |
"B< const posix_spawn_file_actions_t *restrict >I<file_actions>B<,>\n" |
| 103 |
"B< const posix_spawnattr_t *restrict >I<attrp>B<,>\n" |
| 104 |
"B< char *const >I<argv>B<[restrict],>\n" |
| 105 |
"B< char *const >I<envp>B<[restrict]);>\n" |
| 106 |
|
| 107 |
#. type: SH |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "DESCRIPTION" |
| 112 |
msgstr "الوصف" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "" |
| 118 |
"The B<posix_spawn>() and B<posix_spawnp>() functions are used to create a " |
| 119 |
"new child process that executes a specified file. These functions were " |
| 120 |
"specified by POSIX to provide a standardized method of creating new " |
| 121 |
"processes on machines that lack the capability to support the B<fork>(2) " |
| 122 |
"system call. These machines are generally small, embedded systems lacking " |
| 123 |
"MMU support." |
| 124 |
msgstr "" |
| 125 |
"تُستخدم الدالتان B<posix_spawn>() وB<posix_spawnp>() لإنشاء عملية تابعة جديدة " |
| 126 |
"تنفذ ملفًا محددًا. وُصفت هاتان الدالتان بواسطة POSIX لتوفير طريقة موحدة لإنشاء " |
| 127 |
"عمليات جديدة على آلات تفتقر إلى القدرة على دعم استدعاء النظام B<fork>(2). " |
| 128 |
"هذه الآلات هي عمومًا أنظمة مضمنة صغيرة تفتقر إلى دعم MMU." |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 132 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
msgid "" |
| 134 |
"The B<posix_spawn>() and B<posix_spawnp>() functions provide the " |
| 135 |
"functionality of a combined B<fork>(2) and B<exec>(3), with some optional " |
| 136 |
"housekeeping steps in the child process before the B<exec>(3). These " |
| 137 |
"functions are not meant to replace the B<fork>(2) and B<execve>(2) system " |
| 138 |
"calls. In fact, they provide only a subset of the functionality that can be " |
| 139 |
"achieved by using the system calls." |
| 140 |
msgstr "" |
| 141 |
"توفر الدالتان B<posix_spawn>() وB<posix_spawnp>() وظائف مدمجة لـ B<fork>(2) " |
| 142 |
"وB<exec>(3)، مع بعض خطوات الصيانة الاختيارية في العملية التابعة قبل " |
| 143 |
"B<exec>(3). لا يُقصد من هاتين الدالتين استبدال استدعاءات النظام B<fork>(2) " |
| 144 |
"وB<execve>(2). في الواقع، توفران فقط مجموعة فرعية من الوظائف التي يمكن " |
| 145 |
"تحقيقها باستخدام استدعاءات النظام." |
| 146 |
|
| 147 |
#. type: Plain text |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
msgid "" |
| 151 |
"The only difference between B<posix_spawn>() and B<posix_spawnp>() is the " |
| 152 |
"manner in which they specify the file to be executed by the child process. " |
| 153 |
"With B<posix_spawn>(), the executable file is specified as a pathname (which " |
| 154 |
"can be absolute or relative). With B<posix_spawnp>(), the executable file " |
| 155 |
"is specified as a simple filename; the system searches for this file in the " |
| 156 |
"list of directories specified by B<PATH> (in the same way as for " |
| 157 |
"B<execvp>(3)). For the remainder of this page, the discussion is phrased in " |
| 158 |
"terms of B<posix_spawn>(), with the understanding that B<posix_spawnp>() " |
| 159 |
"differs only on the point just described." |
| 160 |
msgstr "" |
| 161 |
"الفرق الوحيد بين B<posix_spawn>() وB<posix_spawnp>() هو الطريقة التي تحددان " |
| 162 |
"بها الملف الذي ستنفذه العملية التابعة. مع B<posix_spawn>()، يُحدد الملف " |
| 163 |
"القابل للتنفيذ كاسم مسار (يمكن أن يكون مطلقًا أو نسبيًا). مع " |
| 164 |
"B<posix_spawnp>()، يُحدد الملف القابل للتنفيذ كاسم ملف بسيط؛ يبحث النظام عن " |
| 165 |
"هذا الملف في قائمة الدلائل المحددة بواسطة B<PATH> (بنفس طريقة B<execvp>(3)). " |
| 166 |
"لبقية هذه الصفحة، تُصاغ المناقشة من حيث B<posix_spawn>()، مع فهم أن " |
| 167 |
"B<posix_spawnp>() يختلف فقط في النقطة الموصوفة للتو." |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
msgid "The remaining arguments to these two functions are as follows:" |
| 173 |
msgstr "الوسائط المتبقية لهاتين الدالتين هي كما يلي:" |
| 174 |
|
| 175 |
#. type: TP |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
#, no-wrap |
| 179 |
msgid "I<pid>" |
| 180 |
msgstr "I<pid>" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"points to a buffer that is used to return the process ID of the new child " |
| 187 |
"process." |
| 188 |
msgstr "يشير إلى مخزن مؤقت يُستخدم لإرجاع معرف العملية للعملية التابعة الجديدة." |
| 189 |
|
| 190 |
#. type: TP |
| 191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
#, no-wrap |
| 194 |
msgid "I<file_actions>" |
| 195 |
msgstr "I<file_actions>" |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"points to a I<spawn file actions object> that specifies file-related actions " |
| 202 |
"to be performed in the child between the B<fork>(2) and B<exec>(3) steps. " |
| 203 |
"This object is initialized and populated before the B<posix_spawn>() call " |
| 204 |
"using B<posix_spawn_file_actions_init>(3) and the " |
| 205 |
"B<posix_spawn_file_actions_*>() functions." |
| 206 |
msgstr "" |
| 207 |
"يشير إلى I<كائن إجراءات ملف الإنجاب> الذي يحدد الإجراءات المتعلقة بالملف " |
| 208 |
"التي ستنفذ في التابع بين خطوتي B<fork>(2) وB<exec>(3). يُهيأ هذا الكائن ويُملأ " |
| 209 |
"قبل استدعاء B<posix_spawn>() باستخدام B<posix_spawn_file_actions_init>(3) " |
| 210 |
"ودوال B<posix_spawn_file_actions_*>()." |
| 211 |
|
| 212 |
#. type: TP |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
#, no-wrap |
| 216 |
msgid "I<attrp>" |
| 217 |
msgstr "I<attrp>" |
| 218 |
|
| 219 |
#. type: Plain text |
| 220 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 221 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 222 |
msgid "" |
| 223 |
"points to an I<attributes objects> that specifies various attributes of the " |
| 224 |
"created child process. This object is initialized and populated before the " |
| 225 |
"B<posix_spawn>() call using B<posix_spawnattr_init>(3) and the " |
| 226 |
"B<posix_spawnattr_*>() functions." |
| 227 |
msgstr "" |
| 228 |
"يشير إلى I<كائن سمات> يحدد سمات مختلفة للعملية التابعة المنشأة. يُهيأ هذا " |
| 229 |
"الكائن ويُملأ قبل استدعاء B<posix_spawn>() باستخدام " |
| 230 |
"B<posix_spawnattr_init>(3) ودوال B<posix_spawnattr_*>()." |
| 231 |
|
| 232 |
#. type: TP |
| 233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 235 |
#, no-wrap |
| 236 |
msgid "I<argv>" |
| 237 |
msgstr "I<argv>" |
| 238 |
|
| 239 |
#. type: TQ |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
#, no-wrap |
| 243 |
msgid "I<envp>" |
| 244 |
msgstr "I<envp>" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "" |
| 250 |
"specify the argument list and environment for the program that is executed " |
| 251 |
"in the child process, as for B<execve>(2)." |
| 252 |
msgstr "" |
| 253 |
"يحددان قائمة الوسائط والبيئة للبرنامج الذي ينفذ في العملية التابعة، كما في " |
| 254 |
"B<execve>(2)." |
| 255 |
|
| 256 |
#. type: Plain text |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
msgid "" |
| 260 |
"Below, the functions are described in terms of a three-step process: the " |
| 261 |
"B<fork>() step, the pre-B<exec>() step (executed in the child), and the " |
| 262 |
"B<exec>() step (executed in the child)." |
| 263 |
msgstr "" |
| 264 |
"أدناه، تُوصف الدوال من حيث عملية من ثلاث خطوات: خطوة B<fork>()، خطوة ما قبل " |
| 265 |
"B<exec>() (تُنفذ في التابع)، وخطوة B<exec>() (تُنفذ في التابع)." |
| 266 |
|
| 267 |
#. type: SS |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "fork() step" |
| 272 |
msgstr "خطوة fork()" |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
msgid "" |
| 278 |
"Since glibc 2.24, the B<posix_spawn>() function commences by calling " |
| 279 |
"B<clone>(2) with B<CLONE_VM> and B<CLONE_VFORK> flags. Older " |
| 280 |
"implementations use B<fork>(2), or possibly B<vfork>(2) (see below)." |
| 281 |
msgstr "" |
| 282 |
"منذ glibc 2.24، تبدأ دالة B<posix_spawn>() باستدعاء B<clone>(2) مع علمي " |
| 283 |
"B<CLONE_VM> وB<CLONE_VFORK>. تستخدم التطبيقات الأقدم B<fork>(2)، أو ربما " |
| 284 |
"B<vfork>(2) (انظر أدناه)." |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "" |
| 290 |
"The PID of the new child process is placed in I<*pid>. The " |
| 291 |
"B<posix_spawn>() function then returns control to the parent process." |
| 292 |
msgstr "" |
| 293 |
"يُوضع PID العملية التابعة الجديدة في I<*pid>. ثم تُعيد دالة B<posix_spawn>() " |
| 294 |
"التحكم إلى العملية الأم." |
| 295 |
|
| 296 |
#. type: Plain text |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
msgid "" |
| 300 |
"Subsequently, the parent can use one of the system calls described in " |
| 301 |
"B<wait>(2) to check the status of the child process. If the child fails in " |
| 302 |
"any of the housekeeping steps described below, or fails to execute the " |
| 303 |
"desired file, it exits with a status of 127." |
| 304 |
msgstr "" |
| 305 |
"لاحقًا، يمكن للأب استخدام إحدى استدعاءات النظام الموصوفة في B<wait>(2) للتحقق " |
| 306 |
"من حالة العملية الابن. إذا فشل الابن في أي من خطوات الصيانة الموصوفة أدناه، " |
| 307 |
"أو فشل في تنفيذ الملف المطلوب، فإنه يخرج بحالة 127." |
| 308 |
|
| 309 |
#. type: Plain text |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
msgid "" |
| 313 |
"Before glibc 2.24, the child process is created using B<vfork>(2) instead " |
| 314 |
"of B<fork>(2) when either of the following is true:" |
| 315 |
msgstr "" |
| 316 |
"قبل glibc 2.24، تُنشأ العملية الابن باستخدام B<vfork>(2) بدلاً من B<fork>(2) " |
| 317 |
"عندما يكون أي مما يلي صحيحًا:" |
| 318 |
|
| 319 |
#. type: IP |
| 320 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 321 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 322 |
#, no-wrap |
| 323 |
msgid "\\[bu]" |
| 324 |
msgstr "\\[bu]" |
| 325 |
|
| 326 |
#. type: Plain text |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
msgid "" |
| 330 |
"the I<spawn-flags> element of the attributes object pointed to by I<attrp> " |
| 331 |
"contains the GNU-specific flag B<POSIX_SPAWN_USEVFORK>; or" |
| 332 |
msgstr "" |
| 333 |
"عنصر I<spawn-flags> لكائن السمات المشار إليه بواسطة I<attrp> يحتوي على العلم " |
| 334 |
"الخاص بـ GNU B<POSIX_SPAWN_USEVFORK>؛ أو" |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "" |
| 340 |
"I<file_actions> is NULL and the I<spawn-flags> element of the attributes " |
| 341 |
"object pointed to by I<attrp> does I<not> contain B<POSIX_SPAWN_SETSIGMASK>, " |
| 342 |
"B<POSIX_SPAWN_SETSIGDEF>, B<POSIX_SPAWN_SETSCHEDPARAM>, " |
| 343 |
"B<POSIX_SPAWN_SETSCHEDULER>, B<POSIX_SPAWN_SETPGROUP>, or " |
| 344 |
"B<POSIX_SPAWN_RESETIDS>." |
| 345 |
msgstr "" |
| 346 |
"I<file_actions> هو NULL وعنصر I<spawn-flags> لكائن السمات المشار إليه بواسطة " |
| 347 |
"I<attrp> لا I<يحتوي> على B<POSIX_SPAWN_SETSIGMASK>، " |
| 348 |
"B<POSIX_SPAWN_SETSIGDEF>، B<POSIX_SPAWN_SETSCHEDPARAM>، " |
| 349 |
"B<POSIX_SPAWN_SETSCHEDULER>، B<POSIX_SPAWN_SETPGROUP>، أو " |
| 350 |
"B<POSIX_SPAWN_RESETIDS>." |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
msgid "" |
| 356 |
"In other words, B<vfork>(2) is used if the caller requests it, or if there " |
| 357 |
"is no cleanup expected in the child before it B<exec>(3)s the requested file." |
| 358 |
msgstr "" |
| 359 |
"بعبارة أخرى، يُستخدم B<vfork>(2) إذا طلبه المتصل، أو إذا لم يكن هناك تنظيف " |
| 360 |
"متوقع في الابن قبل أن ينفذ B<exec>(3) الملف المطلوب." |
| 361 |
|
| 362 |
#. type: SS |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
#, no-wrap |
| 366 |
msgid "pre-exec() step: housekeeping" |
| 367 |
msgstr "خطوة ما قبل التنفيذ (pre-exec()): الصيانة" |
| 368 |
|
| 369 |
#. type: Plain text |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
msgid "" |
| 373 |
"In between the B<fork()> and the B<exec()> steps, a child process may need " |
| 374 |
"to perform a set of housekeeping actions. The B<posix_spawn>() and " |
| 375 |
"B<posix_spawnp>() functions support a small, well-defined set of system " |
| 376 |
"tasks that the child process can accomplish before it executes the " |
| 377 |
"executable file. These operations are controlled by the attributes object " |
| 378 |
"pointed to by I<attrp> and the file actions object pointed to by " |
| 379 |
"I<file_actions>. In the child, processing is done in the following sequence:" |
| 380 |
msgstr "" |
| 381 |
"بين خطوتي B<fork()> و B<exec()>، قد تحتاج العملية الابن إلى أداء مجموعة من " |
| 382 |
"إجراءات الصيانة. تدعم الدالتان B<posix_spawn>() و B<posix_spawnp>() مجموعة " |
| 383 |
"صغيرة ومحددة جيدًا من مهام النظام التي يمكن للعملية الابن إنجازها قبل تنفيذ " |
| 384 |
"الملف القابل للتنفيذ. تُتحكم هذه العمليات بواسطة كائن السمات المشار إليه " |
| 385 |
"بواسطة I<attrp> وكائن إجراءات الملف المشار إليه بواسطة I<file_actions>. في " |
| 386 |
"الابن، تُجرى المعالجة بالتسلسل التالي:" |
| 387 |
|
| 388 |
#. type: IP |
| 389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 391 |
#, no-wrap |
| 392 |
msgid "(1)" |
| 393 |
msgstr "(1)" |
| 394 |
|
| 395 |
#. type: Plain text |
| 396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 397 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 398 |
msgid "" |
| 399 |
"Process attribute actions: signal mask, signal default handlers, scheduling " |
| 400 |
"algorithm and parameters, process group, and effective user and group IDs " |
| 401 |
"are changed as specified by the attributes object pointed to by I<attrp>." |
| 402 |
msgstr "" |
| 403 |
"إجراءات سمات العملية: تُغير قناع الإشارة، والمعالجات المبدئية للإشارة، " |
| 404 |
"وخوارزمية الجدولة ومعاملاتها، ومجموعة العملية، ومعرفات المستخدم والمجموعة " |
| 405 |
"الفعلية كما هو محدد بواسطة كائن السمات المشار إليه بواسطة I<attrp>." |
| 406 |
|
| 407 |
#. type: IP |
| 408 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 409 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 410 |
#, no-wrap |
| 411 |
msgid "(2)" |
| 412 |
msgstr "(2)" |
| 413 |
|
| 414 |
#. type: Plain text |
| 415 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 416 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 417 |
msgid "" |
| 418 |
"File actions, as specified in the I<file_actions> argument, are performed in " |
| 419 |
"the order that they were specified using calls to the " |
| 420 |
"B<posix_spawn_file_actions_add*>() functions." |
| 421 |
msgstr "" |
| 422 |
"تُنفذ إجراءات الملف، كما هو محدد في وسيط I<file_actions>، بالترتيب الذي حُددت " |
| 423 |
"به باستخدام استدعاءات دوال B<posix_spawn_file_actions_add*>()." |
| 424 |
|
| 425 |
#. type: IP |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
#, no-wrap |
| 429 |
msgid "(3)" |
| 430 |
msgstr "(3)" |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 434 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 435 |
msgid "File descriptors with the B<FD_CLOEXEC> flag set are closed." |
| 436 |
msgstr "تُغلق واصفات الملفات التي تحتوي على العلم B<FD_CLOEXEC>." |
| 437 |
|
| 438 |
#. type: Plain text |
| 439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 440 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 441 |
msgid "" |
| 442 |
"All process attributes in the child, other than those affected by attributes " |
| 443 |
"specified in the object pointed to by I<attrp> and the file actions in the " |
| 444 |
"object pointed to by I<file_actions>, will be affected as though the child " |
| 445 |
"was created with B<fork>(2) and it executed the program with B<execve>(2)." |
| 446 |
msgstr "" |
| 447 |
"جميع سمات العملية في الابن، بخلاف تلك المتأثرة بالسمات المحددة في الكائن " |
| 448 |
"المشار إليه بواسطة I<attrp> وإجراءات الملف في الكائن المشار إليه بواسطة " |
| 449 |
"I<file_actions>، ستتأثر كما لو أن الابن أُنشئ باستخدام B<fork>(2) ونفذ " |
| 450 |
"البرنامج باستخدام B<execve>(2)." |
| 451 |
|
| 452 |
#. type: Plain text |
| 453 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 454 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 455 |
msgid "" |
| 456 |
"The process attributes actions are defined by the attributes object pointed " |
| 457 |
"to by I<attrp>. The I<spawn-flags> attribute (set using " |
| 458 |
"B<posix_spawnattr_setflags>(3)) controls the general actions that occur, " |
| 459 |
"and other attributes in the object specify values to be used during those " |
| 460 |
"actions." |
| 461 |
msgstr "" |
| 462 |
"تُعرف إجراءات سمات العملية بواسطة كائن السمات المشار إليه بواسطة I<attrp>. " |
| 463 |
"يتحكم سمة I<spawn-flags> (المعينة باستخدام B<posix_spawnattr_setflags>(3)) " |
| 464 |
"في الإجراءات العامة التي تحدث، وتحدد السمات الأخرى في الكائن القيم التي " |
| 465 |
"ستُستخدم خلال تلك الإجراءات." |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "" |
| 471 |
"The effects of the flags that may be specified in I<spawn-flags> are as " |
| 472 |
"follows:" |
| 473 |
msgstr "تأثيرات الأعلام التي قد تُحدد في I<spawn-flags> هي كما يلي:" |
| 474 |
|
| 475 |
#. type: TP |
| 476 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 477 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 478 |
#, no-wrap |
| 479 |
msgid "B<POSIX_SPAWN_SETSIGMASK>" |
| 480 |
msgstr "B<POSIX_SPAWN_SETSIGMASK>" |
| 481 |
|
| 482 |
#. FIXME . |
| 483 |
#. (see |
| 484 |
#. .BR posix_spawnattr_setsigmask (3)) |
| 485 |
#. type: Plain text |
| 486 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 487 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 488 |
msgid "" |
| 489 |
"Set the signal mask to the signal set specified in the I<spawn-sigmask> " |
| 490 |
"attribute of the object pointed to by I<attrp>. If the " |
| 491 |
"B<POSIX_SPAWN_SETSIGMASK> flag is not set, then the child inherits the " |
| 492 |
"parent's signal mask." |
| 493 |
msgstr "" |
| 494 |
"يضبط قناع الإشارة على مجموعة الإشارات المحددة في سمة I<spawn-sigmask> للكائن " |
| 495 |
"المشار إليه بواسطة I<attrp>. إذا لم يُعيّن العلم B<POSIX_SPAWN_SETSIGMASK>، " |
| 496 |
"فإن الابن يرث قناع إشارة الأب." |
| 497 |
|
| 498 |
#. type: TP |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
#, no-wrap |
| 502 |
msgid "B<POSIX_SPAWN_SETSIGDEF>" |
| 503 |
msgstr "B<POSIX_SPAWN_SETSIGDEF>" |
| 504 |
|
| 505 |
#. FIXME . |
| 506 |
#. (see |
| 507 |
#. .BR posix_spawnattr_setsigdefault (3)) |
| 508 |
#. type: Plain text |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
msgid "" |
| 512 |
"Reset the disposition of all signals in the set specified in the I<spawn-" |
| 513 |
"sigdefault> attribute of the object pointed to by I<attrp> to the default. " |
| 514 |
"For the treatment of the dispositions of signals not specified in the " |
| 515 |
"I<spawn-sigdefault> attribute, or the treatment when " |
| 516 |
"B<POSIX_SPAWN_SETSIGDEF> is not specified, see B<execve>(2)." |
| 517 |
msgstr "" |
| 518 |
"يعيد ضبط ترتيب جميع الإشارات في المجموعة المحددة في سمة I<spawn-sigdefault> " |
| 519 |
"للكائن المشار إليه بواسطة I<attrp> إلى المبدئي. لمعالجة ترتيبات الإشارات غير " |
| 520 |
"المحددة في سمة I<spawn-sigdefault>، أو المعالجة عندما لا يُحدد " |
| 521 |
"B<POSIX_SPAWN_SETSIGDEF>، انظر B<execve>(2)." |
| 522 |
|
| 523 |
#. type: TP |
| 524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 525 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 526 |
#, no-wrap |
| 527 |
msgid "B<POSIX_SPAWN_SETSCHEDPARAM>" |
| 528 |
msgstr "B<POSIX_SPAWN_SETSCHEDPARAM>" |
| 529 |
|
| 530 |
#. (POSIX_PRIORITY_SCHEDULING only) |
| 531 |
#. FIXME . |
| 532 |
#. (see |
| 533 |
#. .BR posix_spawnattr_setschedparam (3)) |
| 534 |
#. type: Plain text |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
msgid "" |
| 538 |
"If this flag is set, and the B<POSIX_SPAWN_SETSCHEDULER> flag is not set, " |
| 539 |
"then set the scheduling parameters to the parameters specified in the " |
| 540 |
"I<spawn-schedparam> attribute of the object pointed to by I<attrp>." |
| 541 |
msgstr "" |
| 542 |
"إذا عُيّن هذا العلم، ولم يُعيّن العلم B<POSIX_SPAWN_SETSCHEDULER>، فاضبط معاملات " |
| 543 |
"الجدولة على المعاملات المحددة في سمة I<spawn-schedparam> للكائن المشار إليه " |
| 544 |
"بواسطة I<attrp>." |
| 545 |
|
| 546 |
#. type: TP |
| 547 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 548 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 549 |
#, no-wrap |
| 550 |
msgid "B<POSIX_SPAWN_SETSCHEDULER>" |
| 551 |
msgstr "B<POSIX_SPAWN_SETSCHEDULER>" |
| 552 |
|
| 553 |
#. type: Plain text |
| 554 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 555 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 556 |
msgid "" |
| 557 |
"Set the scheduling policy algorithm and parameters of the child, as follows:" |
| 558 |
msgstr "اضبط خوارزمية سياسة الجدولة ومعاملات الطفل، كما يلي:" |
| 559 |
|
| 560 |
#. FIXME . |
| 561 |
#. (see |
| 562 |
#. .BR posix_spawnattr_setpolicy (3)) |
| 563 |
#. type: Plain text |
| 564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 566 |
msgid "" |
| 567 |
"The scheduling policy is set to the value specified in the I<spawn-" |
| 568 |
"schedpolicy> attribute of the object pointed to by I<attrp>." |
| 569 |
msgstr "" |
| 570 |
"تُضبط سياسة الجدولة إلى القيمة المحددة في السمة I<spawn-schedpolicy> للكائن " |
| 571 |
"المشار إليه بواسطة I<attrp>." |
| 572 |
|
| 573 |
#. FIXME . |
| 574 |
#. (see |
| 575 |
#. .BR posix_spawnattr_setschedparam (3)) |
| 576 |
#. type: Plain text |
| 577 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 578 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 579 |
msgid "" |
| 580 |
"The scheduling parameters are set to the value specified in the I<spawn-" |
| 581 |
"schedparam> attribute of the object pointed to by I<attrp> (but see BUGS)." |
| 582 |
msgstr "" |
| 583 |
"تُضبط معاملات الجدولة إلى القيمة المحددة في السمة I<spawn-schedparam> للكائن " |
| 584 |
"المشار إليه بواسطة I<attrp> (ولكن انظر الأخطاء)." |
| 585 |
|
| 586 |
#. type: Plain text |
| 587 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 588 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 589 |
msgid "" |
| 590 |
"If the B<POSIX_SPAWN_SETSCHEDPARAM> and B<POSIX_SPAWN_SETSCHEDPOLICY> flags " |
| 591 |
"are not specified, the child inherits the corresponding scheduling " |
| 592 |
"attributes from the parent." |
| 593 |
msgstr "" |
| 594 |
"إذا لم تُحدد العلمان B<POSIX_SPAWN_SETSCHEDPARAM> و " |
| 595 |
"B<POSIX_SPAWN_SETSCHEDPOLICY>، يرث الطفل سمات الجدولة المقابلة من الوالد." |
| 596 |
|
| 597 |
#. type: TP |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
#, no-wrap |
| 601 |
msgid "B<POSIX_SPAWN_RESETIDS>" |
| 602 |
msgstr "B<POSIX_SPAWN_RESETIDS>" |
| 603 |
|
| 604 |
#. type: Plain text |
| 605 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 606 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 607 |
msgid "" |
| 608 |
"If this flag is set, reset the effective UID and GID to the real UID and GID " |
| 609 |
"of the parent process. If this flag is not set, then the child retains the " |
| 610 |
"effective UID and GID of the parent. In either case, if the set-user-ID and " |
| 611 |
"set-group-ID permission bits are enabled on the executable file, their " |
| 612 |
"effect will override the setting of the effective UID and GID (se " |
| 613 |
"B<execve>(2))." |
| 614 |
msgstr "" |
| 615 |
"إذا وُضعت هذه العلامة، أعد ضبط UID و GID الفعليين إلى UID و GID الحقيقيين " |
| 616 |
"لعملية الوالد. إذا لم توضع هذه العلامة، يحتفظ الطفل بـ UID و GID الفعليين " |
| 617 |
"للوالد. في كلتا الحالتين، إذا كانت بتات صلاحية set-user-ID و set-group-ID " |
| 618 |
"مفعلة في الملف القابل للتنفيذ، فسيغلب تأثيرها ضبط UID و GID الفعليين (انظر " |
| 619 |
"B<execve>(2))." |
| 620 |
|
| 621 |
#. type: TP |
| 622 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 623 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 624 |
#, no-wrap |
| 625 |
msgid "B<POSIX_SPAWN_SETPGROUP>" |
| 626 |
msgstr "B<POSIX_SPAWN_SETPGROUP>" |
| 627 |
|
| 628 |
#. FIXME . |
| 629 |
#. (see |
| 630 |
#. .BR posix_spawnattr_setpgroup (3)) |
| 631 |
#. type: Plain text |
| 632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 633 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 634 |
msgid "" |
| 635 |
"Set the process group to the value specified in the I<spawn-pgroup> " |
| 636 |
"attribute of the object pointed to by I<attrp>. If the I<spawn-pgroup> " |
| 637 |
"attribute has the value 0, the child's process group ID is made the same as " |
| 638 |
"its process ID. If the B<POSIX_SPAWN_SETPGROUP> flag is not set, the child " |
| 639 |
"inherits the parent's process group ID." |
| 640 |
msgstr "" |
| 641 |
"اضبط مجموعة العملية إلى القيمة المحددة في السمة I<spawn-pgroup> للكائن " |
| 642 |
"المشار إليه بواسطة I<attrp>. إذا كانت قيمة السمة I<spawn-pgroup> تساوي 0، " |
| 643 |
"يُجعل معرف مجموعة عملية الطفل مساويًا لمعرف عمليته. إذا لم توضع علامة " |
| 644 |
"B<POSIX_SPAWN_SETPGROUP>، يرث الطفل معرف مجموعة عملية الوالد." |
| 645 |
|
| 646 |
#. type: TP |
| 647 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 648 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 649 |
#, no-wrap |
| 650 |
msgid "B<POSIX_SPAWN_USEVFORK>" |
| 651 |
msgstr "B<POSIX_SPAWN_USEVFORK>" |
| 652 |
|
| 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 |
"Since glibc 2.24, this flag has no effect. On older implementations, " |
| 658 |
"setting this flag forces the B<fork()> step to use B<vfork>(2) instead of " |
| 659 |
"B<fork>(2). The B<_GNU_SOURCE> feature test macro must be defined to obtain " |
| 660 |
"the definition of this constant." |
| 661 |
msgstr "" |
| 662 |
"منذ glibc 2.24، ليس لهذه العلامة أي تأثير. في التطبيقات الأقدم، يفرض وضع هذه " |
| 663 |
"العلامة استخدام خطوة B<fork()> لـ B<vfork>(2) بدلاً من B<fork>(2). يجب تعريف " |
| 664 |
"ماكرو اختبار الميزة B<_GNU_SOURCE> للحصول على تعريف هذا الثابت." |
| 665 |
|
| 666 |
#. type: TP |
| 667 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 668 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 669 |
#, no-wrap |
| 670 |
msgid "B<POSIX_SPAWN_SETSID> (since glibc 2.26)" |
| 671 |
msgstr "B<POSIX_SPAWN_SETSID> (منذ glibc 2.26)" |
| 672 |
|
| 673 |
#. This flag has been accepted in POSIX, see: |
| 674 |
#. http://austingroupbugs.net/view.php?id=1044 |
| 675 |
#. and has been implemented since glibc 2.26 |
| 676 |
#. commit daeb1fa2e1b33323e719015f5f546988bd4cc73b |
| 677 |
#. type: Plain text |
| 678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 679 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
msgid "" |
| 681 |
"If this flag is set, the child process shall create a new session and become " |
| 682 |
"the session leader. The child process shall also become the process group " |
| 683 |
"leader of the new process group in the session (see B<setsid>(2)). The " |
| 684 |
"B<_GNU_SOURCE> feature test macro must be defined to obtain the definition " |
| 685 |
"of this constant." |
| 686 |
msgstr "" |
| 687 |
"إذا وُضعت هذه العلامة، يجب على عملية الطفل إنشاء جلسة جديدة وتصبح قائدة " |
| 688 |
"الجلسة. يجب أيضًا على عملية الطفل أن تصبح قائدة مجموعة العملية الجديدة في " |
| 689 |
"الجلسة (انظر B<setsid>(2)). يجب تعريف ماكرو اختبار الميزة B<_GNU_SOURCE> " |
| 690 |
"للحصول على تعريف هذا الثابت." |
| 691 |
|
| 692 |
#. mtk: I think we probably don't want to say the following, since it |
| 693 |
#. could lead people to do the wrong thing |
| 694 |
#. The POSIX standard tells you to call |
| 695 |
#. this function to de-initialize the attributes object pointed to by |
| 696 |
#. .I attrp |
| 697 |
#. when you are done with it; |
| 698 |
#. however, on Linux systems this operation is a no-op. |
| 699 |
#. type: Plain text |
| 700 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 701 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 702 |
msgid "" |
| 703 |
"If I<attrp> is NULL, then the default behaviors described above for each " |
| 704 |
"flag apply." |
| 705 |
msgstr "" |
| 706 |
"إذا كان I<attrp> فارغًا (NULL)، فتُطبق السلوكيات المبدئية الموصوفة أعلاه لكل " |
| 707 |
"علامة." |
| 708 |
|
| 709 |
#. type: Plain text |
| 710 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 711 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 712 |
msgid "" |
| 713 |
"The I<file_actions> argument specifies a sequence of file operations that " |
| 714 |
"are performed in the child process after the general processing described " |
| 715 |
"above, and before it performs the B<exec>(3). If I<file_actions> is NULL, " |
| 716 |
"then no special action is taken, and standard B<exec>(3) semantics " |
| 717 |
"apply\\[em]file descriptors open before the exec remain open in the new " |
| 718 |
"process, except those for which the B<FD_CLOEXEC> flag has been set. File " |
| 719 |
"locks remain in place." |
| 720 |
msgstr "" |
| 721 |
"تحدد وسيطة I<file_actions> سلسلة من عمليات الملف التي تُنفذ في عملية الطفل " |
| 722 |
"بعد المعالجة العامة الموصوفة أعلاه، وقبل تنفيذها لـ B<exec>(3). إذا كان " |
| 723 |
"I<file_actions> فارغًا (NULL)، فلا يُتخذ أي إجراء خاص، وتُطبق دلالات B<exec>(3) " |
| 724 |
"القياسية\\[em]تبقى واصفات الملفات المفتوحة قبل exec مفتوحة في العملية " |
| 725 |
"الجديدة، باستثناء تلك التي وُضعت لها علامة B<FD_CLOEXEC>. تظل أقفال الملفات " |
| 726 |
"في مكانها." |
| 727 |
|
| 728 |
#. FIXME . I think the following is best placed in the |
| 729 |
#. posix_spawn_file_actions_adddup2(3) page, and a similar statement is |
| 730 |
#. also needed in posix_spawn_file_actions_addclose(3) |
| 731 |
#. Note that you can specify file descriptors in |
| 732 |
#. .I posix_spawn_file_actions_adddup2 (3) |
| 733 |
#. which would not be usable if you called |
| 734 |
#. .BR dup2 (2) |
| 735 |
#. at that time--i.e., file descriptors that are opened or |
| 736 |
#. closed by the earlier operations |
| 737 |
#. added to |
| 738 |
#. .I file_actions . |
| 739 |
#. type: Plain text |
| 740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 741 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 742 |
msgid "" |
| 743 |
"If I<file_actions> is not NULL, then it contains an ordered set of requests " |
| 744 |
"to B<open>(2), B<close>(2), and B<dup2>(2) files. These requests are added " |
| 745 |
"to the I<file_actions> by B<posix_spawn_file_actions_addopen>(3), " |
| 746 |
"B<posix_spawn_file_actions_addclose>(3), and " |
| 747 |
"B<posix_spawn_file_actions_adddup2>(3). The requested operations are " |
| 748 |
"performed in the order they were added to I<file_actions>." |
| 749 |
msgstr "" |
| 750 |
"إذا لم يكن I<file_actions> فارغًا (NULL)، فإنه يحتوي على مجموعة مرتبة من " |
| 751 |
"الطلبات لملفات B<open>(2) و B<close>(2) و B<dup2>(2). تُضاف هذه الطلبات إلى " |
| 752 |
"I<file_actions> بواسطة B<posix_spawn_file_actions_addopen>(3) و " |
| 753 |
"B<posix_spawn_file_actions_addclose>(3) و " |
| 754 |
"B<posix_spawn_file_actions_adddup2>(3). تُنفذ العمليات المطلوبة بالترتيب الذي " |
| 755 |
"أُضيفت به إلى I<file_actions>." |
| 756 |
|
| 757 |
#. type: Plain text |
| 758 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 759 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 760 |
msgid "" |
| 761 |
"If any of the housekeeping actions fails (due to bogus values being passed " |
| 762 |
"or other reasons why signal handling, process scheduling, process group ID " |
| 763 |
"functions, and file descriptor operations might fail), the child process " |
| 764 |
"exits with exit value 127." |
| 765 |
msgstr "" |
| 766 |
"إذا فشل أي من إجراءات الصيانة (بسبب تمرير قيم زائفة أو أسباب أخرى قد تفشل " |
| 767 |
"فيها معالجة الإشارات، وجدولة العمليات، ودوال معرف مجموعة العملية، وعمليات " |
| 768 |
"واصف الملف)، تخرج عملية الطفل بقيمة خروج 127." |
| 769 |
|
| 770 |
#. type: SS |
| 771 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 772 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 773 |
#, no-wrap |
| 774 |
msgid "exec() step" |
| 775 |
msgstr "خطوة exec()" |
| 776 |
|
| 777 |
#. type: Plain text |
| 778 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 779 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 780 |
msgid "" |
| 781 |
"Once the child has successfully forked and performed all requested pre-exec " |
| 782 |
"steps, the child runs the requested executable." |
| 783 |
msgstr "" |
| 784 |
"بمجرد أن يتفرع الطفل بنجاح وينفذ جميع خطوات ما قبل exec المطلوبة، يشغل الطفل " |
| 785 |
"الملف القابل للتنفيذ المطلوب." |
| 786 |
|
| 787 |
#. type: Plain text |
| 788 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 789 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 790 |
msgid "" |
| 791 |
"The child process takes its environment from the I<envp> argument, which is " |
| 792 |
"interpreted as if it had been passed to B<execve>(2). The arguments to the " |
| 793 |
"created process come from the I<argv> argument, which is processed as for " |
| 794 |
"B<execve>(2)." |
| 795 |
msgstr "" |
| 796 |
"تأخذ عملية الطفل بيئتها من وسيطة I<envp>، التي تُفسر كما لو أنها مُررت إلى " |
| 797 |
"B<execve>(2). تأتي وسيطات العملية المنشأة من وسيطة I<argv>، التي تُعالج كما " |
| 798 |
"في B<execve>(2)." |
| 799 |
|
| 800 |
#. type: SH |
| 801 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 802 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 803 |
#, no-wrap |
| 804 |
msgid "RETURN VALUE" |
| 805 |
msgstr "قيمة الإرجاع" |
| 806 |
|
| 807 |
#. type: Plain text |
| 808 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 809 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 810 |
msgid "" |
| 811 |
"Upon successful completion, B<posix_spawn>() and B<posix_spawnp>() place " |
| 812 |
"the PID of the child process in I<pid>, and return 0. If there is an error " |
| 813 |
"during the B<fork()> step, then no child is created, the contents of I<*pid> " |
| 814 |
"are unspecified, and these functions return an error number as described " |
| 815 |
"below." |
| 816 |
msgstr "" |
| 817 |
"عند الإكمال بنجاح، تضع B<posix_spawn>() و B<posix_spawnp>() معرف عملية الطفل " |
| 818 |
"(PID) في I<pid>، وتُرجع 0. إذا حدث خطأ أثناء خطوة B<fork()>، فلا يُنشأ أي طفل، " |
| 819 |
"وتكون محتويات I<*pid> غير محددة، وتُرجع هاتان الدالتان رقم خطأ كما هو موصوف " |
| 820 |
"أدناه." |
| 821 |
|
| 822 |
#. type: Plain text |
| 823 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 824 |
#: opensuse-tumbleweed |
| 825 |
msgid "" |
| 826 |
"Even when these functions return a success status, the child process may " |
| 827 |
"still fail for a plethora of reasons related to its pre-B<exec>() " |
| 828 |
"initialization. In addition, the B<exec>(3) may fail. In all of these " |
| 829 |
"cases, the child process will exit with the exit value of 127." |
| 830 |
msgstr "" |
| 831 |
"حتى عندما تُرجع هذه الدوال حالة نجاح، فقد تَفشَل العملية الابن لأسباب عديدة " |
| 832 |
"تتعلق بتهيئتها قبل B<exec>(). بالإضافة إلى ذلك، قد يَفشَل B<exec>(3). في كل " |
| 833 |
"هذه الحالات، ستَخْرُج العملية الابن بقيمة خروج 127." |
| 834 |
|
| 835 |
#. type: SH |
| 836 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 837 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 838 |
#, no-wrap |
| 839 |
msgid "ERRORS" |
| 840 |
msgstr "الأخطاء" |
| 841 |
|
| 842 |
#. type: Plain text |
| 843 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 844 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 845 |
msgid "" |
| 846 |
"The B<posix_spawn>() and B<posix_spawnp>() functions fail only in the case " |
| 847 |
"where the underlying B<fork>(2), B<vfork>(2), or B<clone>(2) call fails; in " |
| 848 |
"these cases, these functions return an error number, which will be one of " |
| 849 |
"the errors described for B<fork>(2), B<vfork>(2), or B<clone>(2)." |
| 850 |
msgstr "" |
| 851 |
"تَفْشَل الدالتان B<posix_spawn>() وB<posix_spawnp>() فقط في حالة فَشَل استدعاء " |
| 852 |
"B<fork>(2) أو B<vfork>(2) أو B<clone>(2) الأساسي؛ في هذه الحالات، تُرجع هاتان " |
| 853 |
"الدالتان رقم خطأ، والذي سيكون أحد الأخطاء الموصوفة لـ B<fork>(2) أو " |
| 854 |
"B<vfork>(2) أو B<clone>(2)." |
| 855 |
|
| 856 |
#. type: Plain text |
| 857 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 858 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 859 |
msgid "In addition, these functions fail if:" |
| 860 |
msgstr "بالإضافة إلى ذلك، تَفْشَل هذه الدوال إذا:" |
| 861 |
|
| 862 |
#. type: TP |
| 863 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 864 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 865 |
#, no-wrap |
| 866 |
msgid "B<ENOSYS>" |
| 867 |
msgstr "B<ENOSYS>" |
| 868 |
|
| 869 |
#. type: Plain text |
| 870 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 871 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 872 |
msgid "Function not supported on this system." |
| 873 |
msgstr "الدالة غير مدعومة على هذا النظام." |
| 874 |
|
| 875 |
#. type: SH |
| 876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 877 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 878 |
#, no-wrap |
| 879 |
msgid "STANDARDS" |
| 880 |
msgstr "المعايير" |
| 881 |
|
| 882 |
#. type: Plain text |
| 883 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 884 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 885 |
msgid "POSIX.1-2008." |
| 886 |
msgstr "POSIX.1-2008." |
| 887 |
|
| 888 |
#. type: SH |
| 889 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 890 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 891 |
#, no-wrap |
| 892 |
msgid "HISTORY" |
| 893 |
msgstr "التاريخ" |
| 894 |
|
| 895 |
#. FIXME . This piece belongs in spawnattr_setflags(3) |
| 896 |
#. The |
| 897 |
#. .B POSIX_SPAWN_USEVFORK |
| 898 |
#. flag is a GNU extension; the |
| 899 |
#. .B _GNU_SOURCE |
| 900 |
#. feature test macro must be defined (before including any header files) |
| 901 |
#. to obtain the definition of this constant. |
| 902 |
#. type: Plain text |
| 903 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 904 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 905 |
msgid "glibc 2.2. POSIX.1-2001." |
| 906 |
msgstr "glibc 2.2. POSIX.1-2001." |
| 907 |
|
| 908 |
#. type: SH |
| 909 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 910 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 911 |
#, no-wrap |
| 912 |
msgid "NOTES" |
| 913 |
msgstr "ملاحظات" |
| 914 |
|
| 915 |
#. type: Plain text |
| 916 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 917 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 918 |
msgid "" |
| 919 |
"The housekeeping activities in the child are controlled by the objects " |
| 920 |
"pointed to by I<attrp> (for non-file actions) and I<file_actions> In POSIX " |
| 921 |
"parlance, the I<posix_spawnattr_t> and I<posix_spawn_file_actions_t> data " |
| 922 |
"types are referred to as objects, and their elements are not specified by " |
| 923 |
"name. Portable programs should initialize these objects using only the " |
| 924 |
"POSIX-specified functions. (In other words, although these objects may be " |
| 925 |
"implemented as structures containing fields, portable programs must avoid " |
| 926 |
"dependence on such implementation details.)" |
| 927 |
msgstr "" |
| 928 |
"أنشطة الصيانة في الابن تُتحكم بها الكائنات المشار إليها بواسطة I<attrp> " |
| 929 |
"(للإجراءات غير المتعلقة بالملفات) وI<file_actions>. في اصطلاح POSIX، يُشار " |
| 930 |
"إلى نوعي البيانات I<posix_spawnattr_t> وI<posix_spawn_file_actions_t> " |
| 931 |
"ككائنات، وعناصرها غير محددة بالاسم. يجب على البرامج المحمولة تهيئة هذه " |
| 932 |
"الكائنات باستخدام الدوال المحددة بواسطة POSIX فقط. (بمعنى آخر، على الرغم من " |
| 933 |
"أن هذه الكائنات قد تُنفذ كهياكل تحتوي على حقول، يجب على البرامج المحمولة تجنب " |
| 934 |
"الاعتماد على تفاصيل التنفيذ هذه.)" |
| 935 |
|
| 936 |
#. Tested on glibc 2.12 |
| 937 |
#. type: Plain text |
| 938 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 939 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 940 |
msgid "" |
| 941 |
"According to POSIX, it is unspecified whether fork handlers established with " |
| 942 |
"B<pthread_atfork>(3) are called when B<posix_spawn>() is invoked. Since " |
| 943 |
"glibc 2.24, the fork handlers are not executed in any case. On older " |
| 944 |
"implementations, fork handlers are called only if the child is created using " |
| 945 |
"B<fork>(2)." |
| 946 |
msgstr "" |
| 947 |
"وفقًا لـ POSIX، من غير المحدد ما إذا كانت معالجات fork المنشأة بـ " |
| 948 |
"B<pthread_atfork>(3) تُستدعى عند استدعاء B<posix_spawn>(). منذ glibc 2.24، لا " |
| 949 |
"تُنفذ معالجات fork في أي حالة. في التطبيقات الأقدم، تُستدعى معالجات fork فقط " |
| 950 |
"إذا أُنشئ الابن باستخدام B<fork>(2)." |
| 951 |
|
| 952 |
#. type: Plain text |
| 953 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 954 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 955 |
msgid "" |
| 956 |
"There is no \"posix_fspawn\" function (i.e., a function that is to " |
| 957 |
"B<posix_spawn>() as B<fexecve>(3) is to B<execve>(2)). However, this " |
| 958 |
"functionality can be obtained by specifying the I<path> argument as one of " |
| 959 |
"the files in the caller's I</proc/self/fd> directory." |
| 960 |
msgstr "" |
| 961 |
"لا توجد دالة \"posix_fspawn\" (أي دالة تكون لـ B<posix_spawn>() كما " |
| 962 |
"B<fexecve>(3) لـ B<execve>(2)). ومع ذلك، يمكن الحصول على هذه الوظيفة بتحديد " |
| 963 |
"معامل I<path> كأحد الملفات في دليل I</proc/self/fd> للمستدعي." |
| 964 |
|
| 965 |
#. type: SH |
| 966 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 967 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 968 |
#, no-wrap |
| 969 |
msgid "BUGS" |
| 970 |
msgstr "العلل" |
| 971 |
|
| 972 |
#. http://sourceware.org/bugzilla/show_bug.cgi?id=12052 |
| 973 |
#. type: Plain text |
| 974 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 975 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 976 |
msgid "" |
| 977 |
"POSIX.1 says that when B<POSIX_SPAWN_SETSCHEDULER> is specified in I<spawn-" |
| 978 |
"flags>, then the B<POSIX_SPAWN_SETSCHEDPARAM> (if present) is ignored. " |
| 979 |
"However, before glibc 2.14, calls to B<posix_spawn>() failed with an error " |
| 980 |
"if B<POSIX_SPAWN_SETSCHEDULER> was specified without also specifying " |
| 981 |
"B<POSIX_SPAWN_SETSCHEDPARAM>." |
| 982 |
msgstr "" |
| 983 |
"ينص POSIX.1 على أنه عندما يُحدد B<POSIX_SPAWN_SETSCHEDULER> في I<spawn-" |
| 984 |
"flags>، فإن B<POSIX_SPAWN_SETSCHEDPARAM> (إن وُجد) يُتجاهل. ومع ذلك، قبل glibc " |
| 985 |
"2.14، فَشِلَت استدعاءات B<posix_spawn>() بخطأ إذا حُدد " |
| 986 |
"B<POSIX_SPAWN_SETSCHEDULER> دون تحديد B<POSIX_SPAWN_SETSCHEDPARAM> أيضًا." |
| 987 |
|
| 988 |
#. type: SH |
| 989 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 990 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 991 |
#, no-wrap |
| 992 |
msgid "EXAMPLES" |
| 993 |
msgstr "أمثلة" |
| 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 "" |
| 999 |
"The program below demonstrates the use of various functions in the POSIX " |
| 1000 |
"spawn API. The program accepts command-line attributes that can be used to " |
| 1001 |
"create file actions and attributes objects. The remaining command-line " |
| 1002 |
"arguments are used as the executable name and command-line arguments of the " |
| 1003 |
"program that is executed in the child." |
| 1004 |
msgstr "" |
| 1005 |
"يُوضح البرنامج أدناه استخدام دوال متنوعة في واجهة برمجة تطبيقات spawn في " |
| 1006 |
"POSIX. يقبل البرنامج سمات سطر أوامر يمكن استخدامها لإنشاء كائنات إجراءات " |
| 1007 |
"ملفات وسمات. تُستخدم وسائط سطر الأوامر المتبقية كاسم الملف التنفيذي ووسائط " |
| 1008 |
"سطر أوامر البرنامج الذي يُنفذ في الابن." |
| 1009 |
|
| 1010 |
#. type: Plain text |
| 1011 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1012 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1013 |
msgid "" |
| 1014 |
"In the first run, the B<date>(1) command is executed in the child, and the " |
| 1015 |
"B<posix_spawn>() call employs no file actions or attributes objects." |
| 1016 |
msgstr "" |
| 1017 |
"في التشغيل الأول، يُنفذ أمر B<date>(1) في الابن، ولا يستخدم استدعاء " |
| 1018 |
"B<posix_spawn>() أي كائنات إجراءات ملفات أو سمات." |
| 1019 |
|
| 1020 |
#. type: Plain text |
| 1021 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1022 |
#: opensuse-tumbleweed |
| 1023 |
#, no-wrap |
| 1024 |
msgid "" |
| 1025 |
"$B< ./a.out date>;\n" |
| 1026 |
"PID of child: 7634\n" |
| 1027 |
"Tue Feb 1 19:47:50 CEST 2011\n" |
| 1028 |
"Child status: exited, status=0\n" |
| 1029 |
msgstr "" |
| 1030 |
"$B< ./a.out date>;\n" |
| 1031 |
"PID of child: 7634\n" |
| 1032 |
"Tue Feb 1 19:47:50 CEST 2011\n" |
| 1033 |
"Child status: exited, status=0\n" |
| 1034 |
|
| 1035 |
#. type: Plain text |
| 1036 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1037 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1038 |
msgid "" |
| 1039 |
"In the next run, the I<-c> command-line option is used to create a file " |
| 1040 |
"actions object that closes standard output in the child. Consequently, " |
| 1041 |
"B<date>(1) fails when trying to perform output and exits with a status of 1." |
| 1042 |
msgstr "" |
| 1043 |
"في التشغيل التالي، يُستخدم خيار سطر الأوامر I<-c> لإنشاء كائن إجراءات ملفات " |
| 1044 |
"يُغلق الإخراج القياسي في الابن. وبالتالي، يَفشَل B<date>(1) عند محاولة تنفيذ " |
| 1045 |
"الإخراج ويخرج بحالة 1." |
| 1046 |
|
| 1047 |
#. type: Plain text |
| 1048 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1049 |
#: opensuse-tumbleweed |
| 1050 |
#, no-wrap |
| 1051 |
msgid "" |
| 1052 |
"$B< ./a.out -c date>;\n" |
| 1053 |
"PID of child: 7636\n" |
| 1054 |
"date: write error: Bad file descriptor\n" |
| 1055 |
"Child status: exited, status=1\n" |
| 1056 |
msgstr "" |
| 1057 |
"$B< ./a.out -c date>;\n" |
| 1058 |
"PID of child: 7636\n" |
| 1059 |
"date: write error: Bad file descriptor\n" |
| 1060 |
"Child status: exited, status=1\n" |
| 1061 |
|
| 1062 |
#. type: Plain text |
| 1063 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1064 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1065 |
msgid "" |
| 1066 |
"In the next run, the I<-s> command-line option is used to create an " |
| 1067 |
"attributes object that specifies that all (blockable) signals in the child " |
| 1068 |
"should be blocked. Consequently, trying to kill child with the default " |
| 1069 |
"signal sent by B<kill>(1) (i.e., B<SIGTERM>) fails, because that signal is " |
| 1070 |
"blocked. Therefore, to kill the child, B<SIGKILL> is necessary (B<SIGKILL> " |
| 1071 |
"can't be blocked)." |
| 1072 |
msgstr "" |
| 1073 |
"في التشغيل التالي، يُستخدم خيار سطر الأوامر I<-s> لإنشاء كائن سمات يُحدد أن " |
| 1074 |
"جميع الإشارات (القابلة للحظر) في الابن يجب أن تُحظر. وبالتالي، فَشَل محاولة قتل " |
| 1075 |
"الابن بالإشارة الافتراضية المرسلة بواسطة B<kill>(1) (أي B<SIGTERM>)، لأن تلك " |
| 1076 |
"الإشارة محظورة. لذلك، لقتل الابن، B<SIGKILL> ضرورية (لا يمكن حظر B<SIGKILL>)." |
| 1077 |
|
| 1078 |
#. type: Plain text |
| 1079 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1080 |
#: opensuse-tumbleweed |
| 1081 |
#, no-wrap |
| 1082 |
msgid "" |
| 1083 |
"$B< ./a.out -s sleep 60 &>\n" |
| 1084 |
"[1] 7637\n" |
| 1085 |
"$ PID of child: 7638\n" |
| 1086 |
msgstr "" |
| 1087 |
"$B< ./a.out -s sleep 60 &>\n" |
| 1088 |
"[1] 7637\n" |
| 1089 |
"$ PID of child: 7638\n" |
| 1090 |
|
| 1091 |
#. type: Plain text |
| 1092 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1093 |
#: opensuse-tumbleweed |
| 1094 |
#, no-wrap |
| 1095 |
msgid "" |
| 1096 |
"$B< kill 7638>;\n" |
| 1097 |
"$B< kill -KILL 7638>;\n" |
| 1098 |
"$ Child status: killed by signal 9\n" |
| 1099 |
"[1]+ Done ./a.out -s sleep 60\n" |
| 1100 |
msgstr "" |
| 1101 |
"$B< kill 7638>;\n" |
| 1102 |
"$B< kill -KILL 7638>;\n" |
| 1103 |
"$ Child status: killed by signal 9\n" |
| 1104 |
"[1]+ Done ./a.out -s sleep 60\n" |
| 1105 |
|
| 1106 |
#. type: Plain text |
| 1107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1109 |
msgid "" |
| 1110 |
"When we try to execute a nonexistent command in the child, the B<exec>(3) " |
| 1111 |
"fails and the child exits with a status of 127." |
| 1112 |
msgstr "" |
| 1113 |
"عندما نحاول تنفيذ أمر غير موجود في الابن، يَفشَل B<exec>(3) ويخرج الابن بحالة " |
| 1114 |
"127." |
| 1115 |
|
| 1116 |
#. type: Plain text |
| 1117 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1118 |
#: opensuse-tumbleweed |
| 1119 |
#, no-wrap |
| 1120 |
msgid "" |
| 1121 |
"$B< ./a.out xxxxx>;\n" |
| 1122 |
"PID of child: 10190\n" |
| 1123 |
"Child status: exited, status=127\n" |
| 1124 |
msgstr "" |
| 1125 |
"$B< ./a.out xxxxx>;\n" |
| 1126 |
"PID of child: 10190\n" |
| 1127 |
"Child status: exited, status=127\n" |
| 1128 |
|
| 1129 |
#. type: SS |
| 1130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1131 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1132 |
#, no-wrap |
| 1133 |
msgid "Program source" |
| 1134 |
msgstr "مصدر البرنامج" |
| 1135 |
|
| 1136 |
#. type: Plain text |
| 1137 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1138 |
#: opensuse-tumbleweed |
| 1139 |
#, no-wrap |
| 1140 |
msgid "" |
| 1141 |
"#include E<lt>err.hE<gt>\n" |
| 1142 |
"#include E<lt>errno.hE<gt>\n" |
| 1143 |
"#include E<lt>spawn.hE<gt>\n" |
| 1144 |
"#include E<lt>stdint.hE<gt>\n" |
| 1145 |
"#include E<lt>stdio.hE<gt>\n" |
| 1146 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1147 |
"#include E<lt>string.hE<gt>\n" |
| 1148 |
"#include E<lt>unistd.hE<gt>\n" |
| 1149 |
"#include E<lt>wait.hE<gt>\n" |
| 1150 |
"\\&\n" |
| 1151 |
"char **environ;\n" |
| 1152 |
"\\&\n" |
| 1153 |
"int\n" |
| 1154 |
"main(int argc, char *argv[])\n" |
| 1155 |
"{\n" |
| 1156 |
" pid_t child_pid;\n" |
| 1157 |
" int s, opt, status;\n" |
| 1158 |
" sigset_t mask;\n" |
| 1159 |
" posix_spawnattr_t attr;\n" |
| 1160 |
" posix_spawnattr_t *attrp;\n" |
| 1161 |
" posix_spawn_file_actions_t file_actions;\n" |
| 1162 |
" posix_spawn_file_actions_t *file_actionsp;\n" |
| 1163 |
"\\&\n" |
| 1164 |
" /* Parse command-line options, which can be used to specify an\n" |
| 1165 |
" attributes object and file actions object for the child. */\n" |
| 1166 |
"\\&\n" |
| 1167 |
" attrp = NULL;\n" |
| 1168 |
" file_actionsp = NULL;\n" |
| 1169 |
"\\&\n" |
| 1170 |
" while ((opt = getopt(argc, argv, \"sc\")) != -1) {\n" |
| 1171 |
" switch (opt) {\n" |
| 1172 |
" case \\[aq]c\\[aq]: /* -c: close standard output in child */\n" |
| 1173 |
"\\&\n" |
| 1174 |
" /* Create a file actions object and add a \"close\"\n" |
| 1175 |
" action to it. */\n" |
| 1176 |
"\\&\n" |
| 1177 |
" s = posix_spawn_file_actions_init(&file_actions);\n" |
| 1178 |
" if (s != 0)\n" |
| 1179 |
" errc(EXIT_FAILURE, s, \"posix_spawn_file_actions_init\");\n" |
| 1180 |
"\\&\n" |
| 1181 |
" s = posix_spawn_file_actions_addclose(&file_actions,\n" |
| 1182 |
" STDOUT_FILENO);\n" |
| 1183 |
" if (s != 0)\n" |
| 1184 |
" errc(EXIT_FAILURE, s, \"posix_spawn_file_actions_addclose\");\n" |
| 1185 |
"\\&\n" |
| 1186 |
" file_actionsp = &file_actions;\n" |
| 1187 |
" break;\n" |
| 1188 |
"\\&\n" |
| 1189 |
" case \\[aq]s\\[aq]: /* -s: block all signals in child */\n" |
| 1190 |
"\\&\n" |
| 1191 |
" /* Create an attributes object and add a \"set signal mask\"\n" |
| 1192 |
" action to it. */\n" |
| 1193 |
"\\&\n" |
| 1194 |
" s = posix_spawnattr_init(&attr);\n" |
| 1195 |
" if (s != 0)\n" |
| 1196 |
" errc(EXIT_FAILURE, s, \"posix_spawnattr_init\");\n" |
| 1197 |
" s = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETSIGMASK);\n" |
| 1198 |
" if (s != 0)\n" |
| 1199 |
" errc(EXIT_FAILURE, s, \"posix_spawnattr_setflags\");\n" |
| 1200 |
"\\&\n" |
| 1201 |
" sigfillset(&mask);\n" |
| 1202 |
" s = posix_spawnattr_setsigmask(&attr, &mask);\n" |
| 1203 |
" if (s != 0)\n" |
| 1204 |
" errc(EXIT_FAILURE, s, \"posix_spawnattr_setsigmask\");\n" |
| 1205 |
"\\&\n" |
| 1206 |
" attrp = &attr;\n" |
| 1207 |
" break;\n" |
| 1208 |
" }\n" |
| 1209 |
" }\n" |
| 1210 |
"\\&\n" |
| 1211 |
" if (argv[optind] == NULL) {\n" |
| 1212 |
" fprintf(stderr, \"Usage: %s [-cs] executable [args]\\[rs]n\", argv[0]);\n" |
| 1213 |
" exit(EXIT_FAILURE);\n" |
| 1214 |
" }\n" |
| 1215 |
"\\&\n" |
| 1216 |
" /* Spawn the child. The name of the program to execute and the\n" |
| 1217 |
" command-line arguments are taken from the command-line arguments\n" |
| 1218 |
" of this program. The environment of the program execed in the\n" |
| 1219 |
" child is made the same as the parent\\[aq]s environment. */\n" |
| 1220 |
"\\&\n" |
| 1221 |
" s = posix_spawnp(&child_pid, argv[optind], file_actionsp, attrp,\n" |
| 1222 |
" &argv[optind], environ);\n" |
| 1223 |
" if (s != 0)\n" |
| 1224 |
" errc(EXIT_FAILURE, s, \"posix_spawn\");\n" |
| 1225 |
"\\&\n" |
| 1226 |
" /* Destroy any objects that we created earlier. */\n" |
| 1227 |
"\\&\n" |
| 1228 |
" if (attrp != NULL) {\n" |
| 1229 |
" s = posix_spawnattr_destroy(attrp);\n" |
| 1230 |
" if (s != 0)\n" |
| 1231 |
" errc(EXIT_FAILURE, s, \"posix_spawnattr_destroy\");\n" |
| 1232 |
" }\n" |
| 1233 |
"\\&\n" |
| 1234 |
" if (file_actionsp != NULL) {\n" |
| 1235 |
" s = posix_spawn_file_actions_destroy(file_actionsp);\n" |
| 1236 |
" if (s != 0)\n" |
| 1237 |
" errc(EXIT_FAILURE, s, \"posix_spawn_file_actions_destroy\");\n" |
| 1238 |
" }\n" |
| 1239 |
"\\&\n" |
| 1240 |
" printf(\"PID of child: %jd\\[rs]n\", (intmax_t) child_pid);\n" |
| 1241 |
"\\&\n" |
| 1242 |
" /* Monitor status of the child until it terminates. */\n" |
| 1243 |
"\\&\n" |
| 1244 |
" do {\n" |
| 1245 |
" s = waitpid(child_pid, &status, WUNTRACED | WCONTINUED);\n" |
| 1246 |
" if (s == -1)\n" |
| 1247 |
" err(EXIT_FAILURE, \"waitpid\");\n" |
| 1248 |
"\\&\n" |
| 1249 |
" printf(\"Child status: \");\n" |
| 1250 |
" if (WIFEXITED(status)) {\n" |
| 1251 |
" printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(status));\n" |
| 1252 |
" } else if (WIFSIGNALED(status)) {\n" |
| 1253 |
" printf(\"killed by signal %d\\[rs]n\", WTERMSIG(status));\n" |
| 1254 |
" } else if (WIFSTOPPED(status)) {\n" |
| 1255 |
" printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(status));\n" |
| 1256 |
" } else if (WIFCONTINUED(status)) {\n" |
| 1257 |
" printf(\"continued\\[rs]n\");\n" |
| 1258 |
" }\n" |
| 1259 |
" } while (!WIFEXITED(status) && !WIFSIGNALED(status));\n" |
| 1260 |
"\\&\n" |
| 1261 |
" exit(EXIT_SUCCESS);\n" |
| 1262 |
"}\n" |
| 1263 |
msgstr "" |
| 1264 |
"#include E<lt>err.hE<gt>\n" |
| 1265 |
"#include E<lt>errno.hE<gt>\n" |
| 1266 |
"#include E<lt>spawn.hE<gt>\n" |
| 1267 |
"#include E<lt>stdint.hE<gt>\n" |
| 1268 |
"#include E<lt>stdio.hE<gt>\n" |
| 1269 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1270 |
"#include E<lt>string.hE<gt>\n" |
| 1271 |
"#include E<lt>unistd.hE<gt>\n" |
| 1272 |
"#include E<lt>wait.hE<gt>\n" |
| 1273 |
"\\&\n" |
| 1274 |
"char **environ;\n" |
| 1275 |
"\\&\n" |
| 1276 |
"int\n" |
| 1277 |
"main(int argc, char *argv[])\n" |
| 1278 |
"{\n" |
| 1279 |
" pid_t child_pid;\n" |
| 1280 |
" int s, opt, status;\n" |
| 1281 |
" sigset_t mask;\n" |
| 1282 |
" posix_spawnattr_t attr;\n" |
| 1283 |
" posix_spawnattr_t *attrp;\n" |
| 1284 |
" posix_spawn_file_actions_t file_actions;\n" |
| 1285 |
" posix_spawn_file_actions_t *file_actionsp;\n" |
| 1286 |
"\\&\n" |
| 1287 |
" /* Parse command-line options, which can be used to specify an\n" |
| 1288 |
" attributes object and file actions object for the child. */\n" |
| 1289 |
"\\&\n" |
| 1290 |
" attrp = NULL;\n" |
| 1291 |
" file_actionsp = NULL;\n" |
| 1292 |
"\\&\n" |
| 1293 |
" while ((opt = getopt(argc, argv, \"sc\")) != -1) {\n" |
| 1294 |
" switch (opt) {\n" |
| 1295 |
" case \\[aq]c\\[aq]: /* -c: close standard output in child */\n" |
| 1296 |
"\\&\n" |
| 1297 |
" /* Create a file actions object and add a \"close\"\n" |
| 1298 |
" action to it. */\n" |
| 1299 |
"\\&\n" |
| 1300 |
" s = posix_spawn_file_actions_init(&file_actions);\n" |
| 1301 |
" if (s != 0)\n" |
| 1302 |
" errc(EXIT_FAILURE, s, \"posix_spawn_file_actions_init\");\n" |
| 1303 |
"\\&\n" |
| 1304 |
" s = posix_spawn_file_actions_addclose(&file_actions,\n" |
| 1305 |
" STDOUT_FILENO);\n" |
| 1306 |
" if (s != 0)\n" |
| 1307 |
" errc(EXIT_FAILURE, s, \"posix_spawn_file_actions_addclose\");\n" |
| 1308 |
"\\&\n" |
| 1309 |
" file_actionsp = &file_actions;\n" |
| 1310 |
" break;\n" |
| 1311 |
"\\&\n" |
| 1312 |
" case \\[aq]s\\[aq]: /* -s: block all signals in child */\n" |
| 1313 |
"\\&\n" |
| 1314 |
" /* Create an attributes object and add a \"set signal mask\"\n" |
| 1315 |
" action to it. */\n" |
| 1316 |
"\\&\n" |
| 1317 |
" s = posix_spawnattr_init(&attr);\n" |
| 1318 |
" if (s != 0)\n" |
| 1319 |
" errc(EXIT_FAILURE, s, \"posix_spawnattr_init\");\n" |
| 1320 |
" s = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETSIGMASK);\n" |
| 1321 |
" if (s != 0)\n" |
| 1322 |
" errc(EXIT_FAILURE, s, \"posix_spawnattr_setflags\");\n" |
| 1323 |
"\\&\n" |
| 1324 |
" sigfillset(&mask);\n" |
| 1325 |
" s = posix_spawnattr_setsigmask(&attr, &mask);\n" |
| 1326 |
" if (s != 0)\n" |
| 1327 |
" errc(EXIT_FAILURE, s, \"posix_spawnattr_setsigmask\");\n" |
| 1328 |
"\\&\n" |
| 1329 |
" attrp = &attr;\n" |
| 1330 |
" break;\n" |
| 1331 |
" }\n" |
| 1332 |
" }\n" |
| 1333 |
"\\&\n" |
| 1334 |
" if (argv[optind] == NULL) {\n" |
| 1335 |
" fprintf(stderr, \"Usage: %s [-cs] executable [args]\\[rs]n\", argv[0]);\n" |
| 1336 |
" exit(EXIT_FAILURE);\n" |
| 1337 |
" }\n" |
| 1338 |
"\\&\n" |
| 1339 |
" /* Spawn the child. The name of the program to execute and the\n" |
| 1340 |
" command-line arguments are taken from the command-line arguments\n" |
| 1341 |
" of this program. The environment of the program execed in the\n" |
| 1342 |
" child is made the same as the parent\\[aq]s environment. */\n" |
| 1343 |
"\\&\n" |
| 1344 |
" s = posix_spawnp(&child_pid, argv[optind], file_actionsp, attrp,\n" |
| 1345 |
" &argv[optind], environ);\n" |
| 1346 |
" if (s != 0)\n" |
| 1347 |
" errc(EXIT_FAILURE, s, \"posix_spawn\");\n" |
| 1348 |
"\\&\n" |
| 1349 |
" /* Destroy any objects that we created earlier. */\n" |
| 1350 |
"\\&\n" |
| 1351 |
" if (attrp != NULL) {\n" |
| 1352 |
" s = posix_spawnattr_destroy(attrp);\n" |
| 1353 |
" if (s != 0)\n" |
| 1354 |
" errc(EXIT_FAILURE, s, \"posix_spawnattr_destroy\");\n" |
| 1355 |
" }\n" |
| 1356 |
"\\&\n" |
| 1357 |
" if (file_actionsp != NULL) {\n" |
| 1358 |
" s = posix_spawn_file_actions_destroy(file_actionsp);\n" |
| 1359 |
" if (s != 0)\n" |
| 1360 |
" errc(EXIT_FAILURE, s, \"posix_spawn_file_actions_destroy\");\n" |
| 1361 |
" }\n" |
| 1362 |
"\\&\n" |
| 1363 |
" printf(\"PID of child: %jd\\[rs]n\", (intmax_t) child_pid);\n" |
| 1364 |
"\\&\n" |
| 1365 |
" /* Monitor status of the child until it terminates. */\n" |
| 1366 |
"\\&\n" |
| 1367 |
" do {\n" |
| 1368 |
" s = waitpid(child_pid, &status, WUNTRACED | WCONTINUED);\n" |
| 1369 |
" if (s == -1)\n" |
| 1370 |
" err(EXIT_FAILURE, \"waitpid\");\n" |
| 1371 |
"\\&\n" |
| 1372 |
" printf(\"Child status: \");\n" |
| 1373 |
" if (WIFEXITED(status)) {\n" |
| 1374 |
" printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(status));\n" |
| 1375 |
" } else if (WIFSIGNALED(status)) {\n" |
| 1376 |
" printf(\"killed by signal %d\\[rs]n\", WTERMSIG(status));\n" |
| 1377 |
" } else if (WIFSTOPPED(status)) {\n" |
| 1378 |
" printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(status));\n" |
| 1379 |
" } else if (WIFCONTINUED(status)) {\n" |
| 1380 |
" printf(\"continued\\[rs]n\");\n" |
| 1381 |
" }\n" |
| 1382 |
" } while (!WIFEXITED(status) && !WIFSIGNALED(status));\n" |
| 1383 |
"\\&\n" |
| 1384 |
" exit(EXIT_SUCCESS);\n" |
| 1385 |
"}\n" |
| 1386 |
|
| 1387 |
#. SRC END |
| 1388 |
#. type: SH |
| 1389 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1390 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1391 |
#, no-wrap |
| 1392 |
msgid "SEE ALSO" |
| 1393 |
msgstr "انظر أيضًا" |
| 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 |
"B<close>(2), B<dup2>(2), B<execl>(2), B<execlp>(2), B<fork>(2), B<open>(2), " |
| 1400 |
"B<sched_setparam>(2), B<sched_setscheduler>(2), B<setpgid>(2), B<setuid>(2), " |
| 1401 |
"B<sigaction>(2), B<sigprocmask>(2), B<posix_spawn_file_actions_addclose>(3), " |
| 1402 |
"B<posix_spawn_file_actions_adddup2>(3), " |
| 1403 |
"B<posix_spawn_file_actions_addopen>(3), " |
| 1404 |
"B<posix_spawn_file_actions_destroy>(3), B<posix_spawn_file_actions_init>(3), " |
| 1405 |
"B<posix_spawnattr_destroy>(3), B<posix_spawnattr_getflags>(3), " |
| 1406 |
"B<posix_spawnattr_getpgroup>(3), B<posix_spawnattr_getschedparam>(3), " |
| 1407 |
"B<posix_spawnattr_getschedpolicy>(3), B<posix_spawnattr_getsigdefault>(3), " |
| 1408 |
"B<posix_spawnattr_getsigmask>(3), B<posix_spawnattr_init>(3), " |
| 1409 |
"B<posix_spawnattr_setflags>(3), B<posix_spawnattr_setpgroup>(3), " |
| 1410 |
"B<posix_spawnattr_setschedparam>(3), B<posix_spawnattr_setschedpolicy>(3), " |
| 1411 |
"B<posix_spawnattr_setsigdefault>(3), B<posix_spawnattr_setsigmask>(3), " |
| 1412 |
"B<pthread_atfork>(3), I<E<lt>spawn.hE<gt>>, Base Definitions volume of " |
| 1413 |
"POSIX.1-2001, I<http://www.opengroup.org/unix/online.html>" |
| 1414 |
msgstr "" |
| 1415 |
"B<close>(2), B<dup2>(2), B<execl>(2), B<execlp>(2), B<fork>(2), B<open>(2), " |
| 1416 |
"B<sched_setparam>(2), B<sched_setscheduler>(2), B<setpgid>(2), B<setuid>(2), " |
| 1417 |
"B<sigaction>(2), B<sigprocmask>(2), B<posix_spawn_file_actions_addclose>(3), " |
| 1418 |
"B<posix_spawn_file_actions_adddup2>(3), " |
| 1419 |
"B<posix_spawn_file_actions_addopen>(3), " |
| 1420 |
"B<posix_spawn_file_actions_destroy>(3), B<posix_spawn_file_actions_init>(3), " |
| 1421 |
"B<posix_spawnattr_destroy>(3), B<posix_spawnattr_getflags>(3), " |
| 1422 |
"B<posix_spawnattr_getpgroup>(3), B<posix_spawnattr_getschedparam>(3), " |
| 1423 |
"B<posix_spawnattr_getschedpolicy>(3), B<posix_spawnattr_getsigdefault>(3), " |
| 1424 |
"B<posix_spawnattr_getsigmask>(3), B<posix_spawnattr_init>(3), " |
| 1425 |
"B<posix_spawnattr_setflags>(3), B<posix_spawnattr_setpgroup>(3), " |
| 1426 |
"B<posix_spawnattr_setschedparam>(3), B<posix_spawnattr_setschedpolicy>(3), " |
| 1427 |
"B<posix_spawnattr_setsigdefault>(3), B<posix_spawnattr_setsigmask>(3), " |
| 1428 |
"B<pthread_atfork>(3), I<E<lt>spawn.hE<gt>>, Base Definitions volume of " |
| 1429 |
"POSIX.1-2001, I<http://www.opengroup.org/unix/online.html>" |
| 1430 |
|
| 1431 |
#. type: TH |
| 1432 |
#: debian-trixie |
| 1433 |
#, no-wrap |
| 1434 |
msgid "2024-06-15" |
| 1435 |
msgstr "15 يونيو 2024" |
| 1436 |
|
| 1437 |
#. type: TH |
| 1438 |
#: debian-trixie |
| 1439 |
#, no-wrap |
| 1440 |
msgid "Linux man-pages 6.9.1" |
| 1441 |
msgstr "صفحات دليل لينكس 6.9.1" |
| 1442 |
|
| 1443 |
#. type: Plain text |
| 1444 |
#: debian-trixie |
| 1445 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1446 |
msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)" |
| 1447 |
|
| 1448 |
#. type: Plain text |
| 1449 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1450 |
msgid "" |
| 1451 |
"Even when these functions return a success status, the child process may " |
| 1452 |
"still fail for a plethora of reasons related to its pre-B<exec>() " |
| 1453 |
"initialization. In addition, the B<exec>(3) may fail. In all of these " |
| 1454 |
"cases, the child process will exit with the exit value of 127." |
| 1455 |
msgstr "" |
| 1456 |
"حتى عندما تُرجع هذه الدوال حالة نجاح، قد تفشل العملية الابن لأسباب عديدة " |
| 1457 |
"تتعلق بتهيئتها قبل B<exec>(). بالإضافة إلى ذلك، قد تفشل B<exec>(3). في كل " |
| 1458 |
"هذه الحالات، ستخرج العملية الابن بقيمة خروج 127." |
| 1459 |
|
| 1460 |
#. type: Plain text |
| 1461 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1462 |
#, no-wrap |
| 1463 |
msgid "" |
| 1464 |
"$ B<./a.out date>\n" |
| 1465 |
"PID of child: 7634\n" |
| 1466 |
"Tue Feb 1 19:47:50 CEST 2011\n" |
| 1467 |
"Child status: exited, status=0\n" |
| 1468 |
msgstr "" |
| 1469 |
"$ B<./a.out date>\n" |
| 1470 |
"PID of child: 7634\n" |
| 1471 |
"Tue Feb 1 19:47:50 CEST 2011\n" |
| 1472 |
"Child status: exited, status=0\n" |
| 1473 |
|
| 1474 |
#. type: Plain text |
| 1475 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1476 |
#, no-wrap |
| 1477 |
msgid "" |
| 1478 |
"$ B<./a.out -c date>\n" |
| 1479 |
"PID of child: 7636\n" |
| 1480 |
"date: write error: Bad file descriptor\n" |
| 1481 |
"Child status: exited, status=1\n" |
| 1482 |
msgstr "" |
| 1483 |
"$ B<./a.out -c date>\n" |
| 1484 |
"PID of child: 7636\n" |
| 1485 |
"date: write error: Bad file descriptor\n" |
| 1486 |
"Child status: exited, status=1\n" |
| 1487 |
|
| 1488 |
#. type: Plain text |
| 1489 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1490 |
#, no-wrap |
| 1491 |
msgid "" |
| 1492 |
"$ B<./a.out -s sleep 60 &>\n" |
| 1493 |
"[1] 7637\n" |
| 1494 |
"$ PID of child: 7638\n" |
| 1495 |
msgstr "" |
| 1496 |
"$ B<./a.out -s sleep 60 &>\n" |
| 1497 |
"[1] 7637\n" |
| 1498 |
"$ PID of child: 7638\n" |
| 1499 |
|
| 1500 |
#. type: Plain text |
| 1501 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1502 |
#, no-wrap |
| 1503 |
msgid "" |
| 1504 |
"$ B<kill 7638>\n" |
| 1505 |
"$ B<kill -KILL 7638>\n" |
| 1506 |
"$ Child status: killed by signal 9\n" |
| 1507 |
"[1]+ Done ./a.out -s sleep 60\n" |
| 1508 |
msgstr "" |
| 1509 |
"$ B<kill 7638>\n" |
| 1510 |
"$ B<kill -KILL 7638>\n" |
| 1511 |
"$ Child status: killed by signal 9\n" |
| 1512 |
"[1]+ Done ./a.out -s sleep 60\n" |
| 1513 |
|
| 1514 |
#. type: Plain text |
| 1515 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1516 |
#, no-wrap |
| 1517 |
msgid "" |
| 1518 |
"$ B<./a.out xxxxx\n" |
| 1519 |
"PID of child: 10190\n" |
| 1520 |
"Child status: exited, status=127>\n" |
| 1521 |
msgstr "" |
| 1522 |
"$ B<./a.out xxxxx\n" |
| 1523 |
"PID of child: 10190\n" |
| 1524 |
"Child status: exited, status=127>\n" |
| 1525 |
|
| 1526 |
#. type: Plain text |
| 1527 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1528 |
#, no-wrap |
| 1529 |
msgid "" |
| 1530 |
"#include E<lt>errno.hE<gt>\n" |
| 1531 |
"#include E<lt>spawn.hE<gt>\n" |
| 1532 |
"#include E<lt>stdint.hE<gt>\n" |
| 1533 |
"#include E<lt>stdio.hE<gt>\n" |
| 1534 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1535 |
"#include E<lt>string.hE<gt>\n" |
| 1536 |
"#include E<lt>unistd.hE<gt>\n" |
| 1537 |
"#include E<lt>wait.hE<gt>\n" |
| 1538 |
"\\&\n" |
| 1539 |
"#define errExit(msg) do { perror(msg); \\[rs]\n" |
| 1540 |
" exit(EXIT_FAILURE); } while (0)\n" |
| 1541 |
"\\&\n" |
| 1542 |
"#define errExitEN(en, msg) \\[rs]\n" |
| 1543 |
" do { errno = en; perror(msg); \\[rs]\n" |
| 1544 |
" exit(EXIT_FAILURE); } while (0)\n" |
| 1545 |
"\\&\n" |
| 1546 |
"char **environ;\n" |
| 1547 |
"\\&\n" |
| 1548 |
"int\n" |
| 1549 |
"main(int argc, char *argv[])\n" |
| 1550 |
"{\n" |
| 1551 |
" pid_t child_pid;\n" |
| 1552 |
" int s, opt, status;\n" |
| 1553 |
" sigset_t mask;\n" |
| 1554 |
" posix_spawnattr_t attr;\n" |
| 1555 |
" posix_spawnattr_t *attrp;\n" |
| 1556 |
" posix_spawn_file_actions_t file_actions;\n" |
| 1557 |
" posix_spawn_file_actions_t *file_actionsp;\n" |
| 1558 |
"\\&\n" |
| 1559 |
" /* Parse command-line options, which can be used to specify an\n" |
| 1560 |
" attributes object and file actions object for the child. */\n" |
| 1561 |
"\\&\n" |
| 1562 |
" attrp = NULL;\n" |
| 1563 |
" file_actionsp = NULL;\n" |
| 1564 |
"\\&\n" |
| 1565 |
" while ((opt = getopt(argc, argv, \"sc\")) != -1) {\n" |
| 1566 |
" switch (opt) {\n" |
| 1567 |
" case \\[aq]c\\[aq]: /* -c: close standard output in child */\n" |
| 1568 |
"\\&\n" |
| 1569 |
" /* Create a file actions object and add a \"close\"\n" |
| 1570 |
" action to it. */\n" |
| 1571 |
"\\&\n" |
| 1572 |
" s = posix_spawn_file_actions_init(&file_actions);\n" |
| 1573 |
" if (s != 0)\n" |
| 1574 |
" errExitEN(s, \"posix_spawn_file_actions_init\");\n" |
| 1575 |
"\\&\n" |
| 1576 |
" s = posix_spawn_file_actions_addclose(&file_actions,\n" |
| 1577 |
" STDOUT_FILENO);\n" |
| 1578 |
" if (s != 0)\n" |
| 1579 |
" errExitEN(s, \"posix_spawn_file_actions_addclose\");\n" |
| 1580 |
"\\&\n" |
| 1581 |
" file_actionsp = &file_actions;\n" |
| 1582 |
" break;\n" |
| 1583 |
"\\&\n" |
| 1584 |
" case \\[aq]s\\[aq]: /* -s: block all signals in child */\n" |
| 1585 |
"\\&\n" |
| 1586 |
" /* Create an attributes object and add a \"set signal mask\"\n" |
| 1587 |
" action to it. */\n" |
| 1588 |
"\\&\n" |
| 1589 |
" s = posix_spawnattr_init(&attr);\n" |
| 1590 |
" if (s != 0)\n" |
| 1591 |
" errExitEN(s, \"posix_spawnattr_init\");\n" |
| 1592 |
" s = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETSIGMASK);\n" |
| 1593 |
" if (s != 0)\n" |
| 1594 |
" errExitEN(s, \"posix_spawnattr_setflags\");\n" |
| 1595 |
"\\&\n" |
| 1596 |
" sigfillset(&mask);\n" |
| 1597 |
" s = posix_spawnattr_setsigmask(&attr, &mask);\n" |
| 1598 |
" if (s != 0)\n" |
| 1599 |
" errExitEN(s, \"posix_spawnattr_setsigmask\");\n" |
| 1600 |
"\\&\n" |
| 1601 |
" attrp = &attr;\n" |
| 1602 |
" break;\n" |
| 1603 |
" }\n" |
| 1604 |
" }\n" |
| 1605 |
"\\&\n" |
| 1606 |
" /* Spawn the child. The name of the program to execute and the\n" |
| 1607 |
" command-line arguments are taken from the command-line arguments\n" |
| 1608 |
" of this program. The environment of the program execed in the\n" |
| 1609 |
" child is made the same as the parent\\[aq]s environment. */\n" |
| 1610 |
"\\&\n" |
| 1611 |
" s = posix_spawnp(&child_pid, argv[optind], file_actionsp, attrp,\n" |
| 1612 |
" &argv[optind], environ);\n" |
| 1613 |
" if (s != 0)\n" |
| 1614 |
" errExitEN(s, \"posix_spawn\");\n" |
| 1615 |
"\\&\n" |
| 1616 |
" /* Destroy any objects that we created earlier. */\n" |
| 1617 |
"\\&\n" |
| 1618 |
" if (attrp != NULL) {\n" |
| 1619 |
" s = posix_spawnattr_destroy(attrp);\n" |
| 1620 |
" if (s != 0)\n" |
| 1621 |
" errExitEN(s, \"posix_spawnattr_destroy\");\n" |
| 1622 |
" }\n" |
| 1623 |
"\\&\n" |
| 1624 |
" if (file_actionsp != NULL) {\n" |
| 1625 |
" s = posix_spawn_file_actions_destroy(file_actionsp);\n" |
| 1626 |
" if (s != 0)\n" |
| 1627 |
" errExitEN(s, \"posix_spawn_file_actions_destroy\");\n" |
| 1628 |
" }\n" |
| 1629 |
"\\&\n" |
| 1630 |
" printf(\"PID of child: %jd\\[rs]n\", (intmax_t) child_pid);\n" |
| 1631 |
"\\&\n" |
| 1632 |
" /* Monitor status of the child until it terminates. */\n" |
| 1633 |
"\\&\n" |
| 1634 |
" do {\n" |
| 1635 |
" s = waitpid(child_pid, &status, WUNTRACED | WCONTINUED);\n" |
| 1636 |
" if (s == -1)\n" |
| 1637 |
" errExit(\"waitpid\");\n" |
| 1638 |
"\\&\n" |
| 1639 |
" printf(\"Child status: \");\n" |
| 1640 |
" if (WIFEXITED(status)) {\n" |
| 1641 |
" printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(status));\n" |
| 1642 |
" } else if (WIFSIGNALED(status)) {\n" |
| 1643 |
" printf(\"killed by signal %d\\[rs]n\", WTERMSIG(status));\n" |
| 1644 |
" } else if (WIFSTOPPED(status)) {\n" |
| 1645 |
" printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(status));\n" |
| 1646 |
" } else if (WIFCONTINUED(status)) {\n" |
| 1647 |
" printf(\"continued\\[rs]n\");\n" |
| 1648 |
" }\n" |
| 1649 |
" } while (!WIFEXITED(status) && !WIFSIGNALED(status));\n" |
| 1650 |
"\\&\n" |
| 1651 |
" exit(EXIT_SUCCESS);\n" |
| 1652 |
"}\n" |
| 1653 |
msgstr "" |
| 1654 |
"#include E<lt>errno.hE<gt>\n" |
| 1655 |
"#include E<lt>spawn.hE<gt>\n" |
| 1656 |
"#include E<lt>stdint.hE<gt>\n" |
| 1657 |
"#include E<lt>stdio.hE<gt>\n" |
| 1658 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1659 |
"#include E<lt>string.hE<gt>\n" |
| 1660 |
"#include E<lt>unistd.hE<gt>\n" |
| 1661 |
"#include E<lt>wait.hE<gt>\n" |
| 1662 |
"\\&\n" |
| 1663 |
"#define errExit(msg) do { perror(msg); \\[rs]\n" |
| 1664 |
" exit(EXIT_FAILURE); } while (0)\n" |
| 1665 |
"\\&\n" |
| 1666 |
"#define errExitEN(en, msg) \\[rs]\n" |
| 1667 |
" do { errno = en; perror(msg); \\[rs]\n" |
| 1668 |
" exit(EXIT_FAILURE); } while (0)\n" |
| 1669 |
"\\&\n" |
| 1670 |
"char **environ;\n" |
| 1671 |
"\\&\n" |
| 1672 |
"int\n" |
| 1673 |
"main(int argc, char *argv[])\n" |
| 1674 |
"{\n" |
| 1675 |
" pid_t child_pid;\n" |
| 1676 |
" int s, opt, status;\n" |
| 1677 |
" sigset_t mask;\n" |
| 1678 |
" posix_spawnattr_t attr;\n" |
| 1679 |
" posix_spawnattr_t *attrp;\n" |
| 1680 |
" posix_spawn_file_actions_t file_actions;\n" |
| 1681 |
" posix_spawn_file_actions_t *file_actionsp;\n" |
| 1682 |
"\\&\n" |
| 1683 |
" /* Parse command-line options, which can be used to specify an\n" |
| 1684 |
" attributes object and file actions object for the child. */\n" |
| 1685 |
"\\&\n" |
| 1686 |
" attrp = NULL;\n" |
| 1687 |
" file_actionsp = NULL;\n" |
| 1688 |
"\\&\n" |
| 1689 |
" while ((opt = getopt(argc, argv, \"sc\")) != -1) {\n" |
| 1690 |
" switch (opt) {\n" |
| 1691 |
" case \\[aq]c\\[aq]: /* -c: close standard output in child */\n" |
| 1692 |
"\\&\n" |
| 1693 |
" /* Create a file actions object and add a \"close\"\n" |
| 1694 |
" action to it. */\n" |
| 1695 |
"\\&\n" |
| 1696 |
" s = posix_spawn_file_actions_init(&file_actions);\n" |
| 1697 |
" if (s != 0)\n" |
| 1698 |
" errExitEN(s, \"posix_spawn_file_actions_init\");\n" |
| 1699 |
"\\&\n" |
| 1700 |
" s = posix_spawn_file_actions_addclose(&file_actions,\n" |
| 1701 |
" STDOUT_FILENO);\n" |
| 1702 |
" if (s != 0)\n" |
| 1703 |
" errExitEN(s, \"posix_spawn_file_actions_addclose\");\n" |
| 1704 |
"\\&\n" |
| 1705 |
" file_actionsp = &file_actions;\n" |
| 1706 |
" break;\n" |
| 1707 |
"\\&\n" |
| 1708 |
" case \\[aq]s\\[aq]: /* -s: block all signals in child */\n" |
| 1709 |
"\\&\n" |
| 1710 |
" /* Create an attributes object and add a \"set signal mask\"\n" |
| 1711 |
" action to it. */\n" |
| 1712 |
"\\&\n" |
| 1713 |
" s = posix_spawnattr_init(&attr);\n" |
| 1714 |
" if (s != 0)\n" |
| 1715 |
" errExitEN(s, \"posix_spawnattr_init\");\n" |
| 1716 |
" s = posix_spawnattr_setflags(&attr, POSIX_SPAWN_SETSIGMASK);\n" |
| 1717 |
" if (s != 0)\n" |
| 1718 |
" errExitEN(s, \"posix_spawnattr_setflags\");\n" |
| 1719 |
"\\&\n" |
| 1720 |
" sigfillset(&mask);\n" |
| 1721 |
" s = posix_spawnattr_setsigmask(&attr, &mask);\n" |
| 1722 |
" if (s != 0)\n" |
| 1723 |
" errExitEN(s, \"posix_spawnattr_setsigmask\");\n" |
| 1724 |
"\\&\n" |
| 1725 |
" attrp = &attr;\n" |
| 1726 |
" break;\n" |
| 1727 |
" }\n" |
| 1728 |
" }\n" |
| 1729 |
"\\&\n" |
| 1730 |
" /* Spawn the child. The name of the program to execute and the\n" |
| 1731 |
" command-line arguments are taken from the command-line arguments\n" |
| 1732 |
" of this program. The environment of the program execed in the\n" |
| 1733 |
" child is made the same as the parent\\[aq]s environment. */\n" |
| 1734 |
"\\&\n" |
| 1735 |
" s = posix_spawnp(&child_pid, argv[optind], file_actionsp, attrp,\n" |
| 1736 |
" &argv[optind], environ);\n" |
| 1737 |
" if (s != 0)\n" |
| 1738 |
" errExitEN(s, \"posix_spawn\");\n" |
| 1739 |
"\\&\n" |
| 1740 |
" /* Destroy any objects that we created earlier. */\n" |
| 1741 |
"\\&\n" |
| 1742 |
" if (attrp != NULL) {\n" |
| 1743 |
" s = posix_spawnattr_destroy(attrp);\n" |
| 1744 |
" if (s != 0)\n" |
| 1745 |
" errExitEN(s, \"posix_spawnattr_destroy\");\n" |
| 1746 |
" }\n" |
| 1747 |
"\\&\n" |
| 1748 |
" if (file_actionsp != NULL) {\n" |
| 1749 |
" s = posix_spawn_file_actions_destroy(file_actionsp);\n" |
| 1750 |
" if (s != 0)\n" |
| 1751 |
" errExitEN(s, \"posix_spawn_file_actions_destroy\");\n" |
| 1752 |
" }\n" |
| 1753 |
"\\&\n" |
| 1754 |
" printf(\"PID of child: %jd\\[rs]n\", (intmax_t) child_pid);\n" |
| 1755 |
"\\&\n" |
| 1756 |
" /* Monitor status of the child until it terminates. */\n" |
| 1757 |
"\\&\n" |
| 1758 |
" do {\n" |
| 1759 |
" s = waitpid(child_pid, &status, WUNTRACED | WCONTINUED);\n" |
| 1760 |
" if (s == -1)\n" |
| 1761 |
" errExit(\"waitpid\");\n" |
| 1762 |
"\\&\n" |
| 1763 |
" printf(\"Child status: \");\n" |
| 1764 |
" if (WIFEXITED(status)) {\n" |
| 1765 |
" printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(status));\n" |
| 1766 |
" } else if (WIFSIGNALED(status)) {\n" |
| 1767 |
" printf(\"killed by signal %d\\[rs]n\", WTERMSIG(status));\n" |
| 1768 |
" } else if (WIFSTOPPED(status)) {\n" |
| 1769 |
" printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(status));\n" |
| 1770 |
" } else if (WIFCONTINUED(status)) {\n" |
| 1771 |
" printf(\"continued\\[rs]n\");\n" |
| 1772 |
" }\n" |
| 1773 |
" } while (!WIFEXITED(status) && !WIFSIGNALED(status));\n" |
| 1774 |
"\\&\n" |
| 1775 |
" exit(EXIT_SUCCESS);\n" |
| 1776 |
"}\n" |
| 1777 |
|
| 1778 |
#. type: TH |
| 1779 |
#: fedora-44 fedora-rawhide |
| 1780 |
#, no-wrap |
| 1781 |
msgid "2024-07-23" |
| 1782 |
msgstr "23 يوليو 2024" |
| 1783 |
|
| 1784 |
#. type: TH |
| 1785 |
#: fedora-44 fedora-rawhide |
| 1786 |
#, no-wrap |
| 1787 |
msgid "Linux man-pages 6.13" |
| 1788 |
msgstr "صفحات دليل لينكس 6.13" |
| 1789 |
|
| 1790 |
#. type: TH |
| 1791 |
#: mageia-cauldron |
| 1792 |
#, no-wrap |
| 1793 |
msgid "Linux man-pages 6.17" |
| 1794 |
msgstr "صفحات دليل لينكس 6.17" |
| 1795 |
|
| 1796 |
#. type: TH |
| 1797 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1798 |
#, no-wrap |
| 1799 |
msgid "Linux man-pages (unreleased)" |
| 1800 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |