Debian Codegraph @

po/ko/man2/semget.2.po

raw
1 # Korean translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # ASPLINUX <[email protected]>, 2000.
5 # 배성훈 <[email protected]>, 2000.
6 # 한글 Manpage 프로젝트 <http://man.kldp.org>, 2005.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n\n"
10 "POT-Creation-Date: 2026-06-05 06:42+0200\n"
11 "PO-Revision-Date: 2005-02-14 08:57+0900\n"
12 "Last-Translator: 한글 Manpage 프로젝트 <http://man.kldp.org>\n"
13 "Language-Team: Korean <[email protected]>\n"
14 "Language: ko\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=1; plural=0;\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 "semget"
25 msgstr "semget"
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 "2026년 2월 8일"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Linux man-pages 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 #, fuzzy
51 #| msgid "semget - get a semaphore set identifier"
52 msgid "semget - get a System V semaphore set identifier"
53 msgstr "semget - 세마포어 집합 식별자를 얻어낸다."
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "라이브러리"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "표준 C 라이브러리 (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "요약"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>sys/sem.hE<gt>>\n"
80 msgstr "B<#include E<lt>sys/sem.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 msgid ""
86 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
87 msgstr ""
88 "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr "설명"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 msgid ""
101 "The B<semget>() system call returns the System\\ V semaphore set identifier "
102 "associated with the argument I<key>. It may be used either to obtain the "
103 "identifier of a previously created semaphore set (when I<semflg> is zero and "
104 "I<key> does not have the value B<IPC_PRIVATE>), or to create a new set."
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "A new set of I<nsems> semaphores is created if I<key> has the value "
112 "B<IPC_PRIVATE> or if no existing semaphore set is associated with I<key> and "
113 "B<IPC_CREAT> is specified in I<semflg>."
114 msgstr ""
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "If I<semflg> specifies both B<IPC_CREAT> and B<IPC_EXCL> and a semaphore set "
121 "already exists for I<key>, then B<semget>() fails with I<errno> set to "
122 "B<EEXIST>. (This is analogous to the effect of the combination B<O_CREAT | "
123 "O_EXCL> for B<open>(2).)"
124 msgstr ""
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 #, fuzzy
130 msgid ""
131 "Upon creation, the least significant 9 bits of the argument I<semflg> define "
132 "the permissions (for owner, group, and others) for the semaphore set. "
133 "These bits have the same format, and the same meaning, as the I<mode> "
134 "argument of B<open>(2) (though the execute permissions are not meaningful "
135 "for semaphores, and write permissions mean permission to alter semaphore "
136 "values)."
137 msgstr ""
138 "세마포어 생성시, 인수 I<semflg> 의 낮은 9비트는 세마포어 집합에 대한 접근 권"
139 "한을 정의한다. 접근 권한의 형식은 B<open> (2) B<creat> (2) 시스템 호출의 접"
140 "근권한 설정시와 동일하다. 단, 실행 허가는 시스템에 의해 주어지지 않으며, 세"
141 "마포어 집합에 대한 쓰기권한은 실질적으론 변경권한을 의미한다."
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, fuzzy
147 #| msgid ""
148 #| "Furthermore, while creating, the system call initializes the system "
149 #| "semaphore set data structure B<semid_ds> as follows:"
150 msgid ""
151 "When creating a new semaphore set, B<semget>() initializes the set's "
152 "associated data structure, I<semid_ds> (see B<semctl>(2)), as follows:"
153 msgstr ""
154 "게다가 생성시 시스템 호출은 시스템 세마포어 집합의 데이타 구조 B<semid_ds> "
155 "를 다음과 같이 초기화한다:"
156
157 #. type: IP
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "\\[bu]"
162 msgstr "\\[bu]"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, fuzzy
168 #| msgid ""
169 #| "B<sem_perm.cuid> and B<sem_perm.uid> are set to the effective user-ID of "
170 #| "the calling process."
171 msgid ""
172 "I<sem_perm.cuid> and I<sem_perm.uid> are set to the effective user ID of the "
173 "calling process."
174 msgstr ""
175 "B<sem_perm.cuid> 와 B<sem_perm.uid> 는 호출한 프로세스의 유효 사용자-ID로 설"
176 "정된다."
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "I<sem_perm.cgid> and I<sem_perm.gid> are set to the effective group ID of "
183 "the calling process."
184 msgstr ""
185 "I<sem_perm.cgid> 와 I<sem_perm.gid> 는 호출한 프로세스의 유효 그룹-ID로 설정"
186 "된다."
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, fuzzy
192 #| msgid ""
193 #| "The lowest order 9 bits of B<sem_perm.mode> are set to the lowest order 9 "
194 #| "bit of I<semflg>."
195 msgid ""
196 "The least significant 9 bits of I<sem_perm.mode> are set to the least "
197 "significant 9 bits of I<semflg>."
198 msgstr ""
199 "B<sem_perm.mode> 의 가장 낮은 9비트는 I<semflg> 의 가장 낮은 9비트로 설정된"
200 "다."
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 "I<sem_nsems> is set to the value of I<nsems>."
206 msgstr "I<sem_nsems> 는 I<nsems> 의 값으로 설정된다."
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid "I<sem_otime> is set to 0."
212 msgstr "I<sem_otime> 는 0으로 설정된다."
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid "I<sem_ctime> is set to the current time."
218 msgstr "I<sem_ctime> 는 현재시각으로 설정된다."
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, fuzzy
224 #| msgid ""
225 #| "The argument I<nsems> can be B<0> (a don't care) when the system call "
226 #| "isn't a create one. Otherwise I<nsems> must be greater than B<0> and "
227 #| "less or equal to the maximum number of semaphores per semid, (B<SEMMSL>)."
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 "인수 I<nsems> 는 시스템호출이 집합을 생성하지 않을 경우에는 B<0> 일 수 있"
234 "다. 그 외에 I<nsems> 는 B<0> 보다 크고 semid당 세마포어의 최대값 이하인 수이"
235 "어야만 한다. (B<SEMMSL>)."
236
237 #. and a check is made to see if it is marked for destruction.
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, fuzzy
242 #| msgid ""
243 #| "If the semaphore set already exists, the access permissions are verified, "
244 #| "and a check is made to see if it is marked for destruction."
245 msgid "If the semaphore set already exists, the permissions are verified."
246 msgstr ""
247 "세마포어 집합이 이미 존재한다면, 접근 권한을 확인하고, 삭제될 것으로 표시되어"
248 "있는지를 확인한다."
249
250 #. type: SH
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "RETURN VALUE"
255 msgstr "반환값"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, fuzzy
261 #| msgid ""
262 #| "If successful, the return value will be the semaphore set identifier (a "
263 #| "positive integer), otherwise B<-1> with B<errno> indicating the error."
264 msgid ""
265 "On success, B<semget>() returns the semaphore set identifier (a nonnegative "
266 "integer). On failure, -1 is returned, and I<errno> is set to indicate the "
267 "error."
268 msgstr ""
269 "성공시, 반환값은 양의 정수값을 갖는 세마포어 집합 식별자일 것이고, 아니라면 "
270 "에러를 나타내는 B<errno> 와 함께 B<-1> 이 반환된다."
271
272 #. type: SH
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "ERRORS"
277 msgstr "에러"
278
279 #. type: TP
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "B<EACCES>"
284 msgstr "B<EACCES>"
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 "A semaphore set exists for I<key>, but the calling process does not have "
291 "permission to access the set, and does not have the B<CAP_IPC_OWNER> "
292 "capability in the user namespace that governs its IPC namespace."
293 msgstr ""
294
295 #. type: TP
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "B<EEXIST>"
300 msgstr "B<EEXIST>"
301
302 #. .TP
303 #. .B EIDRM
304 #. The semaphore set is marked to be deleted.
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid ""
309 "B<IPC_CREAT> and B<IPC_EXCL> were specified in I<semflg>, but a semaphore "
310 "set already exists for I<key>."
311 msgstr ""
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<EINVAL>"
318 msgstr "B<EINVAL>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "I<nsems> is less than 0 or greater than the limit on the number of "
325 "semaphores per semaphore set (B<SEMMSL>)."
326 msgstr ""
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
336 #. type: TP
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "B<ENOENT>"
341 msgstr "B<ENOENT>"
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, fuzzy
347 #| msgid ""
348 #| "No semaphore set exists for I<key> and I<semflg> wasn't asserting "
349 #| "B<IPC_CREAT>."
350 msgid ""
351 "No semaphore set exists for I<key> and I<semflg> did not specify "
352 "B<IPC_CREAT>."
353 msgstr ""
354 "I<key> 에 대응하는 세마포어 집합이 존재하지 않고, I<semflg> 에는 "
355 "B<IPC_CREAT> 가 설정되어 있지도 않다."
356
357 #. type: TP
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "B<ENOMEM>"
362 msgstr "B<ENOMEM>"
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid ""
368 "A semaphore set has to be created but the system does not have enough memory "
369 "for the new data structure."
370 msgstr "세마포어 집합이 생성되어야 하지만 시스템에 메모리가 부족하다."
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 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "A semaphore set has to be created but the system limit for the maximum "
384 "number of semaphore sets (B<SEMMNI>), or the system wide maximum number of "
385 "semaphores (B<SEMMNS>), would be exceeded."
386 msgstr ""
387 "세마포어 집합이 생성되어야 하지만 시스템의 세마포어 집합 갯수 최대값, "
388 "(B<SEMMNI>) 개별 세마포어 갯수의 최대값 (B<SEMMNS>) 제한 때문에 만들지 못했"
389 "다."
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 "표준"
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 "이력"
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 "주의"
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 #, fuzzy
430 #| msgid ""
431 #| "B<IPC_PRIVATE> isn't a flag field but a B<key_t> type. If this special "
432 #| "value is used for I<key>, the system call ignores everything but the "
433 #| "lowest order 9 bits of I<semflg> and creates a new semaphore set (on "
434 #| "success)."
435 msgid ""
436 "B<IPC_PRIVATE> isn't a flag field but a I<key_t> type. If this special "
437 "value is used for I<key>, the system call ignores all but the least "
438 "significant 9 bits of I<semflg> and creates a new semaphore set (on success)."
439 msgstr ""
440 "B<IPC_PRIVATE> 은 플래그가 아니고, B<key_t> 타입이다. I<key> 가 이 값을 갖"
441 "을 때에 시스템 호출은 I<semflg> 의 아래 9비트 이외의 다른 것은 모두 무시하고 "
442 "새로운 세마포어 집합을 생성한다."
443
444 #. type: SS
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "Semaphore initialization"
449 msgstr ""
450
451 #. In truth, every one of the many implementations that I've tested sets
452 #. the values to zero, but I suppose there is/was some obscure
453 #. implementation out there that does not.
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 msgid ""
458 "The values of the semaphores in a newly created set are indeterminate. "
459 "(POSIX.1-2001 and POSIX.1-2008 are explicit on this point, although "
460 "POSIX.1-2008 notes that a future version of the standard may require an "
461 "implementation to initialize the semaphores to 0.) Although Linux, like "
462 "many other implementations, initializes the semaphore values to 0, a "
463 "portable application cannot rely on this: it should explicitly initialize "
464 "the semaphores to the desired values."
465 msgstr ""
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 "Initialization can be done using B<semctl>(2) B<SETVAL> or B<SETALL> "
472 "operation. Where multiple peers do not know who will be the first to "
473 "initialize the set, checking for a nonzero I<sem_otime> in the associated "
474 "data structure retrieved by a B<semctl>(2) B<IPC_STAT> operation can be "
475 "used to avoid races."
476 msgstr ""
477
478 #. type: SS
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "Semaphore limits"
483 msgstr ""
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, fuzzy
489 #| msgid ""
490 #| "The followings are limits on semaphore set resources affecting a "
491 #| "B<semget> call:"
492 msgid ""
493 "The following limits on semaphore set resources affect the B<semget>() call:"
494 msgstr "다음은 B<semget> 호출에 영향을 주는 세마포어 설정 자원을 제한한다:"
495
496 #. type: TP
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 #, no-wrap
500 msgid "B<SEMMNI>"
501 msgstr "B<SEMMNI>"
502
503 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
504 #. This /proc file is not available in Linux 2.2 and earlier -- MTK
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid ""
509 "System-wide limit on the number of semaphore sets. Before Linux 3.19, the "
510 "default value for this limit was 128. Since Linux 3.19, the default value "
511 "is 32,000. On Linux, this limit can be read and modified via the fourth "
512 "field of I</proc/sys/kernel/sem>."
513 msgstr ""
514
515 #. type: TP
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "B<SEMMSL>"
520 msgstr "B<SEMMSL>"
521
522 #. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4
523 #. type: Plain text
524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
526 msgid ""
527 "Maximum number of semaphores per semaphore ID. Before Linux 3.19, the "
528 "default value for this limit was 250. Since Linux 3.19, the default value "
529 "is 32,000. On Linux, this limit can be read and modified via the first "
530 "field of I</proc/sys/kernel/sem>."
531 msgstr ""
532
533 #. type: TP
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, no-wrap
537 msgid "B<SEMMNS>"
538 msgstr "B<SEMMNS>"
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid ""
544 "System-wide limit on the number of semaphores: policy dependent (on Linux, "
545 "this limit can be read and modified via the second field of I</proc/sys/"
546 "kernel/sem>). Note that the number of semaphores system-wide is also "
547 "limited by the product of B<SEMMSL> and B<SEMMNI>."
548 msgstr ""
549
550 #. type: SH
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, no-wrap
554 msgid "BUGS"
555 msgstr "버그"
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 msgid ""
561 "The name choice B<IPC_PRIVATE> was perhaps unfortunate, B<IPC_NEW> would "
562 "more clearly show its function."
563 msgstr ""
564
565 #. type: SH
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "EXAMPLES"
570 msgstr "폐제"
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid ""
576 "The program shown below uses B<semget>() to create a new semaphore set or "
577 "retrieve the ID of an existing set. It generates the I<key> for "
578 "B<semget>() using B<ftok>(3). The first two command-line arguments are "
579 "used as the I<pathname> and I<proj_id> arguments for B<ftok>(3). The third "
580 "command-line argument is an integer that specifies the I<nsems> argument for "
581 "B<semget>(). Command-line options can be used to specify the B<IPC_CREAT> "
582 "(I<-c>) and B<IPC_EXCL> (I<-x>) flags for the call to B<semget>(). The "
583 "usage of this program is demonstrated below."
584 msgstr ""
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 "We first create two files that will be used to generate keys using "
591 "B<ftok>(3), create two semaphore sets using those files, and then list the "
592 "sets using B<ipcs>(1):"
593 msgstr ""
594
595 #. type: Plain text
596 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
597 #: opensuse-tumbleweed
598 #, no-wrap
599 msgid ""
600 "$B< touch mykey mykey2>;\n"
601 "$B< ./t_semget -c mykey p 1>;\n"
602 "ID = 9\n"
603 "$B< ./t_semget -c mykey2 p 2>;\n"
604 "ID = 10\n"
605 "$B< ipcs -s>;\n"
606 "\\&\n"
607 "------ Semaphore Arrays --------\n"
608 "key semid owner perms nsems\n"
609 "0x7004136d 9 mtk 600 1\n"
610 "0x70041368 10 mtk 600 2\n"
611 msgstr ""
612
613 #. type: Plain text
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 msgid ""
617 "Next, we demonstrate that when B<semctl>(2) is given the same I<key> (as "
618 "generated by the same arguments to B<ftok>(3)), it returns the ID of the "
619 "already existing semaphore set:"
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
624 #: opensuse-tumbleweed
625 #, fuzzy, no-wrap
626 #| msgid ""
627 #| "$ B<./t_semget -c mykey p 1>\n"
628 #| "ID = 9\n"
629 msgid ""
630 "$B< ./t_semget -c mykey p 1>;\n"
631 "ID = 9\n"
632 msgstr ""
633 "$ B<./t_semget -c mykey p 1>\n"
634 "ID = 9\n"
635
636 #. type: Plain text
637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
639 msgid ""
640 "Finally, we demonstrate the kind of collision that can occur when "
641 "B<ftok>(3) is given different I<pathname> arguments that have the same "
642 "inode number:"
643 msgstr ""
644
645 #. type: Plain text
646 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
647 #: opensuse-tumbleweed
648 #, no-wrap
649 msgid ""
650 "$B< ln mykey link>;\n"
651 "$B< ls -i1 link mykey>;\n"
652 "2233197 link\n"
653 "2233197 mykey\n"
654 "$B< ./t_semget link p 1>; # Generates same key as \\[aq]mykey\\[aq]\n"
655 "ID = 9\n"
656 msgstr ""
657
658 #. type: SS
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 #, no-wrap
662 msgid "Program source"
663 msgstr ""
664
665 #. type: Plain text
666 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
667 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
668 #, no-wrap
669 msgid ""
670 "/* t_semget.c\n"
671 "\\&\n"
672 " Licensed under GNU General Public License v2 or later.\n"
673 "*/\n"
674 "#include E<lt>stdio.hE<gt>\n"
675 "#include E<lt>stdlib.hE<gt>\n"
676 "#include E<lt>sys/ipc.hE<gt>\n"
677 "#include E<lt>sys/sem.hE<gt>\n"
678 "#include E<lt>unistd.hE<gt>\n"
679 "\\&\n"
680 "static void\n"
681 "usage(const char *pname)\n"
682 "{\n"
683 " fprintf(stderr, \"Usage: %s [-cx] pathname proj-id num-sems\\[rs]n\",\n"
684 " pname);\n"
685 " fprintf(stderr, \" -c Use IPC_CREAT flag\\[rs]n\");\n"
686 " fprintf(stderr, \" -x Use IPC_EXCL flag\\[rs]n\");\n"
687 " exit(EXIT_FAILURE);\n"
688 "}\n"
689 "\\&\n"
690 "int\n"
691 "main(int argc, char *argv[])\n"
692 "{\n"
693 " int semid, nsems, flags, opt;\n"
694 " key_t key;\n"
695 "\\&\n"
696 " flags = 0;\n"
697 " while ((opt = getopt(argc, argv, \"cx\")) != -1) {\n"
698 " switch (opt) {\n"
699 " case \\[aq]c\\[aq]: flags |= IPC_CREAT; break;\n"
700 " case \\[aq]x\\[aq]: flags |= IPC_EXCL; break;\n"
701 " default: usage(argv[0]);\n"
702 " }\n"
703 " }\n"
704 "\\&\n"
705 " if (argc != optind + 3)\n"
706 " usage(argv[0]);\n"
707 "\\&\n"
708 " key = ftok(argv[optind], argv[optind + 1][0]);\n"
709 " if (key == -1) {\n"
710 " perror(\"ftok\");\n"
711 " exit(EXIT_FAILURE);\n"
712 " }\n"
713 "\\&\n"
714 " nsems = atoi(argv[optind + 2]);\n"
715 "\\&\n"
716 " semid = semget(key, nsems, flags | 0600);\n"
717 " if (semid == -1) {\n"
718 " perror(\"semget\");\n"
719 " exit(EXIT_FAILURE);\n"
720 " }\n"
721 "\\&\n"
722 " printf(\"ID = %d\\[rs]n\", semid);\n"
723 "\\&\n"
724 " exit(EXIT_SUCCESS);\n"
725 "}\n"
726 msgstr ""
727
728 #. SRC END
729 #. type: SH
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 #, no-wrap
733 msgid "SEE ALSO"
734 msgstr "추가 참조"
735
736 #. type: Plain text
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 msgid ""
740 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
741 "B<sem_overview>(7), B<sysvipc>(7)"
742 msgstr ""
743 "B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
744 "B<sem_overview>(7), B<sysvipc>(7)"
745
746 #. type: TH
747 #: debian-trixie
748 #, no-wrap
749 msgid "2024-06-15"
750 msgstr "2024년 6월 15일"
751
752 #. type: TH
753 #: debian-trixie
754 #, no-wrap
755 msgid "Linux man-pages 6.9.1"
756 msgstr "Linux man-pages 6.9.1"
757
758 #. type: Plain text
759 #: debian-trixie
760 msgid "Standard C library (I<libc>, I<-lc>)"
761 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
762
763 #. type: Plain text
764 #: debian-trixie fedora-44 fedora-rawhide
765 msgid "POSIX.1-2008."
766 msgstr "POSIX.1-2008."
767
768 #. type: Plain text
769 #: debian-trixie fedora-44 fedora-rawhide
770 #, no-wrap
771 msgid ""
772 "$ B<touch mykey mykey2>\n"
773 "$ B<./t_semget -c mykey p 1>\n"
774 "ID = 9\n"
775 "$ B<./t_semget -c mykey2 p 2>\n"
776 "ID = 10\n"
777 "$ B<ipcs -s>\n"
778 "\\&\n"
779 "------ Semaphore Arrays --------\n"
780 "key semid owner perms nsems\n"
781 "0x7004136d 9 mtk 600 1\n"
782 "0x70041368 10 mtk 600 2\n"
783 msgstr ""
784
785 #. type: Plain text
786 #: debian-trixie fedora-44 fedora-rawhide
787 #, no-wrap
788 msgid ""
789 "$ B<./t_semget -c mykey p 1>\n"
790 "ID = 9\n"
791 msgstr ""
792 "$ B<./t_semget -c mykey p 1>\n"
793 "ID = 9\n"
794
795 #. type: Plain text
796 #: debian-trixie fedora-44 fedora-rawhide
797 #, no-wrap
798 msgid ""
799 "$ B<ln mykey link>\n"
800 "$ B<ls -i1 link mykey>\n"
801 "2233197 link\n"
802 "2233197 mykey\n"
803 "$ B<./t_semget link p 1> # Generates same key as \\[aq]mykey\\[aq]\n"
804 "ID = 9\n"
805 msgstr ""
806
807 #. type: TH
808 #: fedora-44 fedora-rawhide
809 #, no-wrap
810 msgid "2024-07-23"
811 msgstr "2024년 7월 23일"
812
813 #. type: TH
814 #: fedora-44 fedora-rawhide
815 #, no-wrap
816 msgid "Linux man-pages 6.13"
817 msgstr "Linux man-pages 6.13"
818
819 #. type: TH
820 #: mageia-cauldron
821 #, no-wrap
822 msgid "Linux man-pages 6.17"
823 msgstr "Linux man-pages 6.17"
824
825 #. type: TH
826 #: opensuse-leap-16-1 opensuse-tumbleweed
827 #, no-wrap
828 msgid "Linux man-pages (unreleased)"
829 msgstr "Linux man-pages (미공개)"