open.c (a26eab2400f0477bfac0255600552394855016f7) | open.c (002c8976ee537724b20a5e179d9b349309438836) |
---|---|
1/* 2 * linux/fs/open.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 */ 6 7#include <linux/string.h> 8#include <linux/mm.h> --- 1067 unchanged lines hidden (view full) --- 1076} 1077 1078#ifndef __alpha__ 1079 1080/* 1081 * For backward compatibility? Maybe this should be moved 1082 * into arch/i386 instead? 1083 */ | 1/* 2 * linux/fs/open.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 */ 6 7#include <linux/string.h> 8#include <linux/mm.h> --- 1067 unchanged lines hidden (view full) --- 1076} 1077 1078#ifndef __alpha__ 1079 1080/* 1081 * For backward compatibility? Maybe this should be moved 1082 * into arch/i386 instead? 1083 */ |
1084asmlinkage long sys_creat(const char __user * pathname, int mode) | 1084SYSCALL_DEFINE2(creat, const char __user *, pathname, int, mode) |
1085{ 1086 return sys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); 1087} 1088 1089#endif 1090 1091/* 1092 * "id" is the POSIX thread ID. We use the --- 102 unchanged lines hidden --- | 1085{ 1086 return sys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); 1087} 1088 1089#endif 1090 1091/* 1092 * "id" is the POSIX thread ID. We use the --- 102 unchanged lines hidden --- |