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

Skip to content

Commit b6604b3

Browse files
committed
Document EX_OK and friends.
1 parent fe33b79 commit b6604b3

1 file changed

Lines changed: 114 additions & 0 deletions

File tree

Doc/lib/libos.tex

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,120 @@ \subsection{Process Management \label{os-process}}
11171117
after a \function{fork()}.
11181118
\end{funcdesc}
11191119

1120+
The following exit codes are a defined, and can be used with
1121+
\function{_exit()}, although they are not required. These are
1122+
typically used for system programs written in Python, such as a
1123+
mail server's external command delivery program.
1124+
1125+
\begin{datadesc}{EX_OK}
1126+
Exit code that means no error occurred.
1127+
Availability: \UNIX.
1128+
\versionadded{2.3}
1129+
\end{datadesc}
1130+
1131+
\begin{datadesc}{EX_USAGE}
1132+
Exit code that means the command was used incorrectly, such as when
1133+
the wrong number of arguments are given.
1134+
Availability: \UNIX.
1135+
\versionadded{2.3}
1136+
\end{datadesc}
1137+
1138+
\begin{datadesc}{EX_DATAERR}
1139+
Exit code that means the input data was incorrect.
1140+
Availability: \UNIX.
1141+
\versionadded{2.3}
1142+
\end{datadesc}
1143+
1144+
\begin{datadesc}{EX_NOINPUT}
1145+
Exit code that means an input file did not exist or was not readable.
1146+
Availability: \UNIX.
1147+
\versionadded{2.3}
1148+
\end{datadesc}
1149+
1150+
\begin{datadesc}{EX_NOUSER}
1151+
Exit code that means a specified user did not exist.
1152+
Availability: \UNIX.
1153+
\versionadded{2.3}
1154+
\end{datadesc}
1155+
1156+
\begin{datadesc}{EX_NOHOST}
1157+
Exit code that means a specified host did not exist.
1158+
Availability: \UNIX.
1159+
\versionadded{2.3}
1160+
\end{datadesc}
1161+
1162+
\begin{datadesc}{EX_UNAVAILABLE}
1163+
Exit code that means that a required service is unavailable.
1164+
Availability: \UNIX.
1165+
\versionadded{2.3}
1166+
\end{datadesc}
1167+
1168+
\begin{datadesc}{EX_SOFTWARE}
1169+
Exit code that means an internal software error was detected.
1170+
Availability: \UNIX.
1171+
\versionadded{2.3}
1172+
\end{datadesc}
1173+
1174+
\begin{datadesc}{EX_OSERR}
1175+
Exit code that means an operating system error was detected, such as
1176+
the inability to fork or create a pipe.
1177+
Availability: \UNIX.
1178+
\versionadded{2.3}
1179+
\end{datadesc}
1180+
1181+
\begin{datadesc}{EX_OSFILE}
1182+
Exit code that means some system file did not exist, could not be
1183+
opened, or had some other kind of error.
1184+
Availability: \UNIX.
1185+
\versionadded{2.3}
1186+
\end{datadesc}
1187+
1188+
\begin{datadesc}{EX_CANTCREAT}
1189+
Exit code that means a user specified output file could not be created.
1190+
Availability: \UNIX.
1191+
\versionadded{2.3}
1192+
\end{datadesc}
1193+
1194+
\begin{datadesc}{EX_IOERR}
1195+
Exit code that means that an error occurred while doing I/O on some file.
1196+
Availability: \UNIX.
1197+
\versionadded{2.3}
1198+
\end{datadesc}
1199+
1200+
\begin{datadesc}{EX_TEMPFAIL}
1201+
Exit code that means a temporary failure occurred. This indicates
1202+
something that may not really be an error, such as a network
1203+
connection that couldn't be made during a retryable operation.
1204+
Availability: \UNIX.
1205+
\versionadded{2.3}
1206+
\end{datadesc}
1207+
1208+
\begin{datadesc}{EX_PROTOCOL}
1209+
Exit code that means that a protocol exchange was illegal, invalid, or
1210+
not understood.
1211+
Availability: \UNIX.
1212+
\versionadded{2.3}
1213+
\end{datadesc}
1214+
1215+
\begin{datadesc}{EX_NOPERM}
1216+
Exit code that means that there were insufficient permissions to
1217+
perform the operation (but not intended for file system problems).
1218+
Availability: \UNIX.
1219+
\versionadded{2.3}
1220+
\end{datadesc}
1221+
1222+
\begin{datadesc}{EX_CONFIG}
1223+
Exit code that means that some kind of configuration error occurred.
1224+
Availability: \UNIX.
1225+
\versionadded{2.3}
1226+
\end{datadesc}
1227+
1228+
\begin{datadesc}{EX_NOTFOUND}
1229+
Exit code that means something like ``an entry was not found''.
1230+
Availability: \UNIX.
1231+
\versionadded{2.3}
1232+
\end{datadesc}
1233+
11201234
\begin{funcdesc}{fork}{}
11211235
Fork a child process. Return \code{0} in the child, the child's
11221236
process id in the parent.

0 commit comments

Comments
 (0)