This is the mail archive of the cygwin-patches@sources.redhat.com 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] |
Has anyone actually *tried* readlink() on linux? I did. If the result is too long, it is silently truncated to fit the buffer, and no error is returned. main(int argc, char **argv) { int i; char buf[20]; memset (buf, 0, sizeof(buf)); i = readlink (argv[1], buf, 1); printf ("ret %d `%s'\n", i, buf); perror ("errno"); }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |