Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b6604b3e
Kaydet (Commit)
b6604b3e
authored
Ock 07, 2003
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document EX_OK and friends.
üst
fe33b795
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
114 additions
and
0 deletions
+114
-0
libos.tex
Doc/lib/libos.tex
+114
-0
No files found.
Doc/lib/libos.tex
Dosyayı görüntüle @
b6604b3e
...
@@ -1117,6 +1117,120 @@ Note: the standard way to exit is \code{sys.exit(\var{n})}.
...
@@ -1117,6 +1117,120 @@ Note: the standard way to exit is \code{sys.exit(\var{n})}.
after a
\function
{
fork()
}
.
after a
\function
{
fork()
}
.
\end{funcdesc}
\end{funcdesc}
The following exit codes are a defined, and can be used with
\function
{_
exit()
}
, although they are not required. These are
typically used for system programs written in Python, such as a
mail server's external command delivery program.
\begin{datadesc}
{
EX
_
OK
}
Exit code that means no error occurred.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
USAGE
}
Exit code that means the command was used incorrectly, such as when
the wrong number of arguments are given.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
DATAERR
}
Exit code that means the input data was incorrect.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
NOINPUT
}
Exit code that means an input file did not exist or was not readable.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
NOUSER
}
Exit code that means a specified user did not exist.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
NOHOST
}
Exit code that means a specified host did not exist.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
UNAVAILABLE
}
Exit code that means that a required service is unavailable.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
SOFTWARE
}
Exit code that means an internal software error was detected.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
OSERR
}
Exit code that means an operating system error was detected, such as
the inability to fork or create a pipe.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
OSFILE
}
Exit code that means some system file did not exist, could not be
opened, or had some other kind of error.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
CANTCREAT
}
Exit code that means a user specified output file could not be created.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
IOERR
}
Exit code that means that an error occurred while doing I/O on some file.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
TEMPFAIL
}
Exit code that means a temporary failure occurred. This indicates
something that may not really be an error, such as a network
connection that couldn't be made during a retryable operation.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
PROTOCOL
}
Exit code that means that a protocol exchange was illegal, invalid, or
not understood.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
NOPERM
}
Exit code that means that there were insufficient permissions to
perform the operation (but not intended for file system problems).
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
CONFIG
}
Exit code that means that some kind of configuration error occurred.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{datadesc}
{
EX
_
NOTFOUND
}
Exit code that means something like ``an entry was not found''.
Availability:
\UNIX
.
\versionadded
{
2.3
}
\end{datadesc}
\begin{funcdesc}
{
fork
}{}
\begin{funcdesc}
{
fork
}{}
Fork a child process. Return
\code
{
0
}
in the child, the child's
Fork a child process. Return
\code
{
0
}
in the child, the child's
process id in the parent.
process id in the parent.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment