1 Index: linux-2.4.24-2/arch/um/os-Linux/file.c
2 --- linux-2.4.24-2/arch/um/os-Linux/file.c 7 Apr 2004 20:44:49 -0000 1.29
3 +++ linux-2.4.24-2/arch/um/os-Linux/file.c 17 May 2004 18:35:49 -0000
6 int os_lock_file(int fd, int excl)
9 int type = excl ? F_WRLCK : F_RDLCK;
10 struct flock lock = ((struct flock) { .l_type = type,
17 + int type = excl ? LOCK_EX : LOCK_SH;
20 + err = flock(fd, type | LOCK_NB);
26 + printk("file already locked\n");
33 int os_ftruncate(int fd, __u64 size)