4.3BSD-Reno/share/man/cat3/getfsfile.0

Compare this file to the similar file:
Show the results in this format:




GETFSENT(3)		      1990		      GETFSENT(3)



NNAAMMEE
     getfsent, getfsspec, getfsfile, setfsent, endfsent - get
     file system descriptor file entry

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ffssttaabb..hh>>

     ssttrruucctt ffssttaabb **ggeettffsseenntt(())

     ssttrruucctt ffssttaabb **ggeettffssssppeecc((ssppeecc))
     cchhaarr **ssppeecc;;

     ssttrruucctt ffssttaabb **ggeettffssffiillee((ffiillee))
     cchhaarr **ffiillee;;

     iinntt sseettffsseenntt(())

     vvooiidd eennddffsseenntt(())

DDEESSCCRRIIPPTTIIOONN
     _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, <fstab.h>.

	  struct fstab {
		  char	*fs_spec;     /* block special device name */
		  char	*fs_file;     /* file system path prefix */
		  char	*fs_vfstype;  /* type of file system */
		  char	*fs_mntops;   /* comma separated mount options */
		  char	*fs_type;     /* rw, ro, sw, or xx */
		  int	fs_freq;      /* dump frequency, in days */
		  int	fs_passno;    /* pass number on parallel dump */
	  };

     The fields have meanings described in _f_s_t_a_b(5).

     _S_e_t_f_s_e_n_t opens the file (closing any previously opened file)
     or rewinds it if it is already open.

     _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 search the entire file  (opening  it
     if  necessary) for a matching special file name or file sys-
     tem file name.

     For programs wishing to read the entire  database,  _g_e_t_f_s_e_n_t
     reads the next entry (opening the file if necessary).

     All entries in the file with  a  type  field  equivalent  to
     _F_S_T_A_B__X_X are ignored.




Printed 7/27/90               June				1






GETFSENT(3)		      1990		      GETFSENT(3)



FFIILLEESS
     /etc/fstab

SSEEEE AALLSSOO
     fstab(5)

DDIIAAGGNNOOSSTTIICCSS
     _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 return a null pointer (0)
     on  EOF  or error.  _S_e_t_f_s_e_n_t returns 0 on failure, 1 on suc-
     cess.  _E_n_d_f_s_e_n_t returns nothing.

BBUUGGSS
     All information is contained in a static area so it must  be
     copied if it is to be saved.









































Printed 7/27/90               June				2