Explorar el Código

Correct _getdents[64] and __syscall_ipc

Peter S. Mazinger hace 19 años
padre
commit
48e47d2f49
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      libc/misc/dirent/dirstream.h
  2. 1 1
      libc/misc/sysvipc/ipc.h

+ 2 - 2
libc/misc/dirent/dirstream.h

@@ -71,9 +71,9 @@ struct __dirstream {
 };				/* stream data from opendir() */
 
 
-extern int __getdents(unsigned int fd, struct dirent *dirp, unsigned int count);
+extern ssize_t __getdents(int fd, char *buf, size_t count);
 #ifdef __UCLIBC_HAS_LFS__
-extern int __getdents64 (unsigned int fd, struct dirent64 *dirp, unsigned int count);
+extern ssize_t __getdents64 (int fd, char *buf, size_t count);
 #endif
 
 #endif /* dirent.h  */

+ 1 - 1
libc/misc/sysvipc/ipc.h

@@ -7,7 +7,7 @@
 #ifdef __NR_ipc
 
 /* The actual system call: all functions are multiplexed by this.  */
-extern int __syscall_ipc __P((int __call, int __first, int __second,
+extern int __syscall_ipc __P((unsigned int __call, int __first, int __second,
 					  int __third, void *__ptr));