You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
350 B

  1. /* Function borrowed from the Downhill Project */
  2. #include "wfile.h"
  3. /*#include "direct.h"*/ /* Can't find this file */
  4. int readlink(char *file_Name, char *buf_Mem, int buf_Size)
  5. {
  6. /* See if the file exists */
  7. if (access(file_Name, X_OK) == -1) {
  8. errno = ENOENT;
  9. } else {
  10. errno = EINVAL;
  11. }
  12. /* Either way, it's not a link */
  13. return -1;
  14. }