Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2cb1074

Browse files
committed
Use a {datadesc} environment to describe errorcode.
1 parent 92f31f1 commit 2cb1074

2 files changed

Lines changed: 26 additions & 18 deletions

File tree

Doc/lib/liberrno.tex

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@ \section{Standard Module \sectcode{errno}}
22
\label{module-errno}
33
\stmodindex{errno}
44

5-
\setindexsubitem{(in module errno)}
65

76
This module makes available standard errno system symbols.
87
The value of each symbol is the corresponding integer value.
98
The names and descriptions are borrowed from \file{linux/include/errno.h},
10-
which should be pretty all-inclusive. Of the following list, symbols
11-
that are not used on the current platform are not defined by the
12-
module.
9+
which should be pretty all-inclusive.
1310

14-
The module also defines the dictionary variable \code{errorcode} which
15-
maps numeric error codes back to their symbol names, so that e.g.
16-
\samp{errno.errorcode[errno.EPERM] == 'EPERM'}. To translate a
17-
numeric error code to an error message, use \function{os.strerror()}.
11+
\begin{datadesc}{errorcode}
12+
Dictionary providing a mapping from the errno value to the string
13+
name in the underlying system. For instance,
14+
\code{errno.errorcode[errno.EPERM]} maps to \code{'EPERM'}.
15+
\end{datadesc}
16+
17+
To translate a numeric error code to an error message, use
18+
\function{os.strerror()}.
19+
20+
Of the following list, symbols that are not used on the current
21+
platform are not defined by the module. Symbols available can
22+
include:
1823

19-
Symbols available can include:
2024
\begin{datadesc}{EPERM} Operation not permitted \end{datadesc}
2125
\begin{datadesc}{ENOENT} No such file or directory \end{datadesc}
2226
\begin{datadesc}{ESRCH} No such process \end{datadesc}

Doc/liberrno.tex

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,25 @@ \section{Standard Module \sectcode{errno}}
22
\label{module-errno}
33
\stmodindex{errno}
44

5-
\setindexsubitem{(in module errno)}
65

76
This module makes available standard errno system symbols.
87
The value of each symbol is the corresponding integer value.
98
The names and descriptions are borrowed from \file{linux/include/errno.h},
10-
which should be pretty all-inclusive. Of the following list, symbols
11-
that are not used on the current platform are not defined by the
12-
module.
9+
which should be pretty all-inclusive.
1310

14-
The module also defines the dictionary variable \code{errorcode} which
15-
maps numeric error codes back to their symbol names, so that e.g.
16-
\samp{errno.errorcode[errno.EPERM] == 'EPERM'}. To translate a
17-
numeric error code to an error message, use \function{os.strerror()}.
11+
\begin{datadesc}{errorcode}
12+
Dictionary providing a mapping from the errno value to the string
13+
name in the underlying system. For instance,
14+
\code{errno.errorcode[errno.EPERM]} maps to \code{'EPERM'}.
15+
\end{datadesc}
16+
17+
To translate a numeric error code to an error message, use
18+
\function{os.strerror()}.
19+
20+
Of the following list, symbols that are not used on the current
21+
platform are not defined by the module. Symbols available can
22+
include:
1823

19-
Symbols available can include:
2024
\begin{datadesc}{EPERM} Operation not permitted \end{datadesc}
2125
\begin{datadesc}{ENOENT} No such file or directory \end{datadesc}
2226
\begin{datadesc}{ESRCH} No such process \end{datadesc}

0 commit comments

Comments
 (0)