]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(rpl_openat): Also accept optional mode parameter.
authorJim Meyering <jim@meyering.net>
Sun, 28 Nov 2004 22:42:08 +0000 (22:42 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 28 Nov 2004 22:42:08 +0000 (22:42 +0000)
Adjust prototype

lib/openat.h

index 8354b3adab830d4d9d34359e3df3dfdffb0079a0..5842105fd2856bc86023d42546dde2cbcddb10d4 100644 (file)
 #  define __OPENAT_XCONCAT(x, y) __OPENAT_CONCAT (x, y)
 #  define __OPENAT_ID(y) __OPENAT_XCONCAT (__OPENAT_PREFIX, y)
 #  define openat __OPENAT_ID (openat)
-/* FIXME: use proper prototype */
-#if 0
-   int openat (int fd, char const *filename, int flags, /* mode_t mode */ ...);
-#endif
-int openat (int fd, char const *filename, int flags);
+int openat (int fd, char const *filename, int flags, /* mode_t mode */ ...);
 # endif
 #endif