Skip to content

Instantly share code, notes, and snippets.

@trylaarsdam
Created January 24, 2021 01:40
Show Gist options
  • Save trylaarsdam/67a0783be1a7c4f44595d3a360c42183 to your computer and use it in GitHub Desktop.
Save trylaarsdam/67a0783be1a7c4f44595d3a360c42183 to your computer and use it in GitHub Desktop.
int fchmod(int fd, mode_t mode) {
errno = ENOSYS;
return -1;
}
int fchmodat(int dirfd, const char* pathname, mode_t mode, int flags) {
errno = ENOSYS;
return -1;
}
int symlink(const char* file, const char* linkpath) {
errno = ENOSYS;
return -1;
}
ssize_t readlink(const char* pathname, char* buf, size_t bufsiz) {
errno = ENOSYS;
return -1;
}
int truncate(const char* path, off_t length) {
errno = ENOSYS;
return -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment