Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
luatex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeXLive
luatex
Commits
c82176ee
Commit
c82176ee
authored
1 year ago
by
Luigi Scarso
Browse files
Options
Downloads
Patches
Plain Diff
Extended the documentation of some functions in the os.* namespace (J. Friedrich) .
parent
5650c067
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manual/luatex-lua.tex
+20
-6
20 additions, 6 deletions
manual/luatex-lua.tex
manual/luatex.pdf
+0
-0
0 additions, 0 deletions
manual/luatex.pdf
with
20 additions
and
6 deletions
manual/luatex-lua.tex
+
20
−
6
View file @
c82176ee
...
...
@@ -436,9 +436,13 @@ used as building blocks for other helpers.
The
\type
{
os
}
library has a few extra functions and
variables:
\libidx
{
os
}
{
selfdir
}
,
\libidx
{
os
}
{
exec
}
,
\libidx
{
os
}
{
kpsepopen
}
,
\libidx
{
os
}
{
spawn
}
,
\libidx
{
os
}
{
setenv
}
,
\libidx
{
os
}
{
env
}
,
\libidx
{
os
}
{
gettimeofday
}
,
\libidx
{
os
}
{
times
}
,
\libidx
{
os
}
{
tmpdir
}
,
\libidx
{
os
}
{
type
}
,
\libidx
{
os
}
{
name
}
and
\libidx
{
os
}
{
uname
}
, that we will discuss here.
\libidx
{
os
}
{
env
}
,
\libidx
{
os
}
{
gettimeofday
}
,
\libidx
{
os
}
{
times
}
,
\libidx
{
os
}
{
sleep
}
,
\libidx
{
os
}
{
tmpdir
}
,
\libidx
{
os
}
{
type
}
,
\libidx
{
os
}
{
name
}
and
\libidx
{
os
}
{
uname
}
,
{
os
}
{
uname
}
,
that we will discuss here.
\startitemize
...
...
@@ -532,19 +536,29 @@ variables: \libidx {os} {selfdir}, \libidx {os} {exec}, \libidx {os}
\stopitem
\startitem
\type
{
os.times
()
}
returns the current process times according to
\
the
\type
{
os.times
()
}
returns the current process times according to the
\UNIX\
C library function
\quote
{
times
}
. This function is not available on
the
\MSWINDOWS\
and
\SUNOS\
platforms, so do not use this function for
portable documents.
\stopitem
\startitem
\type
{
os.tmpdir
()
}
creates a directory in the
\quote
{
current directory
}
\type
{
os.sleep
(
interval
[
, unit
])
}
suspends the execution of the current run for
a given number of seconds. If the optional argument
\type
{
unit
}
is present, the
function waits
\type
{
interval
/
units
}
seconds.
\type
{
os.sleep
(
1
,
1000
)
}
for example pauses the program for one millisecond.
\stopitem
\startitem
\type
{
os.tmpdir
([
template
])
}
creates a directory in the
\quote
{
current directory
}
with the name
\type
{
luatex.XXXXXX
}
where the
\type
{
X
}
-
es are replaced by a
unique string. The function also returns this string, so you can
\type
{
lfs.chdir
()
}
into it, or
\type
{
nil
}
if it failed to create the directory.
The user is responsible for cleaning up at the end of the run, it does not
happen automatically.
happen automatically. You can also use your own
\type
{
template
}
for the name
of the temporary folder. However, the passed string must end with six capital
\type
{
X
}
-
es. For example, the template
\type
{
tmp.XXXXXX
}
could result in the
folder name
\type
{
tmp.vX
3
gPo
}
.
\stopitem
\startitem
...
...
This diff is collapsed.
Click to expand it.
manual/luatex.pdf
+
0
−
0
View file @
c82176ee
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment