Debian Codegraph @

templates/man3/pthread_attr_setguardsize.3.pot

raw
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:38+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 "pthread_attr_setguardsize"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-05-17"
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 ""
50 "pthread_attr_setguardsize, pthread_attr_getguardsize - set/get guard size "
51 "attribute in thread attributes object"
52 msgstr ""
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr ""
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
65 msgstr ""
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr ""
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>pthread.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<int pthread_attr_setguardsize(pthread_attr_t *>I<attr>B<, size_t >I<guardsize>B<);>\n"
87 "B<int pthread_attr_getguardsize(const pthread_attr_t *restrict >I<attr>B<,>\n"
88 "B< size_t *restrict >I<guardsize>B<);>\n"
89 msgstr ""
90
91 #. type: SH
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "DESCRIPTION"
96 msgstr ""
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 msgid ""
102 "The B<pthread_attr_setguardsize>() function sets the guard size attribute "
103 "of the thread attributes object referred to by I<attr> to the value "
104 "specified in I<guardsize>."
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 "If I<guardsize> is greater than 0, then for each new thread created using "
112 "I<attr> the system allocates an additional region of at least I<guardsize> "
113 "bytes at the end of the thread's stack to act as the guard area for the "
114 "stack (but see BUGS)."
115 msgstr ""
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "If I<guardsize> is 0, then new threads created with I<attr> will not have a "
122 "guard area."
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid "The default guard size is the same as the system page size."
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 "If the stack address attribute has been set in I<attr> (using "
136 "B<pthread_attr_setstack>(3) or B<pthread_attr_setstackaddr>(3)), meaning "
137 "that the caller is allocating the thread's stack, then the guard size "
138 "attribute is ignored (i.e., no guard area is created by the system): it is "
139 "the application's responsibility to handle stack overflow (perhaps by using "
140 "B<mprotect>(2) to manually define a guard area at the end of the stack that "
141 "it has allocated)."
142 msgstr ""
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "The B<pthread_attr_getguardsize>() function returns the guard size "
149 "attribute of the thread attributes object referred to by I<attr> in the "
150 "buffer pointed to by I<guardsize>."
151 msgstr ""
152
153 #. type: SH
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, no-wrap
157 msgid "RETURN VALUE"
158 msgstr ""
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "On success, these functions return 0; on error, they return a nonzero error "
165 "number."
166 msgstr ""
167
168 #. type: SH
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "ERRORS"
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "POSIX.1 documents an B<EINVAL> error if I<attr> or I<guardsize> is invalid. "
180 "On Linux these functions always succeed (but portable and future-proof "
181 "applications should nevertheless handle a possible error return)."
182 msgstr ""
183
184 #. type: SH
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "ATTRIBUTES"
189 msgstr ""
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "For an explanation of the terms used in this section, see B<attributes>(7)."
196 msgstr ""
197
198 #. type: tbl table
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid "Interface"
203 msgstr ""
204
205 #. type: tbl table
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "Attribute"
210 msgstr ""
211
212 #. type: tbl table
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "Value"
217 msgstr ""
218
219 #. type: tbl table
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid ".na\n"
224 msgstr ""
225
226 #. type: tbl table
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid ".nh\n"
231 msgstr ""
232
233 #. type: tbl table
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 #, no-wrap
237 msgid ""
238 "B<pthread_attr_setguardsize>(),\n"
239 "B<pthread_attr_getguardsize>()"
240 msgstr ""
241
242 #. type: tbl table
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "Thread safety"
247 msgstr ""
248
249 #. type: tbl table
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "MT-Safe"
254 msgstr ""
255
256 #. type: SH
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "STANDARDS"
261 msgstr ""
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid "POSIX.1-2008."
267 msgstr ""
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "HISTORY"
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid "glibc 2.1. POSIX.1-2001."
280 msgstr ""
281
282 #. type: SH
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "NOTES"
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid ""
293 "A guard area consists of virtual memory pages that are protected to prevent "
294 "read and write access. If a thread overflows its stack into the guard area, "
295 "then, on most hard architectures, it receives a B<SIGSEGV> signal, thus "
296 "notifying it of the overflow. Guard areas start on page boundaries, and the "
297 "guard size is internally rounded up to the system page size when creating a "
298 "thread. (Nevertheless, B<pthread_attr_getguardsize>() returns the guard "
299 "size that was set by B<pthread_attr_setguardsize>().)"
300 msgstr ""
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "Setting a guard size of 0 may be useful to save memory in an application "
307 "that creates many threads and knows that stack overflow can never occur."
308 msgstr ""
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid ""
314 "Choosing a guard size larger than the default size may be necessary for "
315 "detecting stack overflows if a thread allocates large data structures on the "
316 "stack."
317 msgstr ""
318
319 #. type: SH
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "BUGS"
324 msgstr ""
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 "As at glibc 2.8, the NPTL threading implementation includes the guard area "
331 "within the stack size allocation, rather than allocating extra space at the "
332 "end of the stack, as POSIX.1 requires. (This can result in an B<EINVAL> "
333 "error from B<pthread_create>(3) if the guard size value is too large, "
334 "leaving no space for the actual stack.)"
335 msgstr ""
336
337 #
338 #
339 #. glibc includes the guardsize within the allocated stack size,
340 #. which looks pretty clearly to be in violation of POSIX.
341 #. Filed bug, 22 Oct 2008:
342 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=6973
343 #. Older reports:
344 #. https//bugzilla.redhat.com/show_bug.cgi?id=435337
345 #. Reportedly, LinuxThreads did the right thing, allocating
346 #. extra space at the end of the stack:
347 #. http://sourceware.org/ml/libc-alpha/2008-05/msg00086.html
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid ""
352 "The obsolete LinuxThreads implementation did the right thing, allocating "
353 "extra space at the end of the stack for the guard area."
354 msgstr ""
355
356 #. type: SH
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "EXAMPLES"
361 msgstr ""
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid "See B<pthread_getattr_np>(3)."
367 msgstr ""
368
369 #. type: SH
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "SEE ALSO"
374 msgstr ""
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "B<mmap>(2), B<mprotect>(2), B<pthread_attr_init>(3), "
381 "B<pthread_attr_setstack>(3), B<pthread_attr_setstacksize>(3), "
382 "B<pthread_create>(3), B<pthreads>(7)"
383 msgstr ""
384
385 #. type: TH
386 #: debian-trixie
387 #, no-wrap
388 msgid "2024-05-02"
389 msgstr ""
390
391 #. type: TH
392 #: debian-trixie
393 #, no-wrap
394 msgid "Linux man-pages 6.9.1"
395 msgstr ""
396
397 #. type: Plain text
398 #: debian-trixie
399 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
400 msgstr ""
401
402 #. type: TH
403 #: fedora-44 fedora-rawhide
404 #, no-wrap
405 msgid "2024-07-23"
406 msgstr ""
407
408 #. type: TH
409 #: fedora-44 fedora-rawhide
410 #, no-wrap
411 msgid "Linux man-pages 6.13"
412 msgstr ""
413
414 #. type: TH
415 #: mageia-cauldron
416 #, no-wrap
417 msgid "Linux man-pages 6.17"
418 msgstr ""
419
420 #. type: TH
421 #: opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "Linux man-pages (unreleased)"
424 msgstr ""