From c885bf5cf94a12202f849477a845d728cbd12889 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 3 Dec 2005 00:34:49 +0000 Subject: More hiding, including __mempcpy --- libc/misc/file/lockf.c | 2 +- libc/misc/file/lockf64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/misc/file') diff --git a/libc/misc/file/lockf.c b/libc/misc/file/lockf.c index 0962031da..29c91482a 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; diff --git a/libc/misc/file/lockf64.c b/libc/misc/file/lockf64.c index eb70e8ddd..63c2ddfbe 100644 --- a/libc/misc/file/lockf64.c +++ b/libc/misc/file/lockf64.c @@ -77,7 +77,7 @@ int lockf64 (int fd, int cmd, off64_t len64) 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; -- cgit v1.2.3