summaryrefslogtreecommitdiff
path: root/sys/compat/linux/include
diff options
context:
space:
mode:
authorfvdl <fvdl@NetBSD.org>1995-03-05 23:23:37 +0000
committerfvdl <fvdl@NetBSD.org>1995-03-05 23:23:37 +0000
commit182c23c8bc953f735285f652e318b26abdb110d5 (patch)
treec412b378bbe811dee6c821046621ac00649e418e /sys/compat/linux/include
parent6c30f4a8925eee67df33399ec86d46da08c9612e (diff)
Added a few more system calls.
More consistent alternate root file semantics throughout.
Diffstat (limited to 'sys/compat/linux/include')
-rw-r--r--sys/compat/linux/include/linux_types.h16
-rw-r--r--sys/compat/linux/include/linux_util.h11
2 files changed, 21 insertions, 6 deletions
diff --git a/sys/compat/linux/include/linux_types.h b/sys/compat/linux/include/linux_types.h
index 7c1a5f99c4e..627f7d01e02 100644
--- a/sys/compat/linux/include/linux_types.h
+++ b/sys/compat/linux/include/linux_types.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_types.h,v 1.1 1995/02/28 23:26:14 fvdl Exp $ */
+/* $NetBSD: linux_types.h,v 1.2 1995/03/05 23:23:48 fvdl Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -34,6 +34,9 @@
#ifndef _LINUX_TYPES_H
#define _LINUX_TYPES_H
+typedef struct {
+ long val[2];
+} linux_fsid_t;
typedef unsigned short linux_uid_t;
typedef unsigned short linux_gid_t;
@@ -49,7 +52,16 @@ typedef unsigned long linux_sigset_t;
typedef void (*linux_handler_t)(int);
struct linux_statfs {
- int dummy; /* Not filled in yet */
+ long l_ftype;
+ long l_fbsize;
+ long l_fblocks;
+ long l_fbfree;
+ long l_fbavail;
+ long l_ffiles;
+ long l_fffree;
+ linux_fsid_t l_ffsid;
+ long l_fnamelen;
+ long l_fspare[6];
};
/*
diff --git a/sys/compat/linux/include/linux_util.h b/sys/compat/linux/include/linux_util.h
index a720ddf476d..8b2a3c8463a 100644
--- a/sys/compat/linux/include/linux_util.h
+++ b/sys/compat/linux/include/linux_util.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_util.h,v 1.1 1995/02/28 23:26:17 fvdl Exp $ */
+/* $NetBSD: linux_util.h,v 1.2 1995/03/05 23:23:50 fvdl Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -67,9 +67,12 @@ stackgap_alloc(sgp, sz)
extern const char linux_emul_path[];
int linux_emul_find __P((struct proc *, caddr_t *, const char *, char *,
- char **));
+ char **, int));
-#define CHECK_ALT(p, sgp, path) \
- linux_emul_find(p, sgp, linux_emul_path, path, &(path))
+#define CHECK_ALT_EXIST(p, sgp, path) \
+ linux_emul_find(p, sgp, linux_emul_path, path, &(path), 0)
+
+#define CHECK_ALT_CREAT(p, sgp, path) \
+ linux_emul_find(p, sgp, linux_emul_path, path, &(path), 1)
#endif /* !_LINUX_UTIL_H_ */