Debian Codegraph @

templates/man7/rpm-lua.7.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-05-01 04:44+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-unstable fedora-44 fedora-rawhide
21 #, no-wrap
22 msgid "RPM-LUA"
23 msgstr ""
24
25 #. type: TH
26 #: archlinux
27 #, no-wrap
28 msgid "2026-03-06"
29 msgstr ""
30
31 #. type: TH
32 #: archlinux debian-unstable fedora-44 fedora-rawhide
33 #, no-wrap
34 msgid "RPM 6.0.1"
35 msgstr ""
36
37 #. type: SH
38 #: archlinux debian-unstable fedora-44 fedora-rawhide
39 #, no-wrap
40 msgid "NAME"
41 msgstr ""
42
43 #. type: Plain text
44 #: archlinux debian-unstable fedora-44 fedora-rawhide
45 msgid "rpm-lua - RPM embedded Lua interpreter"
46 msgstr ""
47
48 #. type: SH
49 #: archlinux debian-unstable fedora-44 fedora-rawhide
50 #, no-wrap
51 msgid "SYNOPSIS"
52 msgstr ""
53
54 #. type: Plain text
55 #: archlinux debian-unstable fedora-44 fedora-rawhide
56 msgid "%scriptlet -p E<lt>luaE<gt>"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide
61 msgid "%{lua:.\\&.\\&.\\&}"
62 msgstr ""
63
64 #. type: SH
65 #: archlinux debian-unstable fedora-44 fedora-rawhide
66 #, no-wrap
67 msgid "DESCRIPTION"
68 msgstr ""
69
70 #. type: Plain text
71 #: archlinux debian-unstable fedora-44 fedora-rawhide
72 msgid ""
73 "Lua is a general purpose programming language specifically designed for "
74 "embedding in other programs, and RPM includes an embedded Lua interpreter "
75 "for use in advanced B<rpm-macros>(7) and transaction scriptlets.\\&"
76 msgstr ""
77
78 #. type: Plain text
79 #: archlinux debian-unstable fedora-44 fedora-rawhide
80 msgid ""
81 "The embedded Lua interpreter makes possible various things that are hard or "
82 "impossible with plain macros or external shell scripts, such as help "
83 "eliminate dependency loops from package scriptlets.\\&"
84 msgstr ""
85
86 #. type: SH
87 #: archlinux debian-unstable fedora-44 fedora-rawhide
88 #, no-wrap
89 msgid "MACROS"
90 msgstr ""
91
92 #. type: SS
93 #: archlinux debian-unstable fedora-44 fedora-rawhide
94 #, no-wrap
95 msgid "Accessing macros"
96 msgstr ""
97
98 #. type: Plain text
99 #: archlinux debian-unstable fedora-44 fedora-rawhide
100 msgid ""
101 "The B<rpm> extension has various functions for dealing with macros, but the "
102 "most convenient way to access B<rpm-macroproc>(7) from the RPM Lua "
103 "environment is via the global B<macros> table.\\&"
104 msgstr ""
105
106 #. type: Plain text
107 #: archlinux debian-unstable fedora-44 fedora-rawhide
108 msgid ""
109 "Lua makes no difference between table index and field name syntaxes so "
110 "B<macros.\\&foo> and B<macros['\\&foo'\\&]> are equivalent, use what better "
111 "suits the purpose.\\&"
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-unstable fedora-44 fedora-rawhide
116 msgid ""
117 "Like any real Lua table, non-existent items are returned as B<nil>, and "
118 "assignment can be used to define or undefine macros.\\&"
119 msgstr ""
120
121 #. type: Plain text
122 #: archlinux debian-unstable fedora-44 fedora-rawhide
123 msgid "Example:"
124 msgstr ""
125
126 #. type: Plain text
127 #: archlinux debian-unstable fedora-44 fedora-rawhide
128 #, no-wrap
129 msgid ""
130 "if not macros\\&.yours then\n"
131 " macros\\&.my = \\&'my macro\\&'\n"
132 "end\n"
133 msgstr ""
134
135 #. type: Plain text
136 #: archlinux debian-unstable fedora-44 fedora-rawhide
137 #, no-wrap
138 msgid ""
139 "local v = { \\&'_libdir\\&', \\&'_bindir\\&', \\&'_xbindir\\&' }\n"
140 "for _, v in ipairs(v) do\n"
141 " if not macros[v] then\n"
142 " macros[v] = \\&'default\\&'\n"
143 " end\n"
144 "end\n"
145 msgstr ""
146
147 #. type: Plain text
148 #: archlinux debian-unstable fedora-44 fedora-rawhide
149 msgid "All macros share the same global Lua execution environment.\\&"
150 msgstr ""
151
152 #. type: SS
153 #: archlinux debian-unstable fedora-44 fedora-rawhide
154 #, no-wrap
155 msgid "Calling parametric macros"
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-unstable fedora-44 fedora-rawhide
160 msgid ""
161 "Parametric macros (including all built-in macros) can be called in a Lua "
162 "native manner via the B<macros> table, with either B<macros.\\&>I<name>B<()> "
163 "or B<macros[>I<name>B<]()> syntax.\\&"
164 msgstr ""
165
166 #. type: Plain text
167 #: archlinux debian-unstable fedora-44 fedora-rawhide
168 msgid "Arguments are passed through a single argument, which is either"
169 msgstr ""
170
171 #. type: IP
172 #: archlinux debian-unstable fedora-44 fedora-rawhide
173 #, no-wrap
174 msgid "\\(bu"
175 msgstr ""
176
177 #. type: Plain text
178 #: archlinux debian-unstable fedora-44 fedora-rawhide
179 msgid ""
180 "a single string, in which case it'\\&s expanded and split with the macro-"
181 "native rules"
182 msgstr ""
183
184 #. type: Plain text
185 #: archlinux debian-unstable fedora-44 fedora-rawhide
186 msgid ""
187 "a table, in which case the table contents are used as literal arguments that "
188 "are not expanded in any way"
189 msgstr ""
190
191 #. type: Plain text
192 #: archlinux debian-unstable fedora-44 fedora-rawhide
193 msgid "Example 1:"
194 msgstr ""
195
196 #. type: Plain text
197 #: archlinux debian-unstable fedora-44 fedora-rawhide
198 #, no-wrap
199 msgid "macros\\&.with(\\&'foo\\&')\n"
200 msgstr ""
201
202 #. type: Plain text
203 #: archlinux debian-unstable fedora-44 fedora-rawhide
204 msgid "Example 2:"
205 msgstr ""
206
207 #. type: Plain text
208 #: archlinux debian-unstable fedora-44 fedora-rawhide
209 #, no-wrap
210 msgid "macros\\&.dostuff({\\&'one\\&', \\&'two\\&', \\&'three\\&'})\n"
211 msgstr ""
212
213 #. type: SS
214 #: archlinux debian-unstable fedora-44 fedora-rawhide
215 #, no-wrap
216 msgid "Returning data"
217 msgstr ""
218
219 #. type: Plain text
220 #: archlinux debian-unstable fedora-44 fedora-rawhide
221 msgid ""
222 "By definition, anything B<print()>'\\&ed in Lua will end up in the macro "
223 "expansion.\\& Lua macros can also B<return> their output, which makes "
224 "programming helper macros look more natural.\\&"
225 msgstr ""
226
227 #. type: Plain text
228 #: archlinux debian-unstable fedora-44 fedora-rawhide
229 #, no-wrap
230 msgid ""
231 "%sum() %{lua:\n"
232 " local v = 0\n"
233 " for _, a in ipairs(arg) do\n"
234 " v = v + tonumber(a)\n"
235 " end\n"
236 " return v\n"
237 "}\n"
238 msgstr ""
239
240 #. type: SS
241 #: archlinux debian-unstable fedora-44 fedora-rawhide
242 #, no-wrap
243 msgid "Options and arguments"
244 msgstr ""
245
246 #. type: Plain text
247 #: archlinux debian-unstable fedora-44 fedora-rawhide
248 msgid ""
249 "Parametric Lua macros receive their options and arguments as two local "
250 "tables B<opt> and B<arg>, where B<opt> holds processed option values keyed "
251 "by the option character, and B<arg> contains arguments numerically indexed."
252 "\\&"
253 msgstr ""
254
255 #. type: Plain text
256 #: archlinux debian-unstable fedora-44 fedora-rawhide
257 msgid ""
258 "These tables are always present regardless of whether options or arguments "
259 "were actually passed to simplify use.\\&"
260 msgstr ""
261
262 #. type: Plain text
263 #: archlinux debian-unstable fedora-44 fedora-rawhide
264 #, no-wrap
265 msgid ""
266 "%foo(a:b) %{lua:\n"
267 "if opt\\&.b then\n"
268 " print(\\&'do b\\&')\n"
269 "else\n"
270 " print(\\&'or not\\&')\n"
271 "end\n"
272 "if opt\\&.a == \\&'s\\&' then\n"
273 " print(\\&'do s\\&')\n"
274 "end\n"
275 "if #arg == 0 then\n"
276 " print(\\&'no arguments :(\\&')\n"
277 "else\n"
278 " for i = 1, #arg do\n"
279 " print(arg[i])\n"
280 " end\n"
281 "end\n"
282 "}\n"
283 msgstr ""
284
285 #. type: SH
286 #: archlinux debian-unstable fedora-44 fedora-rawhide
287 #, no-wrap
288 msgid "SCRIPTLETS"
289 msgstr ""
290
291 #. type: Plain text
292 #: archlinux debian-unstable fedora-44 fedora-rawhide
293 msgid ""
294 "The internal Lua can be used as the interpreter of RPM any transaction "
295 "scriptlets, including triggers and file triggers:"
296 msgstr ""
297
298 #. type: Plain text
299 #: archlinux debian-unstable fedora-44 fedora-rawhide
300 #, no-wrap
301 msgid ""
302 "%pre -p E<lt>luaE<gt>\n"
303 "print(\\&'Hello from Lua\\&')\n"
304 msgstr ""
305
306 #. type: Plain text
307 #: archlinux debian-unstable fedora-44 fedora-rawhide
308 msgid ""
309 "While the venerable I</bin/sh> is usually more convenient for packaging "
310 "related scripting activities, the embedded Lua interpreter has some unique "
311 "advantages for transaction scriptlets: they add no extra dependencies to the "
312 "packages and so can help eliminate dependency loops.\\& This can be a "
313 "crucial difference in the early \"bootstrap\" package set in an initial "
314 "install.\\&"
315 msgstr ""
316
317 #. type: Plain text
318 #: archlinux debian-unstable fedora-44 fedora-rawhide
319 msgid ""
320 "In particular, an embedded Lua script is the only generally usable option in "
321 "B<%pretrans> scriplets during the initial installation of a system.\\&"
322 msgstr ""
323
324 #. type: Plain text
325 #: archlinux debian-unstable fedora-44 fedora-rawhide
326 msgid ""
327 "Embedded Lua is also much faster than executing a potentially heavyweight "
328 "interpreter just to run a couple of lines of shell script.\\&"
329 msgstr ""
330
331 #. type: Plain text
332 #: archlinux debian-unstable fedora-44 fedora-rawhide
333 msgid ""
334 "Note: scriptlets using the internal Lua should not make assumptions about "
335 "sharing the execution environment with other scriptlets.\\&"
336 msgstr ""
337
338 #. type: SS
339 #: archlinux debian-unstable fedora-44 fedora-rawhide
340 #, no-wrap
341 msgid "Arguments"
342 msgstr ""
343
344 #. type: Plain text
345 #: archlinux debian-unstable fedora-44 fedora-rawhide
346 msgid "Scriptlet arguments are accessible from a global B<arg> table.\\&"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-unstable fedora-44 fedora-rawhide
351 msgid ""
352 "Note: in Lua, indexes customarily start at 1 (one) instead of 0 (zero), and "
353 "for the better or worse, the RPM implementation follows this practise.\\& "
354 "Thus the scriptlet arg indexes are off by one from general expectation based "
355 "on traditional scriptlet arguments.\\& The argument containing number of "
356 "installed package instances is B<arg[2]> and the similar argument for "
357 "trigger targets is B<arg[3]>, vs the traditional B<$1> and B<$2> in shell "
358 "scripts.\\&"
359 msgstr ""
360
361 #. type: Plain text
362 #: archlinux debian-unstable fedora-44 fedora-rawhide
363 #, no-wrap
364 msgid ""
365 "%postun -p E<lt>luaE<gt>\n"
366 "if arg[2] == 0 then\n"
367 " print(\"erasing\")\n"
368 "end\n"
369 msgstr ""
370
371 #. type: SS
372 #: archlinux debian-unstable fedora-44 fedora-rawhide
373 #, no-wrap
374 msgid "Relocatable packages"
375 msgstr ""
376
377 #. type: Plain text
378 #: archlinux debian-unstable fedora-44 fedora-rawhide
379 msgid ""
380 "Scriptlets of relocatable packages additionally carry a global "
381 "B<RPM_INSTALL_PREFIX> table containing all the possible prefixes of the "
382 "package.\\&"
383 msgstr ""
384
385 #. type: Plain text
386 #: archlinux debian-unstable fedora-44 fedora-rawhide
387 msgid "Added: 4.\\&18.\\&0"
388 msgstr ""
389
390 #. type: SS
391 #: archlinux debian-unstable fedora-44 fedora-rawhide
392 #, no-wrap
393 msgid "Exit status"
394 msgstr ""
395
396 #. type: Plain text
397 #: archlinux debian-unstable fedora-44 fedora-rawhide
398 msgid ""
399 "While scriptlets shouldn'\\&t be allowed to fail normally, you can signal "
400 "scriptlet failure status by using Lua'\\&s B<error(>I<msg>, [I<level>]B<)> "
401 "function if you need to.\\&"
402 msgstr ""
403
404 #. type: SH
405 #: archlinux debian-unstable fedora-44 fedora-rawhide
406 #, no-wrap
407 msgid "SPEC FILES"
408 msgstr ""
409
410 #. type: Plain text
411 #: archlinux debian-unstable fedora-44 fedora-rawhide
412 msgid ""
413 "In the context of a B<rpm-spec>(5) file parse with B<rpmbuild>(1) or "
414 "B<rpmspec>(1), the RPM Lua environment contains the following spec specific "
415 "global tables:"
416 msgstr ""
417
418 #. type: Plain text
419 #: archlinux debian-unstable fedora-44 fedora-rawhide
420 msgid "B<patches>"
421 msgstr ""
422
423 #. type: Plain text
424 #: archlinux debian-unstable fedora-44 fedora-rawhide
425 msgid ""
426 "The filenames of the patches in the spec, in the order they appeared in the "
427 "spec.\\&"
428 msgstr ""
429
430 #. type: Plain text
431 #: archlinux debian-unstable fedora-44 fedora-rawhide
432 msgid "B<patch_nums>"
433 msgstr ""
434
435 #. type: Plain text
436 #: archlinux debian-unstable fedora-44 fedora-rawhide
437 msgid ""
438 "The numbers of the patches in the spec, in the order they appeared in the "
439 "spec.\\&"
440 msgstr ""
441
442 #. type: Plain text
443 #: archlinux debian-unstable fedora-44 fedora-rawhide
444 msgid "B<sources>"
445 msgstr ""
446
447 #. type: Plain text
448 #: archlinux debian-unstable fedora-44 fedora-rawhide
449 msgid ""
450 "The filenames of the sources in the spec, in the order they appeared in the "
451 "spec.\\&"
452 msgstr ""
453
454 #. type: Plain text
455 #: archlinux debian-unstable fedora-44 fedora-rawhide
456 msgid "B<source_nums>"
457 msgstr ""
458
459 #. type: Plain text
460 #: archlinux debian-unstable fedora-44 fedora-rawhide
461 msgid ""
462 "The numbers of the sources in the spec, in the order they appeared in the "
463 "spec.\\&"
464 msgstr ""
465
466 #. type: Plain text
467 #: archlinux debian-unstable fedora-44 fedora-rawhide
468 #, no-wrap
469 msgid ""
470 "for i, p in ipairs(patches) do\n"
471 " print(string\\&.format(\"echo %d: %sn\", patch_nums[i], patches[i]))\n"
472 "end\n"
473 msgstr ""
474
475 #. type: SH
476 #: archlinux debian-unstable fedora-44 fedora-rawhide
477 #, no-wrap
478 msgid "EXTENSIONS"
479 msgstr ""
480
481 #. type: Plain text
482 #: archlinux debian-unstable fedora-44 fedora-rawhide
483 msgid ""
484 "In addition to Lua standard libraries (subject to the Lua version RPM is "
485 "linked to), the following extensions are available in the RPM internal Lua "
486 "interpreter.\\& These can be used in all contexts where the internal Lua can "
487 "be used.\\&"
488 msgstr ""
489
490 #. type: SS
491 #: archlinux debian-unstable fedora-44 fedora-rawhide
492 #, no-wrap
493 msgid "rpm extension"
494 msgstr ""
495
496 #. type: Plain text
497 #: archlinux debian-unstable fedora-44 fedora-rawhide
498 msgid "The following RPM specific functions are available:"
499 msgstr ""
500
501 #. type: Plain text
502 #: archlinux debian-unstable fedora-44 fedora-rawhide
503 msgid "B<b64decode(>I<arg>B<)>"
504 msgstr ""
505
506 #. type: Plain text
507 #: archlinux debian-unstable fedora-44 fedora-rawhide
508 msgid "Perform base64 decoding on argument.\\& See also b64encode().\\&"
509 msgstr ""
510
511 #. type: Plain text
512 #: archlinux debian-unstable fedora-44 fedora-rawhide
513 #, no-wrap
514 msgid ""
515 "blob = \\&'binary data\\&'\n"
516 "print(blob)\n"
517 "e = rpm\\&.b64encode(blob)\n"
518 "print(e)\n"
519 "d = rpm\\&.b64decode(e)\n"
520 "print(d)\n"
521 msgstr ""
522
523 #. type: Plain text
524 #: archlinux debian-unstable fedora-44 fedora-rawhide
525 msgid "B<b64encode(>I<arg> [, I<linelen>]B<)>"
526 msgstr ""
527
528 #. type: Plain text
529 #: archlinux debian-unstable fedora-44 fedora-rawhide
530 msgid ""
531 "Perform base64 encoding on argument.\\& Line length may be optionally "
532 "specified via second argument.\\& See also b64decode().\\&"
533 msgstr ""
534
535 #. type: Plain text
536 #: archlinux debian-unstable fedora-44 fedora-rawhide
537 msgid "B<define(\">I<name> I<body>B<\")>"
538 msgstr ""
539
540 #. type: Plain text
541 #: archlinux debian-unstable fedora-44 fedora-rawhide
542 msgid "Define a global macro I<name> with I<body>.\\& See also B<MACROS>.\\&"
543 msgstr ""
544
545 #. type: Plain text
546 #: archlinux debian-unstable fedora-44 fedora-rawhide
547 #, no-wrap
548 msgid "rpm\\&.define(\\&'foo 1\\&')\n"
549 msgstr ""
550
551 #. type: Plain text
552 #: archlinux debian-unstable fedora-44 fedora-rawhide
553 msgid "B<execute(>I<path> [, I<arg1> [,.\\&.\\&.\\&]B<)>"
554 msgstr ""
555
556 #. type: Plain text
557 #: archlinux debian-unstable fedora-44 fedora-rawhide
558 msgid ""
559 "Execute an external command.\\& This is handy for executing external helper "
560 "commands without depending on the shell.\\& I<path> is the command to "
561 "execute, followed by optional number of arguments to pass to the command.\\&"
562 msgstr ""
563
564 #. type: Plain text
565 #: archlinux debian-unstable fedora-44 fedora-rawhide
566 msgid ""
567 "For a better control over the process execution and output, see rpm."
568 "\\&spawn().\\&"
569 msgstr ""
570
571 #. type: Plain text
572 #: archlinux debian-unstable fedora-44 fedora-rawhide
573 msgid "Added: 4.\\&15.\\&0"
574 msgstr ""
575
576 #. type: Plain text
577 #: archlinux debian-unstable fedora-44 fedora-rawhide
578 #, no-wrap
579 msgid "rpm\\&.execute(\\&'ls\\&', \\&'-l\\&', \\&'/\\&')\n"
580 msgstr ""
581
582 #. type: Plain text
583 #: archlinux debian-unstable fedora-44 fedora-rawhide
584 msgid "B<expand(>I<arg>B<)>"
585 msgstr ""
586
587 #. type: Plain text
588 #: archlinux debian-unstable fedora-44 fedora-rawhide
589 msgid "Perform RPM macro expansion on I<arg> string.\\& See also B<MACROS>.\\&"
590 msgstr ""
591
592 #. type: Plain text
593 #: archlinux debian-unstable fedora-44 fedora-rawhide
594 #, no-wrap
595 msgid "rpm\\&.expand(\\&'%{_libdir}/mydir\\&')\n"
596 msgstr ""
597
598 #. type: Plain text
599 #: archlinux debian-unstable fedora-44 fedora-rawhide
600 msgid "B<glob(>I<pattern>, [I<flags>]B<)>"
601 msgstr ""
602
603 #. type: Plain text
604 #: archlinux debian-unstable fedora-44 fedora-rawhide
605 msgid ""
606 "Return a table of pathnames matching I<pattern>.\\& If I<flags> contains "
607 "B<c>, return I<pattern> in case of no matches.\\&"
608 msgstr ""
609
610 #. type: Plain text
611 #: archlinux debian-unstable fedora-44 fedora-rawhide
612 #, no-wrap
613 msgid ""
614 "for i, p in ipairs(rpm\\&.glob(\\&'*\\&')) do\n"
615 " print(p)\n"
616 "end\n"
617 msgstr ""
618
619 #. type: Plain text
620 #: archlinux debian-unstable fedora-44 fedora-rawhide
621 msgid "B<interactive()>"
622 msgstr ""
623
624 #. type: Plain text
625 #: archlinux debian-unstable fedora-44 fedora-rawhide
626 msgid ""
627 "Launch interactive session for testing and debugging.\\& Use B<rpmlua>(1) "
628 "instead.\\&"
629 msgstr ""
630
631 #. type: Plain text
632 #: archlinux debian-unstable fedora-44 fedora-rawhide
633 #, no-wrap
634 msgid "rpm --eval \"%{lua: rpm\\&.interactive()}\"\n"
635 msgstr ""
636
637 #. type: Plain text
638 #: archlinux debian-unstable fedora-44 fedora-rawhide
639 msgid "B<isdefined(>I<name>B<)>"
640 msgstr ""
641
642 #. type: Plain text
643 #: archlinux debian-unstable fedora-44 fedora-rawhide
644 msgid ""
645 "Test whether a macro I<name> is defined and whether it'\\&s parametric, "
646 "returned in two booleans.\\& See also B<MACROS>.\\& (Added: 4.\\&17.\\&0)"
647 msgstr ""
648
649 #. type: Plain text
650 #: archlinux debian-unstable fedora-44 fedora-rawhide
651 #, no-wrap
652 msgid ""
653 "if rpm\\&.isdefined(\\&'_libdir\\&') then\n"
654 " \\&.\\&.\\&.\n"
655 "end\n"
656 msgstr ""
657
658 #. type: Plain text
659 #: archlinux debian-unstable fedora-44 fedora-rawhide
660 msgid "B<load(>I<path>B<)>"
661 msgstr ""
662
663 #. type: Plain text
664 #: archlinux debian-unstable fedora-44 fedora-rawhide
665 msgid ""
666 "Load a macro file from given path.\\& Same as the built-in B<%{load:.\\&.\\&."
667 "\\&}> macro.\\&"
668 msgstr ""
669
670 #. type: Plain text
671 #: archlinux debian-unstable fedora-44 fedora-rawhide
672 #, no-wrap
673 msgid "rpm\\&.load(\\&'my\\&.macros\\&')\n"
674 msgstr ""
675
676 #. type: Plain text
677 #: archlinux debian-unstable fedora-44 fedora-rawhide
678 msgid "B<open(>I<path>, [I<mode>[.\\&I<flags>]]B<)>"
679 msgstr ""
680
681 #. type: Plain text
682 #: archlinux debian-unstable fedora-44 fedora-rawhide
683 msgid ""
684 "Open a file stream using RPM IO facilities, with support for transparent "
685 "compression and decompression.\\&"
686 msgstr ""
687
688 #. type: Plain text
689 #: archlinux debian-unstable fedora-44 fedora-rawhide
690 msgid ""
691 "I<path> is filename string, optionally followed with I<mode> string to "
692 "specify open behavior:"
693 msgstr ""
694
695 #. type: Plain text
696 #: archlinux debian-unstable fedora-44 fedora-rawhide
697 msgid "B<a>: open for append"
698 msgstr ""
699
700 #. type: Plain text
701 #: archlinux debian-unstable fedora-44 fedora-rawhide
702 msgid "B<w>: open for writing, truncate"
703 msgstr ""
704
705 #. type: Plain text
706 #: archlinux debian-unstable fedora-44 fedora-rawhide
707 msgid "B<r>: open for reading (default)"
708 msgstr ""
709
710 #. type: Plain text
711 #: archlinux debian-unstable fedora-44 fedora-rawhide
712 msgid "B<+>: open for reading and writing"
713 msgstr ""
714
715 #. type: Plain text
716 #: archlinux debian-unstable fedora-44 fedora-rawhide
717 msgid "B<x>: fail if file exists"
718 msgstr ""
719
720 #. type: Plain text
721 #: archlinux debian-unstable fedora-44 fedora-rawhide
722 msgid ""
723 "and optionally followed by B<rpm-payloadflags>(7) for compression and "
724 "decompression.\\&"
725 msgstr ""
726
727 #. type: Plain text
728 #: archlinux debian-unstable fedora-44 fedora-rawhide
729 msgid "Added: 4.\\&17.\\&0"
730 msgstr ""
731
732 #. type: Plain text
733 #: archlinux debian-unstable fedora-44 fedora-rawhide
734 #, no-wrap
735 msgid ""
736 "f = rpm\\&.open(\\&'some\\&.txt\\&.gz\\&', \\&'r\\&.gzdio\\&')\n"
737 "print(f:read())\n"
738 msgstr ""
739
740 #. type: Plain text
741 #: archlinux debian-unstable fedora-44 fedora-rawhide
742 msgid "The returned rpm.\\&fd object has the following methods:"
743 msgstr ""
744
745 #. type: Plain text
746 #: archlinux debian-unstable fedora-44 fedora-rawhide
747 msgid "B<fd:close()>"
748 msgstr ""
749
750 #. type: Plain text
751 #: archlinux debian-unstable fedora-44 fedora-rawhide
752 msgid "Close the file stream.\\&"
753 msgstr ""
754
755 #. type: Plain text
756 #: archlinux debian-unstable fedora-44 fedora-rawhide
757 #, no-wrap
758 msgid ""
759 "f = rpm\\&.open(\\&'file\\&')\n"
760 "f:close()\n"
761 msgstr ""
762
763 #. type: Plain text
764 #: archlinux debian-unstable fedora-44 fedora-rawhide
765 msgid "B<fd:flush()>"
766 msgstr ""
767
768 #. type: Plain text
769 #: archlinux debian-unstable fedora-44 fedora-rawhide
770 msgid "Flush the file stream.\\&"
771 msgstr ""
772
773 #. type: Plain text
774 #: archlinux debian-unstable fedora-44 fedora-rawhide
775 #, no-wrap
776 msgid ""
777 "f = rpm\\&.open(\\&'file\\&', \\&'w\\&')\n"
778 "f:write(\\&'foo\\&')\n"
779 "f:flush()\n"
780 "f:close()\n"
781 msgstr ""
782
783 #. type: Plain text
784 #: archlinux debian-unstable fedora-44 fedora-rawhide
785 msgid "B<fd:read(>[I<len>]B<)>"
786 msgstr ""
787
788 #. type: Plain text
789 #: archlinux debian-unstable fedora-44 fedora-rawhide
790 msgid ""
791 "Read data from the file stream up to I<len> bytes or if not specified, the "
792 "entire file.\\&"
793 msgstr ""
794
795 #. type: Plain text
796 #: archlinux debian-unstable fedora-44 fedora-rawhide
797 #, no-wrap
798 msgid ""
799 "f = rpm\\&.open(\\&'/some/file\\&')\n"
800 "print(f:read())\n"
801 msgstr ""
802
803 #. type: Plain text
804 #: archlinux debian-unstable fedora-44 fedora-rawhide
805 msgid "B<fd:seek(>I<mode>, I<offset>B<)>"
806 msgstr ""
807
808 #. type: Plain text
809 #: archlinux debian-unstable fedora-44 fedora-rawhide
810 msgid ""
811 "Reposition the file offset of the stream.\\& I<mode> is one of B<set>, "
812 "B<cur> and B<end>, and offset is relative to the mode: absolute, relative to "
813 "current or relative to end.\\& Not all streams support seeking.\\&"
814 msgstr ""
815
816 #. type: Plain text
817 #: archlinux debian-unstable fedora-44 fedora-rawhide
818 msgid "Returns file offset after the operation.\\&"
819 msgstr ""
820
821 #. type: Plain text
822 #: archlinux debian-unstable fedora-44 fedora-rawhide
823 msgid "See also B<lseek>(3).\\&"
824 msgstr ""
825
826 #. type: Plain text
827 #: archlinux debian-unstable fedora-44 fedora-rawhide
828 #, no-wrap
829 msgid ""
830 "f = rpm\\&.open(\\&'newfile\\&', \\&'w\\&')\n"
831 "f:seek(\\&'set\\&', 555)\n"
832 "f:close()\n"
833 msgstr ""
834
835 #. type: Plain text
836 #: archlinux debian-unstable fedora-44 fedora-rawhide
837 msgid "B<fd:write(>I<buf> [, I<len>]B<)>"
838 msgstr ""
839
840 #. type: Plain text
841 #: archlinux debian-unstable fedora-44 fedora-rawhide
842 msgid ""
843 "Write data in I<buf> to the file stream, either in its entirety or up to "
844 "I<len> bytes if specified.\\&"
845 msgstr ""
846
847 #. type: Plain text
848 #: archlinux debian-unstable fedora-44 fedora-rawhide
849 #, no-wrap
850 msgid ""
851 "f = rpm\\&.open(\\&'newfile\\&', \\&'w\\&')\n"
852 "f:write(\\&'data data\\&')\n"
853 "f:close()\n"
854 msgstr ""
855
856 #. type: Plain text
857 #: archlinux debian-unstable fedora-44 fedora-rawhide
858 msgid "B<fd:reopen(>I<mode>B<)>"
859 msgstr ""
860
861 #. type: Plain text
862 #: archlinux debian-unstable fedora-44 fedora-rawhide
863 msgid "Reopen a stream with a new mode (see B<rpm.\\&open()>).\\&"
864 msgstr ""
865
866 #. type: Plain text
867 #: archlinux debian-unstable fedora-44 fedora-rawhide
868 #, no-wrap
869 msgid ""
870 "rpm\\&.open(\\&'some\\&.txt\\&.gz\\&')\n"
871 "f = f:reopen(\\&'r\\&.gzdio\\&')\n"
872 "print(f:read())}\n"
873 msgstr ""
874
875 #. type: Plain text
876 #: archlinux debian-unstable fedora-44 fedora-rawhide
877 msgid "B<redirect2null(>I<fdno>B<)> (OBSOLETE)"
878 msgstr ""
879
880 #. type: Plain text
881 #: archlinux debian-unstable fedora-44 fedora-rawhide
882 msgid ""
883 "Redirect file descriptor fdno to /dev/null (prior to 4.\\&16 this was known "
884 "as posix.\\&redirect2null())"
885 msgstr ""
886
887 #. type: Plain text
888 #: archlinux debian-unstable fedora-44 fedora-rawhide
889 msgid ""
890 "This function is obsolete and only available for RPM v4 packages for "
891 "backwards compatibility.\\& Use `rpm.\\&spawn()` or `rpm.\\&execute()` "
892 "instead.\\&"
893 msgstr ""
894
895 #. type: Plain text
896 #: archlinux debian-unstable fedora-44 fedora-rawhide
897 #, no-wrap
898 msgid ""
899 "pid = posix\\&.fork()\n"
900 "if pid == 0 then\n"
901 " posix\\&.redirect2null(2)\n"
902 " assert(posix\\&.exec(\\&'/bin/awk\\&'))\n"
903 "elseif pid E<gt> 0 then\n"
904 " posix\\&.wait(pid)\n"
905 "end\n"
906 msgstr ""
907
908 #. type: Plain text
909 #: archlinux debian-unstable fedora-44 fedora-rawhide
910 msgid "B<spawn(>{I<command>} [, {I<actions>}]B<)>"
911 msgstr ""
912
913 #. type: Plain text
914 #: archlinux debian-unstable fedora-44 fedora-rawhide
915 msgid "Spawn, aka execute, an external program.\\&"
916 msgstr ""
917
918 #. type: Plain text
919 #: archlinux debian-unstable fedora-44 fedora-rawhide
920 msgid ""
921 "{I<command>} is a table consisting of the command and its arguments.\\& An "
922 "optional second table can be used to pass various actions related to the "
923 "command execution, currently supported are:"
924 msgstr ""
925
926 #. type: Plain text
927 #: archlinux debian-unstable fedora-44 fedora-rawhide
928 #, no-wrap
929 msgid ""
930 "| Action | Argument(s) | Description\n"
931 "|---------|----------------------\n"
932 "| *stdin* | path | Redirect standard input to path\n"
933 "| *stdout*| path | Redirect standard output to path\n"
934 "| *stderr*| path | Redirect standard error to path\n"
935 msgstr ""
936
937 #. type: Plain text
938 #: archlinux debian-unstable fedora-44 fedora-rawhide
939 msgid ""
940 "Returns the command exit status: zero on success, or a tuplet of (B<nil>, "
941 "message, code) on failure.\\&"
942 msgstr ""
943
944 #. type: Plain text
945 #: archlinux debian-unstable fedora-44 fedora-rawhide
946 msgid "Added: 4.\\&20"
947 msgstr ""
948
949 #. type: Plain text
950 #: archlinux debian-unstable fedora-44 fedora-rawhide
951 #, no-wrap
952 msgid "rpm\\&.spawn({\\&'systemctl\\&', \\&'restart\\&', \\&'httpd\\&'}, {stderr=\\&'/dev/null\\&'})\n"
953 msgstr ""
954
955 #. type: Plain text
956 #: archlinux debian-unstable fedora-44 fedora-rawhide
957 msgid "B<undefine(>I<name>B<)>"
958 msgstr ""
959
960 #. type: Plain text
961 #: archlinux debian-unstable fedora-44 fedora-rawhide
962 msgid "Undefine a macro.\\& See also B<MACROS>.\\&"
963 msgstr ""
964
965 #. type: Plain text
966 #: archlinux debian-unstable fedora-44 fedora-rawhide
967 msgid ""
968 "Note that this is only pops the most recent macro definition by the given "
969 "name from stack, ie there may be still macro definitions by the same name "
970 "after an undefine operation.\\&"
971 msgstr ""
972
973 #. type: Plain text
974 #: archlinux debian-unstable fedora-44 fedora-rawhide
975 #, no-wrap
976 msgid "rpm\\&.undefine(\\&'zzz\\&')\n"
977 msgstr ""
978
979 #. type: Plain text
980 #: archlinux debian-unstable fedora-44 fedora-rawhide
981 msgid "B<vercmp(>I<v1>, I<v2>B<)>"
982 msgstr ""
983
984 #. type: Plain text
985 #: archlinux debian-unstable fedora-44 fedora-rawhide
986 msgid ""
987 "Perform RPM version comparison on argument strings.\\& Returns -1, 0 or 1 if "
988 "I<v1> is smaller, equal or larger than I<v2>.\\& See B<rpm-version>(7).\\&"
989 msgstr ""
990
991 #. type: Plain text
992 #: archlinux debian-unstable fedora-44 fedora-rawhide
993 msgid ""
994 "Note: in RPM E<lt> 4.\\&16 this operated on version segments only, which "
995 "does not produce correct results on full I<EVR> strings.\\&"
996 msgstr ""
997
998 #. type: Plain text
999 #: archlinux debian-unstable fedora-44 fedora-rawhide
1000 #, no-wrap
1001 msgid "rpm\\&.vercmp(\\&'1\\&.2-1\\&', \\&'2\\&.0-1\\&')\n"
1002 msgstr ""
1003
1004 #. type: Plain text
1005 #: archlinux debian-unstable fedora-44 fedora-rawhide
1006 msgid "B<ver(>I<evr>B<)>, B<ver(>I<e>, I<v>, I<r>B<)>"
1007 msgstr ""
1008
1009 #. type: Plain text
1010 #: archlinux debian-unstable fedora-44 fedora-rawhide
1011 msgid ""
1012 "Create RPM version object.\\& This takes either an I<evr> string which is "
1013 "parsed to it'\\&s components, or epoch, version and release in separate "
1014 "arguments (which can be either strings or numbers).\\& The object has three "
1015 "attributes: B<e> for epoch, B<v> for version and B<r> for release, can be "
1016 "printed in it'\\&s EVR form and supports native comparison in Lua.\\&"
1017 msgstr ""
1018
1019 #. type: Plain text
1020 #: archlinux debian-unstable fedora-44 fedora-rawhide
1021 #, no-wrap
1022 msgid ""
1023 "v1 = rpm\\&.ver(\\&'5:1\\&.0-2)\n"
1024 "v2 = rpm\\&.ver(3, \\&'5a\\&', 1)\n"
1025 "if v1 E<lt> v2 then\n"
1026 " \\&.\\&.\\&.\n"
1027 "end\n"
1028 msgstr ""
1029
1030 #. type: Plain text
1031 #: archlinux debian-unstable fedora-44 fedora-rawhide
1032 #, no-wrap
1033 msgid ""
1034 "if v1\\&.e then\n"
1035 " \\&.\\&.\\&.\n"
1036 "end\n"
1037 msgstr ""
1038
1039 #. type: SS
1040 #: archlinux debian-unstable fedora-44 fedora-rawhide
1041 #, no-wrap
1042 msgid "posix extension"
1043 msgstr ""
1044
1045 #. type: Plain text
1046 #: archlinux debian-unstable fedora-44 fedora-rawhide
1047 msgid ""
1048 "Lua standard library offers fairly limited set of io operations.\\& The "
1049 "B<posix> extension greatly enhances what can be done from Lua.\\&"
1050 msgstr ""
1051
1052 #. type: Plain text
1053 #: archlinux debian-unstable fedora-44 fedora-rawhide
1054 msgid ""
1055 "The following functions are available in the B<posix> namespace, ie to call "
1056 "them use B<posix.\\&function()>.\\& This documentation concentrates on the "
1057 "Lua API conventions, for further information on the corresponding system "
1058 "calls refer to the system manual, eg B<access>(3) for B<posix.\\&access()>."
1059 "\\&"
1060 msgstr ""
1061
1062 #. type: Plain text
1063 #: archlinux debian-unstable fedora-44 fedora-rawhide
1064 msgid "B<access(>I<path> [, I<mode>]B<)>"
1065 msgstr ""
1066
1067 #. type: Plain text
1068 #: archlinux debian-unstable fedora-44 fedora-rawhide
1069 msgid ""
1070 "Test accessibility of file/directory I<path>.\\& See B<access>(3).\\& If "
1071 "I<mode> is omitted then existence is tested, otherwise it is a combination "
1072 "of the following tests:"
1073 msgstr ""
1074
1075 #. type: Plain text
1076 #: archlinux debian-unstable fedora-44 fedora-rawhide
1077 msgid "B<r>: readable"
1078 msgstr ""
1079
1080 #. type: Plain text
1081 #: archlinux debian-unstable fedora-44 fedora-rawhide
1082 msgid "B<w>: writable"
1083 msgstr ""
1084
1085 #. type: Plain text
1086 #: archlinux debian-unstable fedora-44 fedora-rawhide
1087 msgid "B<x>: executable"
1088 msgstr ""
1089
1090 #. type: Plain text
1091 #: archlinux debian-unstable fedora-44 fedora-rawhide
1092 msgid "B<f>: exists"
1093 msgstr ""
1094
1095 #. type: Plain text
1096 #: archlinux debian-unstable fedora-44 fedora-rawhide
1097 #, no-wrap
1098 msgid ""
1099 "if posix\\&.access(\\&'/bin/rpm\\&', \\&'x\\&') then\n"
1100 " \\&.\\&.\\&.\n"
1101 "end\n"
1102 msgstr ""
1103
1104 #. type: Plain text
1105 #: archlinux debian-unstable fedora-44 fedora-rawhide
1106 msgid "B<chdir(>I<path>B<)>"
1107 msgstr ""
1108
1109 #. type: Plain text
1110 #: archlinux debian-unstable fedora-44 fedora-rawhide
1111 msgid "Change current working directory to I<path>.\\& See B<chdir>(1).\\&"
1112 msgstr ""
1113
1114 #. type: Plain text
1115 #: archlinux debian-unstable fedora-44 fedora-rawhide
1116 #, no-wrap
1117 msgid "posix\\&.chdir(\\&'/tmp\\&')\n"
1118 msgstr ""
1119
1120 #. type: Plain text
1121 #: archlinux debian-unstable fedora-44 fedora-rawhide
1122 msgid "B<chmod(>I<path>, I<mode>B<)>"
1123 msgstr ""
1124
1125 #. type: Plain text
1126 #: archlinux debian-unstable fedora-44 fedora-rawhide
1127 msgid ""
1128 "Change file/directory mode.\\& Mode can be either an octal number as for "
1129 "B<chmod>(2) system call, or a string presentation similar to B<chmod>(1).\\&"
1130 msgstr ""
1131
1132 #. type: Plain text
1133 #: archlinux debian-unstable fedora-44 fedora-rawhide
1134 #, no-wrap
1135 msgid ""
1136 "posix\\&.chmod(\\&'aa\\&', 600)\n"
1137 "posix\\&.chmod(\\&'bb\\&', \\&'rw-\\&')\n"
1138 "posix\\&.chmod(\\&'cc\\&', \\&'u+x\\&')\n"
1139 msgstr ""
1140
1141 #. type: Plain text
1142 #: archlinux debian-unstable fedora-44 fedora-rawhide
1143 msgid "B<chown(>I<path>, I<user>, I<group>B<)>"
1144 msgstr ""
1145
1146 #. type: Plain text
1147 #: archlinux debian-unstable fedora-44 fedora-rawhide
1148 msgid ""
1149 "Change file/directory owner/group of I<path>.\\& The I<user> and I<group> "
1150 "arguments may be either numeric id values or user/groupnames.\\& See "
1151 "B<chown>(2) and B<chown>(1).\\&"
1152 msgstr ""
1153
1154 #. type: Plain text
1155 #: archlinux debian-unstable fedora-44 fedora-rawhide
1156 msgid "Note: This is a privileged operation.\\&"
1157 msgstr ""
1158
1159 #. type: Plain text
1160 #: archlinux debian-unstable fedora-44 fedora-rawhide
1161 #, no-wrap
1162 msgid ""
1163 "posix\\&.chown(\\&'aa\\&', 0, 0)\n"
1164 "posix\\&.chown(\\&'bb\\&', \\&'nobody\\&', \\&'nobody\\&')\n"
1165 msgstr ""
1166
1167 #. type: Plain text
1168 #: archlinux debian-unstable fedora-44 fedora-rawhide
1169 msgid "B<ctermid()>"
1170 msgstr ""
1171
1172 #. type: Plain text
1173 #: archlinux debian-unstable fedora-44 fedora-rawhide
1174 msgid "Get controlling terminal name.\\& See B<ctermid>(3).\\&"
1175 msgstr ""
1176
1177 #. type: Plain text
1178 #: archlinux debian-unstable fedora-44 fedora-rawhide
1179 #, no-wrap
1180 msgid "print(posix\\&.ctermid())\n"
1181 msgstr ""
1182
1183 #. type: Plain text
1184 #: archlinux debian-unstable fedora-44 fedora-rawhide
1185 msgid "B<dir(>[I<path>]B<)>"
1186 msgstr ""
1187
1188 #. type: Plain text
1189 #: archlinux debian-unstable fedora-44 fedora-rawhide
1190 msgid ""
1191 "Get directory contents - like B<readdir>(3).\\& If I<path> is omitted, "
1192 "current directory is used.\\&"
1193 msgstr ""
1194
1195 #. type: Plain text
1196 #: archlinux debian-unstable fedora-44 fedora-rawhide
1197 #, no-wrap
1198 msgid ""
1199 "for i,p in pairs(posix\\&.dir(\\&'/\\&')) do\n"
1200 " print(p\\&.\\&.\\&'n\\&')\n"
1201 "end\n"
1202 msgstr ""
1203
1204 #. type: Plain text
1205 #: archlinux debian-unstable fedora-44 fedora-rawhide
1206 msgid "B<errno()>"
1207 msgstr ""
1208
1209 #. type: Plain text
1210 #: archlinux debian-unstable fedora-44 fedora-rawhide
1211 msgid ""
1212 "Get B<strerror>(3) message and the corresponding number for current "
1213 "B<errno>(3).\\&"
1214 msgstr ""
1215
1216 #. type: Plain text
1217 #: archlinux debian-unstable fedora-44 fedora-rawhide
1218 #, no-wrap
1219 msgid ""
1220 "f = \\&'/zzz\\&'\n"
1221 "if not posix\\&.chmod(f, 100) then\n"
1222 " s, n = posix\\&.errno()\n"
1223 " print(f, s)\n"
1224 "end\n"
1225 msgstr ""
1226
1227 #. type: Plain text
1228 #: archlinux debian-unstable fedora-44 fedora-rawhide
1229 msgid "B<exec(>I<path> [, I<args>.\\&.\\&.\\&]B<)> (OBSOLETE)"
1230 msgstr ""
1231
1232 #. type: Plain text
1233 #: archlinux debian-unstable fedora-44 fedora-rawhide
1234 msgid ""
1235 "Execute a program.\\& This may only be performed after posix.\\&fork().\\&"
1236 msgstr ""
1237
1238 #. type: Plain text
1239 #: archlinux debian-unstable fedora-44 fedora-rawhide
1240 msgid ""
1241 "This function is obsolete and only available for RPM v4 packages for "
1242 "backwards compatibility.\\& Use B<rpm.\\&spawn()> or B<rpm.\\&execute()> "
1243 "instead.\\&"
1244 msgstr ""
1245
1246 #. type: Plain text
1247 #: archlinux debian-unstable fedora-44 fedora-rawhide
1248 msgid "B<files(>[I<path>]B<)>"
1249 msgstr ""
1250
1251 #. type: Plain text
1252 #: archlinux debian-unstable fedora-44 fedora-rawhide
1253 msgid ""
1254 "Iterate over directory contents.\\& If path is omitted, current directory is "
1255 "used.\\&"
1256 msgstr ""
1257
1258 #. type: Plain text
1259 #: archlinux debian-unstable fedora-44 fedora-rawhide
1260 #, no-wrap
1261 msgid ""
1262 "for f in posix\\&.files(\\&'/\\&') do\n"
1263 " print(f\\&.\\&.\\&'n\\&')\n"
1264 "end\n"
1265 msgstr ""
1266
1267 #. type: Plain text
1268 #: archlinux debian-unstable fedora-44 fedora-rawhide
1269 msgid "B<fork()> (OBSOLETE)"
1270 msgstr ""
1271
1272 #. type: Plain text
1273 #: archlinux debian-unstable fedora-44 fedora-rawhide
1274 msgid "Fork a new process.\\& See B<fork>(2).\\&"
1275 msgstr ""
1276
1277 #. type: Plain text
1278 #: archlinux debian-unstable fedora-44 fedora-rawhide
1279 #, no-wrap
1280 msgid ""
1281 "pid = posix\\&.fork()\n"
1282 "if pid == 0 then\n"
1283 " posix\\&.exec(\\&'/foo/bar\\&')\n"
1284 "elseif pid E<gt> 0 then\n"
1285 " posix\\&.wait(pid)\n"
1286 "end\n"
1287 msgstr ""
1288
1289 #. type: Plain text
1290 #: archlinux debian-unstable fedora-44 fedora-rawhide
1291 msgid "B<getcwd()>"
1292 msgstr ""
1293
1294 #. type: Plain text
1295 #: archlinux debian-unstable fedora-44 fedora-rawhide
1296 msgid "Get current directory.\\& See B<getcwd>(3).\\&"
1297 msgstr ""
1298
1299 #. type: Plain text
1300 #: archlinux debian-unstable fedora-44 fedora-rawhide
1301 #, no-wrap
1302 msgid ""
1303 "if posix\\&.getcwd() ~= \\&'/\\&' then\n"
1304 " \\&.\\&.\\&.\n"
1305 "endif\n"
1306 msgstr ""
1307
1308 #. type: Plain text
1309 #: archlinux debian-unstable fedora-44 fedora-rawhide
1310 msgid "B<getenv(>I<name>B<)>"
1311 msgstr ""
1312
1313 #. type: Plain text
1314 #: archlinux debian-unstable fedora-44 fedora-rawhide
1315 msgid "Get an environment variable.\\& See B<getenv>(3).\\&"
1316 msgstr ""
1317
1318 #. type: Plain text
1319 #: archlinux debian-unstable fedora-44 fedora-rawhide
1320 #, no-wrap
1321 msgid ""
1322 "if posix\\&.getenv(\\&'HOME\\&') ~= posix\\&.getcwd() then\n"
1323 " print(\\&'not at home\\&')\n"
1324 "end\n"
1325 msgstr ""
1326
1327 #. type: Plain text
1328 #: archlinux debian-unstable fedora-44 fedora-rawhide
1329 msgid "B<getgroup(>I<group>B<)>"
1330 msgstr ""
1331
1332 #. type: Plain text
1333 #: archlinux debian-unstable fedora-44 fedora-rawhide
1334 msgid ""
1335 "Get B<group>(5) information for a group.\\& I<group> may be either a numeric "
1336 "id or group name.\\& If omitted, current group is used.\\& Returns a table "
1337 "with fields B<name> and B<gid> set to group name and id respectively, and "
1338 "indexes from 1 onwards specifying group members.\\&"
1339 msgstr ""
1340
1341 #. type: Plain text
1342 #: archlinux debian-unstable fedora-44 fedora-rawhide
1343 #, no-wrap
1344 msgid "print(posix\\&.getgroup(\\&'wheel\\&')\\&.gid)\n"
1345 msgstr ""
1346
1347 #. type: Plain text
1348 #: archlinux debian-unstable fedora-44 fedora-rawhide
1349 msgid "B<getlogin()>"
1350 msgstr ""
1351
1352 #. type: Plain text
1353 #: archlinux debian-unstable fedora-44 fedora-rawhide
1354 msgid "Get login name.\\& See B<getlogin>(3).\\&"
1355 msgstr ""
1356
1357 #. type: Plain text
1358 #: archlinux debian-unstable fedora-44 fedora-rawhide
1359 #, no-wrap
1360 msgid "n = posix\\&.getlogin()\n"
1361 msgstr ""
1362
1363 #. type: Plain text
1364 #: archlinux debian-unstable fedora-44 fedora-rawhide
1365 msgid "B<getpasswd>([I<user> [, I<selector>]]B<)>"
1366 msgstr ""
1367
1368 #. type: Plain text
1369 #: archlinux debian-unstable fedora-44 fedora-rawhide
1370 msgid ""
1371 "Get B<passwd>(5) information for a user account.\\& I<user> may be either a "
1372 "numeric id or username.\\& If omitted, current user is used.\\& The optional "
1373 "I<selector> argument may be one of:"
1374 msgstr ""
1375
1376 #. type: Plain text
1377 #: archlinux debian-unstable fedora-44 fedora-rawhide
1378 msgid "B<name>"
1379 msgstr ""
1380
1381 #. type: Plain text
1382 #: archlinux debian-unstable fedora-44 fedora-rawhide
1383 msgid "B<uid>"
1384 msgstr ""
1385
1386 #. type: Plain text
1387 #: archlinux debian-unstable fedora-44 fedora-rawhide
1388 msgid "B<gid>"
1389 msgstr ""
1390
1391 #. type: Plain text
1392 #: archlinux debian-unstable fedora-44 fedora-rawhide
1393 msgid "B<dir>"
1394 msgstr ""
1395
1396 #. type: Plain text
1397 #: archlinux debian-unstable fedora-44 fedora-rawhide
1398 msgid "B<shell>"
1399 msgstr ""
1400
1401 #. type: Plain text
1402 #: archlinux debian-unstable fedora-44 fedora-rawhide
1403 msgid "B<gecos>"
1404 msgstr ""
1405
1406 #. type: Plain text
1407 #: archlinux debian-unstable fedora-44 fedora-rawhide
1408 msgid "B<passwd>"
1409 msgstr ""
1410
1411 #. type: Plain text
1412 #: archlinux debian-unstable fedora-44 fedora-rawhide
1413 msgid "If omitted, a table with all these fields is returned.\\&"
1414 msgstr ""
1415
1416 #. type: Plain text
1417 #: archlinux debian-unstable fedora-44 fedora-rawhide
1418 #, no-wrap
1419 msgid "pw = posix\\&.getpasswd(posix\\&.getlogin(), \\&'shell\\&')|\n"
1420 msgstr ""
1421
1422 #. type: Plain text
1423 #: archlinux debian-unstable fedora-44 fedora-rawhide
1424 msgid "B<getprocessid(>[I<selector>]B<)>"
1425 msgstr ""
1426
1427 #. type: Plain text
1428 #: archlinux debian-unstable fedora-44 fedora-rawhide
1429 msgid ""
1430 "Get information about current process.\\& The optional I<selector> argument "
1431 "may be one of"
1432 msgstr ""
1433
1434 #. type: Plain text
1435 #: archlinux debian-unstable fedora-44 fedora-rawhide
1436 msgid "B<egid>: effective group id"
1437 msgstr ""
1438
1439 #. type: Plain text
1440 #: archlinux debian-unstable fedora-44 fedora-rawhide
1441 msgid "B<euid>: effective user id"
1442 msgstr ""
1443
1444 #. type: Plain text
1445 #: archlinux debian-unstable fedora-44 fedora-rawhide
1446 msgid "B<gid>: group id"
1447 msgstr ""
1448
1449 #. type: Plain text
1450 #: archlinux debian-unstable fedora-44 fedora-rawhide
1451 msgid "B<uid>: user id"
1452 msgstr ""
1453
1454 #. type: Plain text
1455 #: archlinux debian-unstable fedora-44 fedora-rawhide
1456 msgid "B<pgrp>: parent group id"
1457 msgstr ""
1458
1459 #. type: Plain text
1460 #: archlinux debian-unstable fedora-44 fedora-rawhide
1461 msgid "B<pid>: process id"
1462 msgstr ""
1463
1464 #. type: Plain text
1465 #: archlinux debian-unstable fedora-44 fedora-rawhide
1466 msgid "B<ppid>: parent pid"
1467 msgstr ""
1468
1469 #. type: Plain text
1470 #: archlinux debian-unstable fedora-44 fedora-rawhide
1471 #, no-wrap
1472 msgid ""
1473 "if posix\\&.getprocessid(\\&'pid\\&') == 1 then\n"
1474 " \\&.\\&.\\&.\n"
1475 "end\n"
1476 msgstr ""
1477
1478 #. type: Plain text
1479 #: archlinux debian-unstable fedora-44 fedora-rawhide
1480 msgid "B<kill(>I<pid> [, I<signal>]B<)>"
1481 msgstr ""
1482
1483 #. type: Plain text
1484 #: archlinux debian-unstable fedora-44 fedora-rawhide
1485 msgid ""
1486 "Send a B<signal>(7) to a process.\\& I<signal> must be a numeric value, eg."
1487 "\\& B<9> for B<SIGKILL>.\\& If omitted, B<SIGTERM> is used.\\& See also "
1488 "B<kill>(2).\\&"
1489 msgstr ""
1490
1491 #. type: Plain text
1492 #: archlinux debian-unstable fedora-44 fedora-rawhide
1493 #, no-wrap
1494 msgid "posix\\&.kill(posix\\&.getprocessid(\\&'pid\\&'))\n"
1495 msgstr ""
1496
1497 #. type: Plain text
1498 #: archlinux debian-unstable fedora-44 fedora-rawhide
1499 msgid "B<link(>I<oldpath>, I<newpath>B<)>"
1500 msgstr ""
1501
1502 #. type: Plain text
1503 #: archlinux debian-unstable fedora-44 fedora-rawhide
1504 msgid ""
1505 "Create a new name at I<newpath> for a file at I<oldpath>, aka hard link.\\& "
1506 "See also B<link>(2).\\&"
1507 msgstr ""
1508
1509 #. type: Plain text
1510 #: archlinux debian-unstable fedora-44 fedora-rawhide
1511 #, no-wrap
1512 msgid ""
1513 "f = rpm\\&.open(\\&'aaa\\&', \\&'w\\&')\n"
1514 "posix\\&.link(\\&'aaa\\&', \\&'bbb\\&')\n"
1515 msgstr ""
1516
1517 #. type: Plain text
1518 #: archlinux debian-unstable fedora-44 fedora-rawhide
1519 msgid "B<mkdir(>I<path>B<)>"
1520 msgstr ""
1521
1522 #. type: Plain text
1523 #: archlinux debian-unstable fedora-44 fedora-rawhide
1524 msgid "Create a new directory at I<path>.\\& See also B<mkdir>(2).\\&"
1525 msgstr ""
1526
1527 #. type: Plain text
1528 #: archlinux debian-unstable fedora-44 fedora-rawhide
1529 #, no-wrap
1530 msgid "posix\\&.mkdir(\\&'/tmp\\&')\n"
1531 msgstr ""
1532
1533 #. type: Plain text
1534 #: archlinux debian-unstable fedora-44 fedora-rawhide
1535 msgid "B<mkfifo(>I<path>B<)>"
1536 msgstr ""
1537
1538 #. type: Plain text
1539 #: archlinux debian-unstable fedora-44 fedora-rawhide
1540 msgid "Create a FIFO aka named pipe at I<path>.\\& See also B<mkfifo>(2).\\&"
1541 msgstr ""
1542
1543 #. type: Plain text
1544 #: archlinux debian-unstable fedora-44 fedora-rawhide
1545 #, no-wrap
1546 msgid "posix\\&.mkfifo(\\&'/tmp/badplace\\&')\n"
1547 msgstr ""
1548
1549 #. type: Plain text
1550 #: archlinux debian-unstable fedora-44 fedora-rawhide
1551 msgid "B<pathconf(>I<path> [, I<selector>]B<)>"
1552 msgstr ""
1553
1554 #. type: Plain text
1555 #: archlinux debian-unstable fedora-44 fedora-rawhide
1556 msgid ""
1557 "Get B<pathconf>(3) information for I<path>.\\& The optional I<selector> may "
1558 "be one of"
1559 msgstr ""
1560
1561 #. type: Plain text
1562 #: archlinux debian-unstable fedora-44 fedora-rawhide
1563 msgid "B<link_max>"
1564 msgstr ""
1565
1566 #. type: Plain text
1567 #: archlinux debian-unstable fedora-44 fedora-rawhide
1568 msgid "B<max_canon>"
1569 msgstr ""
1570
1571 #. type: Plain text
1572 #: archlinux debian-unstable fedora-44 fedora-rawhide
1573 msgid "B<max_input>"
1574 msgstr ""
1575
1576 #. type: Plain text
1577 #: archlinux debian-unstable fedora-44 fedora-rawhide
1578 msgid "B<name_max>"
1579 msgstr ""
1580
1581 #. type: Plain text
1582 #: archlinux debian-unstable fedora-44 fedora-rawhide
1583 msgid "B<path_max>"
1584 msgstr ""
1585
1586 #. type: Plain text
1587 #: archlinux debian-unstable fedora-44 fedora-rawhide
1588 msgid "B<pipe_buf>"
1589 msgstr ""
1590
1591 #. type: Plain text
1592 #: archlinux debian-unstable fedora-44 fedora-rawhide
1593 msgid "B<chown_restricted>"
1594 msgstr ""
1595
1596 #. type: Plain text
1597 #: archlinux debian-unstable fedora-44 fedora-rawhide
1598 msgid "B<no_trunc>"
1599 msgstr ""
1600
1601 #. type: Plain text
1602 #: archlinux debian-unstable fedora-44 fedora-rawhide
1603 msgid "B<vdisable>.\\&"
1604 msgstr ""
1605
1606 #. type: Plain text
1607 #: archlinux debian-unstable fedora-44 fedora-rawhide
1608 #, no-wrap
1609 msgid "posix\\&.pathconf(\\&'/\\&', \\&'path_max\\&')\n"
1610 msgstr ""
1611
1612 #. type: Plain text
1613 #: archlinux debian-unstable fedora-44 fedora-rawhide
1614 msgid "B<putenv(>I<string>B<)>"
1615 msgstr ""
1616
1617 #. type: Plain text
1618 #: archlinux debian-unstable fedora-44 fedora-rawhide
1619 msgid "Change or add an environment variable.\\& See also B<putenv>(3).\\&"
1620 msgstr ""
1621
1622 #. type: Plain text
1623 #: archlinux debian-unstable fedora-44 fedora-rawhide
1624 #, no-wrap
1625 msgid "posix\\&.putenv(\\&'HOME=/me\\&')\n"
1626 msgstr ""
1627
1628 #. type: Plain text
1629 #: archlinux debian-unstable fedora-44 fedora-rawhide
1630 msgid "B<readlink(>I<path>B<)>"
1631 msgstr ""
1632
1633 #. type: Plain text
1634 #: archlinux debian-unstable fedora-44 fedora-rawhide
1635 msgid ""
1636 "Read value of the symbolic link at I<path>.\\& See also B<readlink>(2).\\&"
1637 msgstr ""
1638
1639 #. type: Plain text
1640 #: archlinux debian-unstable fedora-44 fedora-rawhide
1641 #, no-wrap
1642 msgid ""
1643 "posix\\&.mkdir(\\&'aaa\\&')\n"
1644 "posix\\&.symlink(\\&'aaa\\&', \\&'bbb\\&')\n"
1645 "print(posix\\&.readlink(\\&'bbb\\&'))\n"
1646 msgstr ""
1647
1648 #. type: Plain text
1649 #: archlinux debian-unstable fedora-44 fedora-rawhide
1650 msgid "B<rmdir(>I<path>B<)>"
1651 msgstr ""
1652
1653 #. type: Plain text
1654 #: archlinux debian-unstable fedora-44 fedora-rawhide
1655 msgid "Remove a directory I<path>.\\& See also B<rmdir>(2).\\&"
1656 msgstr ""
1657
1658 #. type: Plain text
1659 #: archlinux debian-unstable fedora-44 fedora-rawhide
1660 #, no-wrap
1661 msgid "posix\\&.rmdir(\\&'/tmp\\&')\n"
1662 msgstr ""
1663
1664 #. type: Plain text
1665 #: archlinux debian-unstable fedora-44 fedora-rawhide
1666 msgid "B<setgid(>I<group>B<)>"
1667 msgstr ""
1668
1669 #. type: Plain text
1670 #: archlinux debian-unstable fedora-44 fedora-rawhide
1671 msgid ""
1672 "Set group identity.\\& I<group> may be specified either as a numeric id or "
1673 "group name.\\& See also B<setgid>(2).\\&"
1674 msgstr ""
1675
1676 #. type: Plain text
1677 #: archlinux debian-unstable fedora-44 fedora-rawhide
1678 msgid "B<setuid(>I<user>B<)>"
1679 msgstr ""
1680
1681 #. type: Plain text
1682 #: archlinux debian-unstable fedora-44 fedora-rawhide
1683 msgid ""
1684 "Set user identity.\\& I<user> may be specified either as a numeric id or "
1685 "username.\\& See also B<setuid>(2).\\&"
1686 msgstr ""
1687
1688 #. type: Plain text
1689 #: archlinux debian-unstable fedora-44 fedora-rawhide
1690 #, no-wrap
1691 msgid "posix\\&.setuid(\\&'nobody\\&')\n"
1692 msgstr ""
1693
1694 #. type: Plain text
1695 #: archlinux debian-unstable fedora-44 fedora-rawhide
1696 msgid "B<sleep(>I<seconds>B<)>"
1697 msgstr ""
1698
1699 #. type: Plain text
1700 #: archlinux debian-unstable fedora-44 fedora-rawhide
1701 msgid "Sleep for the duration of I<seconds>.\\& See also B<sleep>(3).\\&"
1702 msgstr ""
1703
1704 #. type: Plain text
1705 #: archlinux debian-unstable fedora-44 fedora-rawhide
1706 #, no-wrap
1707 msgid "posix\\&.sleep(5)\n"
1708 msgstr ""
1709
1710 #. type: Plain text
1711 #: archlinux debian-unstable fedora-44 fedora-rawhide
1712 msgid "B<stat(>I<path> [, I<selector>]B<)>"
1713 msgstr ""
1714
1715 #. type: Plain text
1716 #: archlinux debian-unstable fedora-44 fedora-rawhide
1717 msgid ""
1718 "Get file B<stat>(3) information about a file at I<path>.\\& The optional "
1719 "I<selector> may be one of"
1720 msgstr ""
1721
1722 #. type: Plain text
1723 #: archlinux debian-unstable fedora-44 fedora-rawhide
1724 msgid "B<mode>"
1725 msgstr ""
1726
1727 #. type: Plain text
1728 #: archlinux debian-unstable fedora-44 fedora-rawhide
1729 msgid "B<ino>"
1730 msgstr ""
1731
1732 #. type: Plain text
1733 #: archlinux debian-unstable fedora-44 fedora-rawhide
1734 msgid "B<dev>"
1735 msgstr ""
1736
1737 #. type: Plain text
1738 #: archlinux debian-unstable fedora-44 fedora-rawhide
1739 msgid "B<nlink>"
1740 msgstr ""
1741
1742 #. type: Plain text
1743 #: archlinux debian-unstable fedora-44 fedora-rawhide
1744 msgid "B<size>"
1745 msgstr ""
1746
1747 #. type: Plain text
1748 #: archlinux debian-unstable fedora-44 fedora-rawhide
1749 msgid "B<atime>"
1750 msgstr ""
1751
1752 #. type: Plain text
1753 #: archlinux debian-unstable fedora-44 fedora-rawhide
1754 msgid "B<mtime>"
1755 msgstr ""
1756
1757 #. type: Plain text
1758 #: archlinux debian-unstable fedora-44 fedora-rawhide
1759 msgid "B<ctime>"
1760 msgstr ""
1761
1762 #. type: Plain text
1763 #: archlinux debian-unstable fedora-44 fedora-rawhide
1764 msgid "B<type>.\\&"
1765 msgstr ""
1766
1767 #. type: Plain text
1768 #: archlinux debian-unstable fedora-44 fedora-rawhide
1769 #, no-wrap
1770 msgid "print(posix\\&.stat(\\&'/tmp\\&', \\&'mode\\&'))|\n"
1771 msgstr ""
1772
1773 #. type: Plain text
1774 #: archlinux debian-unstable fedora-44 fedora-rawhide
1775 #, no-wrap
1776 msgid ""
1777 "s1 = posix\\&.stat(\\&'f1\\&')\n"
1778 "s2 = posix\\&.stat(\\&'f2\\&')\n"
1779 "if s1\\&.ino == s2\\&.ino and s1\\&.dev == s2\\&.dev then\n"
1780 " \\&.\\&.\\&.\n"
1781 "end\n"
1782 msgstr ""
1783
1784 #. type: Plain text
1785 #: archlinux debian-unstable fedora-44 fedora-rawhide
1786 msgid "B<symlink(>I<oldpath>, I<newpath>B<)>"
1787 msgstr ""
1788
1789 #. type: Plain text
1790 #: archlinux debian-unstable fedora-44 fedora-rawhide
1791 msgid ""
1792 "Create a symbolic link at I<newpath> to I<oldpath>.\\& See also "
1793 "B<symlink>(2).\\&"
1794 msgstr ""
1795
1796 #. type: Plain text
1797 #: archlinux debian-unstable fedora-44 fedora-rawhide
1798 #, no-wrap
1799 msgid ""
1800 "posix\\&.mkdir(\\&'aaa\\&')\n"
1801 "posix\\&.symlink(\\&'aaa\\&', \\&'bbb\\&')\n"
1802 msgstr ""
1803
1804 #. type: Plain text
1805 #: archlinux debian-unstable fedora-44 fedora-rawhide
1806 msgid "B<sysconf(>[I<selector>]B<)>"
1807 msgstr ""
1808
1809 #. type: Plain text
1810 #: archlinux debian-unstable fedora-44 fedora-rawhide
1811 msgid ""
1812 "Get B<sysconf>(3) information.\\& The optional I<selector> argument may be "
1813 "one of:"
1814 msgstr ""
1815
1816 #. type: Plain text
1817 #: archlinux debian-unstable fedora-44 fedora-rawhide
1818 msgid "B<arg_max>"
1819 msgstr ""
1820
1821 #. type: Plain text
1822 #: archlinux debian-unstable fedora-44 fedora-rawhide
1823 msgid "B<child_max>"
1824 msgstr ""
1825
1826 #. type: Plain text
1827 #: archlinux debian-unstable fedora-44 fedora-rawhide
1828 msgid "B<clk_tck>"
1829 msgstr ""
1830
1831 #. type: Plain text
1832 #: archlinux debian-unstable fedora-44 fedora-rawhide
1833 msgid "B<ngroups_max>"
1834 msgstr ""
1835
1836 #. type: Plain text
1837 #: archlinux debian-unstable fedora-44 fedora-rawhide
1838 msgid "B<stream_max>"
1839 msgstr ""
1840
1841 #. type: Plain text
1842 #: archlinux debian-unstable fedora-44 fedora-rawhide
1843 msgid "B<tzname_max>"
1844 msgstr ""
1845
1846 #. type: Plain text
1847 #: archlinux debian-unstable fedora-44 fedora-rawhide
1848 msgid "B<open_max>"
1849 msgstr ""
1850
1851 #. type: Plain text
1852 #: archlinux debian-unstable fedora-44 fedora-rawhide
1853 msgid "B<job_control>"
1854 msgstr ""
1855
1856 #. type: Plain text
1857 #: archlinux debian-unstable fedora-44 fedora-rawhide
1858 msgid "B<saved_ids>"
1859 msgstr ""
1860
1861 #. type: Plain text
1862 #: archlinux debian-unstable fedora-44 fedora-rawhide
1863 msgid "B<version>.\\&"
1864 msgstr ""
1865
1866 #. type: Plain text
1867 #: archlinux debian-unstable fedora-44 fedora-rawhide
1868 #, no-wrap
1869 msgid "posix\\&.sysconf(\\&'open_max\\&')|\n"
1870 msgstr ""
1871
1872 #. type: Plain text
1873 #: archlinux debian-unstable fedora-44 fedora-rawhide
1874 msgid "B<times(>[I<selector>]B<)>"
1875 msgstr ""
1876
1877 #. type: Plain text
1878 #: archlinux debian-unstable fedora-44 fedora-rawhide
1879 msgid ""
1880 "Get process and waited-for child process B<times>(2).\\& The optional "
1881 "I<selector> argument may be one of"
1882 msgstr ""
1883
1884 #. type: Plain text
1885 #: archlinux debian-unstable fedora-44 fedora-rawhide
1886 msgid "B<utime>"
1887 msgstr ""
1888
1889 #. type: Plain text
1890 #: archlinux debian-unstable fedora-44 fedora-rawhide
1891 msgid "B<stime>"
1892 msgstr ""
1893
1894 #. type: Plain text
1895 #: archlinux debian-unstable fedora-44 fedora-rawhide
1896 msgid "B<cutime>"
1897 msgstr ""
1898
1899 #. type: Plain text
1900 #: archlinux debian-unstable fedora-44 fedora-rawhide
1901 msgid "B<cstime>"
1902 msgstr ""
1903
1904 #. type: Plain text
1905 #: archlinux debian-unstable fedora-44 fedora-rawhide
1906 msgid "B<elapsed>"
1907 msgstr ""
1908
1909 #. type: Plain text
1910 #: archlinux debian-unstable fedora-44 fedora-rawhide
1911 #, no-wrap
1912 msgid ""
1913 "t = posix\\&.times()\n"
1914 "print(t\\&.utime, t\\&.stime)\n"
1915 msgstr ""
1916
1917 #. type: Plain text
1918 #: archlinux debian-unstable fedora-44 fedora-rawhide
1919 msgid "B<ttyname(>[I<fd>]B<)>"
1920 msgstr ""
1921
1922 #. type: Plain text
1923 #: archlinux debian-unstable fedora-44 fedora-rawhide
1924 msgid ""
1925 "Get name of a terminal associated with file descriptor I<fd>.\\& If I<fd> is "
1926 "omitted, B<0> (aka standard input) is used.\\& See B<ttyname>(3).\\&"
1927 msgstr ""
1928
1929 #. type: Plain text
1930 #: archlinux debian-unstable fedora-44 fedora-rawhide
1931 #, no-wrap
1932 msgid ""
1933 "if not posix\\&.ttyname() then\n"
1934 " \\&.\\&.\\&.\n"
1935 "endif\n"
1936 msgstr ""
1937
1938 #. type: Plain text
1939 #: archlinux debian-unstable fedora-44 fedora-rawhide
1940 msgid "B<umask(>[I<mode>]B<)>"
1941 msgstr ""
1942
1943 #. type: Plain text
1944 #: archlinux debian-unstable fedora-44 fedora-rawhide
1945 msgid ""
1946 "Get or set process B<umask>(2).\\& I<mode> may be specified as an octal "
1947 "number or mode string similarly to B<posix.\\&chmod()>.\\&"
1948 msgstr ""
1949
1950 #. type: Plain text
1951 #: archlinux debian-unstable fedora-44 fedora-rawhide
1952 #, no-wrap
1953 msgid ""
1954 "print(posix\\&.umask())\n"
1955 "posix\\&.umask(222)\n"
1956 "posix\\&.umask(\\&'ug-w\\&')\n"
1957 "posix\\&.umask(\\&'rw-rw-r--\\&')\n"
1958 msgstr ""
1959
1960 #. type: Plain text
1961 #: archlinux debian-unstable fedora-44 fedora-rawhide
1962 msgid "B<uname(>I<format>B<)>"
1963 msgstr ""
1964
1965 #. type: Plain text
1966 #: archlinux debian-unstable fedora-44 fedora-rawhide
1967 msgid ""
1968 "Get B<uname>(2) information about the current system.\\& The following "
1969 "format directives are supported:"
1970 msgstr ""
1971
1972 #. type: Plain text
1973 #: archlinux debian-unstable fedora-44 fedora-rawhide
1974 msgid "B<%m>: Name of the hardware type"
1975 msgstr ""
1976
1977 #. type: Plain text
1978 #: archlinux debian-unstable fedora-44 fedora-rawhide
1979 msgid "B<%n>: Name of this node"
1980 msgstr ""
1981
1982 #. type: Plain text
1983 #: archlinux debian-unstable fedora-44 fedora-rawhide
1984 msgid "B<%r>: Current release level of this implementation"
1985 msgstr ""
1986
1987 #. type: Plain text
1988 #: archlinux debian-unstable fedora-44 fedora-rawhide
1989 msgid "B<%s>: Name of this operation system"
1990 msgstr ""
1991
1992 #. type: Plain text
1993 #: archlinux debian-unstable fedora-44 fedora-rawhide
1994 msgid "B<%v>: Current version level of this implementation"
1995 msgstr ""
1996
1997 #. type: Plain text
1998 #: archlinux debian-unstable fedora-44 fedora-rawhide
1999 #, no-wrap
2000 msgid "print(posix\\&.uname(\\&'%s %r\\&'))\n"
2001 msgstr ""
2002
2003 #. type: Plain text
2004 #: archlinux debian-unstable fedora-44 fedora-rawhide
2005 msgid "B<utime(>I<path> [, I<mtime> [, I<ctime>]]B<)>"
2006 msgstr ""
2007
2008 #. type: Plain text
2009 #: archlinux debian-unstable fedora-44 fedora-rawhide
2010 msgid ""
2011 "Change last access and modification times.\\& mtime and ctime are expressed "
2012 "seconds since epoch.\\& See B<utime>(2).\\&"
2013 msgstr ""
2014
2015 #. type: Plain text
2016 #: archlinux debian-unstable fedora-44 fedora-rawhide
2017 msgid ""
2018 "If I<mtime> or I<ctime> are omitted, current time is used, similar to "
2019 "B<touch>(1).\\&"
2020 msgstr ""
2021
2022 #. type: Plain text
2023 #: archlinux debian-unstable fedora-44 fedora-rawhide
2024 #, no-wrap
2025 msgid ""
2026 "posix\\&.mkdir(\\&'aaa\\&')\n"
2027 "posix\\&.utime(\\&'aaa\\&', 0, 0)\n"
2028 msgstr ""
2029
2030 #. type: Plain text
2031 #: archlinux debian-unstable fedora-44 fedora-rawhide
2032 msgid "B<wait(>[I<pid>]B<)> (DEPRECATED)"
2033 msgstr ""
2034
2035 #. type: Plain text
2036 #: archlinux debian-unstable fedora-44 fedora-rawhide
2037 msgid ""
2038 "Wait for a child process.\\& If I<pid> is specified wait for that particular "
2039 "child.\\& See also B<wait>(2).\\&"
2040 msgstr ""
2041
2042 #. type: Plain text
2043 #: archlinux debian-unstable fedora-44 fedora-rawhide
2044 #, no-wrap
2045 msgid ""
2046 "pid = posix\\&.fork()\n"
2047 "if pid == 0 then\n"
2048 " posix\\&.exec(\\&'/bin/ls\\&'))\n"
2049 "elseif pid E<gt> 0 then\n"
2050 " posix\\&.wait(pid)\n"
2051 "end\n"
2052 msgstr ""
2053
2054 #. type: Plain text
2055 #: archlinux debian-unstable fedora-44 fedora-rawhide
2056 msgid "B<setenv(>I<name>, I<value> [, I<overwrite>]B<)>"
2057 msgstr ""
2058
2059 #. type: Plain text
2060 #: archlinux debian-unstable fedora-44 fedora-rawhide
2061 msgid ""
2062 "Change or add environment variable I<name>.\\& The optional I<overwrite> is "
2063 "a boolean which defines behavior when a variable by the same name already "
2064 "exists.\\& See also B<setenv>(3).\\&"
2065 msgstr ""
2066
2067 #. type: Plain text
2068 #: archlinux debian-unstable fedora-44 fedora-rawhide
2069 #, no-wrap
2070 msgid "posix\\&.setenv(\\&'HOME\\&', \\&'/me\\&', true)\n"
2071 msgstr ""
2072
2073 #. type: Plain text
2074 #: archlinux debian-unstable fedora-44 fedora-rawhide
2075 msgid "B<unsetenv(>I<name>B<)>"
2076 msgstr ""
2077
2078 #. type: Plain text
2079 #: archlinux debian-unstable fedora-44 fedora-rawhide
2080 msgid ""
2081 "Remove a variable I<name> from environment.\\& See also B<unsetenv>(3).\\&"
2082 msgstr ""
2083
2084 #. type: Plain text
2085 #: archlinux debian-unstable fedora-44 fedora-rawhide
2086 #, no-wrap
2087 msgid "posix\\&.unsetenv(\\&'HOME\\&')\n"
2088 msgstr ""
2089
2090 #. type: SH
2091 #: archlinux debian-unstable fedora-44 fedora-rawhide
2092 #, no-wrap
2093 msgid "EXTENDING AND CUSTOMIZING"
2094 msgstr ""
2095
2096 #. type: Plain text
2097 #: archlinux debian-unstable fedora-44 fedora-rawhide
2098 msgid ""
2099 "On initialization, RPM executes a global I<init.\\&lua> Lua initialization "
2100 "script from the directory B<%getconfdir> expands to, typically I</usr/lib/"
2101 "rpm/init.\\&lua>.\\& This can be used to customize the rpm Lua environment "
2102 "without recompiling RPM.\\&"
2103 msgstr ""
2104
2105 #. type: Plain text
2106 #: archlinux debian-unstable fedora-44 fedora-rawhide
2107 msgid ""
2108 "For the embedded Lua interpreter, module'\\&s loaded with B<require> are "
2109 "primarily searched from B<%{getconfdir}/lua/>.\\& B<%_rpmluadir> is a "
2110 "shorthand for this path.\\&"
2111 msgstr ""
2112
2113 #. type: SH
2114 #: archlinux debian-unstable fedora-44 fedora-rawhide
2115 #, no-wrap
2116 msgid "SEE ALSO"
2117 msgstr ""
2118
2119 #. type: Plain text
2120 #: archlinux debian-unstable fedora-44 fedora-rawhide
2121 msgid "B<rpm-macros>(7) B<rpm-payloadflags>(7) B<rpmlua>(1) B<rpm-version>(7)"
2122 msgstr ""
2123
2124 #. type: Plain text
2125 #: archlinux debian-unstable fedora-44 fedora-rawhide
2126 msgid "B<https://www.\\&lua.\\&org/>"
2127 msgstr ""
2128
2129 #. type: TH
2130 #: debian-unstable
2131 #, no-wrap
2132 msgid "2026-04-10"
2133 msgstr ""
2134
2135 #. type: TH
2136 #: fedora-44
2137 #, no-wrap
2138 msgid "2026-01-17"
2139 msgstr ""
2140
2141 #. type: TH
2142 #: fedora-rawhide
2143 #, no-wrap
2144 msgid "2026-02-16"
2145 msgstr ""