diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2003-01-02 20:44:41 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2003-01-02 20:44:41 +0000 |
commit | d3951ad162da9d90d752eab5527b608e9e90624e (patch) | |
tree | b73789d43d391b64d579648dab88f31e3703a140 /include | |
parent | a3929677dd5f6c061dd0466eacf4e63fc60946c9 (diff) | |
download | src-d3951ad162da9d90d752eab5527b608e9e90624e.tar.gz src-d3951ad162da9d90d752eab5527b608e9e90624e.zip |
Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin
to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes
to the user being granted the pty.
Submitted by: Ryan Younce <ryany@pobox.com>
Reviewed by: security-officer@, standards@, mike@
Notes
Notes:
svn path=/head/; revision=108574
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index b8dddedb6f30..f7fd3a761dc5 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -184,7 +184,7 @@ double erand48(unsigned short[3]); int getsubopt(char **, char *const *, char **); #define _GETSUBOPT_DECLARED #endif -/* int grantpt(int); */ +int grantpt(int); char *initstate(unsigned long /* XSI requires u_int */, char *, long); long jrand48(unsigned short[3]); /* char *l64a(long); */ @@ -200,8 +200,8 @@ char *mktemp(char *); #endif long mrand48(void); long nrand48(unsigned short[3]); -/* int posix_openpt(int); */ -/* char *ptsname(int); */ +int posix_openpt(int); +char *ptsname(int); int putenv(const char *); long random(void); char *realpath(const char *, char resolved_path[]); @@ -214,7 +214,7 @@ int setkey(const char *); char *setstate(/* const */ char *); void srand48(long); void srandom(unsigned long); -/* int unlockpt(int); */ +int unlockpt(int); #endif /* __XSI_VISIBLE */ #if __BSD_VISIBLE |