1 /* test whether readlink returns a short buffer incorrectly.
2 We need to return 0 in case readlink is *broken* here - this is because our waf
3 CHECK_CODE function does only allow generating defines in case the test succeeds
6 #if defined(HAVE_UNISTD_H)
10 #include <sys/types.h>
14 #define DATA "readlink.test"
15 #define FNAME "rdlnk.file"
24 ret
= symlink(DATA
, FNAME
);
29 rl_ret
= readlink(FNAME
, buf
, sizeof(buf
));