Files
Arquivotheca.SunOS-4.1.4/lib/libc/sys/common/chkpath.h
seta75D ff309bfe1c Init
2021-10-11 18:37:13 -03:00

17 lines
380 B
C

#if !defined(lint) && defined(SCCSIDS)
static char sccsid[] = "@(#)chkpath.h 1.1 94/10/31 SMI";
#endif
/*
* return ENOENT if they handed us ""
*/
# include <sys/types.h>
# include <sys/syscall.h>
# include <sys/errno.h>
# define CHK(p) if ((p) != (char*)0 && *(p) == 0) { \
errno = ENOENT; \
return -1; \
}
extern int syscall();
extern errno;