This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

unlinkat, symlinkat in wrong headers


Per POSIX, unlinkat should be declared in <unistd.h>; but cygwin only declares 
it in <fcntl.h>:

$ echo '#include <unistd.h>' | gcc -E - | grep unlink
int __attribute__((__cdecl__)) unlink (const char *__path );
$ echo '#include <fcntl.h>' | gcc -E - | grep unlink
extern int unlinkat (int, const char *, int);

Likewise, symlinkat should be in <unistd.h>; but cygwin only declares it in 
<stdio.h>:

$ echo '#include <unistd.h>' | gcc -E - | grep 'symlink'
int __attribute__((__cdecl__)) symlink (const char *__name1, const char 
*__name2);
$ echo '#include <stdio.h>' | gcc -E - | grep 'symlink'
int __attribute__((__cdecl__)) symlinkat (const char *, int, const char *);

-- 
Eric Blake



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]