Skip to content

Commit

Permalink
5776 vfork and getwd should not be exposed under XPG7
Browse files Browse the repository at this point in the history
5828 Verify usleep and ualarm in symbol test
Reviewed by: Albert Lee <[email protected]>
Reviewed by: Joshua M. Clulow <[email protected]>
Approved by: Gordon Ross <[email protected]>
  • Loading branch information
gdamore committed Apr 10, 2015
1 parent 98110f0 commit aaec9ca
Show file tree
Hide file tree
Showing 4 changed files with 349 additions and 225 deletions.
13 changes: 3 additions & 10 deletions usr/src/head/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,6 @@ extern uid_t getuid(void);
#if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
extern char *getusershell(void);
#endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
#if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
extern char *getwd(char *);
#endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2)... */
/*
* The following ioctl prototype is duplicated in <stropts.h>. The
* duplication is necessitated by XPG4.2 which requires the prototype
Expand Down Expand Up @@ -559,11 +556,11 @@ extern useconds_t ualarm(useconds_t, useconds_t);
#endif
extern int unlink(const char *);
#if (defined(_XPG4_2) && !defined(_XPG7)) || !defined(_STRICT_SYMBOLS)
extern char *getwd(char *);
extern int usleep(useconds_t);
#endif
#if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
extern pid_t vfork(void) __RETURNS_TWICE;
#endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2)... */
#pragma unknown_control_flow(vfork)
#endif
#if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
extern void vhangup(void);
#endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
Expand Down Expand Up @@ -601,10 +598,6 @@ extern int truncate64(const char *, off64_t);
extern int lockf64(int, int, off64_t);
#endif /* _LARGEFILE64_SOURCE */

#if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
#pragma unknown_control_flow(vfork)
#endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2)... */

/*
* getlogin_r() & ttyname_r() prototypes are defined here.
*/
Expand Down
Loading

0 comments on commit aaec9ca

Please sign in to comment.