| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "sem_overview" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "sem_overview - overview of POSIX semaphores" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "DESCRIPTION" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "" |
| 63 |
"POSIX semaphores allow processes and threads to synchronize their actions." |
| 64 |
msgstr "" |
| 65 |
|
| 66 |
#. type: Plain text |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
msgid "" |
| 70 |
"A semaphore is an integer whose value is never allowed to fall below zero. " |
| 71 |
"Two operations can be performed on semaphores: increment the semaphore value " |
| 72 |
"by one (B<sem_post>(3)); and decrement the semaphore value by one " |
| 73 |
"(B<sem_wait>(3)). If the value of a semaphore is currently zero, then a " |
| 74 |
"B<sem_wait>(3) operation will block until the value becomes greater than " |
| 75 |
"zero." |
| 76 |
msgstr "" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
msgid "" |
| 82 |
"POSIX semaphores come in two forms: named semaphores and unnamed semaphores." |
| 83 |
msgstr "" |
| 84 |
|
| 85 |
#. type: TP |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "B<Named semaphores>" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. glibc allows the initial slash to be omitted, and makes |
| 93 |
#. multiple initial slashes equivalent to a single slash. |
| 94 |
#. This differs from the implementation of POSIX message queues. |
| 95 |
#. glibc allows subdirectory components in the name, in which |
| 96 |
#. case the subdirectory tree must exist under /dev/shm, and |
| 97 |
#. the fist subdirectory component must exist as the name |
| 98 |
#. sem.name, and all of the subdirectory components must allow the |
| 99 |
#. required permissions if a user wants to create a semaphore |
| 100 |
#. object in a subdirectory. |
| 101 |
#. type: Plain text |
| 102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 104 |
msgid "" |
| 105 |
"A named semaphore is identified by a name of the form I</somename>; that is, " |
| 106 |
"a null-terminated string of up to B<NAME_MAX>I<-4> (i.e., 251) characters " |
| 107 |
"consisting of an initial slash, followed by one or more characters, none of " |
| 108 |
"which are slashes. Two processes can operate on the same named semaphore by " |
| 109 |
"passing the same name to B<sem_open>(3)." |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
msgid "" |
| 116 |
"The B<sem_open>(3) function creates a new named semaphore or opens an " |
| 117 |
"existing named semaphore. After the semaphore has been opened, it can be " |
| 118 |
"operated on using B<sem_post>(3) and B<sem_wait>(3). When a process has " |
| 119 |
"finished using the semaphore, it can use B<sem_close>(3) to close the " |
| 120 |
"semaphore. When all processes have finished using the semaphore, it can be " |
| 121 |
"removed from the system using B<sem_unlink>(3)." |
| 122 |
msgstr "" |
| 123 |
|
| 124 |
#. type: TP |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "B<Unnamed semaphores (memory-based semaphores)>" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
msgid "" |
| 135 |
"An unnamed semaphore does not have a name. Instead the semaphore is placed " |
| 136 |
"in a region of memory that is shared between multiple threads (a I<thread-" |
| 137 |
"shared semaphore>) or processes (a I<process-shared semaphore>). A thread-" |
| 138 |
"shared semaphore is placed in an area of memory shared between the threads " |
| 139 |
"of a process, for example, a global variable. A process-shared semaphore " |
| 140 |
"must be placed in a shared memory region (e.g., a System V shared memory " |
| 141 |
"segment created using B<shmget>(2), or a POSIX shared memory object built " |
| 142 |
"created using B<shm_open>(3))." |
| 143 |
msgstr "" |
| 144 |
|
| 145 |
#. type: Plain text |
| 146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 147 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 148 |
msgid "" |
| 149 |
"Before being used, an unnamed semaphore must be initialized using " |
| 150 |
"B<sem_init>(3). It can then be operated on using B<sem_post>(3) and " |
| 151 |
"B<sem_wait>(3). When the semaphore is no longer required, and before the " |
| 152 |
"memory in which it is located is deallocated, the semaphore should be " |
| 153 |
"destroyed using B<sem_destroy>(3)." |
| 154 |
msgstr "" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"The remainder of this section describes some specific details of the Linux " |
| 161 |
"implementation of POSIX semaphores." |
| 162 |
msgstr "" |
| 163 |
|
| 164 |
#. type: SS |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
#, no-wrap |
| 168 |
msgid "Versions" |
| 169 |
msgstr "" |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"Before Linux 2.6, Linux supported only unnamed, thread-shared semaphores. " |
| 176 |
"On a system with Linux 2.6 and a glibc that provides the NPTL threading " |
| 177 |
"implementation, a complete implementation of POSIX semaphores is provided." |
| 178 |
msgstr "" |
| 179 |
|
| 180 |
#. type: SS |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
#, no-wrap |
| 184 |
msgid "Persistence" |
| 185 |
msgstr "" |
| 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 |
"POSIX named semaphores have kernel persistence: if not removed by " |
| 192 |
"B<sem_unlink>(3), a semaphore will exist until the system is shut down." |
| 193 |
msgstr "" |
| 194 |
|
| 195 |
#. type: SS |
| 196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 197 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 198 |
#, no-wrap |
| 199 |
msgid "Linking" |
| 200 |
msgstr "" |
| 201 |
|
| 202 |
#. type: Plain text |
| 203 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 204 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 205 |
msgid "" |
| 206 |
"Programs using the POSIX semaphores API must be compiled with I<cc -pthread> " |
| 207 |
"to link against the real-time library, I<librt>." |
| 208 |
msgstr "" |
| 209 |
|
| 210 |
#. type: SS |
| 211 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 212 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 213 |
#, no-wrap |
| 214 |
msgid "Accessing named semaphores via the filesystem" |
| 215 |
msgstr "" |
| 216 |
|
| 217 |
#. type: Plain text |
| 218 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 219 |
#: opensuse-tumbleweed |
| 220 |
msgid "" |
| 221 |
"On Linux, named semaphores are created in a virtual filesystem, normally " |
| 222 |
"mounted under I</dev/shm>, with names of the form I<sem.>somename. (This is " |
| 223 |
"the reason that semaphore names are limited to B<NAME_MAX>I<-4> rather than " |
| 224 |
"B<NAME_MAX> characters.)" |
| 225 |
msgstr "" |
| 226 |
|
| 227 |
#. type: Plain text |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
msgid "" |
| 231 |
"Since Linux 2.6.19, ACLs can be placed on files under this directory, to " |
| 232 |
"control object permissions on a per-user and per-group basis." |
| 233 |
msgstr "" |
| 234 |
|
| 235 |
#. type: SH |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
#, no-wrap |
| 239 |
msgid "NOTES" |
| 240 |
msgstr "" |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
msgid "" |
| 246 |
"System V semaphores (B<semget>(2), B<semop>(2), etc.) are an older semaphore " |
| 247 |
"API. POSIX semaphores provide a simpler, and better designed interface than " |
| 248 |
"System V semaphores; on the other hand POSIX semaphores are less widely " |
| 249 |
"available (especially on older systems) than System V semaphores." |
| 250 |
msgstr "" |
| 251 |
|
| 252 |
#. type: SH |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
#, no-wrap |
| 256 |
msgid "EXAMPLES" |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#. type: Plain text |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
msgid "" |
| 263 |
"An example of the use of various POSIX semaphore functions is shown in " |
| 264 |
"B<sem_wait>(3)." |
| 265 |
msgstr "" |
| 266 |
|
| 267 |
#. type: SH |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "SEE ALSO" |
| 272 |
msgstr "" |
| 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 |
"B<sem_close>(3), B<sem_destroy>(3), B<sem_getvalue>(3), B<sem_init>(3), " |
| 279 |
"B<sem_open>(3), B<sem_post>(3), B<sem_unlink>(3), B<sem_wait>(3), " |
| 280 |
"B<pthreads>(7), B<shm_overview>(7)" |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#. type: TH |
| 284 |
#: debian-trixie fedora-44 fedora-rawhide |
| 285 |
#, no-wrap |
| 286 |
msgid "2024-05-02" |
| 287 |
msgstr "" |
| 288 |
|
| 289 |
#. type: TH |
| 290 |
#: debian-trixie |
| 291 |
#, no-wrap |
| 292 |
msgid "Linux man-pages 6.9.1" |
| 293 |
msgstr "" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: debian-trixie fedora-44 fedora-rawhide |
| 297 |
msgid "" |
| 298 |
"On Linux, named semaphores are created in a virtual filesystem, normally " |
| 299 |
"mounted under I</dev/shm>, with names of the form B<sem.>I<somename>. (This " |
| 300 |
"is the reason that semaphore names are limited to B<NAME_MAX>I<-4> rather " |
| 301 |
"than B<NAME_MAX> characters.)" |
| 302 |
msgstr "" |
| 303 |
|
| 304 |
#. type: TH |
| 305 |
#: fedora-44 fedora-rawhide |
| 306 |
#, no-wrap |
| 307 |
msgid "Linux man-pages 6.13" |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: TH |
| 311 |
#: mageia-cauldron |
| 312 |
#, no-wrap |
| 313 |
msgid "Linux man-pages 6.17" |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. type: TH |
| 317 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
#, no-wrap |
| 319 |
msgid "Linux man-pages (unreleased)" |
| 320 |
msgstr "" |