Forgot to commit these cleanups it seems.

-Erik
This commit is contained in:
Eric Andersen 2000-07-11 17:52:22 +00:00
parent d006c9e630
commit be909b1cd5
16 changed files with 8 additions and 22 deletions

View File

@ -23,7 +23,6 @@
#ifndef __alpha__ #ifndef __alpha__
# define __NR_klogctl __NR_syslog # define __NR_klogctl __NR_syslog
#include <sys/syscall.h>
static inline _syscall3(int, klogctl, int, type, char *, b, int, len); static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
#else /* __alpha__ */ #else /* __alpha__ */
#define klogctl syslog #define klogctl syslog

1
init.c
View File

@ -110,7 +110,6 @@ struct serial_struct {
#if defined(__GLIBC__) #if defined(__GLIBC__)
#include <sys/kdaemon.h> #include <sys/kdaemon.h>
#else #else
#include <sys/syscall.h> /* for _syscall() macro */
static _syscall2(int, bdflush, int, func, int, data); static _syscall2(int, bdflush, int, func, int, data);
#endif /* __GLIBC__ */ #endif /* __GLIBC__ */

View File

@ -110,7 +110,6 @@ struct serial_struct {
#if defined(__GLIBC__) #if defined(__GLIBC__)
#include <sys/kdaemon.h> #include <sys/kdaemon.h>
#else #else
#include <sys/syscall.h> /* for _syscall() macro */
static _syscall2(int, bdflush, int, func, int, data); static _syscall2(int, bdflush, int, func, int, data);
#endif /* __GLIBC__ */ #endif /* __GLIBC__ */

View File

@ -40,7 +40,6 @@
#include <assert.h> #include <assert.h>
#include <getopt.h> #include <getopt.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <sys/syscall.h>
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
//--------modutils module.h, lines 45-242 //--------modutils module.h, lines 45-242
@ -71,7 +70,7 @@
#ifndef MODUTILS_MODULE_H #ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1 #define MODUTILS_MODULE_H 1
#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" #ident "$Id: insmod.c,v 1.15 2000/07/11 17:52:22 andersen Exp $"
/* This file contains the structures used by the 2.0 and 2.1 kernels. /* This file contains the structures used by the 2.0 and 2.1 kernels.
We do not use the kernel headers directly because we do not wish We do not use the kernel headers directly because we do not wish
@ -277,7 +276,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H #ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1 #define MODUTILS_OBJ_H 1
#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" #ident "$Id: insmod.c,v 1.15 2000/07/11 17:52:22 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */ /* The relocatable object is manipulated using elfin types. */

View File

@ -35,6 +35,10 @@
#include <sys/param.h> #include <sys/param.h>
#include <mntent.h> #include <mntent.h>
#include <regex.h> #include <regex.h>
/* for the _syscall() macros */
#include <sys/syscall.h>
#include <linux/unistd.h>
/* Some useful definitions */ /* Some useful definitions */
#define FALSE ((int) 1) #define FALSE ((int) 1)

View File

@ -24,7 +24,6 @@
*/ */
#include "internal.h" #include "internal.h"
#include <sys/syscall.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/syslog.h> #include <sys/syslog.h>

View File

@ -40,7 +40,6 @@
#include <assert.h> #include <assert.h>
#include <getopt.h> #include <getopt.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#include <sys/syscall.h>
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
//--------modutils module.h, lines 45-242 //--------modutils module.h, lines 45-242
@ -71,7 +70,7 @@
#ifndef MODUTILS_MODULE_H #ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1 #define MODUTILS_MODULE_H 1
#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" #ident "$Id: insmod.c,v 1.15 2000/07/11 17:52:22 andersen Exp $"
/* This file contains the structures used by the 2.0 and 2.1 kernels. /* This file contains the structures used by the 2.0 and 2.1 kernels.
We do not use the kernel headers directly because we do not wish We do not use the kernel headers directly because we do not wish
@ -277,7 +276,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H #ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1 #define MODUTILS_OBJ_H 1
#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $" #ident "$Id: insmod.c,v 1.15 2000/07/11 17:52:22 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */ /* The relocatable object is manipulated using elfin types. */

View File

@ -26,8 +26,6 @@
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#define __LIBRARY__ #define __LIBRARY__
#include <asm/unistd.h>
/* #include <sys/syscall.h> */

View File

@ -26,8 +26,6 @@
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#define __LIBRARY__ #define __LIBRARY__
#include <asm/unistd.h>
/* #include <sys/syscall.h> */

View File

@ -28,7 +28,6 @@
#include <mntent.h> #include <mntent.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <sys/syscall.h>
_syscall2(int, swapon, const char *, path, int, flags); _syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path); _syscall1(int, swapoff, const char *, path);

View File

@ -40,7 +40,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/syscall.h>
#if ! defined __GLIBC__ && ! defined __UCLIBC__ #if ! defined __GLIBC__ && ! defined __UCLIBC__

View File

@ -40,7 +40,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/syscall.h>
#if ! defined __GLIBC__ && ! defined __UCLIBC__ #if ! defined __GLIBC__ && ! defined __UCLIBC__

View File

@ -24,7 +24,6 @@
*/ */
#include "internal.h" #include "internal.h"
#include <sys/syscall.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/syslog.h> #include <sys/syslog.h>

View File

@ -23,7 +23,6 @@
#ifndef __alpha__ #ifndef __alpha__
# define __NR_klogctl __NR_syslog # define __NR_klogctl __NR_syslog
#include <sys/syscall.h>
static inline _syscall3(int, klogctl, int, type, char *, b, int, len); static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
#else /* __alpha__ */ #else /* __alpha__ */
#define klogctl syslog #define klogctl syslog

View File

@ -28,7 +28,6 @@
#include <mntent.h> #include <mntent.h>
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <sys/syscall.h>
_syscall2(int, swapon, const char *, path, int, flags); _syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path); _syscall1(int, swapoff, const char *, path);

View File

@ -133,12 +133,10 @@ extern int get_kernel_revision(void)
#if defined BB_FREE || defined BB_INIT || defined BB_UNAME || defined BB_UPTIME #if defined BB_FREE || defined BB_INIT || defined BB_UNAME || defined BB_UPTIME
#include <sys/syscall.h>
_syscall1(int, sysinfo, struct sysinfo *, info); _syscall1(int, sysinfo, struct sysinfo *, info);
#endif /* BB_INIT */ #endif /* BB_INIT */
#if defined BB_MOUNT || defined BB_UMOUNT #if defined BB_MOUNT || defined BB_UMOUNT
#include <sys/syscall.h>
#ifndef __NR_umount2 #ifndef __NR_umount2
#define __NR_umount2 52 #define __NR_umount2 52