extern int ln_main(int argc, char **argv)
{
- char *linkName, *dirName;
+ char *linkName, *dirName=NULL;
int linkIntoDirFlag;
int stopIt = FALSE;
#ifndef __alpha__
# define __NR_klogctl __NR_syslog
-#include <linux/unistd.h>
+#include <sys/syscall.h>
static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
#else /* __alpha__ */
#define klogctl syslog
#if defined(__GLIBC__)
#include <sys/kdaemon.h>
#else
-#include <linux/unistd.h> /* for _syscall() macro */
+#include <sys/syscall.h> /* for _syscall() macro */
static _syscall2(int, bdflush, int, func, int, data);
#endif /* __GLIBC__ */
#if defined(__GLIBC__)
#include <sys/kdaemon.h>
#else
-#include <linux/unistd.h> /* for _syscall() macro */
+#include <sys/syscall.h> /* for _syscall() macro */
static _syscall2(int, bdflush, int, func, int, data);
#endif /* __GLIBC__ */
#include <getopt.h>
#include <sys/utsname.h>
#include <sys/syscall.h>
-#include <linux/unistd.h>
//----------------------------------------------------------------------------
//--------modutils module.h, lines 45-242
#ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1
-#ident "$Id: insmod.c,v 1.13 2000/07/09 06:59:58 andersen Exp $"
+#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $"
/* 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
#ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1
-#ident "$Id: insmod.c,v 1.13 2000/07/09 06:59:58 andersen Exp $"
+#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
extern int ln_main(int argc, char **argv)
{
- char *linkName, *dirName;
+ char *linkName, *dirName=NULL;
int linkIntoDirFlag;
int stopIt = FALSE;
*/
#include "internal.h"
-#include <linux/unistd.h>
+#include <sys/syscall.h>
#include <sys/param.h>
#include <sys/syslog.h>
#include <getopt.h>
#include <sys/utsname.h>
#include <sys/syscall.h>
-#include <linux/unistd.h>
//----------------------------------------------------------------------------
//--------modutils module.h, lines 45-242
#ifndef MODUTILS_MODULE_H
#define MODUTILS_MODULE_H 1
-#ident "$Id: insmod.c,v 1.13 2000/07/09 06:59:58 andersen Exp $"
+#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $"
/* 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
#ifndef MODUTILS_OBJ_H
#define MODUTILS_OBJ_H 1
-#ident "$Id: insmod.c,v 1.13 2000/07/09 06:59:58 andersen Exp $"
+#ident "$Id: insmod.c,v 1.14 2000/07/10 20:08:44 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
#include <mntent.h>
#include <dirent.h>
#include <errno.h>
-#include <linux/unistd.h>
+#include <sys/syscall.h>
_syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path);
#include <sys/types.h>
#include <sys/un.h>
#include <sys/param.h>
-#include <linux/unistd.h>
+#include <sys/syscall.h>
#if ! defined __GLIBC__ && ! defined __UCLIBC__
#include <sys/types.h>
#include <sys/un.h>
#include <sys/param.h>
-#include <linux/unistd.h>
+#include <sys/syscall.h>
#if ! defined __GLIBC__ && ! defined __UCLIBC__
*/
#include "internal.h"
-#include <linux/unistd.h>
+#include <sys/syscall.h>
#include <sys/param.h>
#include <sys/syslog.h>
#ifndef __alpha__
# define __NR_klogctl __NR_syslog
-#include <linux/unistd.h>
+#include <sys/syscall.h>
static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
#else /* __alpha__ */
#define klogctl syslog
#include <mntent.h>
#include <dirent.h>
#include <errno.h>
-#include <linux/unistd.h>
+#include <sys/syscall.h>
_syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path);
#if defined BB_FREE || defined BB_INIT || defined BB_UNAME || defined BB_UPTIME
#include <sys/syscall.h>
-#include <linux/unistd.h>
_syscall1(int, sysinfo, struct sysinfo *, info);
#endif /* BB_INIT */
#if defined BB_MOUNT || defined BB_UMOUNT
#include <sys/syscall.h>
-#include <linux/unistd.h>
#ifndef __NR_umount2
#define __NR_umount2 52