GETFSENT(3) UNIX Programmer's Manual GETFSENT(3) NAME getfsent, getfsspec, getfsfile, setfsent, endfsent - get file system descriptor file entry SYNOPSIS #include struct fstab *getfsent() struct fstab *getfsspec(name) char *name; struct fstab *getfsfile(name) char *name; int setfsent() int endfsent() DESCRIPTION _G_e_t_f_s_e_n_t, _g_e_t_f_s_s_p_e_c and _g_e_t_f_s_f_i_l_e each return a pointer to an object with the following structure containing the broken-out fields of a line in the file system description file, /_u_s_r/_i_n_c_l_u_d_e/_f_s_t_a_b._h. #define FSNMLG 16 struct fstab{ char fs_spec[FSNMLG]; char fs_file[FSNMLG]; char fs_type[3]; int fs_freq; int fs_passno; }; The fields have meanings described in _f_s_t_a_b(5). _G_e_t_f_s_e_n_t reads the next line of the file, opening the file if necessary. _S_e_t_f_s_e_n_t opens and rewinds the file. _E_n_d_f_s_e_n_t closes the file. _G_e_t_f_s_s_p_e_c and _g_e_t_f_s_f_i_l_e sequentially search from the begin- ning of the file until a matching special file name or file system file name is found, or until EOF is encountered. FILES /etc/fstab Printed 5/27/83 1 GETFSENT(3) UNIX Programmer's Manual GETFSENT(3) SEE ALSO fstab(5) DIAGNOSTICS Null pointer returned on EOF or error. BUGS All information is contained in a static area so it must be copied if it is to be saved. Printed 5/27/83 2