| 1 |
# Polish translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Rafał Lewczuk <[email protected]>, 1999. |
| 5 |
# Andrzej Krzysztofowicz <[email protected]>, 2002. |
| 6 |
# Robert Luberda <[email protected]>, 2013. |
| 7 |
# Michał Kułach <[email protected]>, 2013, 2014, 2016, 2024, 2025. |
| 8 |
msgid "" |
| 9 |
msgstr "" |
| 10 |
"Project-Id-Version: manpages-pl\n" |
| 11 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 12 |
"PO-Revision-Date: 2025-06-04 19:50+0200\n" |
| 13 |
"Last-Translator: Michał Kułach <[email protected]>\n" |
| 14 |
"Language-Team: Polish <[email protected]>\n" |
| 15 |
"Language: pl\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\n" |
| 19 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " |
| 20 |
"|| n%100>=20) ? 1 : 2);\n" |
| 21 |
"X-Generator: Lokalize 22.12.3\n" |
| 22 |
|
| 23 |
#. type: TH |
| 24 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 25 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 26 |
#, no-wrap |
| 27 |
msgid "semget" |
| 28 |
msgstr "semget" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 32 |
#: opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "2026-02-08" |
| 35 |
msgstr "8 lutego 2026 r." |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable |
| 39 |
#, no-wrap |
| 40 |
msgid "Linux man-pages 6.18" |
| 41 |
msgstr "Linux man-pages 6.18" |
| 42 |
|
| 43 |
#. type: SH |
| 44 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 45 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 46 |
#, no-wrap |
| 47 |
msgid "NAME" |
| 48 |
msgstr "NAZWA" |
| 49 |
|
| 50 |
#. type: Plain text |
| 51 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 52 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 53 |
msgid "semget - get a System V semaphore set identifier" |
| 54 |
msgstr "semget - pobiera identyfikator zestawu semaforów Systemu V" |
| 55 |
|
| 56 |
#. type: SH |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
#, no-wrap |
| 60 |
msgid "LIBRARY" |
| 61 |
msgstr "BIBLIOTEKA" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 65 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 67 |
msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "SYNOPSIS" |
| 74 |
msgstr "SKŁADNIA" |
| 75 |
|
| 76 |
# |
| 77 |
#. type: Plain text |
| 78 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 79 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 80 |
#, no-wrap |
| 81 |
msgid "B<#include E<lt>sys/sem.hE<gt>>\n" |
| 82 |
msgstr "B<#include E<lt>sys/sem.hE<gt>>\n" |
| 83 |
|
| 84 |
# |
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
msgid "" |
| 89 |
"B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>" |
| 90 |
msgstr "" |
| 91 |
"B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>" |
| 92 |
|
| 93 |
#. type: SH |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "DESCRIPTION" |
| 98 |
msgstr "OPIS" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
msgid "" |
| 104 |
"The B<semget>() system call returns the System\\ V semaphore set identifier " |
| 105 |
"associated with the argument I<key>. It may be used either to obtain the " |
| 106 |
"identifier of a previously created semaphore set (when I<semflg> is zero and " |
| 107 |
"I<key> does not have the value B<IPC_PRIVATE>), or to create a new set." |
| 108 |
msgstr "" |
| 109 |
"Wywołanie systemowe B<semget>() zwraca identyfikator zestawu semaforów " |
| 110 |
"Systemu\\ V skojarzonego z parametrem I<key>. Może służyć albo do pozyskania " |
| 111 |
"identyfikatora uprzednio utworzonego zestawu semaforów (gdy I<semflg> wynosi " |
| 112 |
"zero, a I<key> nie ma wartości B<IPC_PRIVATE>) lub do utworzenia nowego " |
| 113 |
"zestawu." |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
msgid "" |
| 119 |
"A new set of I<nsems> semaphores is created if I<key> has the value " |
| 120 |
"B<IPC_PRIVATE> or if no existing semaphore set is associated with I<key> and " |
| 121 |
"B<IPC_CREAT> is specified in I<semflg>." |
| 122 |
msgstr "" |
| 123 |
"Nowy zestaw składający się z I<nsems> semaforów zostanie utworzony, jeśli " |
| 124 |
"parametr I<key> będzie mieć wartość B<IPC_PRIVATE> lub gdy zestaw semaforów " |
| 125 |
"skojarzony z I<key> nie istnieje, a w parametrze I<semflg> zostanie " |
| 126 |
"przekazany znacznik B<IPC_CREAT>." |
| 127 |
|
| 128 |
#. type: Plain text |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
msgid "" |
| 132 |
"If I<semflg> specifies both B<IPC_CREAT> and B<IPC_EXCL> and a semaphore set " |
| 133 |
"already exists for I<key>, then B<semget>() fails with I<errno> set to " |
| 134 |
"B<EEXIST>. (This is analogous to the effect of the combination B<O_CREAT | " |
| 135 |
"O_EXCL> for B<open>(2).)" |
| 136 |
msgstr "" |
| 137 |
"Jeśli w parametrze I<semflg> podano zarówno B<IPC_CREAT>, jak i B<IPC_EXCL> " |
| 138 |
"oraz już istnieje zestaw semaforów o kluczu I<key>, to B<semget>() kończy " |
| 139 |
"się błędem, ustawiając I<errno> na wartość B<EEXIST> (działa to analogicznie " |
| 140 |
"do B<O_CREAT | O_EXCL> w B<open>(2))." |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"Upon creation, the least significant 9 bits of the argument I<semflg> define " |
| 147 |
"the permissions (for owner, group, and others) for the semaphore set. " |
| 148 |
"These bits have the same format, and the same meaning, as the I<mode> " |
| 149 |
"argument of B<open>(2) (though the execute permissions are not meaningful " |
| 150 |
"for semaphores, and write permissions mean permission to alter semaphore " |
| 151 |
"values)." |
| 152 |
msgstr "" |
| 153 |
"Podczas tworzenia, 9 najmniej znaczących bitów argumentu I<semflg> określa " |
| 154 |
"prawa dostępu do zestawu semaforów (dla właściciela, grupy i innych). Bity " |
| 155 |
"te mają ten sam format i takie samo znaczenie, jak parametr I<mode> " |
| 156 |
"wywołania B<open>(2) (prawa uruchamiania nie są istotne dla semaforów, " |
| 157 |
"natomiast prawa zapisu oznaczają możliwość zmiany wartości semaforów)." |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"When creating a new semaphore set, B<semget>() initializes the set's " |
| 164 |
"associated data structure, I<semid_ds> (see B<semctl>(2)), as follows:" |
| 165 |
msgstr "" |
| 166 |
"Podczas tworzenia nowego zestawu semaforów B<semget>() inicjuje związaną z " |
| 167 |
"zestawem semaforów strukturę I<semid_ds> (patrz B<semctl>(2)) w następujący " |
| 168 |
"sposób:" |
| 169 |
|
| 170 |
#. type: IP |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
#, no-wrap |
| 174 |
msgid "\\[bu]" |
| 175 |
msgstr "\\[bu]" |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
msgid "" |
| 181 |
"I<sem_perm.cuid> and I<sem_perm.uid> are set to the effective user ID of the " |
| 182 |
"calling process." |
| 183 |
msgstr "" |
| 184 |
"I<sem_perm.cuid> i I<sem_perm.uid> przyjmują wartość efektywnego " |
| 185 |
"identyfikatora właściciela procesu wywołującego." |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
msgid "" |
| 191 |
"I<sem_perm.cgid> and I<sem_perm.gid> are set to the effective group ID of " |
| 192 |
"the calling process." |
| 193 |
msgstr "" |
| 194 |
"I<sem_perm.cgid> i I<sem_perm.gid> przyjmują wartość efektywnego " |
| 195 |
"identyfikatora grupy procesu wywołującego." |
| 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 |
"The least significant 9 bits of I<sem_perm.mode> are set to the least " |
| 202 |
"significant 9 bits of I<semflg>." |
| 203 |
msgstr "" |
| 204 |
"9 najmniej znaczących bitów pola I<sem_perm.mode> jest kopiowanych z 9 " |
| 205 |
"najmniej znaczących bitów I<semflg>." |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "I<sem_nsems> is set to the value of I<nsems>." |
| 211 |
msgstr "I<sem_nsems> jest ustawiane na wartość I<nsems>." |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
msgid "I<sem_otime> is set to 0." |
| 217 |
msgstr "I<sem_otime> przyjmie wartość 0." |
| 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 "I<sem_ctime> is set to the current time." |
| 223 |
msgstr "I<sem_ctime> przypisywany jest bieżący czas." |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "" |
| 229 |
"The argument I<nsems> can be 0 (a don't care) when a semaphore set is not " |
| 230 |
"being created. Otherwise, I<nsems> must be greater than 0 and less than or " |
| 231 |
"equal to the maximum number of semaphores per semaphore set (B<SEMMSL>)." |
| 232 |
msgstr "" |
| 233 |
"Parametr I<nsems> może mieć wartość 0 (nie jest brany pod uwagę), jeśli nie " |
| 234 |
"będzie tworzony zestaw semaforów. W przeciwnym przypadku parametr I<nsems> " |
| 235 |
"musi być większy od 0 i mniejszy lub równy maksymalnej liczbie semaforów w " |
| 236 |
"zestawie (B<SEMMSL>)." |
| 237 |
|
| 238 |
#. and a check is made to see if it is marked for destruction. |
| 239 |
#. type: Plain text |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
msgid "If the semaphore set already exists, the permissions are verified." |
| 243 |
msgstr "Jeżeli zestaw semaforów już istnieje, to weryfikowane są uprawnienia." |
| 244 |
|
| 245 |
#. type: SH |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
#, no-wrap |
| 249 |
msgid "RETURN VALUE" |
| 250 |
msgstr "WARTOŚĆ ZWRACANA" |
| 251 |
|
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
msgid "" |
| 256 |
"On success, B<semget>() returns the semaphore set identifier (a nonnegative " |
| 257 |
"integer). On failure, -1 is returned, and I<errno> is set to indicate the " |
| 258 |
"error." |
| 259 |
msgstr "" |
| 260 |
"W przypadku powodzenia, B<semget>() zwraca identyfikator zestawu semaforów " |
| 261 |
"(liczbę nieujemną). W razie wystąpienia błędu zwracane jest -1 i ustawiane " |
| 262 |
"I<errno> wskazując błąd." |
| 263 |
|
| 264 |
#. type: SH |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
#, no-wrap |
| 268 |
msgid "ERRORS" |
| 269 |
msgstr "BŁĘDY" |
| 270 |
|
| 271 |
#. type: TP |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
#, no-wrap |
| 275 |
msgid "B<EACCES>" |
| 276 |
msgstr "B<EACCES>" |
| 277 |
|
| 278 |
#. type: Plain text |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
msgid "" |
| 282 |
"A semaphore set exists for I<key>, but the calling process does not have " |
| 283 |
"permission to access the set, and does not have the B<CAP_IPC_OWNER> " |
| 284 |
"capability in the user namespace that governs its IPC namespace." |
| 285 |
msgstr "" |
| 286 |
"Zestaw semaforów identyfikowany kluczem I<key> istnieje, ale proces " |
| 287 |
"wywołujący ani nie ma praw dostępu do niego, ani nie ma ustawionego " |
| 288 |
"przywileju B<CAP_IPC_OWNER> w przestrzeni nazw użytkownika, która zarządza " |
| 289 |
"jego przestrzenią nazw IPC." |
| 290 |
|
| 291 |
#. type: TP |
| 292 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 293 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 294 |
#, no-wrap |
| 295 |
msgid "B<EEXIST>" |
| 296 |
msgstr "B<EEXIST>" |
| 297 |
|
| 298 |
#. .TP |
| 299 |
#. .B EIDRM |
| 300 |
#. The semaphore set is marked to be deleted. |
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
msgid "" |
| 305 |
"B<IPC_CREAT> and B<IPC_EXCL> were specified in I<semflg>, but a semaphore " |
| 306 |
"set already exists for I<key>." |
| 307 |
msgstr "" |
| 308 |
"B<IPC_CREAT> i B<IPC_EXCL> określono w I<semflg>, lecz zestaw semaforów dla " |
| 309 |
"I<key> już istnieje." |
| 310 |
|
| 311 |
#. type: TP |
| 312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 313 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 314 |
#, no-wrap |
| 315 |
msgid "B<EINVAL>" |
| 316 |
msgstr "B<EINVAL>" |
| 317 |
|
| 318 |
#. type: Plain text |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
msgid "" |
| 322 |
"I<nsems> is less than 0 or greater than the limit on the number of " |
| 323 |
"semaphores per semaphore set (B<SEMMSL>)." |
| 324 |
msgstr "" |
| 325 |
"I<nsems> jest mniejsze niż 0 lub większe niż ograniczenie liczby semaforów w " |
| 326 |
"zestawie (B<SEMMSL>)" |
| 327 |
|
| 328 |
#. type: Plain text |
| 329 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 330 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 331 |
msgid "" |
| 332 |
"A semaphore set corresponding to I<key> already exists, but I<nsems> is " |
| 333 |
"larger than the number of semaphores in that set." |
| 334 |
msgstr "" |
| 335 |
"Zestaw semaforów, do którego odnosi się I<key> już istnieje, lecz I<nsems> " |
| 336 |
"jest większe niż liczba semaforów w tym zestawie." |
| 337 |
|
| 338 |
#. type: TP |
| 339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 341 |
#, no-wrap |
| 342 |
msgid "B<ENOENT>" |
| 343 |
msgstr "B<ENOENT>" |
| 344 |
|
| 345 |
#. type: Plain text |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
msgid "" |
| 349 |
"No semaphore set exists for I<key> and I<semflg> did not specify " |
| 350 |
"B<IPC_CREAT>." |
| 351 |
msgstr "" |
| 352 |
"Nie ma zestawu semaforów o identyfikatorze I<key> i znacznik B<IPC_CREAT> " |
| 353 |
"nie został przekazany w parametrze I<semflg>." |
| 354 |
|
| 355 |
#. type: TP |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
#, no-wrap |
| 359 |
msgid "B<ENOMEM>" |
| 360 |
msgstr "B<ENOMEM>" |
| 361 |
|
| 362 |
#. type: Plain text |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
msgid "" |
| 366 |
"A semaphore set has to be created but the system does not have enough memory " |
| 367 |
"for the new data structure." |
| 368 |
msgstr "" |
| 369 |
"Zestaw semaforów powinien zostać utworzony, ale w systemie brak jest pamięci " |
| 370 |
"na utworzenie nowej struktury danych." |
| 371 |
|
| 372 |
#. type: TP |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
#, no-wrap |
| 376 |
msgid "B<ENOSPC>" |
| 377 |
msgstr "B<ENOSPC>" |
| 378 |
|
| 379 |
# |
| 380 |
#. type: Plain text |
| 381 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 382 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 383 |
msgid "" |
| 384 |
"A semaphore set has to be created but the system limit for the maximum " |
| 385 |
"number of semaphore sets (B<SEMMNI>), or the system wide maximum number of " |
| 386 |
"semaphores (B<SEMMNS>), would be exceeded." |
| 387 |
msgstr "" |
| 388 |
"Nastąpiła próba przekroczenia ograniczenia liczby zestawów (B<SEMMNI>) lub " |
| 389 |
"łącznej liczby semaforów w systemie (B<SEMMNS>)." |
| 390 |
|
| 391 |
#. type: SH |
| 392 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 393 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 394 |
#, no-wrap |
| 395 |
msgid "STANDARDS" |
| 396 |
msgstr "STANDARDY" |
| 397 |
|
| 398 |
#. type: Plain text |
| 399 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 400 |
#: opensuse-tumbleweed |
| 401 |
msgid "POSIX.1-2024." |
| 402 |
msgstr "POSIX.1-2024." |
| 403 |
|
| 404 |
#. type: SH |
| 405 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 406 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 407 |
#, no-wrap |
| 408 |
msgid "HISTORY" |
| 409 |
msgstr "HISTORIA" |
| 410 |
|
| 411 |
#. SVr4 documents additional error conditions EFBIG, E2BIG, EAGAIN, |
| 412 |
#. ERANGE, EFAULT. |
| 413 |
#. type: Plain text |
| 414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 416 |
msgid "SVr4, POSIX.1-2001." |
| 417 |
msgstr "SVr4, POSIX.1-2001." |
| 418 |
|
| 419 |
#. type: SH |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
#, no-wrap |
| 423 |
msgid "NOTES" |
| 424 |
msgstr "UWAGI" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
msgid "" |
| 430 |
"B<IPC_PRIVATE> isn't a flag field but a I<key_t> type. If this special " |
| 431 |
"value is used for I<key>, the system call ignores all but the least " |
| 432 |
"significant 9 bits of I<semflg> and creates a new semaphore set (on success)." |
| 433 |
msgstr "" |
| 434 |
"B<IPC_PRIVATE> nie jest znacznikiem, ale szczególną wartością typu I<key_t>. " |
| 435 |
"Jeśli wartość ta zostanie użyta jako parametr I<key>, to system uwzględni " |
| 436 |
"jedynie 9 najniższych bitów parametru I<msgflg> i (w razie powodzenia) " |
| 437 |
"utworzy nowy zestaw semaforów." |
| 438 |
|
| 439 |
#. type: SS |
| 440 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 441 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 442 |
#, no-wrap |
| 443 |
msgid "Semaphore initialization" |
| 444 |
msgstr "Inicjowanie semaforów" |
| 445 |
|
| 446 |
#. In truth, every one of the many implementations that I've tested sets |
| 447 |
#. the values to zero, but I suppose there is/was some obscure |
| 448 |
#. implementation out there that does not. |
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
msgid "" |
| 453 |
"The values of the semaphores in a newly created set are indeterminate. " |
| 454 |
"(POSIX.1-2001 and POSIX.1-2008 are explicit on this point, although " |
| 455 |
"POSIX.1-2008 notes that a future version of the standard may require an " |
| 456 |
"implementation to initialize the semaphores to 0.) Although Linux, like " |
| 457 |
"many other implementations, initializes the semaphore values to 0, a " |
| 458 |
"portable application cannot rely on this: it should explicitly initialize " |
| 459 |
"the semaphores to the desired values." |
| 460 |
msgstr "" |
| 461 |
"Wartości semaforów w nowo utworzonym zestawie są nieokreślone (POSIX.1-2001 " |
| 462 |
"jasno o tym mówi, choć POSIX.1-2008 określa, że przyszła wersja tego " |
| 463 |
"standardu może wymagać implementacji inicjującej semafory z wartością 0). " |
| 464 |
"Mimo że Linux, tak jak i wiele innych implementacji, nadaje im wartość " |
| 465 |
"początkową równą 0, to przenośne aplikacje nie powinny zależeć od tego " |
| 466 |
"zachowania i zamiast tego powinny wyraźnie inicjować semafory żądanymi " |
| 467 |
"wartościami." |
| 468 |
|
| 469 |
#. type: Plain text |
| 470 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 471 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
msgid "" |
| 473 |
"Initialization can be done using B<semctl>(2) B<SETVAL> or B<SETALL> " |
| 474 |
"operation. Where multiple peers do not know who will be the first to " |
| 475 |
"initialize the set, checking for a nonzero I<sem_otime> in the associated " |
| 476 |
"data structure retrieved by a B<semctl>(2) B<IPC_STAT> operation can be " |
| 477 |
"used to avoid races." |
| 478 |
msgstr "" |
| 479 |
"Aby zainicjować semafory, należy na zestawie semaforów użyć operacji " |
| 480 |
"B<SETVAL> lub B<SETALL> wywołania B<semctl>(2). W sytuacji gdy wiele " |
| 481 |
"procesów nie wie, który pierwszy zainicjuje zestaw semaforów, to aby uniknąć " |
| 482 |
"sytuacji wyścigu, można sprawdzić, czy pole I<sem_otime> powiązanej " |
| 483 |
"struktury danych zwracanej przez operację B<IPC_STAT> wywołania B<semctl>(2) " |
| 484 |
"ma wartość niezerową." |
| 485 |
|
| 486 |
#. type: SS |
| 487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
#, no-wrap |
| 490 |
msgid "Semaphore limits" |
| 491 |
msgstr "Limity semaforów" |
| 492 |
|
| 493 |
#. type: Plain text |
| 494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 496 |
msgid "" |
| 497 |
"The following limits on semaphore set resources affect the B<semget>() call:" |
| 498 |
msgstr "" |
| 499 |
"Wywołania B<semget>() dotyczą następujące ograniczenia zasobów związanych z " |
| 500 |
"zestawami semaforów:" |
| 501 |
|
| 502 |
#. type: TP |
| 503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 505 |
#, no-wrap |
| 506 |
msgid "B<SEMMNI>" |
| 507 |
msgstr "B<SEMMNI>" |
| 508 |
|
| 509 |
#. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4 |
| 510 |
#. This /proc file is not available in Linux 2.2 and earlier -- MTK |
| 511 |
#. type: Plain text |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
msgid "" |
| 515 |
"System-wide limit on the number of semaphore sets. Before Linux 3.19, the " |
| 516 |
"default value for this limit was 128. Since Linux 3.19, the default value " |
| 517 |
"is 32,000. On Linux, this limit can be read and modified via the fourth " |
| 518 |
"field of I</proc/sys/kernel/sem>." |
| 519 |
msgstr "" |
| 520 |
"Limit liczby zestawów semaforów w systemie. Przed Linuksem 3.19, domyślna " |
| 521 |
"wartość tego limitu wynosiła 128. Od Linuksa 3.19 jest to 32\\ 000. Pod " |
| 522 |
"Linuksem to ograniczenie można odczytać i zmienić, używając czwartego pola " |
| 523 |
"pliku I</proc/sys/kernel/sem>)." |
| 524 |
|
| 525 |
#. type: TP |
| 526 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 527 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 528 |
#, no-wrap |
| 529 |
msgid "B<SEMMSL>" |
| 530 |
msgstr "B<SEMMSL>" |
| 531 |
|
| 532 |
#. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4 |
| 533 |
#. type: Plain text |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
msgid "" |
| 537 |
"Maximum number of semaphores per semaphore ID. Before Linux 3.19, the " |
| 538 |
"default value for this limit was 250. Since Linux 3.19, the default value " |
| 539 |
"is 32,000. On Linux, this limit can be read and modified via the first " |
| 540 |
"field of I</proc/sys/kernel/sem>." |
| 541 |
msgstr "" |
| 542 |
"Maksymalna liczba semaforów dla danego ID semafora. Przed Linuksem 3.19, " |
| 543 |
"domyślna wartość tego limitu wynosiła 250. Od Linuksa 3.19 jest to 32\\ 000. " |
| 544 |
"Pod Linuksem to ograniczenie można odczytać i zmienić, używając pierwszego " |
| 545 |
"pola pliku I</proc/sys/kernel/sem>)." |
| 546 |
|
| 547 |
#. type: TP |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
#, no-wrap |
| 551 |
msgid "B<SEMMNS>" |
| 552 |
msgstr "B<SEMMNS>" |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
msgid "" |
| 558 |
"System-wide limit on the number of semaphores: policy dependent (on Linux, " |
| 559 |
"this limit can be read and modified via the second field of I</proc/sys/" |
| 560 |
"kernel/sem>). Note that the number of semaphores system-wide is also " |
| 561 |
"limited by the product of B<SEMMSL> and B<SEMMNI>." |
| 562 |
msgstr "" |
| 563 |
"Limit liczby semaforów w systemie: wartość zależna od lokalnych ustawień " |
| 564 |
"(pod Linuksem to ograniczenie można odczytać i zmienić, używając drugiego " |
| 565 |
"pola pliku I</proc/sys/kernel/sem>). Proszę zauważyć, że systemowa liczba " |
| 566 |
"semaforów jest również ograniczona przez iloczyn B<SEMMSL> i B<SEMMNI>." |
| 567 |
|
| 568 |
#. type: SH |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
#, no-wrap |
| 572 |
msgid "BUGS" |
| 573 |
msgstr "USTERKI" |
| 574 |
|
| 575 |
#. type: Plain text |
| 576 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 577 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 578 |
msgid "" |
| 579 |
"The name choice B<IPC_PRIVATE> was perhaps unfortunate, B<IPC_NEW> would " |
| 580 |
"more clearly show its function." |
| 581 |
msgstr "" |
| 582 |
"Nazwa B<IPC_PRIVATE> prawdopodobnie nie jest najszczęśliwsza. B<IPC_NEW> w " |
| 583 |
"sposób bardziej przejrzysty odzwierciedlałoby rolę tej wartości." |
| 584 |
|
| 585 |
#. type: SH |
| 586 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 587 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 588 |
#, no-wrap |
| 589 |
msgid "EXAMPLES" |
| 590 |
msgstr "PRZYKŁADY" |
| 591 |
|
| 592 |
#. type: Plain text |
| 593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 594 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 595 |
msgid "" |
| 596 |
"The program shown below uses B<semget>() to create a new semaphore set or " |
| 597 |
"retrieve the ID of an existing set. It generates the I<key> for " |
| 598 |
"B<semget>() using B<ftok>(3). The first two command-line arguments are " |
| 599 |
"used as the I<pathname> and I<proj_id> arguments for B<ftok>(3). The third " |
| 600 |
"command-line argument is an integer that specifies the I<nsems> argument for " |
| 601 |
"B<semget>(). Command-line options can be used to specify the B<IPC_CREAT> " |
| 602 |
"(I<-c>) and B<IPC_EXCL> (I<-x>) flags for the call to B<semget>(). The " |
| 603 |
"usage of this program is demonstrated below." |
| 604 |
msgstr "" |
| 605 |
"Program pokazany niżej używa B<semget>() do utworzenia nowego zestawu " |
| 606 |
"semaforów lub pozyskania identyfikatora zestawu istniejącego. Tworzy I<key> " |
| 607 |
"do B<semget>() za pomocą B<ftok>(3). Pierwsze dwa argumenty wiersza poleceń " |
| 608 |
"są używane jako argumenty I<pathname> i I<proj_id> do B<ftok>(3). Trzeci " |
| 609 |
"argument wiersza poleceń jest liczbą, określającą argument I<nsems> do " |
| 610 |
"B<semget>(). Opcje wiersza poleceń mogą posłużyć do określenia znaczników " |
| 611 |
"B<IPC_CREAT> (I<-c>) i B<IPC_EXCL> (I<-x>) do wywołania B<semget>(). Użycie " |
| 612 |
"programu pokazano poniżej." |
| 613 |
|
| 614 |
#. type: Plain text |
| 615 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 616 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 617 |
msgid "" |
| 618 |
"We first create two files that will be used to generate keys using " |
| 619 |
"B<ftok>(3), create two semaphore sets using those files, and then list the " |
| 620 |
"sets using B<ipcs>(1):" |
| 621 |
msgstr "" |
| 622 |
"Najpierw tworzone są dwa pliki, które posłużą do wygenerowania kluczy za " |
| 623 |
"pomocą B<ftok>(3), utworzenia dwóch zestawów semaforów za pomocą tych " |
| 624 |
"plików, a następnie wypisania zestawów używając B<ipcs>(1):" |
| 625 |
|
| 626 |
#. type: Plain text |
| 627 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 628 |
#: opensuse-tumbleweed |
| 629 |
#, no-wrap |
| 630 |
msgid "" |
| 631 |
"$B< touch mykey mykey2>;\n" |
| 632 |
"$B< ./t_semget -c mykey p 1>;\n" |
| 633 |
"ID = 9\n" |
| 634 |
"$B< ./t_semget -c mykey2 p 2>;\n" |
| 635 |
"ID = 10\n" |
| 636 |
"$B< ipcs -s>;\n" |
| 637 |
"\\&\n" |
| 638 |
"------ Semaphore Arrays --------\n" |
| 639 |
"key semid owner perms nsems\n" |
| 640 |
"0x7004136d 9 mtk 600 1\n" |
| 641 |
"0x70041368 10 mtk 600 2\n" |
| 642 |
msgstr "" |
| 643 |
"$B< touch mójklucz mójklucz2>;\n" |
| 644 |
"$B< ./t_semget -c mójklucz p 1>;\n" |
| 645 |
"ID = 9\n" |
| 646 |
"$B< ./t_semget -c mójklucz2 p 2>;\n" |
| 647 |
"ID = 10\n" |
| 648 |
"$B< ipcs -s>;\n" |
| 649 |
"\\&\n" |
| 650 |
"------ Semaphore Arrays --------\n" |
| 651 |
"key semid owner perms nsems\n" |
| 652 |
"0x7004136d 9 mtk 600 1\n" |
| 653 |
"0x70041368 10 mtk 600 2\n" |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 657 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 658 |
msgid "" |
| 659 |
"Next, we demonstrate that when B<semctl>(2) is given the same I<key> (as " |
| 660 |
"generated by the same arguments to B<ftok>(3)), it returns the ID of the " |
| 661 |
"already existing semaphore set:" |
| 662 |
msgstr "" |
| 663 |
"Następnie demonstrujemy fakt, że gdy B<semctl>(2) otrzymuje taki sam I<key> " |
| 664 |
"(wygenerowany przez takie same argumenty do B<ftok>(3)), zwraca " |
| 665 |
"identyfikator już istniejącego zestawu semaforów:" |
| 666 |
|
| 667 |
#. type: Plain text |
| 668 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 669 |
#: opensuse-tumbleweed |
| 670 |
#, no-wrap |
| 671 |
msgid "" |
| 672 |
"$B< ./t_semget -c mykey p 1>;\n" |
| 673 |
"ID = 9\n" |
| 674 |
msgstr "" |
| 675 |
"$B< ./t_semget -c mójklucz p 1>;\n" |
| 676 |
"ID = 9\n" |
| 677 |
|
| 678 |
#. type: Plain text |
| 679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 680 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 681 |
msgid "" |
| 682 |
"Finally, we demonstrate the kind of collision that can occur when " |
| 683 |
"B<ftok>(3) is given different I<pathname> arguments that have the same " |
| 684 |
"inode number:" |
| 685 |
msgstr "" |
| 686 |
"Na końcu, demonstrujemy rodzaj kolizji, jaka może wystąpić gdy przekaże się " |
| 687 |
"B<ftok>(3) różne argumenty I<pathname>, które mają ten sam numer i-węzła." |
| 688 |
|
| 689 |
#. type: Plain text |
| 690 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 691 |
#: opensuse-tumbleweed |
| 692 |
#, no-wrap |
| 693 |
msgid "" |
| 694 |
"$B< ln mykey link>;\n" |
| 695 |
"$B< ls -i1 link mykey>;\n" |
| 696 |
"2233197 link\n" |
| 697 |
"2233197 mykey\n" |
| 698 |
"$B< ./t_semget link p 1>; # Generates same key as \\[aq]mykey\\[aq]\n" |
| 699 |
"ID = 9\n" |
| 700 |
msgstr "" |
| 701 |
"$B< ln mójklucz link>;\n" |
| 702 |
"$B< ls -i1 link mójklucz>;\n" |
| 703 |
"2233197 link\n" |
| 704 |
"2233197 mójklucz\n" |
| 705 |
"$B< ./t_semget link p 1>; # Generuje taki sam klucz, jak \\[aq]mójklucz\\[aq]\n" |
| 706 |
"ID = 9\n" |
| 707 |
|
| 708 |
#. type: SS |
| 709 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 710 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 711 |
#, no-wrap |
| 712 |
msgid "Program source" |
| 713 |
msgstr "Kod źródłowy programu" |
| 714 |
|
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
#, no-wrap |
| 719 |
msgid "" |
| 720 |
"/* t_semget.c\n" |
| 721 |
"\\&\n" |
| 722 |
" Licensed under GNU General Public License v2 or later.\n" |
| 723 |
"*/\n" |
| 724 |
"#include E<lt>stdio.hE<gt>\n" |
| 725 |
"#include E<lt>stdlib.hE<gt>\n" |
| 726 |
"#include E<lt>sys/ipc.hE<gt>\n" |
| 727 |
"#include E<lt>sys/sem.hE<gt>\n" |
| 728 |
"#include E<lt>unistd.hE<gt>\n" |
| 729 |
"\\&\n" |
| 730 |
"static void\n" |
| 731 |
"usage(const char *pname)\n" |
| 732 |
"{\n" |
| 733 |
" fprintf(stderr, \"Usage: %s [-cx] pathname proj-id num-sems\\[rs]n\",\n" |
| 734 |
" pname);\n" |
| 735 |
" fprintf(stderr, \" -c Use IPC_CREAT flag\\[rs]n\");\n" |
| 736 |
" fprintf(stderr, \" -x Use IPC_EXCL flag\\[rs]n\");\n" |
| 737 |
" exit(EXIT_FAILURE);\n" |
| 738 |
"}\n" |
| 739 |
"\\&\n" |
| 740 |
"int\n" |
| 741 |
"main(int argc, char *argv[])\n" |
| 742 |
"{\n" |
| 743 |
" int semid, nsems, flags, opt;\n" |
| 744 |
" key_t key;\n" |
| 745 |
"\\&\n" |
| 746 |
" flags = 0;\n" |
| 747 |
" while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n" |
| 748 |
" switch (opt) {\n" |
| 749 |
" case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n" |
| 750 |
" case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n" |
| 751 |
" default: usage(argv[0]);\n" |
| 752 |
" }\n" |
| 753 |
" }\n" |
| 754 |
"\\&\n" |
| 755 |
" if (argc != optind + 3)\n" |
| 756 |
" usage(argv[0]);\n" |
| 757 |
"\\&\n" |
| 758 |
" key = ftok(argv[optind], argv[optind + 1][0]);\n" |
| 759 |
" if (key == -1) {\n" |
| 760 |
" perror(\"ftok\");\n" |
| 761 |
" exit(EXIT_FAILURE);\n" |
| 762 |
" }\n" |
| 763 |
"\\&\n" |
| 764 |
" nsems = atoi(argv[optind + 2]);\n" |
| 765 |
"\\&\n" |
| 766 |
" semid = semget(key, nsems, flags | 0600);\n" |
| 767 |
" if (semid == -1) {\n" |
| 768 |
" perror(\"semget\");\n" |
| 769 |
" exit(EXIT_FAILURE);\n" |
| 770 |
" }\n" |
| 771 |
"\\&\n" |
| 772 |
" printf(\"ID = %d\\[rs]n\", semid);\n" |
| 773 |
"\\&\n" |
| 774 |
" exit(EXIT_SUCCESS);\n" |
| 775 |
"}\n" |
| 776 |
msgstr "" |
| 777 |
"/* t_semget.c\n" |
| 778 |
"\\&\n" |
| 779 |
" Na licencji GNU General Public License v2 lub późniejszej.\n" |
| 780 |
"*/\n" |
| 781 |
"#include E<lt>stdio.hE<gt>\n" |
| 782 |
"#include E<lt>stdlib.hE<gt>\n" |
| 783 |
"#include E<lt>sys/ipc.hE<gt>\n" |
| 784 |
"#include E<lt>sys/sem.hE<gt>\n" |
| 785 |
"#include E<lt>unistd.hE<gt>\n" |
| 786 |
"\\&\n" |
| 787 |
"static void\n" |
| 788 |
"usage(const char *pname)\n" |
| 789 |
"{\n" |
| 790 |
" fprintf(stderr, \"Użycie: %s [-cx] ścieżka id-proj l-sem\\[rs]n\",\n" |
| 791 |
" pname);\n" |
| 792 |
" fprintf(stderr, \" -c Używa znacznika IPC_CREAT\\[rs]n\");\n" |
| 793 |
" fprintf(stderr, \" -x Używa znacznika IPC_EXCL\\[rs]n\");\n" |
| 794 |
" exit(EXIT_FAILURE);\n" |
| 795 |
"}\n" |
| 796 |
"\\&\n" |
| 797 |
"int\n" |
| 798 |
"main(int argc, char *argv[])\n" |
| 799 |
"{\n" |
| 800 |
" int semid, nsems, flags, opt;\n" |
| 801 |
" key_t key;\n" |
| 802 |
"\\&\n" |
| 803 |
" flags = 0;\n" |
| 804 |
" while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n" |
| 805 |
" switch (opt) {\n" |
| 806 |
" case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n" |
| 807 |
" case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n" |
| 808 |
" default: usage(argv[0]);\n" |
| 809 |
" }\n" |
| 810 |
" }\n" |
| 811 |
"\\&\n" |
| 812 |
" if (argc != optind + 3)\n" |
| 813 |
" usage(argv[0]);\n" |
| 814 |
"\\&\n" |
| 815 |
" key = ftok(argv[optind], argv[optind + 1][0]);\n" |
| 816 |
" if (key == -1) {\n" |
| 817 |
" perror(\"ftok\");\n" |
| 818 |
" exit(EXIT_FAILURE);\n" |
| 819 |
" }\n" |
| 820 |
"\\&\n" |
| 821 |
" nsems = atoi(argv[optind + 2]);\n" |
| 822 |
"\\&\n" |
| 823 |
" semid = semget(key, nsems, flags | 0600);\n" |
| 824 |
" if (semid == -1) {\n" |
| 825 |
" perror(\"semget\");\n" |
| 826 |
" exit(EXIT_FAILURE);\n" |
| 827 |
" }\n" |
| 828 |
"\\&\n" |
| 829 |
" printf(\"ID = %d\\[rs]n\", semid);\n" |
| 830 |
"\\&\n" |
| 831 |
" exit(EXIT_SUCCESS);\n" |
| 832 |
"}\n" |
| 833 |
|
| 834 |
#. SRC END |
| 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 "SEE ALSO" |
| 840 |
msgstr "ZOBACZ TAKŻE" |
| 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 |
"B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), " |
| 847 |
"B<sem_overview>(7), B<sysvipc>(7)" |
| 848 |
msgstr "" |
| 849 |
"B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), " |
| 850 |
"B<sem_overview>(7), B<sysvipc>(7)" |
| 851 |
|
| 852 |
#. type: TH |
| 853 |
#: debian-trixie |
| 854 |
#, no-wrap |
| 855 |
msgid "2024-06-15" |
| 856 |
msgstr "15 czerwca 2024 r." |
| 857 |
|
| 858 |
#. type: TH |
| 859 |
#: debian-trixie |
| 860 |
#, no-wrap |
| 861 |
msgid "Linux man-pages 6.9.1" |
| 862 |
msgstr "Linux man-pages 6.9.1" |
| 863 |
|
| 864 |
#. type: Plain text |
| 865 |
#: debian-trixie |
| 866 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 867 |
msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)" |
| 868 |
|
| 869 |
#. type: Plain text |
| 870 |
#: debian-trixie fedora-44 fedora-rawhide |
| 871 |
msgid "POSIX.1-2008." |
| 872 |
msgstr "POSIX.1-2008." |
| 873 |
|
| 874 |
#. type: Plain text |
| 875 |
#: debian-trixie fedora-44 fedora-rawhide |
| 876 |
#, no-wrap |
| 877 |
msgid "" |
| 878 |
"$ B<touch mykey mykey2>\n" |
| 879 |
"$ B<./t_semget -c mykey p 1>\n" |
| 880 |
"ID = 9\n" |
| 881 |
"$ B<./t_semget -c mykey2 p 2>\n" |
| 882 |
"ID = 10\n" |
| 883 |
"$ B<ipcs -s>\n" |
| 884 |
"\\&\n" |
| 885 |
"------ Semaphore Arrays --------\n" |
| 886 |
"key semid owner perms nsems\n" |
| 887 |
"0x7004136d 9 mtk 600 1\n" |
| 888 |
"0x70041368 10 mtk 600 2\n" |
| 889 |
msgstr "" |
| 890 |
"$ B<touch mójklucz mójklucz2>\n" |
| 891 |
"$ B<./t_semget -c mójklucz p 1>\n" |
| 892 |
"ID = 9\n" |
| 893 |
"$ B<./t_semget -c mójklucz2 p 2>\n" |
| 894 |
"ID = 10\n" |
| 895 |
"$ B<ipcs -s>\n" |
| 896 |
"\\&\n" |
| 897 |
"------ Semaphore Arrays --------\n" |
| 898 |
"key semid owner perms nsems\n" |
| 899 |
"0x7004136d 9 mtk 600 1\n" |
| 900 |
"0x70041368 10 mtk 600 2\n" |
| 901 |
|
| 902 |
#. type: Plain text |
| 903 |
#: debian-trixie fedora-44 fedora-rawhide |
| 904 |
#, no-wrap |
| 905 |
msgid "" |
| 906 |
"$ B<./t_semget -c mykey p 1>\n" |
| 907 |
"ID = 9\n" |
| 908 |
msgstr "" |
| 909 |
"$ B<./t_semget -c mójklucz p 1>\n" |
| 910 |
"ID = 9\n" |
| 911 |
|
| 912 |
#. type: Plain text |
| 913 |
#: debian-trixie fedora-44 fedora-rawhide |
| 914 |
#, no-wrap |
| 915 |
msgid "" |
| 916 |
"$ B<ln mykey link>\n" |
| 917 |
"$ B<ls -i1 link mykey>\n" |
| 918 |
"2233197 link\n" |
| 919 |
"2233197 mykey\n" |
| 920 |
"$ B<./t_semget link p 1> # Generates same key as \\[aq]mykey\\[aq]\n" |
| 921 |
"ID = 9\n" |
| 922 |
msgstr "" |
| 923 |
"$ B<ln mójklucz link>\n" |
| 924 |
"$ B<ls -i1 link mójklucz>\n" |
| 925 |
"2233197 link\n" |
| 926 |
"2233197 mójklucz\n" |
| 927 |
"$ B<./t_semget link p 1> # Generuje taki sam klucz, jak \\[aq]mójklucz\\[aq]\n" |
| 928 |
"ID = 9\n" |
| 929 |
|
| 930 |
#. type: TH |
| 931 |
#: fedora-44 fedora-rawhide |
| 932 |
#, no-wrap |
| 933 |
msgid "2024-07-23" |
| 934 |
msgstr "23 lipca 2024 r." |
| 935 |
|
| 936 |
#. type: TH |
| 937 |
#: fedora-44 fedora-rawhide |
| 938 |
#, no-wrap |
| 939 |
msgid "Linux man-pages 6.13" |
| 940 |
msgstr "Linux man-pages 6.13" |
| 941 |
|
| 942 |
#. type: TH |
| 943 |
#: mageia-cauldron |
| 944 |
#, no-wrap |
| 945 |
msgid "Linux man-pages 6.17" |
| 946 |
msgstr "Linux man-pages 6.17" |
| 947 |
|
| 948 |
#. type: TH |
| 949 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 950 |
#, no-wrap |
| 951 |
msgid "Linux man-pages (unreleased)" |
| 952 |
msgstr "Linux man-pages (niewydane)" |