| 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:25+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 "getpid" |
| 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 "getpid, getppid - get process identification" |
| 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>unistd.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<pid_t getpid(void);>\n" |
| 85 |
"B<pid_t getppid(void);>\n" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#. type: SH |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "DESCRIPTION" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
msgid "" |
| 99 |
"B<getpid>() returns the process ID (PID) of the calling process. (This is " |
| 100 |
"often used by routines that generate unique temporary filenames.)" |
| 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 |
"B<getppid>() returns the process ID of the parent of the calling process. " |
| 108 |
"This will be either the ID of the process that created this process using " |
| 109 |
"B<fork>(), or, if that process has already terminated, the ID of the process " |
| 110 |
"to which this process has been reparented (either B<init>(1) or a " |
| 111 |
"\"subreaper\" process defined via the B<prctl>(2) B<PR_SET_CHILD_SUBREAPER> " |
| 112 |
"operation)." |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#. type: SH |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
#, no-wrap |
| 119 |
msgid "ERRORS" |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
msgid "These functions are always successful." |
| 126 |
msgstr "" |
| 127 |
|
| 128 |
#. type: SH |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
#, no-wrap |
| 132 |
msgid "VERSIONS" |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#. type: Plain text |
| 136 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 137 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 138 |
msgid "" |
| 139 |
"On Alpha, instead of a pair of B<getpid>() and B<getppid>() system calls, " |
| 140 |
"a single B<getxpid>() system call is provided, which returns a pair of PID " |
| 141 |
"and parent PID. The glibc B<getpid>() and B<getppid>() wrapper functions " |
| 142 |
"transparently deal with this. See B<syscall>(2) for details regarding " |
| 143 |
"register mapping." |
| 144 |
msgstr "" |
| 145 |
|
| 146 |
#. type: SH |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
#, no-wrap |
| 150 |
msgid "STANDARDS" |
| 151 |
msgstr "" |
| 152 |
|
| 153 |
#. type: Plain text |
| 154 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 155 |
#: opensuse-tumbleweed |
| 156 |
msgid "POSIX.1-2024." |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: SH |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
#, no-wrap |
| 163 |
msgid "HISTORY" |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 168 |
#: opensuse-tumbleweed |
| 169 |
msgid "4.3BSD, SVr4, POSIX.1-1988." |
| 170 |
msgstr "" |
| 171 |
|
| 172 |
#. type: SS |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
#, no-wrap |
| 176 |
msgid "C library/kernel differences" |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
# |
| 180 |
# |
| 181 |
# |
| 182 |
# |
| 183 |
#. The following program demonstrates this "feature": |
| 184 |
#. #define _GNU_SOURCE |
| 185 |
#. #include <sys/syscall.h> |
| 186 |
#. #include <sys/wait.h> |
| 187 |
#. #include <stdint.h> |
| 188 |
#. #include <stdio.h> |
| 189 |
#. #include <stdlib.h> |
| 190 |
#. #include <unistd.h> |
| 191 |
#. int |
| 192 |
#. main(int argc, char *argv[]) |
| 193 |
#. { |
| 194 |
#. /* The following statement fills the getpid() cache */ |
| 195 |
#. printf("parent PID = %ld |
| 196 |
#. ", (intmax_t) getpid()); |
| 197 |
#. if (syscall(SYS_fork) == 0) { |
| 198 |
#. if (getpid() != syscall(SYS_getpid)) |
| 199 |
#. printf("child getpid() mismatch: getpid()=%jd; " |
| 200 |
#. "syscall(SYS_getpid)=%ld |
| 201 |
#. ", |
| 202 |
#. (intmax_t) getpid(), (long) syscall(SYS_getpid)); |
| 203 |
#. exit(EXIT_SUCCESS); |
| 204 |
#. } |
| 205 |
#. wait(NULL); |
| 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 "" |
| 211 |
"From glibc 2.3.4 up to and including glibc 2.24, the glibc wrapper function " |
| 212 |
"for B<getpid>() cached PIDs, with the goal of avoiding additional system " |
| 213 |
"calls when a process calls B<getpid>() repeatedly. Normally this caching " |
| 214 |
"was invisible, but its correct operation relied on support in the wrapper " |
| 215 |
"functions for B<fork>(2), B<vfork>(2), and B<clone>(2): if an application " |
| 216 |
"bypassed the glibc wrappers for these system calls by using B<syscall>(2), " |
| 217 |
"then a call to B<getpid>() in the child would return the wrong value (to be " |
| 218 |
"precise: it would return the PID of the parent process). In addition, there " |
| 219 |
"were cases where B<getpid>() could return the wrong value even when " |
| 220 |
"invoking B<clone>(2) via the glibc wrapper function. (For a discussion of " |
| 221 |
"one such case, see BUGS in B<clone>(2).) Furthermore, the complexity of the " |
| 222 |
"caching code had been the source of a few bugs within glibc over the years." |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. commit c579f48edba88380635ab98cb612030e3ed8691e |
| 226 |
#. https://sourceware.org/glibc/wiki/Release/2.25#pid_cache_removal |
| 227 |
#. FIXME . |
| 228 |
#. Review progress of https://bugzilla.redhat.com/show_bug.cgi?id=1469757 |
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
msgid "" |
| 233 |
"Because of the aforementioned problems, since glibc 2.25, the PID cache is " |
| 234 |
"removed: calls to B<getpid>() always invoke the actual system call, rather " |
| 235 |
"than returning a cached value." |
| 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 "NOTES" |
| 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 "" |
| 249 |
"If the caller's parent is in a different PID namespace (see " |
| 250 |
"B<pid_namespaces>(7)), B<getppid>() returns 0." |
| 251 |
msgstr "" |
| 252 |
|
| 253 |
#. type: Plain text |
| 254 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 255 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 256 |
msgid "" |
| 257 |
"From a kernel perspective, the PID (which is shared by all of the threads in " |
| 258 |
"a multithreaded process) is sometimes also known as the thread group ID " |
| 259 |
"(TGID). This contrasts with the kernel thread ID (TID), which is unique for " |
| 260 |
"each thread. For further details, see B<gettid>(2) and the discussion of " |
| 261 |
"the B<CLONE_THREAD> flag in B<clone>(2)." |
| 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 "SEE ALSO" |
| 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 |
"B<clone>(2), B<fork>(2), B<gettid>(2), B<kill>(2), B<exec>(3), " |
| 276 |
"B<mkstemp>(3), B<tempnam>(3), B<tmpfile>(3), B<tmpnam>(3), " |
| 277 |
"B<credentials>(7), B<pid_namespaces>(7)" |
| 278 |
msgstr "" |
| 279 |
|
| 280 |
#. type: TH |
| 281 |
#: debian-trixie |
| 282 |
#, no-wrap |
| 283 |
msgid "2024-05-02" |
| 284 |
msgstr "" |
| 285 |
|
| 286 |
#. type: TH |
| 287 |
#: debian-trixie |
| 288 |
#, no-wrap |
| 289 |
msgid "Linux man-pages 6.9.1" |
| 290 |
msgstr "" |
| 291 |
|
| 292 |
#. type: Plain text |
| 293 |
#: debian-trixie |
| 294 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 295 |
msgstr "" |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: debian-trixie fedora-44 fedora-rawhide |
| 299 |
msgid "POSIX.1-2008." |
| 300 |
msgstr "" |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: debian-trixie fedora-44 fedora-rawhide |
| 304 |
msgid "POSIX.1-2001, 4.3BSD, SVr4." |
| 305 |
msgstr "" |
| 306 |
|
| 307 |
#. type: TH |
| 308 |
#: fedora-44 fedora-rawhide |
| 309 |
#, no-wrap |
| 310 |
msgid "2024-07-23" |
| 311 |
msgstr "" |
| 312 |
|
| 313 |
#. type: TH |
| 314 |
#: fedora-44 fedora-rawhide |
| 315 |
#, no-wrap |
| 316 |
msgid "Linux man-pages 6.13" |
| 317 |
msgstr "" |
| 318 |
|
| 319 |
#. type: TH |
| 320 |
#: mageia-cauldron |
| 321 |
#, no-wrap |
| 322 |
msgid "Linux man-pages 6.17" |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#. type: TH |
| 326 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
#, no-wrap |
| 328 |
msgid "Linux man-pages (unreleased)" |
| 329 |
msgstr "" |