1 1.1 christos #include <err.h> 2 1.1 christos #include <errno.h> 3 1.1 christos #include <unistd.h> 4 1.1 christos 5 1.1 christos char* 6 1.1 christos getcwd(char* buf, size_t buflen) 7 1.1 christos { 8 1.1 christos errno = ENOSYS; 9 1.1 christos return NULL; 10 1.1 christos } 11 1.1 christos int 12 1.1 christos main(void) 13 1.1 christos { 14 1.1 christos char buf[256]; 15 1.1 christos if (getcwd(buf, sizeof buf) == NULL) 16 1.1 christos err(1, "getcwd failed"); 17 1.1 christos return 0; 18 1.1 christos } 19