Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
55e3cbd1
Commit
55e3cbd1
authored
Apr 03, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one typo.
Add a manpage reference. Add an index entry.
parent
74810d5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
Doc/lib/libfcntl.tex
Doc/lib/libfcntl.tex
+6
-6
Doc/libfcntl.tex
Doc/libfcntl.tex
+6
-6
No files found.
Doc/lib/libfcntl.tex
View file @
55e3cbd1
...
@@ -17,9 +17,9 @@ The module defines the following functions:
...
@@ -17,9 +17,9 @@ The module defines the following functions:
Perform the requested operation on file descriptor
\var
{
fd
}
.
Perform the requested operation on file descriptor
\var
{
fd
}
.
The operation is defined by
\var
{
op
}
and is operating system
The operation is defined by
\var
{
op
}
and is operating system
dependent. Typically these codes can be retrieved from the library
dependent. Typically these codes can be retrieved from the library
module
\module
{
FCNTL
}
. The argument
\var
{
arg
}
is optional, and
module
\module
{
FCNTL
}
\refstmodindex
{
FCNTL
}
. The argument
\var
{
arg
}
defaults to the integer value
\code
{
0
}
. When
is optional, and
defaults to the integer value
\code
{
0
}
. When
it is
present, it can either be an integer value, or a string. With
present, it can either be an integer value, or a string. With
the argument missing or an integer value, the return value of this
the argument missing or an integer value, the return value of this
function is the integer return value of the
\C
{}
\cfunction
{
fcntl()
}
function is the integer return value of the
\C
{}
\cfunction
{
fcntl()
}
call. When the argument is a string it represents a binary
call. When the argument is a string it represents a binary
...
@@ -39,8 +39,8 @@ The module defines the following functions:
...
@@ -39,8 +39,8 @@ The module defines the following functions:
\begin{funcdesc}
{
flock
}{
fd, op
}
\begin{funcdesc}
{
flock
}{
fd, op
}
Perform the lock operation
\var
{
op
}
on file descriptor
\var
{
fd
}
.
Perform the lock operation
\var
{
op
}
on file descriptor
\var
{
fd
}
.
See the
\UNIX
{}
manual
for details. (On some systems, this function is
See the
\UNIX
{}
manual
\manpage
{
flock
}{
3
}
for details. (On some
emulated using
\
function
{
fcntl()
}
.)
systems, this function is emulated using
\c
function
{
fcntl()
}
.)
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
lockf
}{
fd, code,
\optional
{
len,
\optional
{
start,
\optional
{
whence
}}}}
\begin{funcdesc}
{
lockf
}{
fd, code,
\optional
{
len,
\optional
{
start,
\optional
{
whence
}}}}
...
@@ -70,6 +70,6 @@ rv = fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
...
@@ -70,6 +70,6 @@ rv = fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
Note that in the first example the return value variable
\code
{
rv
}
will
Note that in the first example the return value variable
\code
{
rv
}
will
hold an integer value; in the second example it will hold a string
hold an integer value; in the second example it will hold a string
value. The structure lay-out for the
\var
{
lock
a
data
}
variable is
value. The structure lay-out for the
\var
{
lockdata
}
variable is
system dependent --- therefore using the
\function
{
flock()
}
call may be
system dependent --- therefore using the
\function
{
flock()
}
call may be
better.
better.
Doc/libfcntl.tex
View file @
55e3cbd1
...
@@ -17,9 +17,9 @@ The module defines the following functions:
...
@@ -17,9 +17,9 @@ The module defines the following functions:
Perform the requested operation on file descriptor
\var
{
fd
}
.
Perform the requested operation on file descriptor
\var
{
fd
}
.
The operation is defined by
\var
{
op
}
and is operating system
The operation is defined by
\var
{
op
}
and is operating system
dependent. Typically these codes can be retrieved from the library
dependent. Typically these codes can be retrieved from the library
module
\module
{
FCNTL
}
. The argument
\var
{
arg
}
is optional, and
module
\module
{
FCNTL
}
\refstmodindex
{
FCNTL
}
. The argument
\var
{
arg
}
defaults to the integer value
\code
{
0
}
. When
is optional, and
defaults to the integer value
\code
{
0
}
. When
it is
present, it can either be an integer value, or a string. With
present, it can either be an integer value, or a string. With
the argument missing or an integer value, the return value of this
the argument missing or an integer value, the return value of this
function is the integer return value of the
\C
{}
\cfunction
{
fcntl()
}
function is the integer return value of the
\C
{}
\cfunction
{
fcntl()
}
call. When the argument is a string it represents a binary
call. When the argument is a string it represents a binary
...
@@ -39,8 +39,8 @@ The module defines the following functions:
...
@@ -39,8 +39,8 @@ The module defines the following functions:
\begin{funcdesc}
{
flock
}{
fd, op
}
\begin{funcdesc}
{
flock
}{
fd, op
}
Perform the lock operation
\var
{
op
}
on file descriptor
\var
{
fd
}
.
Perform the lock operation
\var
{
op
}
on file descriptor
\var
{
fd
}
.
See the
\UNIX
{}
manual
for details. (On some systems, this function is
See the
\UNIX
{}
manual
\manpage
{
flock
}{
3
}
for details. (On some
emulated using
\
function
{
fcntl()
}
.)
systems, this function is emulated using
\c
function
{
fcntl()
}
.)
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
lockf
}{
fd, code,
\optional
{
len,
\optional
{
start,
\optional
{
whence
}}}}
\begin{funcdesc}
{
lockf
}{
fd, code,
\optional
{
len,
\optional
{
start,
\optional
{
whence
}}}}
...
@@ -70,6 +70,6 @@ rv = fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
...
@@ -70,6 +70,6 @@ rv = fcntl(file.fileno(), FCNTL.F_SETLKW, lockdata)
Note that in the first example the return value variable
\code
{
rv
}
will
Note that in the first example the return value variable
\code
{
rv
}
will
hold an integer value; in the second example it will hold a string
hold an integer value; in the second example it will hold a string
value. The structure lay-out for the
\var
{
lock
a
data
}
variable is
value. The structure lay-out for the
\var
{
lockdata
}
variable is
system dependent --- therefore using the
\function
{
flock()
}
call may be
system dependent --- therefore using the
\function
{
flock()
}
call may be
better.
better.
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