OSDN Git Service

hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing...
[uclinux-h8/uClibc.git] / libc / misc / sysvipc / ftok.c
index fd4021d..12627ca 100644 (file)
 #include <sys/ipc.h>
 #include <sys/stat.h>
 
+libc_hidden_proto(stat)
+
 key_t ftok (const char *pathname, int proj_id)
 {
   struct stat st;
   key_t key;
 
-  if (__stat(pathname, &st) < 0)
+  if (stat(pathname, &st) < 0)
     return (key_t) -1;
 
   key = ((st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16)