Quizzer
view release on metacpan or search on metacpan
exercises/compile-tcsh/tcsh-6.10.00/tc.os.h view on Meta::CPAN
# ifdef BSD
extern uid_t getuid(), geteuid();
extern gid_t getgid(), getegid();
# endif /* BSD */
# ifdef SYSMALLOC
extern memalign_t malloc();
extern memalign_t realloc();
extern memalign_t calloc();
extern void free();
# endif /* SYSMALLOC */
# ifdef BSDTIMES
extern int getrlimit();
extern int setrlimit();
extern int getrusage();
extern int gettimeofday();
# endif /* BSDTIMES */
# if defined(NLS) && !defined(NOSTRCOLL) && !defined(NeXT)
extern int strcoll();
# endif /* NLS && !NOSTRCOLL && !NeXT */
# ifdef BSDJOBS
# ifdef BSDTIMES
# ifdef __MACHTEN__
extern pid_t wait3();
# else
# ifndef HPBSD
extern int wait3();
# endif /* HPBSD */
# endif /* __MACHTEN__ */
# else /* !BSDTIMES */
# if !defined(POSIXJOBS) && !defined(_SEQUENT_)
extern int wait3();
# else /* POSIXJOBS || _SEQUENT_ */
extern int waitpid();
# endif /* POSIXJOBS || _SEQUENT_ */
# endif /* BSDTIMES */
# else /* !BSDJOBS */
# if SYSVREL < 3
extern int ourwait();
# else /* SYSVREL >= 3 */
extern int wait();
# endif /* SYSVREL < 3 */
# endif /* BSDJOBS */
# ifdef BSDNICE
extern int setpriority();
# else /* !BSDNICE */
extern int nice();
# endif /* BSDNICE */
# if (!defined(fps500) && !defined(apollo) && !defined(__lucid) && !defined(HPBSD) && !defined(DECOSF1))
extern void setpwent();
extern void endpwent();
# endif /* !fps500 && !apollo && !__lucid && !HPBSD && !DECOSF1 */
# ifndef __STDC__
extern struct passwd *getpwuid(), *getpwnam(), *getpwent();
# ifdef PW_SHADOW
extern struct spwd *getspnam(), *getspent();
# endif /* PW_SHADOW */
# ifdef PW_AUTH
extern struct authorization *getauthuid();
# endif /* PW_AUTH */
# endif /* __STDC__ */
# ifndef getcwd
extern char *getcwd();
# endif /* getcwd */
#else /* POSIX || !SUNOS4 || !UTekV || !sysV88 */
# if (defined(SUNOS4) && !defined(__GNUC__)) || defined(_IBMR2) || defined(_IBMESA)
extern char *getvwd();
# endif /* (SUNOS4 && ! __GNUC__) || _IBMR2 || _IBMESA */
# ifdef SCO
extern char *ttyname();
# endif /* SCO */
# ifdef __clipper__
extern char *ttyname();
# endif /* __clipper__ */
#endif /* !POSIX || SUNOS4 || UTekV || sysV88 */
#if defined(SUNOS4) && __GNUC__ == 2
/*
* Somehow these are missing
*/
extern int ioctl __P((int, int, ...));
extern int readlink __P((const char *, char *, size_t));
extern void setgrent __P((void));
extern void endgrent __P((void));
# ifdef REMOTEHOST
# ifndef _SOCKLEN_T /* Avoid Solaris 2.7 bogosity. */
struct sockaddr;
extern int getpeername __P((int, struct sockaddr *, int *));
# endif /* _SOCKLEN_T */
# endif /* REMOTEHOST */
#endif /* SUNOS4 && __GNUC__ == 2 */
#if (defined(BSD) && !defined(BSD4_4)) || defined(SUNOS4)
# if defined(__alpha) && defined(__osf__) && DECOSF1 < 200
extern void bcopy __P((const void *, void *, size_t));
# define memmove(a, b, c) (bcopy((char *) (b), (char *) (a), (int) (c)), a)
# endif /* __alpha && __osf__ && DECOSF1 < 200 */
#endif /* (BSD && !BSD4_4) || SUNOS4 */
#if !defined(hpux) && !defined(COHERENT) && ((SYSVREL < 4) || defined(_SEQUENT_)) && !defined(BSD4_4) && !defined(memmove)
# define NEEDmemmove
#endif /* !hpux && !COHERENT && (SYSVREL < 4 || _SEQUENT_) && !BSD4_4 && !memmove */
#if defined(UTek) || defined(pyr)
# define NEEDmemset
#else /* !UTek && !pyr */
# ifdef SUNOS4
# include <memory.h> /* memset should be declared in <string.h> but isn't */
( run in 2.735 seconds using v1.01-cache-2.11-cpan-364913b4093 )