diff options
author | jmallett <jmallett@FreeBSD.org> | 2003-01-02 20:44:41 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2003-01-02 20:44:41 +0000 |
commit | a33543dd9281563dbf12b04862c79e090d59086b (patch) | |
tree | b73789d43d391b64d579648dab88f31e3703a140 /include | |
parent | e7208853a8e3200ee2874614736c059b0c1a0611 (diff) | |
download | FreeBSD-src-a33543dd9281563dbf12b04862c79e090d59086b.zip FreeBSD-src-a33543dd9281563dbf12b04862c79e090d59086b.tar.gz |
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@
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 b8ddded..f7fd3a7 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 |