| 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:45+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 "_syscall" |
| 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 "_syscall - invoking a system call without library support (OBSOLETE)" |
| 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 "SYNOPSIS" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
#, no-wrap |
| 63 |
msgid "B<#include E<lt>linux/unistd.hE<gt>>\n" |
| 64 |
msgstr "" |
| 65 |
|
| 66 |
#. type: Plain text |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "A _syscall macro\n" |
| 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 "desired system call\n" |
| 78 |
msgstr "" |
| 79 |
|
| 80 |
#. type: SH |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "DESCRIPTION" |
| 85 |
msgstr "" |
| 86 |
|
| 87 |
#. type: Plain text |
| 88 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 89 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 90 |
msgid "" |
| 91 |
"The important thing to know about a system call is its prototype. You need " |
| 92 |
"to know how many arguments, their types, and the function return type. " |
| 93 |
"There are seven macros that make the actual call into the system easier. " |
| 94 |
"They have the form:" |
| 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 |
#, no-wrap |
| 101 |
msgid "_syscallI<X>(I<type>,I<name>,I<type1>,I<arg1>,I<type2>,I<arg2>,...)\n" |
| 102 |
msgstr "" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
msgid "where" |
| 108 |
msgstr "" |
| 109 |
|
| 110 |
#. type: Plain text |
| 111 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 112 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 113 |
msgid "" |
| 114 |
"I<X> is 0\\[en]6, which are the number of arguments taken by the system call" |
| 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 "I<type> is the return type of the system call" |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 126 |
msgid "I<name> is the name of the system call" |
| 127 |
msgstr "" |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 131 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
msgid "I<typeN> is the Nth argument's type" |
| 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 "I<argN> is the name of the Nth argument" |
| 139 |
msgstr "" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
msgid "" |
| 145 |
"These macros create a function called I<name> with the arguments you " |
| 146 |
"specify. Once you include the _syscall() in your source file, you call the " |
| 147 |
"system call by I<name>." |
| 148 |
msgstr "" |
| 149 |
|
| 150 |
#. type: SH |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
#, no-wrap |
| 154 |
msgid "FILES" |
| 155 |
msgstr "" |
| 156 |
|
| 157 |
#. type: Plain text |
| 158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
msgid "I</usr/include/linux/unistd.h>" |
| 161 |
msgstr "" |
| 162 |
|
| 163 |
#. type: SH |
| 164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 165 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 166 |
#, no-wrap |
| 167 |
msgid "STANDARDS" |
| 168 |
msgstr "" |
| 169 |
|
| 170 |
#. type: Plain text |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
msgid "Linux." |
| 174 |
msgstr "" |
| 175 |
|
| 176 |
#. type: SH |
| 177 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 178 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 179 |
#, no-wrap |
| 180 |
msgid "HISTORY" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 185 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
msgid "" |
| 187 |
"Starting around Linux 2.6.18, the _syscall macros were removed from header " |
| 188 |
"files supplied to user space. Use B<syscall>(2) instead. (Some " |
| 189 |
"architectures, notably ia64, never provided the _syscall macros; on those " |
| 190 |
"architectures, B<syscall>(2) was always required.)" |
| 191 |
msgstr "" |
| 192 |
|
| 193 |
#. type: SH |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
#, no-wrap |
| 197 |
msgid "NOTES" |
| 198 |
msgstr "" |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
msgid "" |
| 204 |
"The _syscall() macros I<do not> produce a prototype. You may have to create " |
| 205 |
"one, especially for C++ users." |
| 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 |
"System calls are not required to return only positive or negative error " |
| 213 |
"codes. You need to read the source to be sure how it will return errors. " |
| 214 |
"Usually, it is the negative of a standard error code, for example, " |
| 215 |
"-I<EPERM>. The _syscall() macros will return the result I<r> of the system " |
| 216 |
"call when I<r> is nonnegative, but will return -1 and set the variable " |
| 217 |
"I<errno> to -I<r> when I<r> is negative. For the error codes, see " |
| 218 |
"B<errno>(3)." |
| 219 |
msgstr "" |
| 220 |
|
| 221 |
#. The preferred way to invoke system calls that glibc does not know |
| 222 |
#. about yet is via |
| 223 |
#. .BR syscall (2). |
| 224 |
#. However, this mechanism can be used only if using a libc |
| 225 |
#. (such as glibc) that supports |
| 226 |
#. .BR syscall (2), |
| 227 |
#. and if the |
| 228 |
#. .I <sys/syscall.h> |
| 229 |
#. header file contains the required SYS_foo definition. |
| 230 |
#. Otherwise, the use of a _syscall macro is required. |
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"When defining a system call, the argument types I<must> be passed by-value " |
| 236 |
"or by-pointer (for aggregates like structs)." |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#. type: SH |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
#, no-wrap |
| 243 |
msgid "EXAMPLES" |
| 244 |
msgstr "" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
#, no-wrap |
| 250 |
msgid "" |
| 251 |
"#include E<lt>stdio.hE<gt>\n" |
| 252 |
"#include E<lt>stdlib.hE<gt>\n" |
| 253 |
"#include E<lt>errno.hE<gt>\n" |
| 254 |
"#include E<lt>linux/unistd.hE<gt> /* for _syscallX macros/related stuff */\n" |
| 255 |
"#include E<lt>linux/kernel.hE<gt> /* for struct sysinfo */\n" |
| 256 |
"\\&\n" |
| 257 |
"_syscall1(int, sysinfo, struct sysinfo *, info);\n" |
| 258 |
"\\&\n" |
| 259 |
"int\n" |
| 260 |
"main(void)\n" |
| 261 |
"{\n" |
| 262 |
" struct sysinfo s_info;\n" |
| 263 |
" int error;\n" |
| 264 |
"\\&\n" |
| 265 |
" error = sysinfo(&s_info);\n" |
| 266 |
" printf(\"code error = %d\\[rs]n\", error);\n" |
| 267 |
" printf(\"Uptime = %lds\\[rs]nLoad: 1 min %lu / 5 min %lu / 15 min %lu\\[rs]n\"\n" |
| 268 |
" \"RAM: total %lu / free %lu / shared %lu\\[rs]n\"\n" |
| 269 |
" \"Memory in buffers = %lu\\[rs]nSwap: total %lu / free %lu\\[rs]n\"\n" |
| 270 |
" \"Number of processes = %d\\[rs]n\",\n" |
| 271 |
" s_info.uptime, s_info.loads[0],\n" |
| 272 |
" s_info.loads[1], s_info.loads[2],\n" |
| 273 |
" s_info.totalram, s_info.freeram,\n" |
| 274 |
" s_info.sharedram, s_info.bufferram,\n" |
| 275 |
" s_info.totalswap, s_info.freeswap,\n" |
| 276 |
" s_info.procs);\n" |
| 277 |
" exit(EXIT_SUCCESS);\n" |
| 278 |
"}\n" |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
#. SRC END |
| 282 |
#. type: SS |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
#, no-wrap |
| 286 |
msgid "Sample output" |
| 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 |
#, no-wrap |
| 293 |
msgid "" |
| 294 |
"code error = 0\n" |
| 295 |
"uptime = 502034s\n" |
| 296 |
"Load: 1 min 13376 / 5 min 5504 / 15 min 1152\n" |
| 297 |
"RAM: total 15343616 / free 827392 / shared 8237056\n" |
| 298 |
"Memory in buffers = 5066752\n" |
| 299 |
"Swap: total 27881472 / free 24698880\n" |
| 300 |
"Number of processes = 40\n" |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#. type: SH |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
#, no-wrap |
| 307 |
msgid "SEE ALSO" |
| 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 "B<intro>(2), B<syscall>(2), B<errno>(3)" |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. type: TH |
| 317 |
#: debian-trixie fedora-44 fedora-rawhide |
| 318 |
#, no-wrap |
| 319 |
msgid "2024-06-15" |
| 320 |
msgstr "" |
| 321 |
|
| 322 |
#. type: TH |
| 323 |
#: debian-trixie |
| 324 |
#, no-wrap |
| 325 |
msgid "Linux man-pages 6.9.1" |
| 326 |
msgstr "" |
| 327 |
|
| 328 |
#. type: TH |
| 329 |
#: fedora-44 fedora-rawhide |
| 330 |
#, no-wrap |
| 331 |
msgid "Linux man-pages 6.13" |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#. type: TH |
| 335 |
#: mageia-cauldron |
| 336 |
#, no-wrap |
| 337 |
msgid "Linux man-pages 6.17" |
| 338 |
msgstr "" |
| 339 |
|
| 340 |
#. type: TH |
| 341 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
#, no-wrap |
| 343 |
msgid "Linux man-pages (unreleased)" |
| 344 |
msgstr "" |