| 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:29+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 "kcmp" |
| 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 "" |
| 50 |
"kcmp - compare two processes to determine if they share a kernel resource" |
| 51 |
msgstr "" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "LIBRARY" |
| 58 |
msgstr "" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 62 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 64 |
msgstr "" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "SYNOPSIS" |
| 71 |
msgstr "" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "" |
| 78 |
"B<#include E<lt>linux/kcmp.hE<gt>> /* Definition of B<KCMP_*> constants */\n" |
| 79 |
"B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n" |
| 80 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 81 |
msgstr "" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 85 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "" |
| 88 |
"B<int syscall(SYS_kcmp, pid_t >I<pid1>B<, pid_t >I<pid2>B<, int >I<type>B<,>\n" |
| 89 |
"B< unsigned long >I<idx1>B<, unsigned long >I<idx2>B<);>\n" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
msgid "" |
| 96 |
"I<Note>: glibc provides no wrapper for B<kcmp>(), necessitating the use of " |
| 97 |
"B<syscall>(2)." |
| 98 |
msgstr "" |
| 99 |
|
| 100 |
#. type: SH |
| 101 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 102 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
#, no-wrap |
| 104 |
msgid "DESCRIPTION" |
| 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 |
"The B<kcmp>() system call can be used to check whether the two processes " |
| 112 |
"identified by I<pid1> and I<pid2> share a kernel resource such as virtual " |
| 113 |
"memory, file descriptors, and so on." |
| 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 |
"Permission to employ B<kcmp>() is governed by ptrace access mode " |
| 121 |
"B<PTRACE_MODE_READ_REALCREDS> checks against both I<pid1> and I<pid2>; see " |
| 122 |
"B<ptrace>(2)." |
| 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 "" |
| 129 |
"The I<type> argument specifies which resource is to be compared in the two " |
| 130 |
"processes. It has one of the following values:" |
| 131 |
msgstr "" |
| 132 |
|
| 133 |
#. type: TP |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
#, no-wrap |
| 137 |
msgid "B<KCMP_FILE>" |
| 138 |
msgstr "" |
| 139 |
|
| 140 |
#. type: Plain text |
| 141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
msgid "" |
| 144 |
"Check whether a file descriptor I<idx1> in the process I<pid1> refers to the " |
| 145 |
"same open file description (see B<open>(2)) as file descriptor I<idx2> in " |
| 146 |
"the process I<pid2>. The existence of two file descriptors that refer to " |
| 147 |
"the same open file description can occur as a result of B<dup>(2) (and " |
| 148 |
"similar) B<fork>(2), or passing file descriptors via a domain socket (see " |
| 149 |
"B<unix>(7))." |
| 150 |
msgstr "" |
| 151 |
|
| 152 |
#. type: TP |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
#, no-wrap |
| 156 |
msgid "B<KCMP_FILES>" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"Check whether the processes share the same set of open file descriptors. " |
| 164 |
"The arguments I<idx1> and I<idx2> are ignored. See the discussion of the " |
| 165 |
"B<CLONE_FILES> flag in B<clone>(2)." |
| 166 |
msgstr "" |
| 167 |
|
| 168 |
#. type: TP |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
#, no-wrap |
| 172 |
msgid "B<KCMP_FS>" |
| 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 |
"Check whether the processes share the same filesystem information (i.e., " |
| 180 |
"file mode creation mask, working directory, and filesystem root). The " |
| 181 |
"arguments I<idx1> and I<idx2> are ignored. See the discussion of the " |
| 182 |
"B<CLONE_FS> flag in B<clone>(2)." |
| 183 |
msgstr "" |
| 184 |
|
| 185 |
#. type: TP |
| 186 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 187 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 188 |
#, no-wrap |
| 189 |
msgid "B<KCMP_IO>" |
| 190 |
msgstr "" |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "" |
| 196 |
"Check whether the processes share I/O context. The arguments I<idx1> and " |
| 197 |
"I<idx2> are ignored. See the discussion of the B<CLONE_IO> flag in " |
| 198 |
"B<clone>(2)." |
| 199 |
msgstr "" |
| 200 |
|
| 201 |
#. type: TP |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
#, no-wrap |
| 205 |
msgid "B<KCMP_SIGHAND>" |
| 206 |
msgstr "" |
| 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 "" |
| 212 |
"Check whether the processes share the same table of signal dispositions. " |
| 213 |
"The arguments I<idx1> and I<idx2> are ignored. See the discussion of the " |
| 214 |
"B<CLONE_SIGHAND> flag in B<clone>(2)." |
| 215 |
msgstr "" |
| 216 |
|
| 217 |
#. type: TP |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
#, no-wrap |
| 221 |
msgid "B<KCMP_SYSVSEM>" |
| 222 |
msgstr "" |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
msgid "" |
| 228 |
"Check whether the processes share the same list of System\\ V semaphore undo " |
| 229 |
"operations. The arguments I<idx1> and I<idx2> are ignored. See the " |
| 230 |
"discussion of the B<CLONE_SYSVSEM> flag in B<clone>(2)." |
| 231 |
msgstr "" |
| 232 |
|
| 233 |
#. type: TP |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
#, no-wrap |
| 237 |
msgid "B<KCMP_VM>" |
| 238 |
msgstr "" |
| 239 |
|
| 240 |
#. type: Plain text |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
msgid "" |
| 244 |
"Check whether the processes share the same address space. The arguments " |
| 245 |
"I<idx1> and I<idx2> are ignored. See the discussion of the B<CLONE_VM> flag " |
| 246 |
"in B<clone>(2)." |
| 247 |
msgstr "" |
| 248 |
|
| 249 |
#. type: TP |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
#, no-wrap |
| 253 |
msgid "B<KCMP_EPOLL_TFD> (since Linux 4.13)" |
| 254 |
msgstr "" |
| 255 |
|
| 256 |
#. commit 0791e3644e5ef21646fe565b9061788d05ec71d4 |
| 257 |
#. type: Plain text |
| 258 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 259 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 260 |
msgid "" |
| 261 |
"Check whether the file descriptor I<idx1> of the process I<pid1> is present " |
| 262 |
"in the B<epoll>(7) instance described by I<idx2> of the process I<pid2>. " |
| 263 |
"The argument I<idx2> is a pointer to a structure where the target file is " |
| 264 |
"described. This structure has the form:" |
| 265 |
msgstr "" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "" |
| 272 |
"struct kcmp_epoll_slot {\n" |
| 273 |
" __u32 efd;\n" |
| 274 |
" __u32 tfd;\n" |
| 275 |
" __u64 toff;\n" |
| 276 |
"};\n" |
| 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 |
"Within this structure, I<efd> is an epoll file descriptor returned from " |
| 284 |
"B<epoll_create>(2), I<tfd> is a target file descriptor number, and I<toff> " |
| 285 |
"is a target file offset counted from zero. Several different targets may be " |
| 286 |
"registered with the same file descriptor number and setting a specific " |
| 287 |
"offset helps to investigate each of them." |
| 288 |
msgstr "" |
| 289 |
|
| 290 |
#. type: Plain text |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
msgid "" |
| 294 |
"Note the B<kcmp>() is not protected against false positives which may occur " |
| 295 |
"if the processes are currently running. One should stop the processes by " |
| 296 |
"sending B<SIGSTOP> (see B<signal>(7)) prior to inspection with this system " |
| 297 |
"call to obtain meaningful results." |
| 298 |
msgstr "" |
| 299 |
|
| 300 |
#. type: SH |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
#, no-wrap |
| 304 |
msgid "RETURN VALUE" |
| 305 |
msgstr "" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
msgid "" |
| 311 |
"The return value of a successful call to B<kcmp>() is simply the result of " |
| 312 |
"arithmetic comparison of kernel pointers (when the kernel compares " |
| 313 |
"resources, it uses their memory addresses)." |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. type: Plain text |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
msgid "" |
| 320 |
"The easiest way to explain is to consider an example. Suppose that I<v1> " |
| 321 |
"and I<v2> are the addresses of appropriate resources, then the return value " |
| 322 |
"is one of the following:" |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#. type: TP |
| 326 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 327 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 328 |
#, no-wrap |
| 329 |
msgid "B<0>" |
| 330 |
msgstr "" |
| 331 |
|
| 332 |
#. type: Plain text |
| 333 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 334 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 335 |
msgid "" |
| 336 |
"I<v1> is equal to I<v2>; in other words, the two processes share the " |
| 337 |
"resource." |
| 338 |
msgstr "" |
| 339 |
|
| 340 |
#. type: TP |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
#, no-wrap |
| 344 |
msgid "B<1>" |
| 345 |
msgstr "" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
msgid "I<v1> is less than I<v2>." |
| 351 |
msgstr "" |
| 352 |
|
| 353 |
#. type: TP |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "B<2>" |
| 358 |
msgstr "" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "I<v1> is greater than I<v2>." |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#. type: TP |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
#, no-wrap |
| 370 |
msgid "B<3>" |
| 371 |
msgstr "" |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
msgid "I<v1> is not equal to I<v2>, but ordering information is unavailable." |
| 377 |
msgstr "" |
| 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 "On error, -1 is returned, and I<errno> is set to indicate the error." |
| 383 |
msgstr "" |
| 384 |
|
| 385 |
#. type: Plain text |
| 386 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 387 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 388 |
msgid "" |
| 389 |
"B<kcmp>() was designed to return values suitable for sorting. This is " |
| 390 |
"particularly handy if one needs to compare a large number of file " |
| 391 |
"descriptors." |
| 392 |
msgstr "" |
| 393 |
|
| 394 |
#. type: SH |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
#, no-wrap |
| 398 |
msgid "ERRORS" |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: TP |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
#, no-wrap |
| 405 |
msgid "B<EBADF>" |
| 406 |
msgstr "" |
| 407 |
|
| 408 |
#. type: Plain text |
| 409 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 410 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 411 |
msgid "" |
| 412 |
"I<type> is B<KCMP_FILE> and I<fd1> or I<fd2> is not an open file descriptor." |
| 413 |
msgstr "" |
| 414 |
|
| 415 |
#. type: TP |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
#, no-wrap |
| 419 |
msgid "B<EFAULT>" |
| 420 |
msgstr "" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
msgid "" |
| 426 |
"The epoll slot addressed by I<idx2> is outside of the user's address space." |
| 427 |
msgstr "" |
| 428 |
|
| 429 |
#. type: TP |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
#, no-wrap |
| 433 |
msgid "B<EINVAL>" |
| 434 |
msgstr "" |
| 435 |
|
| 436 |
#. type: Plain text |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
msgid "I<type> is invalid." |
| 440 |
msgstr "" |
| 441 |
|
| 442 |
#. type: TP |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
#, no-wrap |
| 446 |
msgid "B<ENOENT>" |
| 447 |
msgstr "" |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 451 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 452 |
msgid "The target file is not present in B<epoll>(7) instance." |
| 453 |
msgstr "" |
| 454 |
|
| 455 |
#. type: TP |
| 456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 457 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 458 |
#, no-wrap |
| 459 |
msgid "B<EPERM>" |
| 460 |
msgstr "" |
| 461 |
|
| 462 |
#. type: Plain text |
| 463 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 464 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 465 |
msgid "" |
| 466 |
"Insufficient permission to inspect process resources. The B<CAP_SYS_PTRACE> " |
| 467 |
"capability is required to inspect processes that you do not own. Other " |
| 468 |
"ptrace limitations may also apply, such as B<CONFIG_SECURITY_YAMA>, which, " |
| 469 |
"when I</proc/sys/kernel/yama/ptrace_scope> is 2, limits B<kcmp>() to child " |
| 470 |
"processes; see B<ptrace>(2)." |
| 471 |
msgstr "" |
| 472 |
|
| 473 |
#. type: TP |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
#, no-wrap |
| 477 |
msgid "B<ESRCH>" |
| 478 |
msgstr "" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "Process I<pid1> or I<pid2> does not exist." |
| 484 |
msgstr "" |
| 485 |
|
| 486 |
#. type: SH |
| 487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
#, no-wrap |
| 490 |
msgid "STANDARDS" |
| 491 |
msgstr "" |
| 492 |
|
| 493 |
#. type: Plain text |
| 494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 496 |
msgid "Linux." |
| 497 |
msgstr "" |
| 498 |
|
| 499 |
#. type: SH |
| 500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 501 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 502 |
#, no-wrap |
| 503 |
msgid "HISTORY" |
| 504 |
msgstr "" |
| 505 |
|
| 506 |
#. type: Plain text |
| 507 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 508 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 509 |
msgid "Linux 3.5." |
| 510 |
msgstr "" |
| 511 |
|
| 512 |
#. type: Plain text |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
msgid "" |
| 516 |
"Before Linux 5.12, this system call is available only if the kernel is " |
| 517 |
"configured with B<CONFIG_CHECKPOINT_RESTORE>, since the original purpose of " |
| 518 |
"the system call was for the checkpoint/restore in user space (CRIU) " |
| 519 |
"feature. (The alternative to this system call would have been to expose " |
| 520 |
"suitable process information via the B<proc>(5) filesystem; this was deemed " |
| 521 |
"to be unsuitable for security reasons.) Since Linux 5.12, this system call " |
| 522 |
"is also available if the kernel is configured with B<CONFIG_KCMP>." |
| 523 |
msgstr "" |
| 524 |
|
| 525 |
#. type: SH |
| 526 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 527 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 528 |
#, no-wrap |
| 529 |
msgid "NOTES" |
| 530 |
msgstr "" |
| 531 |
|
| 532 |
#. type: Plain text |
| 533 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 534 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 535 |
msgid "" |
| 536 |
"See B<clone>(2) for some background information on the shared resources " |
| 537 |
"referred to on this page." |
| 538 |
msgstr "" |
| 539 |
|
| 540 |
#. type: SH |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
#, no-wrap |
| 544 |
msgid "EXAMPLES" |
| 545 |
msgstr "" |
| 546 |
|
| 547 |
#. type: Plain text |
| 548 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 549 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 550 |
msgid "" |
| 551 |
"The program below uses B<kcmp>() to test whether pairs of file descriptors " |
| 552 |
"refer to the same open file description. The program tests different cases " |
| 553 |
"for the file descriptor pairs, as described in the program output. An " |
| 554 |
"example run of the program is as follows:" |
| 555 |
msgstr "" |
| 556 |
|
| 557 |
#. type: Plain text |
| 558 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 559 |
#: opensuse-tumbleweed |
| 560 |
#, no-wrap |
| 561 |
msgid "" |
| 562 |
"$B< ./a.out>;\n" |
| 563 |
"Parent PID is 1144\n" |
| 564 |
"Parent opened file on FD 3\n" |
| 565 |
"\\&\n" |
| 566 |
"PID of child of fork() is 1145\n" |
| 567 |
"\tCompare duplicate FDs from different processes:\n" |
| 568 |
"\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n" |
| 569 |
"Child opened file on FD 4\n" |
| 570 |
"\tCompare FDs from distinct open()s in same process:\n" |
| 571 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n" |
| 572 |
"Child duplicated FD 3 to create FD 5\n" |
| 573 |
"\tCompare duplicated FDs in same process:\n" |
| 574 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n" |
| 575 |
msgstr "" |
| 576 |
|
| 577 |
#. type: SS |
| 578 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 579 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 580 |
#, no-wrap |
| 581 |
msgid "Program source" |
| 582 |
msgstr "" |
| 583 |
|
| 584 |
#. type: Plain text |
| 585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 586 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
#, no-wrap |
| 588 |
msgid "" |
| 589 |
"#define _GNU_SOURCE\n" |
| 590 |
"#include E<lt>err.hE<gt>\n" |
| 591 |
"#include E<lt>fcntl.hE<gt>\n" |
| 592 |
"#include E<lt>linux/kcmp.hE<gt>\n" |
| 593 |
"#include E<lt>stdint.hE<gt>\n" |
| 594 |
"#include E<lt>stdio.hE<gt>\n" |
| 595 |
"#include E<lt>stdlib.hE<gt>\n" |
| 596 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 597 |
"#include E<lt>sys/types.hE<gt>\n" |
| 598 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 599 |
"#include E<lt>unistd.hE<gt>\n" |
| 600 |
"\\&\n" |
| 601 |
"static int\n" |
| 602 |
"kcmp(pid_t pid1, pid_t pid2, int type,\n" |
| 603 |
" unsigned long idx1, unsigned long idx2)\n" |
| 604 |
"{\n" |
| 605 |
" return syscall(SYS_kcmp, pid1, pid2, type, idx1, idx2);\n" |
| 606 |
"}\n" |
| 607 |
"\\&\n" |
| 608 |
"static void\n" |
| 609 |
"test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b)\n" |
| 610 |
"{\n" |
| 611 |
" printf(\"\\[rs]t%s\\[rs]n\", msg);\n" |
| 612 |
" printf(\"\\[rs]t\\[rs]tkcmp(%jd, %jd, KCMP_FILE, %d, %d) ==E<gt> %s\\[rs]n\",\n" |
| 613 |
" (intmax_t) pid1, (intmax_t) pid2, fd_a, fd_b,\n" |
| 614 |
" (kcmp(pid1, pid2, KCMP_FILE, fd_a, fd_b) == 0) ?\n" |
| 615 |
" \"same\" : \"different\");\n" |
| 616 |
"}\n" |
| 617 |
"\\&\n" |
| 618 |
"int\n" |
| 619 |
"main(void)\n" |
| 620 |
"{\n" |
| 621 |
" int fd1, fd2, fd3;\n" |
| 622 |
" static const char pathname[] = \"/tmp/kcmp.test\";\n" |
| 623 |
"\\&\n" |
| 624 |
" fd1 = open(pathname, O_CREAT | O_RDWR, 0600);\n" |
| 625 |
" if (fd1 == -1)\n" |
| 626 |
" err(EXIT_FAILURE, \"open\");\n" |
| 627 |
"\\&\n" |
| 628 |
" printf(\"Parent PID is %jd\\[rs]n\", (intmax_t) getpid());\n" |
| 629 |
" printf(\"Parent opened file on FD %d\\[rs]n\\[rs]n\", fd1);\n" |
| 630 |
"\\&\n" |
| 631 |
" switch (fork()) {\n" |
| 632 |
" case -1:\n" |
| 633 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 634 |
"\\&\n" |
| 635 |
" case 0:\n" |
| 636 |
" printf(\"PID of child of fork() is %jd\\[rs]n\", (intmax_t) getpid());\n" |
| 637 |
"\\&\n" |
| 638 |
" test_kcmp(\"Compare duplicate FDs from different processes:\",\n" |
| 639 |
" getpid(), getppid(), fd1, fd1);\n" |
| 640 |
"\\&\n" |
| 641 |
" fd2 = open(pathname, O_CREAT | O_RDWR, 0600);\n" |
| 642 |
" if (fd2 == -1)\n" |
| 643 |
" err(EXIT_FAILURE, \"open\");\n" |
| 644 |
" printf(\"Child opened file on FD %d\\[rs]n\", fd2);\n" |
| 645 |
"\\&\n" |
| 646 |
" test_kcmp(\"Compare FDs from distinct open()s in same process:\",\n" |
| 647 |
" getpid(), getpid(), fd1, fd2);\n" |
| 648 |
"\\&\n" |
| 649 |
" fd3 = dup(fd1);\n" |
| 650 |
" if (fd3 == -1)\n" |
| 651 |
" err(EXIT_FAILURE, \"dup\");\n" |
| 652 |
" printf(\"Child duplicated FD %d to create FD %d\\[rs]n\", fd1, fd3);\n" |
| 653 |
"\\&\n" |
| 654 |
" test_kcmp(\"Compare duplicated FDs in same process:\",\n" |
| 655 |
" getpid(), getpid(), fd1, fd3);\n" |
| 656 |
" break;\n" |
| 657 |
"\\&\n" |
| 658 |
" default:\n" |
| 659 |
" wait(NULL);\n" |
| 660 |
" }\n" |
| 661 |
"\\&\n" |
| 662 |
" exit(EXIT_SUCCESS);\n" |
| 663 |
"}\n" |
| 664 |
msgstr "" |
| 665 |
|
| 666 |
#. SRC END |
| 667 |
#. type: SH |
| 668 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 669 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 670 |
#, no-wrap |
| 671 |
msgid "SEE ALSO" |
| 672 |
msgstr "" |
| 673 |
|
| 674 |
#. type: Plain text |
| 675 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 676 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 677 |
msgid "B<clone>(2), B<unshare>(2)" |
| 678 |
msgstr "" |
| 679 |
|
| 680 |
#. type: TH |
| 681 |
#: debian-trixie |
| 682 |
#, no-wrap |
| 683 |
msgid "2024-06-15" |
| 684 |
msgstr "" |
| 685 |
|
| 686 |
#. type: TH |
| 687 |
#: debian-trixie |
| 688 |
#, no-wrap |
| 689 |
msgid "Linux man-pages 6.9.1" |
| 690 |
msgstr "" |
| 691 |
|
| 692 |
#. type: Plain text |
| 693 |
#: debian-trixie |
| 694 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 695 |
msgstr "" |
| 696 |
|
| 697 |
#. type: Plain text |
| 698 |
#: debian-trixie fedora-44 fedora-rawhide |
| 699 |
#, no-wrap |
| 700 |
msgid "" |
| 701 |
"$ B<./a.out>\n" |
| 702 |
"Parent PID is 1144\n" |
| 703 |
"Parent opened file on FD 3\n" |
| 704 |
"\\&\n" |
| 705 |
"PID of child of fork() is 1145\n" |
| 706 |
"\tCompare duplicate FDs from different processes:\n" |
| 707 |
"\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n" |
| 708 |
"Child opened file on FD 4\n" |
| 709 |
"\tCompare FDs from distinct open()s in same process:\n" |
| 710 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n" |
| 711 |
"Child duplicated FD 3 to create FD 5\n" |
| 712 |
"\tCompare duplicated FDs in same process:\n" |
| 713 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n" |
| 714 |
msgstr "" |
| 715 |
|
| 716 |
#. type: TH |
| 717 |
#: fedora-44 fedora-rawhide |
| 718 |
#, no-wrap |
| 719 |
msgid "2024-07-23" |
| 720 |
msgstr "" |
| 721 |
|
| 722 |
#. type: TH |
| 723 |
#: fedora-44 fedora-rawhide |
| 724 |
#, no-wrap |
| 725 |
msgid "Linux man-pages 6.13" |
| 726 |
msgstr "" |
| 727 |
|
| 728 |
#. type: TH |
| 729 |
#: mageia-cauldron |
| 730 |
#, no-wrap |
| 731 |
msgid "Linux man-pages 6.17" |
| 732 |
msgstr "" |
| 733 |
|
| 734 |
#. type: TH |
| 735 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 736 |
#, no-wrap |
| 737 |
msgid "Linux man-pages (unreleased)" |
| 738 |
msgstr "" |