#include <sys/types.h>
-#include <minix/ansi.h>
#define MAXLL 2048 /* ridiculous maximum line length */
* 4. This notice may not be removed or altered.
*/
-#include <minix/ansi.h>
#ifdef UNIX
# ifdef USG
}
exwrote = FALSE;
-#if TURBOC || __GNUC__ || _ANSI
signal(SIGINT, (void(*)()) trapint);
-#else
- signal(SIGINT, trapint);
-#endif
}
/* This function fetches an optional string from termcap */
#if OSK
sigmask(-1);
#endif
-#if TURBOC || __GNUC__ || _ANSI
signal(signo, (void (*)())trapint);
-#else
- signal(signo, trapint);
-#endif
doingglobal = FALSE;
longjmp(jmpenv, 1);
{
status = -1;
}
-#if __GNUC__ || _ANSI
signal(SIGINT, (void (*)()) trapint);
-#else
- signal(SIGINT, trapint);
-#endif
}
return status;
close(fd);
wait(&status);
-#if __GNUC__ || _ANSI
signal(SIGINT, (void (*)()) trapint);
-#else
- signal(SIGINT, trapint);
-#endif
return status;
}
int time; /* maximum time to allow for reading */
{
/* arrange for timeout */
-#if __GNUC__ || _ANSI
signal(SIGALRM, (void (*)()) dummy);
-#else
- signal(SIGALRM, dummy);
-#endif
alarm(time);
/* perform the blocking read */
}
/* cancel the alarm */
-#if _ANSI
signal(SIGALRM, (void (*)())dummy); /* work around a bug in Minix */
-#else
- signal(SIGALRM, dummy); /* work around a bug in Minix */
-#endif
alarm(0);
/* return the number of bytes read */
#include <minix/config.h>
-#include <minix/ansi.h>
#include <sys/types.h>
#include <minix/const.h>
struct winsize winsize;
#endif
-#if __minix
-#define PROTO(a) _ARGS(a)
-#else
-#define PROTO(a) ()
-#endif
+#define PROTO(a) a
int main PROTO(( int argc, char **argv ));
void report PROTO(( int flags ));
#define MS_LABEL16 0x004 /* Mount message points to 16-byte label */
#define MS_EXISTING 0x008 /* Tell mount to use already running server */
-
-/* Function Prototypes. */
-#ifndef _MINIX_ANSI_H
-#include <minix/ansi.h>
-#endif
-
int mount(char *_spec, char *_name, int _mountflags, char *type, char
*args);
int umount(const char *_name);
#define TCIOFF 3 /* transmit a STOP character on the line */
#define TCION 4 /* transmit a START character on the line */
-/* Function Prototypes. */
-#ifndef _MINIX_ANSI_H
-#include <minix/ansi.h>
-#endif
-
int tcsendbreak(int _fildes, int _duration);
int tcdrain(int _filedes);
int tcflush(int _filedes, int _queue_selector);
INCS+= env.h fetch.h lib.h libutil.h timers.h
-INCS+= minix/acpi.h minix/ansi.h minix/audio_fw.h minix/bitmap.h \
+INCS+= minix/acpi.h minix/audio_fw.h minix/bitmap.h \
minix/bdev.h minix/blockdriver.h minix/blockdriver_mt.h \
minix/btrace.h \
minix/callnr.h minix/chardriver.h minix/com.h minix/compiler.h \
#ifndef _DDEKIT_DDEKIT_H
#define _DDEKIT_DDEKIT_H
-#include <minix/ansi.h>
void ddekit_init(void);
#endif
#ifdef __NBSD_LIBC
-#include <minix/ansi.h>
#endif
int env_parse(char *env, char *fmt, int field, long *param, long min,
long max);
#include <minix/types.h>
#include <limits.h>
#include <errno.h>
-#include <minix/ansi.h>
#include <minix/const.h>
#include <minix/com.h>
+++ /dev/null
-#ifndef _MINIX_ANSI_H
-#define _MINIX_ANSI_H
-
-#if __STDC__ == 1
-#define _ANSI 31459 /* compiler claims full ANSI conformance */
-#endif
-
-#ifdef __GNUC__
-#define _ANSI 31459 /* gcc conforms enough even in non-ANSI mode */
-#endif
-
-/* Setting of _POSIX_SOURCE (or _NETBSD_SOURCE) in NBSD headers is
- * done in <sys/featuretest.h> */
-#include <sys/featuretest.h>
-
-#endif /* _MINIX_ANSI_H */
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <minix/type.h>
#include <minix/ipc.h>
#include <minix/com.h>
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <minix/type.h>
#include <minix/com.h>
#include <minix/dmap.h>
#define _IPC_H
#ifdef __NBSD_LIBC
-#include <minix/ansi.h>
#endif
#include <minix/ipcconst.h>
#include <minix/type.h>
#ifndef _MINLIB
#define _MINLIB
-#ifndef _MINIX_ANSI_H
-#include <minix/ansi.h>
-#endif
-
/* Miscellaneous BSD. */
char *itoa(int _n);
#ifndef __NBSD_LIBC
#define _MTHREAD_H
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <minix/const.h>
#include <sys/types.h>
#include <stdio.h>
#ifndef _PROFILE_H
#define _PROFILE_H
-#include <minix/ansi.h>
#include <minix/type.h>
/*
#ifndef _MINIX__QUERYPARAM_H
#define _MINIX__QUERYPARAM_H
-#include <minix/ansi.h>
typedef size_t _mnx_size_t;
#define _MINIX_TYPES_H_
/* Dummy file used in legacy (and shared) minix includes. */
-#include <minix/ansi.h>
#include <sys/types.h>
#include <sys/sigtypes.h>
#ifdef _MINIX
/* If compiling in Minix tree, Minix ANSI definitions are always useful. */
-#include <minix/ansi.h>
#endif
#endif /* !_SYS_CDEFS_H_ */
*/
#ifndef __ASSEMBLY__
-#include <minix/ansi.h>
#include <minix/debug.h>
#include "config.h"
#endif
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* global configuration, MUST be first */
-#include <minix/ansi.h> /* C style: ANSI or K&R, MUST be second */
#include <sys/types.h> /* general system types */
#include <minix/const.h> /* MINIX specific constants */
#include <minix/type.h> /* MINIX specific types, e.g. message */
/* $Header$ */
#include <sys/cdefs.h>
#include "namespace.h"
-#include <minix/ansi.h>
#ifdef __weak_alias
__weak_alias(popen, _popen)
typedef int wait_arg;
#endif /* __BSD4_2 */
-#ifdef _ANSI
int _close(int d);
int _dup2(int oldd, int newd); /* not present in System 5 */
int _execl(const char *name, const char *_arg, ... );
int _pipe(int fildes[2]);
pid_t _wait(wait_arg *status);
void _exit(int status);
-#endif
static int pids[OPEN_MAX];
wait_arg status;
int wret;
-#ifdef _ANSI
void (*intsave)(int) = signal(SIGINT, SIG_IGN);
void (*quitsave)(int) = signal(SIGQUIT, SIG_IGN);
-#else
- void (*intsave)() = signal(SIGINT, SIG_IGN);
- void (*quitsave)() = signal(SIGQUIT, SIG_IGN);
-#endif
fclose(stream);
while ((wret = _wait(&status)) != -1) {
if (wret == pids[fd]) break;
#include <sys/cdefs.h>
-#include <minix/ansi.h>
#include "namespace.h"
#include <errno.h>
__weak_alias(fcntl, _fcntl)
#endif
-#if _ANSI
int fcntl(int fd, int cmd, ...)
-#else
-int fcntl(fd, cmd)
-int fd;
-int cmd;
-#endif
{
va_list argp;
message m;
#include <sys/cdefs.h>
#include "namespace.h"
-#include <minix/ansi.h>
#include <errno.h>
#include <stdio.h>
#include <sys/cdefs.h>
#include "namespace.h"
-#include <minix/ansi.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <sys/cdefs.h>
-#include <minix/ansi.h>
#include "namespace.h"
#include <assert.h>
#define _SYSTEM 1
#define _MINIX 1
-#include <minix/ansi.h>
#include <minix/callnr.h>
#include <minix/com.h>
#include <minix/config.h>
__weak_alias(open, _open)
#endif
-#if _ANSI
int open(const char *name, int flags, ...)
-#else
-int open(const char *name, int flags)
-#endif
{
va_list argp;
message m;
#include <sys/cdefs.h>
-#include <minix/ansi.h>
#include "namespace.h"
#undef NDEBUG
#define C_EXT 0020 /* external symbol */
#define C_STAT 0030 /* static */
-/* Function prototypes. */
-#ifndef _MINIX_ANSI_H
-#include <minix/ansi.h>
-#endif
-
int nlist(char *_file, struct nlist *_nl);
#endif /* _AOUT_H */
/* fslib.c - routines needed by fs and fs utilities */
#include <minix/config.h> /* for unused stuff in <minix/type.h> :-( */
-#include <minix/ansi.h>
#include <limits.h>
#include <dirent.h>
#include <sys/types.h>
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <sys/cdefs.h>
#include <sys/types.h>
#include <minix/const.h>
#define _SYSTEM 1
#include <minix/config.h>
-#include <minix/ansi.h>
#include <assert.h>
#include <sys/types.h>
#include <minix/const.h>
#define _MINIX 1 /* tell headers to include MINIX stuff */
#define _SYSTEM 1 /* tell headers that this is the kernel */
-#include <minix/ansi.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define _MINIX 1 /* tell headers to include MINIX stuff */
#define _SYSTEM 1 /* get OK and negative error codes */
-#include <minix/ansi.h>
#include <sys/types.h>
#include <sys/param.h>
#include <limits.h>
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <sys/types.h>
#include <minix/const.h>
#include <minix/type.h>
do { if (((level) & DEBUG) && (condition)) \
{ where(); code; } } while(0)
-#if _ANSI
-#define ARGS(x) x
-#else /* _ANSI */
-#define ARGS(x) ()
-#endif /* _ANSI */
-
extern int this_proc;
extern char version[];
#ifndef _MINIX__QUERYPARAM_H
#define _MINIX__QUERYPARAM_H
-#include <minix/ansi.h>
typedef size_t _mnx_size_t;
#define _SYSTEM 1 /* get OK and negative error codes */
#define _MINIX 1 /* tell headers to include MINIX stuff */
-#include <minix/ansi.h>
#include <sys/types.h>
#include <limits.h>
#include <errno.h>
#define VERBOSE 0 /* display diagnostics */
-#include <minix/ansi.h>
#include <sys/types.h>
#include <limits.h>
#include <errno.h>
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <sys/types.h>
#include <minix/const.h>
#include <minix/type.h>
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <sys/types.h>
#include <minix/const.h>
#include <minix/type.h>
#include <net/ioctl.h>
#endif
-#include <minix/ansi.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/select.h>
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <sys/types.h>
#include <minix/const.h>
#include <minix/type.h>
#define _SYSTEM 1
#include <minix/config.h>
-#include <minix/ansi.h>
#include <limits.h>
#include <errno.h>
#include <signal.h>
#define _SYSTEM 1 /* get OK and negative error codes */
#define _MINIX 1 /* tell headers to include MINIX stuff */
-#include <minix/ansi.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <sys/types.h>
#include <minix/const.h>
/* The following are so basic, all the *.c files get them automatically. */
#include <minix/config.h> /* MUST be first */
-#include <minix/ansi.h> /* MUST be second */
#include <sys/types.h>
#include <minix/const.h>
#include <minix/type.h>
#ifdef SIGACTION
struct sigaction act, oact;
#else
-#if _ANSI
void (*oldfunc) (int);
-#else
- void (*oldfunc) ();
-#endif
#endif
subtest = 3;