retire _ANSI and <minix/ansi.h>

This commit is contained in:
Ben Gras
2012-03-25 21:58:27 +02:00
parent f22864c24e
commit 204ae72525
55 changed files with 2 additions and 133 deletions
-8
View File
@@ -4,7 +4,6 @@
/* $Header$ */
#include <sys/cdefs.h>
#include "namespace.h"
#include <minix/ansi.h>
#ifdef __weak_alias
__weak_alias(popen, _popen)
@@ -26,7 +25,6 @@ typedef union wait wait_arg;
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, ... );
@@ -34,7 +32,6 @@ pid_t _fork(void);
int _pipe(int fildes[2]);
pid_t _wait(wait_arg *status);
void _exit(int status);
#endif
static int pids[OPEN_MAX];
@@ -84,13 +81,8 @@ FILE *stream;
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;
-1
View File
@@ -1,5 +1,4 @@
#include <sys/cdefs.h>
#include <minix/ansi.h>
#include "namespace.h"
#include <errno.h>
-6
View File
@@ -9,13 +9,7 @@
__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;
-1
View File
@@ -1,6 +1,5 @@
#include <sys/cdefs.h>
#include "namespace.h"
#include <minix/ansi.h>
#include <errno.h>
#include <stdio.h>
-1
View File
@@ -8,7 +8,6 @@
#include <sys/cdefs.h>
#include "namespace.h"
#include <minix/ansi.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
-1
View File
@@ -1,5 +1,4 @@
#include <sys/cdefs.h>
#include <minix/ansi.h>
#include "namespace.h"
#include <assert.h>
-1
View File
@@ -2,7 +2,6 @@
#define _SYSTEM 1
#define _MINIX 1
#include <minix/ansi.h>
#include <minix/callnr.h>
#include <minix/com.h>
#include <minix/config.h>
-4
View File
@@ -10,11 +10,7 @@
__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;
-1
View File
@@ -1,5 +1,4 @@
#include <sys/cdefs.h>
#include <minix/ansi.h>
#include "namespace.h"
#undef NDEBUG