exportent man page on NeXTSTEP

Man page or keyword search:  
man Server   1419 pages
apropos Keyword Search (all sections)
Output format
NeXTSTEP logo
[printable version]


EXPORTENT(3)							  EXPORTENT(3)

NAME
       exportent,   getexportent,  setexportent,  addexportent,	 remexportent,
       endexportent, getexportopt - get exported file system information

SYNOPSIS
       #include <stdio.h>
       #include <exportent.h>
       FILE *setexportent()
       struct exportent *getexportent(filep)
	    FILE *filep;
       int addexportent(filep, dirname, options)
	    FILE *filep;
	    char *dirname;
	    char *options;
       int remexportent(filep, dirname)
	    FILE *filep;
	    char *dirname;
       char *getexportopt(xent, opt)
	    struct exportent *xent;
	    char *opt;
       void endexportent(filep)
	    FILE *filep;

DESCRIPTION
       These routines access the exported filesystem information in /etc/xtab.

       setexportent() opens the export information file	 and  returns  a  file
       pointer	to  use	 with  getexportent,  addexportent,  remexportent, and
       endexportent.  getexportent()  reads  the  next	line  from  filep  and
       returns	a pointer to an object with the following structure containing
       the broken-out fields of a line in the file, /etc/xtab The fields  have
       meanings described in exports(5).

	      #define ACCESS_OPT  ``access''  /* machines that can mount fs */
	      #define ROOT_OPT	  ``root''    /* machines with root access of fs */
	      #define RO_OPT	  ``ro''      /* export read-only */
	      #define RW_OPT	  ``rw''      /* export read-mostly */
	      #define ANON_OPT	  ``anon''    /* uid for anonymous requests */
	      struct exportent {
		   char *xent_dirname; /* directory (or file) to export */
		   char *xent_options; /* options, as above */
	      };

       addexportent()  adds the exportent() to the end of the open file filep.
       It returns 0 if successful and  -1 on failure.  remexportent()  removes
       the indicated entry from the list.  It also returns 0 on success and -1
       on  failure.   getexportopt()  scans  the  xent_options	field  of  the
       exportent() structure for a substring that matches opt.	It returns the
       string value of opt, or NULL if the option is not found.

       endexportent() closes the file.

FILES
       /etc/exports
       /etc/xtab

SEE ALSO
       exports(5), exportfs(8)

DIAGNOSTICS
       NULL pointer (0) returned on EOF or error.

BUGS
       The returned exportent() structure points to static information that is
       overwritten in each call.

				4 January 1987			  EXPORTENT(3)
[top]

List of man pages available for NeXTSTEP

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net