added _S_IFMT, _S_IFREG, and S_ISREG

This commit is contained in:
Todd C. Miller
1995-03-28 05:44:58 +00:00
parent 6b98875f8d
commit b207b64d8e

View File

@@ -48,6 +48,19 @@
# define MAXHOSTNAMELEN 64
#endif
/*
* Posix versions for those without...
*/
#ifndef _S_IFMT
# define _S_IFMT S_IFMT
#endif /* _S_IFMT */
#ifndef _S_IFREG
# define _S_IFREG S_IFREG
#endif /* _S_IFREG */
#ifndef S_ISREG
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
#endif /* S_ISREG */
/*
* Emulate seteuid() and setegid() for HP-UX
*/