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

Skip to content

Commit d673d48

Browse files
committed
Document sameopenfile(), samestat().
1 parent 0256c1f commit d673d48

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

Doc/lib/libposixpath.tex

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,23 @@ \section{\module{os.path} ---
137137
fails.
138138
\end{funcdesc}
139139

140+
\begin{funcdesc}{sameopenfile}{fp1, fp2}
141+
Return true if the file objects \var{fp1} and \var{fp2} refer to the
142+
same file. The two file objects may represent different file
143+
descriptors.
144+
\end{funcdesc}
145+
146+
\begin{funcdesc}{samestat}{stat1, stat2}
147+
Return true if the stat tuples \var{stat1} and \var{stat2} refer to
148+
the same file. These structures may have been returned by
149+
\function{fstat()}, \function{lstat()}, or \function{stat()}. This
150+
function implements the underlying comparison used by
151+
\function{samefile()} and \function{sameopenfile()}.
152+
\end{funcdesc}
153+
140154
\begin{funcdesc}{split}{path}
141-
Split the pathname \var{path} into a pair \code{(\var{head},
142-
\var{tail})}, where \var{tail} is the last pathname component and
155+
Split the pathname \var{path} into a pair, \code{(\var{head},
156+
\var{tail})} where \var{tail} is the last pathname component and
143157
\var{head} is everything leading up to that. The \var{tail} part will
144158
never contain a slash; if \var{path} ends in a slash, \var{tail} will
145159
be empty. If there is no slash in \var{path}, \var{head} will be
@@ -153,7 +167,7 @@ \section{\module{os.path} ---
153167

154168
\begin{funcdesc}{splitdrive}{path}
155169
Split the pathname \var{path} into a pair \code{(\var{drive},
156-
\var{tail})}, where \var{drive} is either a drive specification or the
170+
\var{tail})} where \var{drive} is either a drive specification or the
157171
empty string. On systems which do not use drive specifications,
158172
\var{drive} will always be the empty string. In all cases,
159173
\code{\var{drive} + \var{tail}} will be the same as \var{path}.

0 commit comments

Comments
 (0)