Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<sys/mount.h>
- #include<sys/param.h>
- #include<stdio.h>
- #include<fcntl.h>
- #include<unistd.h>
- void main(){
- fhandle_t fhp;
- open("file", O_CREAT, 0777);
- symlink("file", "symlink");
- int ret = lgetfh("symlink", &fhp);
- printf("%d\n", ret);
- unlink("file"); unlink("symlink");
- }
Add Comment
Please, Sign In to add comment