Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getexportent(3) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exports(4)

exportfs(1M)




exportent(3) exportent(3)
NAME exportent, getexportent, setexportent, addexportent, remexportent, endexportent - 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 file-system 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 fields of an entry in the /etc/xtab file. The meaning of each option is described in exports(4). #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 ANON_OPT "anon" /* uid for anonymous requests */ #define SECURE_OPT "secure" /* require secure NFS for access */ #define WINDOW_OPT "window" /* expiration window for credential */ struct exportent { char *xent_dirname; /* directory (or file) to export */ char *xent_options; /* options, as above */ January 1992 1



exportent(3) exportent(3)
}; The addexportent routine adds the contents of the exportent structure to the end of the open file filep. It returns 0 if successful and -1 on failure. The remexportent routine removes the indicated entry from the list. It also returns 0 on success and -1 on failure. The getexportopt routine 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. The endexportent routine closes the file. STATUS MESSAGES AND VALUES A NULL pointer (0) is returned if an end-of-file character is reached or an error occurs. LIMITATIONS The returned exportent structure points to static information that is overwritten in each call. FILES /etc/exports File containing entries that are used by exportfs to export data /etc/xtab File that reflects the currently exported data SEE ALSO exports(4) exportfs(1M) in A/UX System Administrator's Reference 2 January 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026