summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-09-15 08:49:46 +0000
committerEric Andersen <andersen@codepoet.org>2001-09-15 08:49:46 +0000
commitaaaab475d7e67af362d4597c9d26553a0f80ae01 (patch)
tree32430b9000e205a4ee221194cf33dd5d91476ba7 /libc
parentd23f24663a1ab5c71007d875a2b4022472f5f312 (diff)
Oops
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/file/lockf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/file/lockf.c b/libc/misc/file/lockf.c
index 3d6f46290..f95b24fac 100644
--- a/libc/misc/file/lockf.c
+++ b/libc/misc/file/lockf.c
@@ -43,7 +43,7 @@ int lockf (int fd, int cmd, off_t len)
fl.l_type = F_RDLCK;
if (fcntl (fd, F_GETLK, &fl) < 0)
return -1;
- if (fl.l_type == F_UNLCK || fl.l_pid == __getpid ())
+ if (fl.l_type == F_UNLCK || fl.l_pid == getpid ())
return 0;
__set_errno(EACCES);
return -1;