Lines Matching refs:fsfd
77 static inline int fsmount(int fsfd, unsigned int flags, unsigned int ms_flags) in fsmount() argument
79 return syscall(__NR_fsmount, fsfd, flags, ms_flags); in fsmount()
82 static inline int fsconfig(int fsfd, unsigned int cmd, in fsconfig() argument
85 return syscall(__NR_fsconfig, fsfd, cmd, key, val, aux); in fsconfig()
105 int fsfd, mfd; in main() local
108 fsfd = fsopen("afs", 0); in main()
109 if (fsfd == -1) { in main()
114 E_fsconfig(fsfd, FSCONFIG_SET_STRING, "source", "#grand.central.org:root.cell.", 0); in main()
115 E_fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0); in main()
117 mfd = fsmount(fsfd, 0, MOUNT_ATTR_RDONLY); in main()
119 mount_error(fsfd, "fsmount"); in main()
120 E(close(fsfd)); in main()