#define _GNU_SOURCE #include #include int lchmod(const char *path, mode_t mode) { return fchmodat(AT_FDCWD, path, mode, AT_SYMLINK_NOFOLLOW); } #ifdef TEST int main(void) { return 0; } #endif