OSDN Git Service

Hide chmod, lockf*
authorPeter S. Mazinger <ps.m@gmx.net>
Tue, 13 Dec 2005 10:41:14 +0000 (10:41 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Tue, 13 Dec 2005 10:41:14 +0000 (10:41 -0000)
libc/misc/file/lockf.c
libc/misc/file/lockf64.c
libc/sysdeps/linux/common/chmod.c

index 29c9148..dd5b90b 100644 (file)
@@ -24,7 +24,7 @@
 
 /* lockf is a simplified interface to fcntl's locking facilities.  */
 
-int lockf (int fd, int cmd, off_t len)
+int attribute_hidden __lockf (int fd, int cmd, off_t len)
 {
     struct flock fl;
 
@@ -68,3 +68,4 @@ int lockf (int fd, int cmd, off_t len)
 
     return fcntl(fd, cmd, &fl);
 }
+strong_alias(__lockf,lockf)
index 63c2ddf..23f88f1 100644 (file)
@@ -50,7 +50,7 @@ extern int fcntl64 (int fd, int cmd, ...);
 
 /* lockf is a simplified interface to fcntl's locking facilities.  */
 
-int lockf64 (int fd, int cmd, off64_t len64)
+int attribute_hidden __lockf64 (int fd, int cmd, off64_t len64)
 {
     struct flock fl;
     off_t len = (off_t) len64;
@@ -103,3 +103,4 @@ int lockf64 (int fd, int cmd, off64_t len64)
     return fcntl(fd, cmd, &fl);
 }
 
+strong_alias(__lockf64,lockf64)
index 6317066..bf368cf 100644 (file)
@@ -13,7 +13,8 @@
 #define __NR___syscall_chmod __NR_chmod
 static inline _syscall2(int, __syscall_chmod, const char *, path, __kernel_mode_t, mode);
 
-int chmod(const char *path, mode_t mode)
+int attribute_hidden __chmod(const char *path, mode_t mode)
 {
        return __syscall_chmod(path, mode);
 }
+strong_alias(__chmod,chmod)