mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-29 16:21:07 +00:00
(Pseudo-Terminal Pairs): Change getpt and openpty documentation after recent change in the code.
This commit is contained in:
parent
983b29ede8
commit
5632741ec7
@ -481,7 +481,7 @@ _dl_init_paths (const char *llp)
|
|||||||
|
|
||||||
/* First set up the rest of the default search directory entries. */
|
/* First set up the rest of the default search directory entries. */
|
||||||
aelem = rtld_search_dirs = (struct r_search_path_elem **)
|
aelem = rtld_search_dirs = (struct r_search_path_elem **)
|
||||||
malloc (((sizeof (system_dirs) / sizeof (system_dirs[0]) + 1)
|
malloc ((sizeof (system_dirs) / sizeof (system_dirs[0]))
|
||||||
* sizeof (struct r_search_path_elem *));
|
* sizeof (struct r_search_path_elem *));
|
||||||
if (rtld_search_dirs == NULL)
|
if (rtld_search_dirs == NULL)
|
||||||
_dl_signal_error (ENOMEM, NULL, "cannot create search path array");
|
_dl_signal_error (ENOMEM, NULL, "cannot create search path array");
|
||||||
|
@ -1873,8 +1873,8 @@ an error, a value of @math{-1} is returned instead. The following
|
|||||||
@code{errno} conditions are defined for this function:
|
@code{errno} conditions are defined for this function:
|
||||||
|
|
||||||
@table @code
|
@table @code
|
||||||
@item ENFILE
|
@item ENOENT
|
||||||
There are no master pseudo-terminals available.
|
There are no free master pseudo-terminals available.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
This function is a GNU extension.
|
This function is a GNU extension.
|
||||||
@ -2030,7 +2030,13 @@ the slave is set to the values specified in the structure that
|
|||||||
@var{winp} points to.
|
@var{winp} points to.
|
||||||
|
|
||||||
The normal return value from @code{openpty} is @math{0}; a value of
|
The normal return value from @code{openpty} is @math{0}; a value of
|
||||||
@math{-1} is returned in case of failure.
|
@math{-1} is returned in case of failure. The following @code{errno}
|
||||||
|
conditions are defined for this function:
|
||||||
|
|
||||||
|
@table @code
|
||||||
|
@item ENOENT
|
||||||
|
There are no free pseudo-terminal pairs available.
|
||||||
|
@end table
|
||||||
|
|
||||||
@strong{Warning:} Using the @code{openpty} function with @var{name} not
|
@strong{Warning:} Using the @code{openpty} function with @var{name} not
|
||||||
set to @code{NULL} is @strong{very dangerous} because it provides no
|
set to @code{NULL} is @strong{very dangerous} because it provides no
|
||||||
|
Loading…
Reference in New Issue
Block a user