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

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