4.3BSD-Tahoe/usr/man/cat3/getfsspec.0

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




GETFSENT(3)	    UNIX Programmer's Manual	      GETFSENT(3)



NNAAMMEE
     getfsent, getfsspec, getfsfile, getfstype, 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;;

     ssttrruucctt ffssttaabb **ggeettffssttyyppee((ttyyppee))
     cchhaarr **ttyyppee;;

     iinntt sseettffsseenntt(())

     iinntt eennddffsseenntt(())

DDEESSCCRRIIPPTTIIOONN
     _G_e_t_f_s_e_n_t, _g_e_t_f_s_s_p_e_c, _g_e_t_f_s_t_y_p_e, 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 descrip-
     tion file, <fstab.h>.

	  struct fstab {
	       char *fs_spec;
	       char *fs_file;
	       char *fs_type;
	       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.
     _G_e_t_f_s_t_y_p_e	does  likewise,  matching on the file system type
     field.





Printed 7/9/88		  May 12, 1986				1






GETFSENT(3)	    UNIX Programmer's Manual	      GETFSENT(3)



FFIILLEESS
     /etc/fstab

SSEEEE AALLSSOO
     fstab(5)

DDIIAAGGNNOOSSTTIICCSS
     Null pointer (0) returned on EOF or error.

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











































Printed 7/9/88		  May 12, 1986				2