# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-05-01 04:44+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "RPM-LUA" msgstr "" #. type: TH #: archlinux #, no-wrap msgid "2026-03-06" msgstr "" #. type: TH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "RPM 6.0.1" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "rpm-lua - RPM embedded Lua interpreter" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "%scriptlet -p EluaE" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "%{lua:.\\&.\\&.\\&}" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Lua is a general purpose programming language specifically designed for " "embedding in other programs, and RPM includes an embedded Lua interpreter " "for use in advanced B(7) and transaction scriptlets.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "The embedded Lua interpreter makes possible various things that are hard or " "impossible with plain macros or external shell scripts, such as help " "eliminate dependency loops from package scriptlets.\\&" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "MACROS" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "Accessing macros" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "The B extension has various functions for dealing with macros, but the " "most convenient way to access B(7) from the RPM Lua " "environment is via the global B table.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Lua makes no difference between table index and field name syntaxes so " "B and B are equivalent, use what better " "suits the purpose.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Like any real Lua table, non-existent items are returned as B, and " "assignment can be used to define or undefine macros.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Example:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "if not macros\\&.yours then\n" " macros\\&.my = \\&'my macro\\&'\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "local v = { \\&'_libdir\\&', \\&'_bindir\\&', \\&'_xbindir\\&' }\n" "for _, v in ipairs(v) do\n" " if not macros[v] then\n" " macros[v] = \\&'default\\&'\n" " end\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "All macros share the same global Lua execution environment.\\&" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "Calling parametric macros" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Parametric macros (including all built-in macros) can be called in a Lua " "native manner via the B table, with either BIB<()> " "or BIB<]()> syntax.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Arguments are passed through a single argument, which is either" msgstr "" #. type: IP #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "\\(bu" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "a single string, in which case it'\\&s expanded and split with the macro-" "native rules" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "a table, in which case the table contents are used as literal arguments that " "are not expanded in any way" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Example 1:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "macros\\&.with(\\&'foo\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Example 2:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "macros\\&.dostuff({\\&'one\\&', \\&'two\\&', \\&'three\\&'})\n" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "Returning data" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "By definition, anything B'\\&ed in Lua will end up in the macro " "expansion.\\& Lua macros can also B their output, which makes " "programming helper macros look more natural.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "%sum() %{lua:\n" " local v = 0\n" " for _, a in ipairs(arg) do\n" " v = v + tonumber(a)\n" " end\n" " return v\n" "}\n" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "Options and arguments" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Parametric Lua macros receive their options and arguments as two local " "tables B and B, where B holds processed option values keyed " "by the option character, and B contains arguments numerically indexed." "\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "These tables are always present regardless of whether options or arguments " "were actually passed to simplify use.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "%foo(a:b) %{lua:\n" "if opt\\&.b then\n" " print(\\&'do b\\&')\n" "else\n" " print(\\&'or not\\&')\n" "end\n" "if opt\\&.a == \\&'s\\&' then\n" " print(\\&'do s\\&')\n" "end\n" "if #arg == 0 then\n" " print(\\&'no arguments :(\\&')\n" "else\n" " for i = 1, #arg do\n" " print(arg[i])\n" " end\n" "end\n" "}\n" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "SCRIPTLETS" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "The internal Lua can be used as the interpreter of RPM any transaction " "scriptlets, including triggers and file triggers:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "%pre -p EluaE\n" "print(\\&'Hello from Lua\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "While the venerable I is usually more convenient for packaging " "related scripting activities, the embedded Lua interpreter has some unique " "advantages for transaction scriptlets: they add no extra dependencies to the " "packages and so can help eliminate dependency loops.\\& This can be a " "crucial difference in the early \"bootstrap\" package set in an initial " "install.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "In particular, an embedded Lua script is the only generally usable option in " "B<%pretrans> scriplets during the initial installation of a system.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Embedded Lua is also much faster than executing a potentially heavyweight " "interpreter just to run a couple of lines of shell script.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Note: scriptlets using the internal Lua should not make assumptions about " "sharing the execution environment with other scriptlets.\\&" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "Arguments" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Scriptlet arguments are accessible from a global B table.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Note: in Lua, indexes customarily start at 1 (one) instead of 0 (zero), and " "for the better or worse, the RPM implementation follows this practise.\\& " "Thus the scriptlet arg indexes are off by one from general expectation based " "on traditional scriptlet arguments.\\& The argument containing number of " "installed package instances is B and the similar argument for " "trigger targets is B, vs the traditional B<$1> and B<$2> in shell " "scripts.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "%postun -p EluaE\n" "if arg[2] == 0 then\n" " print(\"erasing\")\n" "end\n" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "Relocatable packages" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Scriptlets of relocatable packages additionally carry a global " "B table containing all the possible prefixes of the " "package.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Added: 4.\\&18.\\&0" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "Exit status" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "While scriptlets shouldn'\\&t be allowed to fail normally, you can signal " "scriptlet failure status by using Lua'\\&s BI, [I]B<)> " "function if you need to.\\&" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "SPEC FILES" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "In the context of a B(5) file parse with B(1) or " "B(1), the RPM Lua environment contains the following spec specific " "global tables:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "The filenames of the patches in the spec, in the order they appeared in the " "spec.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "The numbers of the patches in the spec, in the order they appeared in the " "spec.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "The filenames of the sources in the spec, in the order they appeared in the " "spec.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "The numbers of the sources in the spec, in the order they appeared in the " "spec.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "for i, p in ipairs(patches) do\n" " print(string\\&.format(\"echo %d: %sn\", patch_nums[i], patches[i]))\n" "end\n" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "EXTENSIONS" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "In addition to Lua standard libraries (subject to the Lua version RPM is " "linked to), the following extensions are available in the RPM internal Lua " "interpreter.\\& These can be used in all contexts where the internal Lua can " "be used.\\&" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm extension" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "The following RPM specific functions are available:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Perform base64 decoding on argument.\\& See also b64encode().\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "blob = \\&'binary data\\&'\n" "print(blob)\n" "e = rpm\\&.b64encode(blob)\n" "print(e)\n" "d = rpm\\&.b64decode(e)\n" "print(d)\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Perform base64 encoding on argument.\\& Line length may be optionally " "specified via second argument.\\& See also b64decode().\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI IB<\")>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Define a global macro I with I.\\& See also B.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm\\&.define(\\&'foo 1\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I [,.\\&.\\&.\\&]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Execute an external command.\\& This is handy for executing external helper " "commands without depending on the shell.\\& I is the command to " "execute, followed by optional number of arguments to pass to the command.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "For a better control over the process execution and output, see rpm." "\\&spawn().\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Added: 4.\\&15.\\&0" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm\\&.execute(\\&'ls\\&', \\&'-l\\&', \\&'/\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Perform RPM macro expansion on I string.\\& See also B.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm\\&.expand(\\&'%{_libdir}/mydir\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, [I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Return a table of pathnames matching I.\\& If I contains " "B, return I in case of no matches.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "for i, p in ipairs(rpm\\&.glob(\\&'*\\&')) do\n" " print(p)\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Launch interactive session for testing and debugging.\\& Use B(1) " "instead.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm --eval \"%{lua: rpm\\&.interactive()}\"\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Test whether a macro I is defined and whether it'\\&s parametric, " "returned in two booleans.\\& See also B.\\& (Added: 4.\\&17.\\&0)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "if rpm\\&.isdefined(\\&'_libdir\\&') then\n" " \\&.\\&.\\&.\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Load a macro file from given path.\\& Same as the built-in B<%{load:.\\&.\\&." "\\&}> macro.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm\\&.load(\\&'my\\&.macros\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, [I[.\\&I]]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Open a file stream using RPM IO facilities, with support for transparent " "compression and decompression.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "I is filename string, optionally followed with I string to " "specify open behavior:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: open for append" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: open for writing, truncate" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: open for reading (default)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B<+>: open for reading and writing" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: fail if file exists" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "and optionally followed by B(7) for compression and " "decompression.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Added: 4.\\&17.\\&0" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "f = rpm\\&.open(\\&'some\\&.txt\\&.gz\\&', \\&'r\\&.gzdio\\&')\n" "print(f:read())\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "The returned rpm.\\&fd object has the following methods:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Close the file stream.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "f = rpm\\&.open(\\&'file\\&')\n" "f:close()\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Flush the file stream.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "f = rpm\\&.open(\\&'file\\&', \\&'w\\&')\n" "f:write(\\&'foo\\&')\n" "f:flush()\n" "f:close()\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Read data from the file stream up to I bytes or if not specified, the " "entire file.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "f = rpm\\&.open(\\&'/some/file\\&')\n" "print(f:read())\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, IB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Reposition the file offset of the stream.\\& I is one of B, " "B and B, and offset is relative to the mode: absolute, relative to " "current or relative to end.\\& Not all streams support seeking.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Returns file offset after the operation.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "See also B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "f = rpm\\&.open(\\&'newfile\\&', \\&'w\\&')\n" "f:seek(\\&'set\\&', 555)\n" "f:close()\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Write data in I to the file stream, either in its entirety or up to " "I bytes if specified.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "f = rpm\\&.open(\\&'newfile\\&', \\&'w\\&')\n" "f:write(\\&'data data\\&')\n" "f:close()\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Reopen a stream with a new mode (see B).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "rpm\\&.open(\\&'some\\&.txt\\&.gz\\&')\n" "f = f:reopen(\\&'r\\&.gzdio\\&')\n" "print(f:read())}\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)> (OBSOLETE)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Redirect file descriptor fdno to /dev/null (prior to 4.\\&16 this was known " "as posix.\\&redirect2null())" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "This function is obsolete and only available for RPM v4 packages for " "backwards compatibility.\\& Use `rpm.\\&spawn()` or `rpm.\\&execute()` " "instead.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "pid = posix\\&.fork()\n" "if pid == 0 then\n" " posix\\&.redirect2null(2)\n" " assert(posix\\&.exec(\\&'/bin/awk\\&'))\n" "elseif pid E 0 then\n" " posix\\&.wait(pid)\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B{I} [, {I}]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Spawn, aka execute, an external program.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "{I} is a table consisting of the command and its arguments.\\& An " "optional second table can be used to pass various actions related to the " "command execution, currently supported are:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "| Action | Argument(s) | Description\n" "|---------|----------------------\n" "| *stdin* | path | Redirect standard input to path\n" "| *stdout*| path | Redirect standard output to path\n" "| *stderr*| path | Redirect standard error to path\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Returns the command exit status: zero on success, or a tuplet of (B, " "message, code) on failure.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Added: 4.\\&20" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm\\&.spawn({\\&'systemctl\\&', \\&'restart\\&', \\&'httpd\\&'}, {stderr=\\&'/dev/null\\&'})\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Undefine a macro.\\& See also B.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Note that this is only pops the most recent macro definition by the given " "name from stack, ie there may be still macro definitions by the same name " "after an undefine operation.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm\\&.undefine(\\&'zzz\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, IB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Perform RPM version comparison on argument strings.\\& Returns -1, 0 or 1 if " "I is smaller, equal or larger than I.\\& See B(7).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Note: in RPM E 4.\\&16 this operated on version segments only, which " "does not produce correct results on full I strings.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "rpm\\&.vercmp(\\&'1\\&.2-1\\&', \\&'2\\&.0-1\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>, BI, I, IB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Create RPM version object.\\& This takes either an I string which is " "parsed to it'\\&s components, or epoch, version and release in separate " "arguments (which can be either strings or numbers).\\& The object has three " "attributes: B for epoch, B for version and B for release, can be " "printed in it'\\&s EVR form and supports native comparison in Lua.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "v1 = rpm\\&.ver(\\&'5:1\\&.0-2)\n" "v2 = rpm\\&.ver(3, \\&'5a\\&', 1)\n" "if v1 E v2 then\n" " \\&.\\&.\\&.\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "if v1\\&.e then\n" " \\&.\\&.\\&.\n" "end\n" msgstr "" #. type: SS #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix extension" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Lua standard library offers fairly limited set of io operations.\\& The " "B extension greatly enhances what can be done from Lua.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "The following functions are available in the B namespace, ie to call " "them use B.\\& This documentation concentrates on the " "Lua API conventions, for further information on the corresponding system " "calls refer to the system manual, eg B(3) for B." "\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Test accessibility of file/directory I.\\& See B(3).\\& If " "I is omitted then existence is tested, otherwise it is a combination " "of the following tests:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: readable" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: writable" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: executable" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: exists" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "if posix\\&.access(\\&'/bin/rpm\\&', \\&'x\\&') then\n" " \\&.\\&.\\&.\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Change current working directory to I.\\& See B(1).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.chdir(\\&'/tmp\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, IB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Change file/directory mode.\\& Mode can be either an octal number as for " "B(2) system call, or a string presentation similar to B(1).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "posix\\&.chmod(\\&'aa\\&', 600)\n" "posix\\&.chmod(\\&'bb\\&', \\&'rw-\\&')\n" "posix\\&.chmod(\\&'cc\\&', \\&'u+x\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, I, IB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Change file/directory owner/group of I.\\& The I and I " "arguments may be either numeric id values or user/groupnames.\\& See " "B(2) and B(1).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Note: This is a privileged operation.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "posix\\&.chown(\\&'aa\\&', 0, 0)\n" "posix\\&.chown(\\&'bb\\&', \\&'nobody\\&', \\&'nobody\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Get controlling terminal name.\\& See B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "print(posix\\&.ctermid())\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get directory contents - like B(3).\\& If I is omitted, " "current directory is used.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "for i,p in pairs(posix\\&.dir(\\&'/\\&')) do\n" " print(p\\&.\\&.\\&'n\\&')\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get B(3) message and the corresponding number for current " "B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "f = \\&'/zzz\\&'\n" "if not posix\\&.chmod(f, 100) then\n" " s, n = posix\\&.errno()\n" " print(f, s)\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I.\\&.\\&.\\&]B<)> (OBSOLETE)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Execute a program.\\& This may only be performed after posix.\\&fork().\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "This function is obsolete and only available for RPM v4 packages for " "backwards compatibility.\\& Use B or B " "instead.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Iterate over directory contents.\\& If path is omitted, current directory is " "used.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "for f in posix\\&.files(\\&'/\\&') do\n" " print(f\\&.\\&.\\&'n\\&')\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B (OBSOLETE)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Fork a new process.\\& See B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "pid = posix\\&.fork()\n" "if pid == 0 then\n" " posix\\&.exec(\\&'/foo/bar\\&')\n" "elseif pid E 0 then\n" " posix\\&.wait(pid)\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Get current directory.\\& See B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "if posix\\&.getcwd() ~= \\&'/\\&' then\n" " \\&.\\&.\\&.\n" "endif\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Get an environment variable.\\& See B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "if posix\\&.getenv(\\&'HOME\\&') ~= posix\\&.getcwd() then\n" " print(\\&'not at home\\&')\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get B(5) information for a group.\\& I may be either a numeric " "id or group name.\\& If omitted, current group is used.\\& Returns a table " "with fields B and B set to group name and id respectively, and " "indexes from 1 onwards specifying group members.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "print(posix\\&.getgroup(\\&'wheel\\&')\\&.gid)\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Get login name.\\& See B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "n = posix\\&.getlogin()\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B([I [, I]]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get B(5) information for a user account.\\& I may be either a " "numeric id or username.\\& If omitted, current user is used.\\& The optional " "I argument may be one of:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "If omitted, a table with all these fields is returned.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "pw = posix\\&.getpasswd(posix\\&.getlogin(), \\&'shell\\&')|\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get information about current process.\\& The optional I argument " "may be one of" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: effective group id" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: effective user id" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: group id" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: user id" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: parent group id" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: process id" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B: parent pid" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "if posix\\&.getprocessid(\\&'pid\\&') == 1 then\n" " \\&.\\&.\\&.\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Send a B(7) to a process.\\& I must be a numeric value, eg." "\\& B<9> for B.\\& If omitted, B is used.\\& See also " "B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.kill(posix\\&.getprocessid(\\&'pid\\&'))\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, IB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Create a new name at I for a file at I, aka hard link.\\& " "See also B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "f = rpm\\&.open(\\&'aaa\\&', \\&'w\\&')\n" "posix\\&.link(\\&'aaa\\&', \\&'bbb\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Create a new directory at I.\\& See also B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.mkdir(\\&'/tmp\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Create a FIFO aka named pipe at I.\\& See also B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.mkfifo(\\&'/tmp/badplace\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get B(3) information for I.\\& The optional I may " "be one of" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.pathconf(\\&'/\\&', \\&'path_max\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Change or add an environment variable.\\& See also B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.putenv(\\&'HOME=/me\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Read value of the symbolic link at I.\\& See also B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "posix\\&.mkdir(\\&'aaa\\&')\n" "posix\\&.symlink(\\&'aaa\\&', \\&'bbb\\&')\n" "print(posix\\&.readlink(\\&'bbb\\&'))\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Remove a directory I.\\& See also B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.rmdir(\\&'/tmp\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Set group identity.\\& I may be specified either as a numeric id or " "group name.\\& See also B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Set user identity.\\& I may be specified either as a numeric id or " "username.\\& See also B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.setuid(\\&'nobody\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "Sleep for the duration of I.\\& See also B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.sleep(5)\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get file B(3) information about a file at I.\\& The optional " "I may be one of" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "print(posix\\&.stat(\\&'/tmp\\&', \\&'mode\\&'))|\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "s1 = posix\\&.stat(\\&'f1\\&')\n" "s2 = posix\\&.stat(\\&'f2\\&')\n" "if s1\\&.ino == s2\\&.ino and s1\\&.dev == s2\\&.dev then\n" " \\&.\\&.\\&.\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, IB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Create a symbolic link at I to I.\\& See also " "B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "posix\\&.mkdir(\\&'aaa\\&')\n" "posix\\&.symlink(\\&'aaa\\&', \\&'bbb\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get B(3) information.\\& The optional I argument may be " "one of:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.sysconf(\\&'open_max\\&')|\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get process and waited-for child process B(2).\\& The optional " "I argument may be one of" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "t = posix\\&.times()\n" "print(t\\&.utime, t\\&.stime)\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get name of a terminal associated with file descriptor I.\\& If I is " "omitted, B<0> (aka standard input) is used.\\& See B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "if not posix\\&.ttyname() then\n" " \\&.\\&.\\&.\n" "endif\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get or set process B(2).\\& I may be specified as an octal " "number or mode string similarly to B.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "print(posix\\&.umask())\n" "posix\\&.umask(222)\n" "posix\\&.umask(\\&'ug-w\\&')\n" "posix\\&.umask(\\&'rw-rw-r--\\&')\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Get B(2) information about the current system.\\& The following " "format directives are supported:" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B<%m>: Name of the hardware type" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B<%n>: Name of this node" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B<%r>: Current release level of this implementation" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B<%s>: Name of this operation system" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B<%v>: Current version level of this implementation" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "print(posix\\&.uname(\\&'%s %r\\&'))\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI [, I [, I]]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Change last access and modification times.\\& mtime and ctime are expressed " "seconds since epoch.\\& See B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "If I or I are omitted, current time is used, similar to " "B(1).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "posix\\&.mkdir(\\&'aaa\\&')\n" "posix\\&.utime(\\&'aaa\\&', 0, 0)\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B[I]B<)> (DEPRECATED)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Wait for a child process.\\& If I is specified wait for that particular " "child.\\& See also B(2).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "" "pid = posix\\&.fork()\n" "if pid == 0 then\n" " posix\\&.exec(\\&'/bin/ls\\&'))\n" "elseif pid E 0 then\n" " posix\\&.wait(pid)\n" "end\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BI, I [, I]B<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Change or add environment variable I.\\& The optional I is " "a boolean which defines behavior when a variable by the same name already " "exists.\\& See also B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.setenv(\\&'HOME\\&', \\&'/me\\&', true)\n" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "BIB<)>" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "Remove a variable I from environment.\\& See also B(3).\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "posix\\&.unsetenv(\\&'HOME\\&')\n" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "EXTENDING AND CUSTOMIZING" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "On initialization, RPM executes a global I Lua initialization " "script from the directory B<%getconfdir> expands to, typically I.\\& This can be used to customize the rpm Lua environment " "without recompiling RPM.\\&" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "" "For the embedded Lua interpreter, module'\\&s loaded with B are " "primarily searched from B<%{getconfdir}/lua/>.\\& B<%_rpmluadir> is a " "shorthand for this path.\\&" msgstr "" #. type: SH #: archlinux debian-unstable fedora-44 fedora-rawhide #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B(7) B(7) B(1) B(7)" msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide msgid "B" msgstr "" #. type: TH #: debian-unstable #, no-wrap msgid "2026-04-10" msgstr "" #. type: TH #: fedora-44 #, no-wrap msgid "2026-01-17" msgstr "" #. type: TH #: fedora-rawhide #, no-wrap msgid "2026-02-16" msgstr ""