util-linux/sys-utils
Alexey Gladkov ff5717391c flock: Allow lock directory
With this patch, you can lock directory. Additionally,
lockfile opens with O_NOCTTY.

Try to open file with O_CREAT flag first, and without it
if open fails with EISDIR.  Suggested by H. Peter Anvin.

Signed-off-by: Alexey Gladkov <legion@altlinux.org>
2008-12-03 10:33:53 +01:00
..
.gitignore build-sys: move pivot_root(8) to sys-utils 2008-11-19 12:38:43 +01:00
Makefile.am build-sys: move pivot_root(8) to sys-utils 2008-11-19 12:38:43 +01:00
arch.1 sys-utils: add arch(1) back to the official tree 2007-07-11 12:37:40 +02:00
arch.c sys-utils: add arch(1) back to the official tree 2007-07-11 12:37:40 +02:00
ctrlaltdel.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
ctrlaltdel.c Imported from util-linux-2.11b tarball. 2006-12-07 00:25:46 +01:00
cyclades.h Imported from util-linux-2.12i tarball. 2006-12-07 00:26:22 +01:00
cytune.8 cytune: make the oneliner more specific the cyclades hw in question 2007-08-27 23:50:01 +02:00
cytune.c cytune: remove linux/tty.h inclusion 2007-07-19 00:38:00 +02:00
dmesg.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
dmesg.c dmesg: nuke old glibc 5 support 2008-07-28 11:06:50 +02:00
flock.1 flock: Allow lock directory 2008-12-03 10:33:53 +01:00
flock.c flock: Allow lock directory 2008-12-03 10:33:53 +01:00
ipc.info Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
ipc.texi Imported from util-linux-2.11n tarball. 2006-12-07 00:25:52 +01:00
ipcmk.1 ipcmk: new command 2008-09-10 15:36:50 +02:00
ipcmk.c ipcmk: add NLS support 2008-09-10 16:03:43 +02:00
ipcrm.1 ipcmk: new command 2008-09-10 15:36:50 +02:00
ipcrm.c Imported from util-linux-2.11r tarball. 2006-12-07 00:25:56 +01:00
ipcs.1 ipcmk: new command 2008-09-10 15:36:50 +02:00
ipcs.c ipcs: fix exit codes, remove tailing white-spaces 2008-10-07 10:23:23 +02:00
ldattach.8 ldattach: new command 2008-03-10 14:20:26 +01:00
ldattach.c ldattach: use glibc termios 2008-04-09 11:48:24 +02:00
lp.h Imported from util-linux-2.9v tarball. 2006-12-07 00:25:39 +01:00
lscpu.1 lscpu: add Hypervisor detection 2008-10-22 13:56:52 +02:00
lscpu.c lscpu: return EXIT_SUCCESS at the end 2008-10-22 23:35:19 +02:00
pivot_root.8 build-sys: move pivot_root(8) to sys-utils 2008-11-19 12:38:43 +01:00
pivot_root.c pivot_root: clean up 2008-11-19 12:40:06 +01:00
rdev.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
rdev.c rdev: cleanup includes 2008-11-26 14:40:03 +01:00
readprofile.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
readprofile.c readprofile: several strings without gettext calls 2008-10-03 09:27:33 +02:00
renice.1 renice: detect errors in arguments, add -v, -h and long options 2008-01-29 15:31:47 +01:00
renice.c renice: detect errors in arguments, add -v, -h and long options 2008-01-29 15:31:47 +01:00
rtcwake.8 rtcwake: misc cleanups 2007-12-03 13:29:47 +01:00
rtcwake.c rtcwake: cleanup return codes 2008-08-06 12:36:10 +02:00
setarch.8 setarch: add long options to setarch and update manpage 2007-09-05 17:12:18 +02:00
setarch.c setarch: add fallback for linux/personality 2008-05-13 14:00:39 +02:00
setsid.1 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
setsid.c Imported from util-linux-2.11b tarball. 2006-12-07 00:25:46 +01:00
tunelp.8 man pages: add "AVAILABILITY" section 2007-07-03 01:17:04 +02:00
tunelp.c remove CVS keywords 2008-07-28 11:10:08 +02:00