[BACK]Return to sunos.h CVS log [TXT][DIR] Up to [local] / sys / compat / sunos

Annotation of sys/compat/sunos/sunos.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: sunos.h,v 1.9 2007/06/06 17:15:13 deraadt Exp $       */
        !             2: /*     $NetBSD: sunos.h,v 1.8 1996/05/05 16:07:43 veego Exp $  */
        !             3:
        !             4: #define        SUNM_RDONLY     0x01    /* mount fs read-only */
        !             5: #define        SUNM_NOSUID     0x02    /* mount fs with setuid disallowed */
        !             6: #define        SUNM_NEWTYPE    0x04    /* type is string (char *), not int */
        !             7: #define        SUNM_GRPID      0x08    /* (bsd semantics; ignored) */
        !             8: #define        SUNM_REMOUNT    0x10    /* update existing mount */
        !             9: #define        SUNM_NOSUB      0x20    /* prevent submounts (rejected) */
        !            10: #define        SUNM_MULTI      0x40    /* (ignored) */
        !            11: #define        SUNM_SYS5       0x80    /* Sys 5-specific semantics (rejected) */
        !            12:
        !            13: struct sunos_nfs_args {
        !            14:        struct  sockaddr_in *addr;      /* file server address */
        !            15:        caddr_t fh;                     /* file handle to be mounted */
        !            16:        int     flags;                  /* flags */
        !            17:        int     wsize;                  /* write size in bytes */
        !            18:        int     rsize;                  /* read size in bytes */
        !            19:        int     timeo;                  /* initial timeout in .1 secs */
        !            20:        int     retrans;                /* times to retry send */
        !            21:        char    *hostname;              /* server's hostname */
        !            22:        int     acregmin;               /* attr cache file min secs */
        !            23:        int     acregmax;               /* attr cache file max secs */
        !            24:        int     acdirmin;               /* attr cache dir min secs */
        !            25:        int     acdirmax;               /* attr cache dir max secs */
        !            26:        char    *netname;               /* server's netname */
        !            27:        struct  pathcnf *pathconf;      /* static pathconf kludge */
        !            28: };
        !            29: /* SunOS nfs flag values: */
        !            30: #define SUNNFS_SOFT    0x1
        !            31: #define SUNNFS_WSIZE   0x2
        !            32: #define SUNNFS_RSIZE   0x4
        !            33: #define SUNNFS_TIMEO   0x8
        !            34: #define SUNNFS_RETRANS 0x10
        !            35: #define SUNNFS_HOSTNAME        0x20
        !            36: #define SUNNFS_INT     0x40
        !            37: #define SUNNFS_NOAC    0x80
        !            38: #define SUNNFS_ACREGMIN        0x100
        !            39: #define SUNNFS_ACREGMAX        0x200
        !            40: #define SUNNFS_ACDIRMIN        0x400
        !            41: #define SUNNFS_ACDIRMAX        0x800
        !            42: #define SUNNFS_SECURE  0x1000
        !            43: #define SUNNFS_NOCTO   0x2000
        !            44: #define SUNNFS_POSIX   0x4000
        !            45:
        !            46:
        !            47: struct sunos_ustat {
        !            48:        int32_t f_tfree;        /* total free */
        !            49:        ino_t   f_tinode;       /* total inodes free */
        !            50:        char    f_path[6];      /* filsys name */
        !            51:        char    f_fpack[6];     /* filsys pack name */
        !            52: };
        !            53:
        !            54: struct sunos_statfs {
        !            55:        long    f_type;         /* type of info, zero for now */
        !            56:        long    f_bsize;        /* fundamental file system block size */
        !            57:        long    f_blocks;       /* total blocks in file system */
        !            58:        long    f_bfree;        /* free blocks */
        !            59:        long    f_bavail;       /* free blocks available to non-super-user */
        !            60:        long    f_files;        /* total file nodes in file system */
        !            61:        long    f_ffree;        /* free file nodes in fs */
        !            62:        fsid_t  f_fsid;         /* file system id */
        !            63:        long    f_spare[7];     /* spare for later */
        !            64: };
        !            65:
        !            66:
        !            67: struct sunos_utsname {
        !            68:        char    sysname[9];
        !            69:        char    nodename[9];
        !            70:        char    nodeext[65-9];
        !            71:        char    release[9];
        !            72:        char    version[9];
        !            73:        char    machine[9];
        !            74: };
        !            75:
        !            76:
        !            77: struct sunos_ttysize {
        !            78:        int     ts_row;
        !            79:        int     ts_col;
        !            80: };
        !            81:
        !            82: struct sunos_termio {
        !            83:        u_short c_iflag;
        !            84:        u_short c_oflag;
        !            85:        u_short c_cflag;
        !            86:        u_short c_lflag;
        !            87:        char    c_line;
        !            88:        unsigned char c_cc[8];
        !            89: };
        !            90: #define SUNOS_TCGETA   _IOR('T', 1, struct sunos_termio)
        !            91: #define SUNOS_TCSETA   _IOW('T', 2, struct sunos_termio)
        !            92: #define SUNOS_TCSETAW  _IOW('T', 3, struct sunos_termio)
        !            93: #define SUNOS_TCSETAF  _IOW('T', 4, struct sunos_termio)
        !            94: #define SUNOS_TCSBRK   _IO('T', 5)
        !            95:
        !            96: struct sunos_termios {
        !            97:        u_long  c_iflag;
        !            98:        u_long  c_oflag;
        !            99:        u_long  c_cflag;
        !           100:        u_long  c_lflag;
        !           101:        char    c_line;
        !           102:        u_char  c_cc[17];
        !           103: };
        !           104: #define SUNOS_TCXONC   _IO('T', 6)
        !           105: #define SUNOS_TCFLSH   _IO('T', 7)
        !           106: #define SUNOS_TCGETS   _IOR('T', 8, struct sunos_termios)
        !           107: #define SUNOS_TCSETS   _IOW('T', 9, struct sunos_termios)
        !           108: #define SUNOS_TCSETSW  _IOW('T', 10, struct sunos_termios)
        !           109: #define SUNOS_TCSETSF  _IOW('T', 11, struct sunos_termios)
        !           110: #define SUNOS_TCSNDBRK _IO('T', 12)
        !           111: #define SUNOS_TCDRAIN  _IO('T', 13)
        !           112:
        !           113: /* Sun audio compatibility */
        !           114: struct sunos_audio_prinfo {
        !           115:        u_int   sample_rate;
        !           116:        u_int   channels;
        !           117:        u_int   precision;
        !           118:        u_int   encoding;
        !           119:        u_int   gain;
        !           120:        u_int   port;
        !           121:        u_int   avail_ports;
        !           122:        u_int   reserved0[3];
        !           123:        u_int   samples;
        !           124:        u_int   eof;
        !           125:        u_char  pause;
        !           126:        u_char  error;
        !           127:        u_char  waiting;
        !           128:        u_char  balance;
        !           129:        u_short minordev;
        !           130:        u_char  open;
        !           131:        u_char  active;
        !           132: };
        !           133: struct sunos_audio_info {
        !           134:        struct sunos_audio_prinfo play;
        !           135:        struct sunos_audio_prinfo record;
        !           136:        u_int monitor_gain;
        !           137:        u_int reserved[4];
        !           138: };
        !           139:
        !           140: /* Values for AUDIO_GETDEV ioctl: */
        !           141: #define SUNOS_AUDIO_DEV_UNKNOWN                        0
        !           142: #define SUNOS_AUDIO_DEV_AMD                    1
        !           143: #define SUNOS_AUDIO_DEV_SPEAKERBOX             2
        !           144: #define SUNOS_AUDIO_DEV_CODEC                  3
        !           145:
        !           146: __BEGIN_DECLS
        !           147: /* Defined in arch/m68k/m68k/sunos_machdep.c -- sparc uses regular sendsig() */
        !           148: #ifndef __sparc__
        !           149: void   sunos_sendsig(sig_t, int, int, u_long, int, union sigval);
        !           150: #endif
        !           151: __END_DECLS

CVSweb