patch-1.3.46 linux/lib/open.c
Next file: linux/lib/setsid.c
Previous file: linux/lib/execve.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Thu Jan 1 02:00:00 1970
- Orig file:
v1.3.45/linux/lib/open.c
- Orig date:
Wed Jan 4 21:16:06 1995
diff -u --recursive --new-file v1.3.45/linux/lib/open.c linux/lib/open.c
@@ -1,24 +0,0 @@
-/*
- * linux/lib/open.c
- *
- * Copyright (C) 1991, 1992 Linus Torvalds
- */
-
-#define __LIBRARY__
-#include <linux/unistd.h>
-#include <stdarg.h>
-
-#define open __sys_open
-static inline _syscall3(int, open, const char *, filename, int, flag, int, mode)
-#undef open
-
-int open(const char * filename, int flag, ...)
-{
- int res;
- va_list arg;
-
- va_start(arg,flag);
- res = __sys_open(filename, flag, va_arg(arg, int));
- va_end(arg);
- return res;
-}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this