#define SUNM_RDONLY 0x01 /* mount fs read-only */
#define SUNM_NOSUID 0x02 /* mount fs with setuid disallowed */
#define SUNM_NEWTYPE 0x04 /* type is string (char *), not int */
#define SUNM_GRPID 0x08 /* (bsd semantics; ignored) */
#define SUNM_REMOUNT 0x10 /* update existing mount */
#define SUNM_NOSUB 0x20 /* prevent submounts (rejected) */
#define SUNM_MULTI 0x40 /* (ignored) */
#define SUNM_SYS5 0x80 /* Sys 5-specific semantics (rejected) */
struct sunos_nfs_args {
struct sockaddr_in *addr; /* file server address */
void * fh; /* file handle to be mounted */
int flags; /* flags */
int wsize; /* write size in bytes */
int rsize; /* read size in bytes */
int timeo; /* initial timeout in .1 secs */
int retrans; /* times to retry send */
sunos_charp hostname; /* server's hostname */
int acregmin; /* attr cache file min secs */
int acregmax; /* attr cache file max secs */
int acdirmin; /* attr cache dir min secs */
int acdirmax; /* attr cache dir max secs */
sunos_charp netname; /* server's netname */
struct pathcnf *pathconf; /* static pathconf kludge */
};
/* SunOS nfs flag values: */
#define SUNNFS_SOFT 0x1
#define SUNNFS_WSIZE 0x2
#define SUNNFS_RSIZE 0x4
#define SUNNFS_TIMEO 0x8
#define SUNNFS_RETRANS 0x10
#define SUNNFS_HOSTNAME 0x20
#define SUNNFS_INT 0x40
#define SUNNFS_NOAC 0x80
#define SUNNFS_ACREGMIN 0x100
#define SUNNFS_ACREGMAX 0x200
#define SUNNFS_ACDIRMIN 0x400
#define SUNNFS_ACDIRMAX 0x800
#define SUNNFS_SECURE 0x1000
#define SUNNFS_NOCTO 0x2000
#define SUNNFS_POSIX 0x4000
struct sunos_ustat {
int32_t f_tfree; /* total free */
uint32_t f_tinode; /* total inodes free */
char f_path[6]; /* filsys name */
char f_fpack[6]; /* filsys pack name */
};
struct sunos_statfs {
int f_type; /* type of info, zero for now */
int f_bsize; /* fundamental file system block size */
int f_blocks; /* total blocks in file system */
int f_bfree; /* free blocks */
int f_bavail; /* free blocks available to non-super-user */
int f_files; /* total file nodes in file system */
int f_ffree; /* free file nodes in fs */
fsid_t f_fsid; /* file system id */
int f_spare[7]; /* spare for later */
};