1
2
3
4 #define SUNM_RDONLY 0x01
5 #define SUNM_NOSUID 0x02
6 #define SUNM_NEWTYPE 0x04
7 #define SUNM_GRPID 0x08
8 #define SUNM_REMOUNT 0x10
9 #define SUNM_NOSUB 0x20
10 #define SUNM_MULTI 0x40
11 #define SUNM_SYS5 0x80
12
13 struct sunos_nfs_args {
14 struct sockaddr_in *addr;
15 caddr_t fh;
16 int flags;
17 int wsize;
18 int rsize;
19 int timeo;
20 int retrans;
21 char *hostname;
22 int acregmin;
23 int acregmax;
24 int acdirmin;
25 int acdirmax;
26 char *netname;
27 struct pathcnf *pathconf;
28 };
29
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;
49 ino_t f_tinode;
50 char f_path[6];
51 char f_fpack[6];
52 };
53
54 struct sunos_statfs {
55 long f_type;
56 long f_bsize;
57 long f_blocks;
58 long f_bfree;
59 long f_bavail;
60 long f_files;
61 long f_ffree;
62 fsid_t f_fsid;
63 long f_spare[7];
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
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
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
148 #ifndef __sparc__
149 void sunos_sendsig(sig_t, int, int, u_long, int, union sigval);
150 #endif
151 __END_DECLS