| 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:18+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 "atexit" |
| 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 "atexit - register a function to be called at normal process termination" |
| 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 "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>stdlib.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 81 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<int atexit(typeof(void (void)) *>I<function>B<);>\n" |
| 84 |
msgstr "" |
| 85 |
|
| 86 |
#. type: SH |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "DESCRIPTION" |
| 91 |
msgstr "" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
msgid "" |
| 97 |
"The B<atexit>() function registers the given I<function> to be called at " |
| 98 |
"normal process termination, either via B<exit>(3) or via return from the " |
| 99 |
"program's I<main>(). Functions so registered are called in the reverse " |
| 100 |
"order of their registration; no arguments are passed." |
| 101 |
msgstr "" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
msgid "" |
| 107 |
"The same function may be registered multiple times: it is called once for " |
| 108 |
"each registration." |
| 109 |
msgstr "" |
| 110 |
|
| 111 |
#. POSIX.1-2001, POSIX.1-2008 |
| 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 |
"POSIX.1 requires that an implementation allow at least B<ATEXIT_MAX> (32) " |
| 117 |
"such functions to be registered. The actual limit supported by an " |
| 118 |
"implementation can be obtained using B<sysconf>(3)." |
| 119 |
msgstr "" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
msgid "" |
| 125 |
"When a child process is created via B<fork>(2), it inherits copies of its " |
| 126 |
"parent's registrations. Upon a successful call to one of the B<exec>(3) " |
| 127 |
"functions, all registrations are removed." |
| 128 |
msgstr "" |
| 129 |
|
| 130 |
#. type: SH |
| 131 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 132 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
#, no-wrap |
| 134 |
msgid "RETURN VALUE" |
| 135 |
msgstr "" |
| 136 |
|
| 137 |
#. type: Plain text |
| 138 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 139 |
#: opensuse-tumbleweed |
| 140 |
msgid "" |
| 141 |
"The B<atexit>() function returns the value 0 if successful; otherwise, it " |
| 142 |
"returns a nonzero value." |
| 143 |
msgstr "" |
| 144 |
|
| 145 |
#. type: SH |
| 146 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 147 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 148 |
#, no-wrap |
| 149 |
msgid "ATTRIBUTES" |
| 150 |
msgstr "" |
| 151 |
|
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
msgid "" |
| 156 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: tbl table |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
#, no-wrap |
| 163 |
msgid "Interface" |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: tbl table |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
#, no-wrap |
| 170 |
msgid "Attribute" |
| 171 |
msgstr "" |
| 172 |
|
| 173 |
#. type: tbl table |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
#, no-wrap |
| 177 |
msgid "Value" |
| 178 |
msgstr "" |
| 179 |
|
| 180 |
#. type: tbl table |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
#, no-wrap |
| 184 |
msgid ".na\n" |
| 185 |
msgstr "" |
| 186 |
|
| 187 |
#. type: tbl table |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
#, no-wrap |
| 191 |
msgid ".nh\n" |
| 192 |
msgstr "" |
| 193 |
|
| 194 |
#. type: tbl table |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
#, no-wrap |
| 198 |
msgid "B<atexit>()" |
| 199 |
msgstr "" |
| 200 |
|
| 201 |
#. type: tbl table |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
#, no-wrap |
| 205 |
msgid "Thread safety" |
| 206 |
msgstr "" |
| 207 |
|
| 208 |
#. type: tbl table |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
#, no-wrap |
| 212 |
msgid "MT-Safe" |
| 213 |
msgstr "" |
| 214 |
|
| 215 |
#. type: SH |
| 216 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 217 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 218 |
#, no-wrap |
| 219 |
msgid "VERSIONS" |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. POSIX.1-2001, POSIX.1-2008 |
| 223 |
#. This can happen on OpenBSD 4.2 for example, and is documented |
| 224 |
#. as occurring on FreeBSD as well. |
| 225 |
#. glibc does "the Right Thing" -- invocation of the remaining |
| 226 |
#. exit handlers carries on as normal. |
| 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 |
"POSIX.1 says that the result of calling B<exit>(3) more than once (i.e., " |
| 232 |
"calling B<exit>(3) within a function registered using B<atexit>()) is " |
| 233 |
"undefined. On some systems (but not Linux), this can result in an infinite " |
| 234 |
"recursion; portable programs should not invoke B<exit>(3) inside a function " |
| 235 |
"registered using B<atexit>()." |
| 236 |
msgstr "" |
| 237 |
|
| 238 |
#. type: SH |
| 239 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 240 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 241 |
#, no-wrap |
| 242 |
msgid "STANDARDS" |
| 243 |
msgstr "" |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
msgid "C11, POSIX.1-2008." |
| 249 |
msgstr "" |
| 250 |
|
| 251 |
#. type: SH |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
#, no-wrap |
| 255 |
msgid "HISTORY" |
| 256 |
msgstr "" |
| 257 |
|
| 258 |
#. type: Plain text |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
msgid "POSIX.1-2001, C89, C99, SVr4, 4.3BSD." |
| 262 |
msgstr "" |
| 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 "NOTES" |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
msgid "" |
| 275 |
"Functions registered using B<atexit>() (and B<on_exit>(3)) are not called " |
| 276 |
"if a process terminates abnormally because of the delivery of a signal." |
| 277 |
msgstr "" |
| 278 |
|
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
msgid "" |
| 283 |
"If one of the registered functions calls B<_exit>(2), then any remaining " |
| 284 |
"functions are not invoked, and the other process termination steps performed " |
| 285 |
"by B<exit>(3) are not performed." |
| 286 |
msgstr "" |
| 287 |
|
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
msgid "" |
| 292 |
"The B<atexit>() and B<on_exit>(3) functions register functions on the same " |
| 293 |
"list: at normal process termination, the registered functions are invoked in " |
| 294 |
"reverse order of their registration by these two functions." |
| 295 |
msgstr "" |
| 296 |
|
| 297 |
#. In glibc, things seem to be handled okay |
| 298 |
#. type: Plain text |
| 299 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 300 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 301 |
msgid "" |
| 302 |
"According to POSIX.1, the result is undefined if B<longjmp>(3) is used to " |
| 303 |
"terminate execution of one of the functions registered using B<atexit>()." |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#. type: SS |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
#, no-wrap |
| 310 |
msgid "Linux notes" |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
msgid "" |
| 317 |
"Since glibc 2.2.3, B<atexit>() (and B<on_exit>(3)) can be used within a " |
| 318 |
"shared library to establish functions that are called when the shared " |
| 319 |
"library is unloaded." |
| 320 |
msgstr "" |
| 321 |
|
| 322 |
#. type: SH |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
#, no-wrap |
| 326 |
msgid "EXAMPLES" |
| 327 |
msgstr "" |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 331 |
#: opensuse-tumbleweed |
| 332 |
#, no-wrap |
| 333 |
msgid "" |
| 334 |
"#include E<lt>stdio.hE<gt>\n" |
| 335 |
"#include E<lt>stdlib.hE<gt>\n" |
| 336 |
"#include E<lt>unistd.hE<gt>\n" |
| 337 |
"\\&\n" |
| 338 |
"static void\n" |
| 339 |
"bye(void)\n" |
| 340 |
"{\n" |
| 341 |
" printf(\"That was all, folks\\[rs]n\");\n" |
| 342 |
"}\n" |
| 343 |
"\\&\n" |
| 344 |
"int\n" |
| 345 |
"main(void)\n" |
| 346 |
"{\n" |
| 347 |
" long a;\n" |
| 348 |
" int i;\n" |
| 349 |
"\\&\n" |
| 350 |
" a = sysconf(_SC_ATEXIT_MAX);\n" |
| 351 |
" printf(\"ATEXIT_MAX = %ld\\[rs]n\", a);\n" |
| 352 |
"\\&\n" |
| 353 |
" i = atexit(bye);\n" |
| 354 |
" if (i != 0) {\n" |
| 355 |
" fprintf(stderr, \"cannot set exit function\\[rs]n\");\n" |
| 356 |
" exit(EXIT_FAILURE);\n" |
| 357 |
" }\n" |
| 358 |
"\\&\n" |
| 359 |
" exit(EXIT_SUCCESS);\n" |
| 360 |
"}\n" |
| 361 |
msgstr "" |
| 362 |
|
| 363 |
#. SRC END |
| 364 |
#. type: SH |
| 365 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 366 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 367 |
#, no-wrap |
| 368 |
msgid "SEE ALSO" |
| 369 |
msgstr "" |
| 370 |
|
| 371 |
#. type: Plain text |
| 372 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 373 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 374 |
msgid "B<_exit>(2), B<dlopen>(3), B<exit>(3), B<on_exit>(3)" |
| 375 |
msgstr "" |
| 376 |
|
| 377 |
#. type: TH |
| 378 |
#: debian-trixie |
| 379 |
#, no-wrap |
| 380 |
msgid "2024-06-15" |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#. type: TH |
| 384 |
#: debian-trixie |
| 385 |
#, no-wrap |
| 386 |
msgid "Linux man-pages 6.9.1" |
| 387 |
msgstr "" |
| 388 |
|
| 389 |
#. type: Plain text |
| 390 |
#: debian-trixie |
| 391 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 392 |
msgstr "" |
| 393 |
|
| 394 |
#. type: Plain text |
| 395 |
#: debian-trixie |
| 396 |
#, no-wrap |
| 397 |
msgid "B<int atexit(void (*>I<function>B<)(void));>\n" |
| 398 |
msgstr "" |
| 399 |
|
| 400 |
#. type: Plain text |
| 401 |
#: debian-trixie fedora-44 fedora-rawhide |
| 402 |
msgid "" |
| 403 |
"The B<atexit>() function returns the value 0 if successful; otherwise it " |
| 404 |
"returns a nonzero value." |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: debian-trixie fedora-44 fedora-rawhide |
| 409 |
#, no-wrap |
| 410 |
msgid "" |
| 411 |
"#include E<lt>stdio.hE<gt>\n" |
| 412 |
"#include E<lt>stdlib.hE<gt>\n" |
| 413 |
"#include E<lt>unistd.hE<gt>\n" |
| 414 |
"\\&\n" |
| 415 |
"void\n" |
| 416 |
"bye(void)\n" |
| 417 |
"{\n" |
| 418 |
" printf(\"That was all, folks\\[rs]n\");\n" |
| 419 |
"}\n" |
| 420 |
"\\&\n" |
| 421 |
"int\n" |
| 422 |
"main(void)\n" |
| 423 |
"{\n" |
| 424 |
" long a;\n" |
| 425 |
" int i;\n" |
| 426 |
"\\&\n" |
| 427 |
" a = sysconf(_SC_ATEXIT_MAX);\n" |
| 428 |
" printf(\"ATEXIT_MAX = %ld\\[rs]n\", a);\n" |
| 429 |
"\\&\n" |
| 430 |
" i = atexit(bye);\n" |
| 431 |
" if (i != 0) {\n" |
| 432 |
" fprintf(stderr, \"cannot set exit function\\[rs]n\");\n" |
| 433 |
" exit(EXIT_FAILURE);\n" |
| 434 |
" }\n" |
| 435 |
"\\&\n" |
| 436 |
" exit(EXIT_SUCCESS);\n" |
| 437 |
"}\n" |
| 438 |
msgstr "" |
| 439 |
|
| 440 |
#. type: TH |
| 441 |
#: fedora-44 fedora-rawhide |
| 442 |
#, no-wrap |
| 443 |
msgid "2024-12-13" |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#. type: TH |
| 447 |
#: fedora-44 fedora-rawhide |
| 448 |
#, no-wrap |
| 449 |
msgid "Linux man-pages 6.13" |
| 450 |
msgstr "" |
| 451 |
|
| 452 |
#. type: TH |
| 453 |
#: mageia-cauldron |
| 454 |
#, no-wrap |
| 455 |
msgid "Linux man-pages 6.17" |
| 456 |
msgstr "" |
| 457 |
|
| 458 |
#. type: TH |
| 459 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 460 |
#, no-wrap |
| 461 |
msgid "Linux man-pages (unreleased)" |
| 462 |
msgstr "" |