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

Skip to content

Commit 6db897c

Browse files
committed
Move chdir() and getcwd() descriptions to "Files and Directories" with
a pointer from the "Process Parameters" section. Based on comments from Aahz Maruch, Tim Peters, and GvR.
1 parent f930d82 commit 6db897c

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

Doc/lib/libos.tex

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ \subsection{Process Parameters \label{os-procinfo}}
8686
These functions and data items provide information and operate on the
8787
current process and user.
8888

89-
\begin{funcdesc}{chdir}{path}
90-
\index{directory!changing}
91-
Change the current working directory to \var{path}.
92-
Availability: Macintosh, \UNIX{}, Windows.
93-
\end{funcdesc}
94-
9589
\begin{datadesc}{environ}
9690
A mapping object representing the string environment. For example,
9791
\code{environ['HOME']} is the pathname of your home directory (on some
@@ -107,10 +101,11 @@ \subsection{Process Parameters \label{os-procinfo}}
107101
use a modified environment.
108102
\end{datadesc}
109103

110-
\begin{funcdesc}{getcwd}{}
111-
Return a string representing the current working directory.
112-
Availability: Macintosh, \UNIX{}, Windows.
113-
\end{funcdesc}
104+
\begin{funcdescni}{chdir}{path}
105+
\funclineni{getcwd}{}
106+
These functions are described in ``Files and Directories'' (section
107+
\ref{os-file-dir}).
108+
\end{funcdescni}
114109

115110
\begin{funcdesc}{getegid}{}
116111
Return the current process' effective group id.
@@ -410,6 +405,17 @@ \subsection{Files and Directories \label{os-file-dir}}
410405
Availability: \UNIX{}.
411406
\end{funcdesc}
412407

408+
\begin{funcdesc}{chdir}{path}
409+
\index{directory!changing}
410+
Change the current working directory to \var{path}.
411+
Availability: Macintosh, \UNIX{}, Windows.
412+
\end{funcdesc}
413+
414+
\begin{funcdesc}{getcwd}{}
415+
Return a string representing the current working directory.
416+
Availability: Macintosh, \UNIX{}, Windows.
417+
\end{funcdesc}
418+
413419
\begin{funcdesc}{chmod}{path, mode}
414420
Change the mode of \var{path} to the numeric \var{mode}.
415421
Availability: \UNIX{}, Windows.

0 commit comments

Comments
 (0)