home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / a_utils / perl / mac-perl / gs_102st.bin / GUSI / Headers / sys_ioctl.h < prev    next >
MacBinary  |  1991-10-10  |  9.4 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Oct 10 15:57:23 1991, modified Thu Oct 10 15:57:23 1991, creator 'MPS ', type ASCII, 8889 bytes "sys_ioctl.h" , at 0x2339 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 73 79 73 5f 69 6f | 63 74 6c 2e 68 00 00 00 |..sys_io|ctl.h...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 22 b9 00 | 00 01 ac a5 1a 61 23 a5 |....."..|.....a#.|
|00000060| 1a 61 23 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.a#.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f6 d7 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 43 6f | 70 79 72 69 67 68 74 20 |/*. * Co|pyright |
|00000090| 28 63 29 20 31 39 38 32 | 2c 20 31 39 38 36 20 52 |(c) 1982|, 1986 R|
|000000a0| 65 67 65 6e 74 73 20 6f | 66 20 74 68 65 20 55 6e |egents o|f the Un|
|000000b0| 69 76 65 72 73 69 74 79 | 20 6f 66 20 43 61 6c 69 |iversity| of Cali|
|000000c0| 66 6f 72 6e 69 61 2e 0d | 20 2a 20 41 6c 6c 20 72 |fornia..| * All r|
|000000d0| 69 67 68 74 73 20 72 65 | 73 65 72 76 65 64 2e 20 |ights re|served. |
|000000e0| 20 54 68 65 20 42 65 72 | 6b 65 6c 65 79 20 73 6f | The Ber|keley so|
|000000f0| 66 74 77 61 72 65 20 4c | 69 63 65 6e 73 65 20 41 |ftware L|icense A|
|00000100| 67 72 65 65 6d 65 6e 74 | 0d 20 2a 20 73 70 65 63 |greement|. * spec|
|00000110| 69 66 69 65 73 20 74 68 | 65 20 74 65 72 6d 73 20 |ifies th|e terms |
|00000120| 61 6e 64 20 63 6f 6e 64 | 69 74 69 6f 6e 73 20 66 |and cond|itions f|
|00000130| 6f 72 20 72 65 64 69 73 | 74 72 69 62 75 74 69 6f |or redis|tributio|
|00000140| 6e 2e 0d 20 2a 0d 20 2a | 09 40 28 23 29 69 6f 63 |n.. *. *|.@(#)ioc|
|00000150| 74 6c 2e 68 09 37 2e 31 | 32 20 28 42 65 72 6b 65 |tl.h.7.1|2 (Berke|
|00000160| 6c 65 79 29 20 35 2f 31 | 38 2f 39 30 0d 20 2a 2f |ley) 5/1|8/90. */|
|00000170| 0d 0d 2f 2a 0d 20 2a 20 | 49 6f 63 74 6c 20 64 65 |../*. * |Ioctl de|
|00000180| 66 69 6e 69 74 69 6f 6e | 73 0d 20 2a 2f 0d 23 69 |finition|s. */.#i|
|00000190| 66 6e 64 65 66 09 5f 49 | 4f 43 54 4c 5f 0d 23 64 |fndef._I|OCTL_.#d|
|000001a0| 65 66 69 6e 65 09 5f 49 | 4f 43 54 4c 5f 0d 0d 2f |efine._I|OCTL_../|
|000001b0| 2a 0d 20 2a 20 57 69 6e | 64 6f 77 2f 74 65 72 6d |*. * Win|dow/term|
|000001c0| 69 6e 61 6c 20 73 69 7a | 65 20 73 74 72 75 63 74 |inal siz|e struct|
|000001d0| 75 72 65 2e 0d 20 2a 20 | 54 68 69 73 20 69 6e 66 |ure.. * |This inf|
|000001e0| 6f 72 6d 61 74 69 6f 6e | 20 69 73 20 73 74 6f 72 |ormation| is stor|
|000001f0| 65 64 20 62 79 20 74 68 | 65 20 6b 65 72 6e 65 6c |ed by th|e kernel|
|00000200| 0d 20 2a 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |. * in o|rder to |
|00000210| 70 72 6f 76 69 64 65 20 | 61 20 63 6f 6e 73 69 73 |provide |a consis|
|00000220| 74 65 6e 74 20 69 6e 74 | 65 72 66 61 63 65 2c 0d |tent int|erface,.|
|00000230| 20 2a 20 62 75 74 20 69 | 73 20 6e 6f 74 20 75 73 | * but i|s not us|
|00000240| 65 64 20 62 79 20 74 68 | 65 20 6b 65 72 6e 65 6c |ed by th|e kernel|
|00000250| 2e 0d 20 2a 0d 20 2a 20 | 54 79 70 65 20 6d 75 73 |.. *. * |Type mus|
|00000260| 74 20 62 65 20 22 75 6e | 73 69 67 6e 65 64 20 73 |t be "un|signed s|
|00000270| 68 6f 72 74 22 20 73 6f | 20 74 68 61 74 20 74 79 |hort" so| that ty|
|00000280| 70 65 73 2e 68 20 6e 6f | 74 20 72 65 71 75 69 72 |pes.h no|t requir|
|00000290| 65 64 2e 0d 20 2a 2f 0d | 73 74 72 75 63 74 20 77 |ed.. */.|struct w|
|000002a0| 69 6e 73 69 7a 65 20 7b | 0d 09 75 6e 73 69 67 6e |insize {|..unsign|
|000002b0| 65 64 20 73 68 6f 72 74 | 09 77 73 5f 72 6f 77 3b |ed short|.ws_row;|
|000002c0| 09 09 09 2f 2a 20 72 6f | 77 73 2c 20 69 6e 20 63 |.../* ro|ws, in c|
|000002d0| 68 61 72 61 63 74 65 72 | 73 20 2a 2f 0d 09 75 6e |haracter|s */..un|
|000002e0| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 09 77 73 5f |signed s|hort.ws_|
|000002f0| 63 6f 6c 3b 09 09 09 2f | 2a 20 63 6f 6c 75 6d 6e |col;.../|* column|
|00000300| 73 2c 20 69 6e 20 63 68 | 61 72 61 63 74 65 72 73 |s, in ch|aracters|
|00000310| 20 2a 2f 0d 09 75 6e 73 | 69 67 6e 65 64 20 73 68 | */..uns|igned sh|
|00000320| 6f 72 74 09 77 73 5f 78 | 70 69 78 65 6c 3b 09 09 |ort.ws_x|pixel;..|
|00000330| 2f 2a 20 68 6f 72 69 7a | 6f 6e 74 61 6c 20 73 69 |/* horiz|ontal si|
|00000340| 7a 65 2c 20 70 69 78 65 | 6c 73 20 2a 2f 0d 09 75 |ze, pixe|ls */..u|
|00000350| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 09 77 73 |nsigned |short.ws|
|00000360| 5f 79 70 69 78 65 6c 3b | 09 09 2f 2a 20 76 65 72 |_ypixel;|../* ver|
|00000370| 74 69 63 61 6c 20 73 69 | 7a 65 2c 20 70 69 78 65 |tical si|ze, pixe|
|00000380| 6c 73 20 2a 2f 0d 7d 3b | 0d 0d 2f 2a 0d 20 2a 20 |ls */.};|../*. * |
|00000390| 50 75 6e 20 66 6f 72 20 | 53 55 4e 2e 0d 20 2a 2f |Pun for |SUN.. */|
|000003a0| 0d 73 74 72 75 63 74 20 | 74 74 79 73 69 7a 65 20 |.struct |ttysize |
|000003b0| 7b 0d 09 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |{..unsig|ned shor|
|000003c0| 74 09 74 73 5f 6c 69 6e | 65 73 3b 0d 09 75 6e 73 |t.ts_lin|es;..uns|
|000003d0| 69 67 6e 65 64 20 73 68 | 6f 72 74 09 74 73 5f 63 |igned sh|ort.ts_c|
|000003e0| 6f 6c 73 3b 0d 09 75 6e | 73 69 67 6e 65 64 20 73 |ols;..un|signed s|
|000003f0| 68 6f 72 74 09 74 73 5f | 78 78 78 3b 0d 09 75 6e |hort.ts_|xxx;..un|
|00000400| 73 69 67 6e 65 64 20 73 | 68 6f 72 74 09 74 73 5f |signed s|hort.ts_|
|00000410| 79 79 79 3b 0d 7d 3b 0d | 23 64 65 66 69 6e 65 09 |yyy;.};.|#define.|
|00000420| 54 49 4f 43 47 53 49 5a | 45 09 54 49 4f 43 47 57 |TIOCGSIZ|E.TIOCGW|
|00000430| 49 4e 53 5a 0d 23 64 65 | 66 69 6e 65 09 54 49 4f |INSZ.#de|fine.TIO|
|00000440| 43 53 53 49 5a 45 09 54 | 49 4f 43 53 57 49 4e 53 |CSSIZE.T|IOCSWINS|
|00000450| 5a 0d 0d 23 69 66 6e 64 | 65 66 20 5f 49 4f 0d 2f |Z..#ifnd|ef _IO./|
|00000460| 2a 0d 20 2a 20 49 6f 63 | 74 6c 27 73 20 68 61 76 |*. * Ioc|tl's hav|
|00000470| 65 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 65 6e |e the co|mmand en|
|00000480| 63 6f 64 65 64 20 69 6e | 20 74 68 65 20 6c 6f 77 |coded in| the low|
|00000490| 65 72 20 77 6f 72 64 2c | 0d 20 2a 20 61 6e 64 20 |er word,|. * and |
|000004a0| 74 68 65 20 73 69 7a 65 | 20 6f 66 20 61 6e 79 20 |the size| of any |
|000004b0| 69 6e 20 6f 72 20 6f 75 | 74 20 70 61 72 61 6d 65 |in or ou|t parame|
|000004c0| 74 65 72 73 20 69 6e 20 | 74 68 65 20 75 70 70 65 |ters in |the uppe|
|000004d0| 72 0d 20 2a 20 77 6f 72 | 64 2e 20 20 54 68 65 20 |r. * wor|d. The |
|000004e0| 68 69 67 68 20 33 20 62 | 69 74 73 20 6f 66 20 74 |high 3 b|its of t|
|000004f0| 68 65 20 75 70 70 65 72 | 20 77 6f 72 64 20 61 72 |he upper| word ar|
|00000500| 65 20 75 73 65 64 0d 20 | 2a 20 74 6f 20 65 6e 63 |e used. |* to enc|
|00000510| 6f 64 65 20 74 68 65 20 | 69 6e 2f 6f 75 74 20 73 |ode the |in/out s|
|00000520| 74 61 74 75 73 20 6f 66 | 20 74 68 65 20 70 61 72 |tatus of| the par|
|00000530| 61 6d 65 74 65 72 2e 0d | 20 2a 2f 0d 23 64 65 66 |ameter..| */.#def|
|00000540| 69 6e 65 09 49 4f 43 50 | 41 52 4d 5f 4d 41 53 4b |ine.IOCP|ARM_MASK|
|00000550| 09 30 78 31 66 66 66 09 | 09 2f 2a 20 70 61 72 61 |.0x1fff.|./* para|
|00000560| 6d 65 74 65 72 20 6c 65 | 6e 67 74 68 2c 20 61 74 |meter le|ngth, at|
|00000570| 20 6d 6f 73 74 20 31 33 | 20 62 69 74 73 20 2a 2f | most 13| bits */|
|00000580| 0d 23 64 65 66 69 6e 65 | 09 49 4f 43 50 41 52 4d |.#define|.IOCPARM|
|00000590| 5f 4c 45 4e 28 78 29 09 | 28 28 28 78 29 20 3e 3e |_LEN(x).|(((x) >>|
|000005a0| 20 31 36 29 20 26 20 49 | 4f 43 50 41 52 4d 5f 4d | 16) & I|OCPARM_M|
|000005b0| 41 53 4b 29 0d 23 64 65 | 66 69 6e 65 09 49 4f 43 |ASK).#de|fine.IOC|
|000005c0| 42 41 53 45 43 4d 44 28 | 78 29 09 28 28 78 29 20 |BASECMD(|x).((x) |
|000005d0| 26 20 7e 49 4f 43 50 41 | 52 4d 5f 4d 41 53 4b 29 |& ~IOCPA|RM_MASK)|
|000005e0| 0d 23 64 65 66 69 6e 65 | 09 49 4f 43 47 52 4f 55 |.#define|.IOCGROU|
|000005f0| 50 28 78 29 09 28 28 28 | 78 29 20 3e 3e 20 38 29 |P(x).(((|x) >> 8)|
|00000600| 20 26 20 30 78 66 66 29 | 0d 0d 23 64 65 66 69 6e | & 0xff)|..#defin|
|00000610| 65 09 49 4f 43 50 41 52 | 4d 5f 4d 41 58 09 4e 42 |e.IOCPAR|M_MAX.NB|
|00000620| 50 47 09 09 2f 2a 20 6d | 61 78 20 73 69 7a 65 20 |PG../* m|ax size |
|00000630| 6f 66 20 69 6f 63 74 6c | 2c 20 6d 75 6c 74 2e 20 |of ioctl|, mult. |
|00000640| 6f 66 20 4e 42 50 47 20 | 2a 2f 0d 23 64 65 66 69 |of NBPG |*/.#defi|
|00000650| 6e 65 09 49 4f 43 5f 56 | 4f 49 44 09 30 78 32 30 |ne.IOC_V|OID.0x20|
|00000660| 30 30 30 30 30 30 09 2f | 2a 20 6e 6f 20 70 61 72 |000000./|* no par|
|00000670| 61 6d 65 74 65 72 73 20 | 2a 2f 0d 23 64 65 66 69 |ameters |*/.#defi|
|00000680| 6e 65 09 49 4f 43 5f 4f | 55 54 09 09 30 78 34 30 |ne.IOC_O|UT..0x40|
|00000690| 30 30 30 30 30 30 09 2f | 2a 20 63 6f 70 79 20 6f |000000./|* copy o|
|000006a0| 75 74 20 70 61 72 61 6d | 65 74 65 72 73 20 2a 2f |ut param|eters */|
|000006b0| 0d 23 64 65 66 69 6e 65 | 09 49 4f 43 5f 49 4e 09 |.#define|.IOC_IN.|
|000006c0| 09 30 78 38 30 30 30 30 | 30 30 30 09 2f 2a 20 63 |.0x80000|000./* c|
|000006d0| 6f 70 79 20 69 6e 20 70 | 61 72 61 6d 65 74 65 72 |opy in p|arameter|
|000006e0| 73 20 2a 2f 0d 23 64 65 | 66 69 6e 65 09 49 4f 43 |s */.#de|fine.IOC|
|000006f0| 5f 49 4e 4f 55 54 09 28 | 49 4f 43 5f 49 4e 7c 49 |_INOUT.(|IOC_IN|I|
|00000700| 4f 43 5f 4f 55 54 29 0d | 23 64 65 66 69 6e 65 09 |OC_OUT).|#define.|
|00000710| 49 4f 43 5f 44 49 52 4d | 41 53 4b 09 30 78 65 30 |IOC_DIRM|ASK.0xe0|
|00000720| 30 30 30 30 30 30 09 2f | 2a 20 6d 61 73 6b 20 66 |000000./|* mask f|
|00000730| 6f 72 20 49 4e 2f 4f 55 | 54 2f 56 4f 49 44 20 2a |or IN/OU|T/VOID *|
|00000740| 2f 0d 0d 23 64 65 66 69 | 6e 65 20 5f 49 4f 43 28 |/..#defi|ne _IOC(|
|00000750| 69 6e 6f 75 74 2c 67 72 | 6f 75 70 2c 6e 75 6d 2c |inout,gr|oup,num,|
|00000760| 6c 65 6e 29 20 5c 0d 09 | 28 69 6e 6f 75 74 20 7c |len) \..|(inout ||
|00000770| 20 28 28 6c 65 6e 20 26 | 20 49 4f 43 50 41 52 4d | ((len &| IOCPARM|
|00000780| 5f 4d 41 53 4b 29 20 3c | 3c 20 31 36 29 20 7c 20 |_MASK) <|< 16) | |
|00000790| 28 28 67 72 6f 75 70 29 | 20 3c 3c 20 38 29 20 7c |((group)| << 8) ||
|000007a0| 20 28 6e 75 6d 29 29 0d | 23 64 65 66 69 6e 65 09 | (num)).|#define.|
|000007b0| 5f 49 4f 28 67 2c 6e 29 | 09 5f 49 4f 43 28 49 4f |_IO(g,n)|._IOC(IO|
|000007c0| 43 5f 56 4f 49 44 2c 09 | 28 67 29 2c 20 28 6e 29 |C_VOID,.|(g), (n)|
|000007d0| 2c 20 30 29 0d 23 64 65 | 66 69 6e 65 09 5f 49 4f |, 0).#de|fine._IO|
|000007e0| 52 28 67 2c 6e 2c 74 29 | 09 5f 49 4f 43 28 49 4f |R(g,n,t)|._IOC(IO|
|000007f0| 43 5f 4f 55 54 2c 09 28 | 67 29 2c 20 28 6e 29 2c |C_OUT,.(|g), (n),|
|00000800| 20 73 69 7a 65 6f 66 28 | 74 29 29 0d 23 64 65 66 | sizeof(|t)).#def|
|00000810| 69 6e 65 09 5f 49 4f 57 | 28 67 2c 6e 2c 74 29 09 |ine._IOW|(g,n,t).|
|00000820| 5f 49 4f 43 28 49 4f 43 | 5f 49 4e 2c 09 28 67 29 |_IOC(IOC|_IN,.(g)|
|00000830| 2c 20 28 6e 29 2c 20 73 | 69 7a 65 6f 66 28 74 29 |, (n), s|izeof(t)|
|00000840| 29 0d 2f 2a 20 74 68 69 | 73 20 73 68 6f 75 6c 64 |)./* thi|s should|
|00000850| 20 62 65 20 5f 49 4f 52 | 57 2c 20 62 75 74 20 73 | be _IOR|W, but s|
|00000860| 74 64 69 6f 20 67 6f 74 | 20 74 68 65 72 65 20 66 |tdio got| there f|
|00000870| 69 72 73 74 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |irst */.|#define.|
|00000880| 5f 49 4f 57 52 28 67 2c | 6e 2c 74 29 09 5f 49 4f |_IOWR(g,|n,t)._IO|
|00000890| 43 28 49 4f 43 5f 49 4e | 4f 55 54 2c 09 28 67 29 |C(IOC_IN|OUT,.(g)|
|000008a0| 2c 20 28 6e 29 2c 20 73 | 69 7a 65 6f 66 28 74 29 |, (n), s|izeof(t)|
|000008b0| 29 0d 23 65 6e 64 69 66 | 0d 0d 0d 2f 2a 0d 20 2a |).#endif|.../*. *|
|000008c0| 20 74 74 79 20 69 6f 63 | 74 6c 20 63 6f 6d 6d 61 | tty ioc|tl comma|
|000008d0| 6e 64 73 0d 20 2a 2f 0d | 09 09 09 09 09 09 2f 2a |nds. */.|....../*|
|000008e0| 20 30 2d 32 20 63 6f 6d | 70 61 74 20 2a 2f 0d 23 | 0-2 com|pat */.#|
|000008f0| 64 65 66 69 6e 65 09 54 | 49 4f 43 4d 4f 44 47 09 |define.T|IOCMODG.|
|00000900| 5f 49 4f 52 28 27 74 27 | 2c 20 33 2c 20 69 6e 74 |_IOR('t'|, 3, int|
|00000910| 29 09 2f 2a 20 67 65 74 | 20 6d 6f 64 65 6d 20 63 |)./* get| modem c|
|00000920| 6f 6e 74 72 6f 6c 20 73 | 74 61 74 65 20 2a 2f 0d |ontrol s|tate */.|
|00000930| 23 64 65 66 69 6e 65 09 | 54 49 4f 43 4d 4f 44 53 |#define.|TIOCMODS|
|00000940| 09 5f 49 4f 57 28 27 74 | 27 2c 20 34 2c 20 69 6e |._IOW('t|', 4, in|
|00000950| 74 29 09 2f 2a 20 73 65 | 74 20 6d 6f 64 65 6d 20 |t)./* se|t modem |
|00000960| 63 6f 6e 74 72 6f 6c 20 | 73 74 61 74 65 20 2a 2f |control |state */|
|00000970| 0d 23 64 65 66 69 6e 65 | 09 09 54 49 4f 43 4d 5f |.#define|..TIOCM_|
|00000980| 4c 45 09 30 30 30 31 09 | 09 2f 2a 20 6c 69 6e 65 |LE.0001.|./* line|
|00000990| 20 65 6e 61 62 6c 65 20 | 2a 2f 0d 23 64 65 66 69 | enable |*/.#defi|
|000009a0| 6e 65 09 09 54 49 4f 43 | 4d 5f 44 54 52 09 30 30 |ne..TIOC|M_DTR.00|
|000009b0| 30 32 09 09 2f 2a 20 64 | 61 74 61 20 74 65 72 6d |02../* d|ata term|
|000009c0| 69 6e 61 6c 20 72 65 61 | 64 79 20 2a 2f 0d 23 64 |inal rea|dy */.#d|
|000009d0| 65 66 69 6e 65 09 09 54 | 49 4f 43 4d 5f 52 54 53 |efine..T|IOCM_RTS|
|000009e0| 09 30 30 30 34 09 09 2f | 2a 20 72 65 71 75 65 73 |.0004../|* reques|
|000009f0| 74 20 74 6f 20 73 65 6e | 64 20 2a 2f 0d 23 64 65 |t to sen|d */.#de|
|00000a00| 66 69 6e 65 09 09 54 49 | 4f 43 4d 5f 53 54 09 30 |fine..TI|OCM_ST.0|
|00000a10| 30 31 30 09 09 2f 2a 20 | 73 65 63 6f 6e 64 61 72 |010../* |secondar|
|00000a20| 79 20 74 72 61 6e 73 6d | 69 74 20 2a 2f 0d 23 64 |y transm|it */.#d|
|00000a30| 65 66 69 6e 65 09 09 54 | 49 4f 43 4d 5f 53 52 09 |efine..T|IOCM_SR.|
|00000a40| 30 30 32 30 09 09 2f 2a | 20 73 65 63 6f 6e 64 61 |0020../*| seconda|
|00000a50| 72 79 20 72 65 63 65 69 | 76 65 20 2a 2f 0d 23 64 |ry recei|ve */.#d|
|00000a60| 65 66 69 6e 65 09 09 54 | 49 4f 43 4d 5f 43 54 53 |efine..T|IOCM_CTS|
|00000a70| 09 30 30 34 30 09 09 2f | 2a 20 63 6c 65 61 72 20 |.0040../|* clear |
|00000a80| 74 6f 20 73 65 6e 64 20 | 2a 2f 0d 23 64 65 66 69 |to send |*/.#defi|
|00000a90| 6e 65 09 09 54 49 4f 43 | 4d 5f 43 41 52 09 30 31 |ne..TIOC|M_CAR.01|
|00000aa0| 30 30 09 09 2f 2a 20 63 | 61 72 72 69 65 72 20 64 |00../* c|arrier d|
|00000ab0| 65 74 65 63 74 20 2a 2f | 0d 23 64 65 66 69 6e 65 |etect */|.#define|
|00000ac0| 09 09 54 49 4f 43 4d 5f | 43 44 09 54 49 4f 43 4d |..TIOCM_|CD.TIOCM|
|00000ad0| 5f 43 41 52 0d 23 64 65 | 66 69 6e 65 09 09 54 49 |_CAR.#de|fine..TI|
|00000ae0| 4f 43 4d 5f 52 4e 47 09 | 30 32 30 30 09 09 2f 2a |OCM_RNG.|0200../*|
|00000af0| 20 72 69 6e 67 20 2a 2f | 0d 23 64 65 66 69 6e 65 | ring */|.#define|
|00000b00| 09 09 54 49 4f 43 4d 5f | 52 49 09 54 49 4f 43 4d |..TIOCM_|RI.TIOCM|
|00000b10| 5f 52 4e 47 0d 23 64 65 | 66 69 6e 65 09 09 54 49 |_RNG.#de|fine..TI|
|00000b20| 4f 43 4d 5f 44 53 52 09 | 30 34 30 30 09 09 2f 2a |OCM_DSR.|0400../*|
|00000b30| 20 64 61 74 61 20 73 65 | 74 20 72 65 61 64 79 20 | data se|t ready |
|00000b40| 2a 2f 0d 09 09 09 09 09 | 09 2f 2a 20 38 2d 31 30 |*/......|./* 8-10|
|00000b50| 20 63 6f 6d 70 61 74 20 | 2a 2f 0d 23 64 65 66 69 | compat |*/.#defi|
|00000b60| 6e 65 09 54 49 4f 43 45 | 58 43 4c 09 5f 49 4f 28 |ne.TIOCE|XCL._IO(|
|00000b70| 27 74 27 2c 20 31 33 29 | 09 09 2f 2a 20 73 65 74 |'t', 13)|../* set|
|00000b80| 20 65 78 63 6c 75 73 69 | 76 65 20 75 73 65 20 6f | exclusi|ve use o|
|00000b90| 66 20 74 74 79 20 2a 2f | 0d 23 64 65 66 69 6e 65 |f tty */|.#define|
|00000ba0| 09 54 49 4f 43 4e 58 43 | 4c 09 5f 49 4f 28 27 74 |.TIOCNXC|L._IO('t|
|00000bb0| 27 2c 20 31 34 29 09 09 | 2f 2a 20 72 65 73 65 74 |', 14)..|/* reset|
|00000bc0| 20 65 78 63 6c 75 73 69 | 76 65 20 75 73 65 20 6f | exclusi|ve use o|
|00000bd0| 66 20 74 74 79 20 2a 2f | 0d 09 09 09 09 09 09 2f |f tty */|......./|
|00000be0| 2a 20 31 35 20 75 6e 75 | 73 65 64 20 2a 2f 0d 23 |* 15 unu|sed */.#|
|00000bf0| 64 65 66 69 6e 65 09 54 | 49 4f 43 46 4c 55 53 48 |define.T|IOCFLUSH|
|00000c00| 09 5f 49 4f 57 28 27 74 | 27 2c 20 31 36 2c 20 69 |._IOW('t|', 16, i|
|00000c10| 6e 74 29 09 2f 2a 20 66 | 6c 75 73 68 20 62 75 66 |nt)./* f|lush buf|
|00000c20| 66 65 72 73 20 2a 2f 0d | 09 09 09 09 09 09 2f 2a |fers */.|....../*|
|00000c30| 20 31 37 2d 31 38 20 63 | 6f 6d 70 61 74 20 2a 2f | 17-18 c|ompat */|
|00000c40| 0d 23 64 65 66 69 6e 65 | 09 54 49 4f 43 47 45 54 |.#define|.TIOCGET|
|00000c50| 41 09 5f 49 4f 52 28 27 | 74 27 2c 20 31 39 2c 20 |A._IOR('|t', 19, |
|00000c60| 73 74 72 75 63 74 20 74 | 65 72 6d 69 6f 73 29 20 |struct t|ermios) |
|00000c70| 2f 2a 20 67 65 74 20 74 | 65 72 6d 69 6f 73 20 73 |/* get t|ermios s|
|00000c80| 74 72 75 63 74 20 2a 2f | 0d 23 64 65 66 69 6e 65 |truct */|.#define|
|00000c90| 09 54 49 4f 43 53 45 54 | 41 09 5f 49 4f 57 28 27 |.TIOCSET|A._IOW('|
|00000ca0| 74 27 2c 20 32 30 2c 20 | 73 74 72 75 63 74 20 74 |t', 20, |struct t|
|00000cb0| 65 72 6d 69 6f 73 29 20 | 2f 2a 20 73 65 74 20 74 |ermios) |/* set t|
|00000cc0| 65 72 6d 69 6f 73 20 73 | 74 72 75 63 74 20 2a 2f |ermios s|truct */|
|00000cd0| 0d 23 64 65 66 69 6e 65 | 09 54 49 4f 43 53 45 54 |.#define|.TIOCSET|
|00000ce0| 41 57 09 5f 49 4f 57 28 | 27 74 27 2c 20 32 31 2c |AW._IOW(|'t', 21,|
|00000cf0| 20 73 74 72 75 63 74 20 | 74 65 72 6d 69 6f 73 29 | struct |termios)|
|00000d00| 20 2f 2a 20 64 72 61 69 | 6e 20 6f 75 74 70 75 74 | /* drai|n output|
|00000d10| 2c 20 73 65 74 20 2a 2f | 0d 23 64 65 66 69 6e 65 |, set */|.#define|
|00000d20| 09 54 49 4f 43 53 45 54 | 41 46 09 5f 49 4f 57 28 |.TIOCSET|AF._IOW(|
|00000d30| 27 74 27 2c 20 32 32 2c | 20 73 74 72 75 63 74 20 |'t', 22,| struct |
|00000d40| 74 65 72 6d 69 6f 73 29 | 20 2f 2a 20 64 72 6e 20 |termios)| /* drn |
|00000d50| 6f 75 74 2c 20 66 6c 73 | 20 69 6e 2c 20 73 65 74 |out, fls| in, set|
|00000d60| 20 2a 2f 0d 2f 2a 2a 2a | 20 54 48 45 53 45 20 47 | */./***| THESE G|
|00000d70| 4f 20 41 57 41 59 20 2a | 2a 2a 2f 0d 23 64 65 66 |O AWAY *|**/.#def|
|00000d80| 69 6e 65 09 4a 55 4e 4b | 5f 54 49 4f 43 53 45 54 |ine.JUNK|_TIOCSET|
|00000d90| 41 53 09 5f 49 4f 57 28 | 27 74 27 2c 20 32 33 2c |AS._IOW(|'t', 23,|
|00000da0| 20 73 74 72 75 63 74 20 | 74 65 72 6d 69 6f 73 29 | struct |termios)|
|00000db0| 20 2f 2a 20 53 45 54 41 | 20 69 67 6e 20 68 64 77 | /* SETA| ign hdw|
|00000dc0| 20 73 74 61 74 65 20 2a | 2f 0d 23 64 65 66 69 6e | state *|/.#defin|
|00000dd0| 65 09 4a 55 4e 4b 5f 54 | 49 4f 43 53 45 54 41 57 |e.JUNK_T|IOCSETAW|
|00000de0| 53 09 5f 49 4f 57 28 27 | 74 27 2c 20 32 34 2c 20 |S._IOW('|t', 24, |
|00000df0| 73 74 72 75 63 74 20 74 | 65 72 6d 69 6f 73 29 20 |struct t|ermios) |
|00000e00| 2f 2a 20 53 45 54 41 57 | 20 69 67 6e 20 68 64 77 |/* SETAW| ign hdw|
|00000e10| 20 73 74 61 74 65 20 2a | 2f 0d 23 64 65 66 69 6e | state *|/.#defin|
|00000e20| 65 09 4a 55 4e 4b 5f 54 | 49 4f 43 53 45 54 41 46 |e.JUNK_T|IOCSETAF|
|00000e30| 53 09 5f 49 4f 57 28 27 | 74 27 2c 20 32 35 2c 20 |S._IOW('|t', 25, |
|00000e40| 73 74 72 75 63 74 20 74 | 65 72 6d 69 6f 73 29 20 |struct t|ermios) |
|00000e50| 2f 2a 20 53 45 54 41 46 | 20 69 67 6e 20 68 64 77 |/* SETAF| ign hdw|
|00000e60| 20 73 74 61 74 65 20 2a | 2f 0d 2f 2a 2a 2a 2a 2a | state *|/./*****|
|00000e70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0d 23 |********|*****/.#|
|00000e80| 64 65 66 69 6e 65 09 54 | 49 4f 43 47 45 54 44 09 |define.T|IOCGETD.|
|00000e90| 5f 49 4f 52 28 27 74 27 | 2c 20 32 36 2c 20 69 6e |_IOR('t'|, 26, in|
|00000ea0| 74 29 09 2f 2a 20 67 65 | 74 20 6c 69 6e 65 20 64 |t)./* ge|t line d|
|00000eb0| 69 73 63 69 70 6c 69 6e | 65 20 2a 2f 0d 23 64 65 |isciplin|e */.#de|
|00000ec0| 66 69 6e 65 09 54 49 4f | 43 53 45 54 44 09 5f 49 |fine.TIO|CSETD._I|
|00000ed0| 4f 57 28 27 74 27 2c 20 | 32 37 2c 20 69 6e 74 29 |OW('t', |27, int)|
|00000ee0| 09 2f 2a 20 73 65 74 20 | 6c 69 6e 65 20 64 69 73 |./* set |line dis|
|00000ef0| 63 69 70 6c 69 6e 65 20 | 2a 2f 0d 09 09 09 09 09 |cipline |*/......|
|00000f00| 09 2f 2a 20 31 32 37 2d | 31 32 34 20 63 6f 6d 70 |./* 127-|124 comp|
|00000f10| 61 74 20 2a 2f 0d 23 64 | 65 66 69 6e 65 09 54 49 |at */.#d|efine.TI|
|00000f20| 4f 43 53 42 52 4b 09 5f | 49 4f 28 27 74 27 2c 20 |OCSBRK._|IO('t', |
|00000f30| 31 32 33 29 09 09 2f 2a | 20 73 65 74 20 62 72 65 |123)../*| set bre|
|00000f40| 61 6b 20 62 69 74 20 2a | 2f 0d 23 64 65 66 69 6e |ak bit *|/.#defin|
|00000f50| 65 09 54 49 4f 43 43 42 | 52 4b 09 5f 49 4f 28 27 |e.TIOCCB|RK._IO('|
|00000f60| 74 27 2c 20 31 32 32 29 | 09 09 2f 2a 20 63 6c 65 |t', 122)|../* cle|
|00000f70| 61 72 20 62 72 65 61 6b | 20 62 69 74 20 2a 2f 0d |ar break| bit */.|
|00000f80| 23 64 65 66 69 6e 65 09 | 54 49 4f 43 53 44 54 52 |#define.|TIOCSDTR|
|00000f90| 09 5f 49 4f 28 27 74 27 | 2c 20 31 32 31 29 09 09 |._IO('t'|, 121)..|
|00000fa0| 2f 2a 20 73 65 74 20 64 | 61 74 61 20 74 65 72 6d |/* set d|ata term|
|00000fb0| 69 6e 61 6c 20 72 65 61 | 64 79 20 2a 2f 0d 23 64 |inal rea|dy */.#d|
|00000fc0| 65 66 69 6e 65 09 54 49 | 4f 43 43 44 54 52 09 5f |efine.TI|OCCDTR._|
|00000fd0| 49 4f 28 27 74 27 2c 20 | 31 32 30 29 09 09 2f 2a |IO('t', |120)../*|
|00000fe0| 20 63 6c 65 61 72 20 64 | 61 74 61 20 74 65 72 6d | clear d|ata term|
|00000ff0| 69 6e 61 6c 20 72 65 61 | 64 79 20 2a 2f 0d 23 64 |inal rea|dy */.#d|
|00001000| 65 66 69 6e 65 09 54 49 | 4f 43 47 50 47 52 50 09 |efine.TI|OCGPGRP.|
|00001010| 5f 49 4f 52 28 27 74 27 | 2c 20 31 31 39 2c 20 69 |_IOR('t'|, 119, i|
|00001020| 6e 74 29 09 2f 2a 20 67 | 65 74 20 70 67 72 70 20 |nt)./* g|et pgrp |
|00001030| 6f 66 20 74 74 79 20 2a | 2f 0d 23 64 65 66 69 6e |of tty *|/.#defin|
|00001040| 65 09 54 49 4f 43 53 50 | 47 52 50 09 5f 49 4f 57 |e.TIOCSP|GRP._IOW|
|00001050| 28 27 74 27 2c 20 31 31 | 38 2c 20 69 6e 74 29 09 |('t', 11|8, int).|
|00001060| 2f 2a 20 73 65 74 20 70 | 67 72 70 20 6f 66 20 74 |/* set p|grp of t|
|00001070| 74 79 20 2a 2f 0d 09 09 | 09 09 09 09 2f 2a 20 31 |ty */...|..../* 1|
|00001080| 31 37 2d 31 31 36 20 63 | 6f 6d 70 61 74 20 2a 2f |17-116 c|ompat */|
|00001090| 0d 23 64 65 66 69 6e 65 | 09 54 49 4f 43 4f 55 54 |.#define|.TIOCOUT|
|000010a0| 51 09 5f 49 4f 52 28 27 | 74 27 2c 20 31 31 35 2c |Q._IOR('|t', 115,|
|000010b0| 20 69 6e 74 29 09 2f 2a | 20 6f 75 74 70 75 74 20 | int)./*| output |
|000010c0| 71 75 65 75 65 20 73 69 | 7a 65 20 2a 2f 0d 23 64 |queue si|ze */.#d|
|000010d0| 65 66 69 6e 65 09 54 49 | 4f 43 53 54 49 09 09 5f |efine.TI|OCSTI.._|
|000010e0| 49 4f 57 28 27 74 27 2c | 20 31 31 34 2c 20 63 68 |IOW('t',| 114, ch|
|000010f0| 61 72 29 09 2f 2a 20 73 | 69 6d 75 6c 61 74 65 20 |ar)./* s|imulate |
|00001100| 74 65 72 6d 69 6e 61 6c | 20 69 6e 70 75 74 20 2a |terminal| input *|
|00001110| 2f 0d 23 64 65 66 69 6e | 65 09 54 49 4f 43 4e 4f |/.#defin|e.TIOCNO|
|00001120| 54 54 59 09 5f 49 4f 28 | 27 74 27 2c 20 31 31 33 |TTY._IO(|'t', 113|
|00001130| 29 09 09 2f 2a 20 76 6f | 69 64 20 74 74 79 20 61 |)../* vo|id tty a|
|00001140| 73 73 6f 63 69 61 74 69 | 6f 6e 20 2a 2f 0d 23 64 |ssociati|on */.#d|
|00001150| 65 66 69 6e 65 09 54 49 | 4f 43 50 4b 54 09 09 5f |efine.TI|OCPKT.._|
|00001160| 49 4f 57 28 27 74 27 2c | 20 31 31 32 2c 20 69 6e |IOW('t',| 112, in|
|00001170| 74 29 09 2f 2a 20 70 74 | 79 3a 20 73 65 74 2f 63 |t)./* pt|y: set/c|
|00001180| 6c 65 61 72 20 70 61 63 | 6b 65 74 20 6d 6f 64 65 |lear pac|ket mode|
|00001190| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 54 49 4f | */.#def|ine..TIO|
|000011a0| 43 50 4b 54 5f 44 41 54 | 41 09 09 30 78 30 30 09 |CPKT_DAT|A..0x00.|
|000011b0| 2f 2a 20 64 61 74 61 20 | 70 61 63 6b 65 74 20 2a |/* data |packet *|
|000011c0| 2f 0d 23 64 65 66 69 6e | 65 09 09 54 49 4f 43 50 |/.#defin|e..TIOCP|
|000011d0| 4b 54 5f 46 4c 55 53 48 | 52 45 41 44 09 30 78 30 |KT_FLUSH|READ.0x0|
|000011e0| 31 09 2f 2a 20 66 6c 75 | 73 68 20 70 61 63 6b 65 |1./* flu|sh packe|
|000011f0| 74 20 2a 2f 0d 23 64 65 | 66 69 6e 65 09 09 54 49 |t */.#de|fine..TI|
|00001200| 4f 43 50 4b 54 5f 46 4c | 55 53 48 57 52 49 54 45 |OCPKT_FL|USHWRITE|
|00001210| 09 30 78 30 32 09 2f 2a | 20 66 6c 75 73 68 20 70 |.0x02./*| flush p|
|00001220| 61 63 6b 65 74 20 2a 2f | 0d 23 64 65 66 69 6e 65 |acket */|.#define|
|00001230| 09 09 54 49 4f 43 50 4b | 54 5f 53 54 4f 50 09 09 |..TIOCPK|T_STOP..|
|00001240| 30 78 30 34 09 2f 2a 20 | 73 74 6f 70 20 6f 75 74 |0x04./* |stop out|
|00001250| 70 75 74 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |put */.#|define..|
|00001260| 54 49 4f 43 50 4b 54 5f | 53 54 41 52 54 09 09 30 |TIOCPKT_|START..0|
|00001270| 78 30 38 09 2f 2a 20 73 | 74 61 72 74 20 6f 75 74 |x08./* s|tart out|
|00001280| 70 75 74 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |put */.#|define..|
|00001290| 54 49 4f 43 50 4b 54 5f | 4e 4f 53 54 4f 50 09 09 |TIOCPKT_|NOSTOP..|
|000012a0| 30 78 31 30 09 2f 2a 20 | 6e 6f 20 6d 6f 72 65 20 |0x10./* |no more |
|000012b0| 5e 53 2c 20 5e 51 20 2a | 2f 0d 23 64 65 66 69 6e |^S, ^Q *|/.#defin|
|000012c0| 65 09 09 54 49 4f 43 50 | 4b 54 5f 44 4f 53 54 4f |e..TIOCP|KT_DOSTO|
|000012d0| 50 09 09 30 78 32 30 09 | 2f 2a 20 6e 6f 77 20 64 |P..0x20.|/* now d|
|000012e0| 6f 20 5e 53 20 5e 51 20 | 2a 2f 0d 23 64 65 66 69 |o ^S ^Q |*/.#defi|
|000012f0| 6e 65 09 09 54 49 4f 43 | 50 4b 54 5f 49 4f 43 54 |ne..TIOC|PKT_IOCT|
|00001300| 4c 09 09 30 78 34 30 09 | 2f 2a 20 73 74 61 74 65 |L..0x40.|/* state|
|00001310| 20 63 68 61 6e 67 65 20 | 6f 66 20 70 74 79 20 64 | change |of pty d|
|00001320| 72 69 76 65 72 20 2a 2f | 0d 23 64 65 66 69 6e 65 |river */|.#define|
|00001330| 09 54 49 4f 43 53 54 4f | 50 09 5f 49 4f 28 27 74 |.TIOCSTO|P._IO('t|
|00001340| 27 2c 20 31 31 31 29 09 | 09 2f 2a 20 73 74 6f 70 |', 111).|./* stop|
|00001350| 20 6f 75 74 70 75 74 2c | 20 6c 69 6b 65 20 5e 53 | output,| like ^S|
|00001360| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 54 49 4f 43 | */.#def|ine.TIOC|
|00001370| 53 54 41 52 54 09 5f 49 | 4f 28 27 74 27 2c 20 31 |START._I|O('t', 1|
|00001380| 31 30 29 09 09 2f 2a 20 | 73 74 61 72 74 20 6f 75 |10)../* |start ou|
|00001390| 74 70 75 74 2c 20 6c 69 | 6b 65 20 5e 51 20 2a 2f |tput, li|ke ^Q */|
|000013a0| 0d 23 64 65 66 69 6e 65 | 09 54 49 4f 43 4d 53 45 |.#define|.TIOCMSE|
|000013b0| 54 09 5f 49 4f 57 28 27 | 74 27 2c 20 31 30 39 2c |T._IOW('|t', 109,|
|000013c0| 20 69 6e 74 29 09 2f 2a | 20 73 65 74 20 61 6c 6c | int)./*| set all|
|000013d0| 20 6d 6f 64 65 6d 20 62 | 69 74 73 20 2a 2f 0d 23 | modem b|its */.#|
|000013e0| 64 65 66 69 6e 65 09 54 | 49 4f 43 4d 42 49 53 09 |define.T|IOCMBIS.|
|000013f0| 5f 49 4f 57 28 27 74 27 | 2c 20 31 30 38 2c 20 69 |_IOW('t'|, 108, i|
|00001400| 6e 74 29 09 2f 2a 20 62 | 69 73 20 6d 6f 64 65 6d |nt)./* b|is modem|
|00001410| 20 62 69 74 73 20 2a 2f | 0d 23 64 65 66 69 6e 65 | bits */|.#define|
|00001420| 09 54 49 4f 43 4d 42 49 | 43 09 5f 49 4f 57 28 27 |.TIOCMBI|C._IOW('|
|00001430| 74 27 2c 20 31 30 37 2c | 20 69 6e 74 29 09 2f 2a |t', 107,| int)./*|
|00001440| 20 62 69 63 20 6d 6f 64 | 65 6d 20 62 69 74 73 20 | bic mod|em bits |
|00001450| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 54 49 4f 43 4d |*/.#defi|ne.TIOCM|
|00001460| 47 45 54 09 5f 49 4f 52 | 28 27 74 27 2c 20 31 30 |GET._IOR|('t', 10|
|00001470| 36 2c 20 69 6e 74 29 09 | 2f 2a 20 67 65 74 20 61 |6, int).|/* get a|
|00001480| 6c 6c 20 6d 6f 64 65 6d | 20 62 69 74 73 20 2a 2f |ll modem| bits */|
|00001490| 0d 23 64 65 66 69 6e 65 | 09 54 49 4f 43 52 45 4d |.#define|.TIOCREM|
|000014a0| 4f 54 45 09 5f 49 4f 57 | 28 27 74 27 2c 20 31 30 |OTE._IOW|('t', 10|
|000014b0| 35 2c 20 69 6e 74 29 09 | 2f 2a 20 72 65 6d 6f 74 |5, int).|/* remot|
|000014c0| 65 20 69 6e 70 75 74 20 | 65 64 69 74 69 6e 67 20 |e input |editing |
|000014d0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 54 49 4f 43 47 |*/.#defi|ne.TIOCG|
|000014e0| 57 49 4e 53 5a 09 5f 49 | 4f 52 28 27 74 27 2c 20 |WINSZ._I|OR('t', |
|000014f0| 31 30 34 2c 20 73 74 72 | 75 63 74 20 77 69 6e 73 |104, str|uct wins|
|00001500| 69 7a 65 29 09 2f 2a 20 | 67 65 74 20 77 69 6e 64 |ize)./* |get wind|
|00001510| 6f 77 20 73 69 7a 65 20 | 2a 2f 0d 23 64 65 66 69 |ow size |*/.#defi|
|00001520| 6e 65 09 54 49 4f 43 53 | 57 49 4e 53 5a 09 5f 49 |ne.TIOCS|WINSZ._I|
|00001530| 4f 57 28 27 74 27 2c 20 | 31 30 33 2c 20 73 74 72 |OW('t', |103, str|
|00001540| 75 63 74 20 77 69 6e 73 | 69 7a 65 29 09 2f 2a 20 |uct wins|ize)./* |
|00001550| 73 65 74 20 77 69 6e 64 | 6f 77 20 73 69 7a 65 20 |set wind|ow size |
|00001560| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 54 49 4f 43 55 |*/.#defi|ne.TIOCU|
|00001570| 43 4e 54 4c 09 5f 49 4f | 57 28 27 74 27 2c 20 31 |CNTL._IO|W('t', 1|
|00001580| 30 32 2c 20 69 6e 74 29 | 09 2f 2a 20 70 74 79 3a |02, int)|./* pty:|
|00001590| 20 73 65 74 2f 63 6c 72 | 20 75 73 72 20 63 6e 74 | set/clr| usr cnt|
|000015a0| 6c 20 6d 6f 64 65 20 2a | 2f 0d 23 64 65 66 69 6e |l mode *|/.#defin|
|000015b0| 65 09 09 55 49 4f 43 43 | 4d 44 28 6e 29 09 5f 49 |e..UIOCC|MD(n)._I|
|000015c0| 4f 28 27 75 27 2c 20 6e | 29 09 09 2f 2a 20 75 73 |O('u', n|)../* us|
|000015d0| 72 20 63 6e 74 6c 20 6f | 70 20 22 6e 22 20 2a 2f |r cntl o|p "n" */|
|000015e0| 0d 23 64 65 66 69 6e 65 | 09 54 49 4f 43 43 4f 4e |.#define|.TIOCCON|
|000015f0| 53 09 5f 49 4f 57 28 27 | 74 27 2c 20 39 38 2c 20 |S._IOW('|t', 98, |
|00001600| 69 6e 74 29 09 09 2f 2a | 20 62 65 63 6f 6d 65 20 |int)../*| become |
|00001610| 76 69 72 74 75 61 6c 20 | 63 6f 6e 73 6f 6c 65 20 |virtual |console |
|00001620| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 54 49 4f 43 53 |*/.#defi|ne.TIOCS|
|00001630| 43 54 54 59 09 5f 49 4f | 28 27 74 27 2c 20 39 37 |CTTY._IO|('t', 97|
|00001640| 29 09 09 2f 2a 20 62 65 | 63 6f 6d 65 20 63 6f 6e |)../* be|come con|
|00001650| 74 72 6f 6c 6c 69 6e 67 | 20 74 74 79 20 2a 2f 0d |trolling| tty */.|
|00001660| 23 64 65 66 69 6e 65 09 | 54 49 4f 43 45 58 54 09 |#define.|TIOCEXT.|
|00001670| 09 5f 49 4f 57 28 27 74 | 27 2c 20 39 36 2c 20 69 |._IOW('t|', 96, i|
|00001680| 6e 74 29 09 2f 2a 20 70 | 74 79 3a 20 65 78 74 65 |nt)./* p|ty: exte|
|00001690| 72 6e 61 6c 20 70 72 6f | 63 65 73 73 69 6e 67 20 |rnal pro|cessing |
|000016a0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 54 49 4f 43 53 |*/.#defi|ne.TIOCS|
|000016b0| 49 47 09 09 5f 49 4f 28 | 27 74 27 2c 20 39 35 29 |IG.._IO(|'t', 95)|
|000016c0| 09 09 2f 2a 20 70 74 79 | 3a 20 67 65 6e 65 72 61 |../* pty|: genera|
|000016d0| 74 65 20 73 69 67 6e 61 | 6c 20 2a 2f 0d 0d 23 64 |te signa|l */..#d|
|000016e0| 65 66 69 6e 65 20 54 54 | 59 44 49 53 43 09 09 30 |efine TT|YDISC..0|
|000016f0| 09 09 2f 2a 20 74 65 72 | 6d 69 6f 73 20 74 74 79 |../* ter|mios tty|
|00001700| 20 6c 69 6e 65 20 64 69 | 73 63 69 70 6c 69 6e 65 | line di|scipline|
|00001710| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 54 41 42 4c | */.#def|ine.TABL|
|00001720| 44 49 53 43 09 33 09 09 | 2f 2a 20 74 61 62 6c 65 |DISC.3..|/* table|
|00001730| 74 20 64 69 73 63 69 70 | 6c 69 6e 65 20 2a 2f 0d |t discip|line */.|
|00001740| 23 64 65 66 69 6e 65 09 | 53 4c 49 50 44 49 53 43 |#define.|SLIPDISC|
|00001750| 09 34 09 09 2f 2a 20 73 | 65 72 69 61 6c 20 49 50 |.4../* s|erial IP|
|00001760| 20 64 69 73 63 69 70 6c | 69 6e 65 20 2a 2f 0d 0d | discipl|ine */..|
|00001770| 2f 2a 0d 20 2a 20 43 6f | 6d 70 61 74 61 62 69 6c |/*. * Co|mpatabil|
|00001780| 69 74 79 20 77 69 74 68 | 20 6f 6c 64 20 74 65 72 |ity with| old ter|
|00001790| 6d 69 6e 61 6c 20 64 72 | 69 76 65 72 0d 20 2a 0d |minal dr|iver. *.|
|000017a0| 20 2a 20 53 6f 75 72 63 | 65 20 6c 65 76 65 6c 20 | * Sourc|e level |
|000017b0| 2d 3e 20 23 64 65 66 69 | 6e 65 20 55 53 45 5f 4f |-> #defi|ne USE_O|
|000017c0| 4c 44 5f 54 54 59 0d 20 | 2a 20 4b 65 72 6e 65 6c |LD_TTY. |* Kernel|
|000017d0| 20 6c 65 76 65 6c 20 2d | 3e 20 6f 70 74 69 6f 6e | level -|> option|
|000017e0| 73 20 43 4f 4d 50 41 54 | 5f 34 33 0d 20 2a 2f 0d |s COMPAT|_43. */.|
|000017f0| 23 69 66 20 64 65 66 69 | 6e 65 64 28 55 53 45 5f |#if defi|ned(USE_|
|00001800| 4f 4c 44 5f 54 54 59 29 | 20 7c 7c 20 64 65 66 69 |OLD_TTY)| || defi|
|00001810| 6e 65 64 28 43 4f 4d 50 | 41 54 5f 34 33 29 0d 23 |ned(COMP|AT_43).#|
|00001820| 69 66 64 65 66 20 4b 45 | 52 4e 45 4c 0d 23 69 6e |ifdef KE|RNEL.#in|
|00001830| 63 6c 75 64 65 20 22 69 | 6f 63 74 6c 5f 63 6f 6d |clude "i|octl_com|
|00001840| 70 61 74 2e 68 22 0d 23 | 65 6c 73 65 0d 23 69 6e |pat.h".#|else.#in|
|00001850| 63 6c 75 64 65 20 3c 73 | 79 73 2f 69 6f 63 74 6c |clude <s|ys/ioctl|
|00001860| 5f 63 6f 6d 70 61 74 2e | 68 3e 0d 23 65 6e 64 69 |_compat.|h>.#endi|
|00001870| 66 0d 23 65 6e 64 69 66 | 0d 0d 23 64 65 66 69 6e |f.#endif|..#defin|
|00001880| 65 09 46 49 4f 43 4c 45 | 58 09 09 5f 49 4f 28 27 |e.FIOCLE|X.._IO('|
|00001890| 66 27 2c 20 31 29 09 09 | 2f 2a 20 73 65 74 20 63 |f', 1)..|/* set c|
|000018a0| 6c 6f 73 65 20 6f 6e 20 | 65 78 65 63 20 6f 6e 20 |lose on |exec on |
|000018b0| 66 64 20 2a 2f 0d 23 64 | 65 66 69 6e 65 09 46 49 |fd */.#d|efine.FI|
|000018c0| 4f 4e 43 4c 45 58 09 5f | 49 4f 28 27 66 27 2c 20 |ONCLEX._|IO('f', |
|000018d0| 32 29 09 09 2f 2a 20 72 | 65 6d 6f 76 65 20 63 6c |2)../* r|emove cl|
|000018e0| 6f 73 65 20 6f 6e 20 65 | 78 65 63 20 2a 2f 0d 23 |ose on e|xec */.#|
|000018f0| 64 65 66 69 6e 65 09 46 | 49 4f 4e 52 45 41 44 09 |define.F|IONREAD.|
|00001900| 5f 49 4f 52 28 27 66 27 | 2c 20 31 32 37 2c 20 69 |_IOR('f'|, 127, i|
|00001910| 6e 74 29 09 2f 2a 20 67 | 65 74 20 23 20 62 79 74 |nt)./* g|et # byt|
|00001920| 65 73 20 74 6f 20 72 65 | 61 64 20 2a 2f 0d 23 64 |es to re|ad */.#d|
|00001930| 65 66 69 6e 65 09 46 49 | 4f 4e 42 49 4f 09 09 5f |efine.FI|ONBIO.._|
|00001940| 49 4f 57 28 27 66 27 2c | 20 31 32 36 2c 20 69 6e |IOW('f',| 126, in|
|00001950| 74 29 09 2f 2a 20 73 65 | 74 2f 63 6c 65 61 72 20 |t)./* se|t/clear |
|00001960| 6e 6f 6e 2d 62 6c 6f 63 | 6b 69 6e 67 20 69 2f 6f |non-bloc|king i/o|
|00001970| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 46 49 4f 41 | */.#def|ine.FIOA|
|00001980| 53 59 4e 43 09 5f 49 4f | 57 28 27 66 27 2c 20 31 |SYNC._IO|W('f', 1|
|00001990| 32 35 2c 20 69 6e 74 29 | 09 2f 2a 20 73 65 74 2f |25, int)|./* set/|
|000019a0| 63 6c 65 61 72 20 61 73 | 79 6e 63 20 69 2f 6f 20 |clear as|ync i/o |
|000019b0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 46 49 4f 53 45 |*/.#defi|ne.FIOSE|
|000019c0| 54 4f 57 4e 09 5f 49 4f | 57 28 27 66 27 2c 20 31 |TOWN._IO|W('f', 1|
|000019d0| 32 34 2c 20 69 6e 74 29 | 09 2f 2a 20 73 65 74 20 |24, int)|./* set |
|000019e0| 6f 77 6e 65 72 20 2a 2f | 0d 23 64 65 66 69 6e 65 |owner */|.#define|
|000019f0| 09 46 49 4f 47 45 54 4f | 57 4e 09 5f 49 4f 52 28 |.FIOGETO|WN._IOR(|
|00001a00| 27 66 27 2c 20 31 32 33 | 2c 20 69 6e 74 29 09 2f |'f', 123|, int)./|
|00001a10| 2a 20 67 65 74 20 6f 77 | 6e 65 72 20 2a 2f 0d 0d |* get ow|ner */..|
|00001a20| 2f 2a 20 73 6f 63 6b 65 | 74 20 69 2f 6f 20 63 6f |/* socke|t i/o co|
|00001a30| 6e 74 72 6f 6c 73 20 2a | 2f 0d 23 64 65 66 69 6e |ntrols *|/.#defin|
|00001a40| 65 09 53 49 4f 43 53 48 | 49 57 41 54 09 5f 49 4f |e.SIOCSH|IWAT._IO|
|00001a50| 57 28 27 73 27 2c 20 20 | 30 2c 20 69 6e 74 29 09 |W('s', |0, int).|
|00001a60| 09 2f 2a 20 73 65 74 20 | 68 69 67 68 20 77 61 74 |./* set |high wat|
|00001a70| 65 72 6d 61 72 6b 20 2a | 2f 0d 23 64 65 66 69 6e |ermark *|/.#defin|
|00001a80| 65 09 53 49 4f 43 47 48 | 49 57 41 54 09 5f 49 4f |e.SIOCGH|IWAT._IO|
|00001a90| 52 28 27 73 27 2c 20 20 | 31 2c 20 69 6e 74 29 09 |R('s', |1, int).|
|00001aa0| 09 2f 2a 20 67 65 74 20 | 68 69 67 68 20 77 61 74 |./* get |high wat|
|00001ab0| 65 72 6d 61 72 6b 20 2a | 2f 0d 23 64 65 66 69 6e |ermark *|/.#defin|
|00001ac0| 65 09 53 49 4f 43 53 4c | 4f 57 41 54 09 5f 49 4f |e.SIOCSL|OWAT._IO|
|00001ad0| 57 28 27 73 27 2c 20 20 | 32 2c 20 69 6e 74 29 09 |W('s', |2, int).|
|00001ae0| 09 2f 2a 20 73 65 74 20 | 6c 6f 77 20 77 61 74 65 |./* set |low wate|
|00001af0| 72 6d 61 72 6b 20 2a 2f | 0d 23 64 65 66 69 6e 65 |rmark */|.#define|
|00001b00| 09 53 49 4f 43 47 4c 4f | 57 41 54 09 5f 49 4f 52 |.SIOCGLO|WAT._IOR|
|00001b10| 28 27 73 27 2c 20 20 33 | 2c 20 69 6e 74 29 09 09 |('s', 3|, int)..|
|00001b20| 2f 2a 20 67 65 74 20 6c | 6f 77 20 77 61 74 65 72 |/* get l|ow water|
|00001b30| 6d 61 72 6b 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |mark */.|#define.|
|00001b40| 53 49 4f 43 41 54 4d 41 | 52 4b 09 5f 49 4f 52 28 |SIOCATMA|RK._IOR(|
|00001b50| 27 73 27 2c 20 20 37 2c | 20 69 6e 74 29 09 09 2f |'s', 7,| int)../|
|00001b60| 2a 20 61 74 20 6f 6f 62 | 20 6d 61 72 6b 3f 20 2a |* at oob| mark? *|
|00001b70| 2f 0d 23 64 65 66 69 6e | 65 09 53 49 4f 43 53 50 |/.#defin|e.SIOCSP|
|00001b80| 47 52 50 09 5f 49 4f 57 | 28 27 73 27 2c 20 20 38 |GRP._IOW|('s', 8|
|00001b90| 2c 20 69 6e 74 29 09 09 | 2f 2a 20 73 65 74 20 70 |, int)..|/* set p|
|00001ba0| 72 6f 63 65 73 73 20 67 | 72 6f 75 70 20 2a 2f 0d |rocess g|roup */.|
|00001bb0| 23 64 65 66 69 6e 65 09 | 53 49 4f 43 47 50 47 52 |#define.|SIOCGPGR|
|00001bc0| 50 09 5f 49 4f 52 28 27 | 73 27 2c 20 20 39 2c 20 |P._IOR('|s', 9, |
|00001bd0| 69 6e 74 29 09 09 2f 2a | 20 67 65 74 20 70 72 6f |int)../*| get pro|
|00001be0| 63 65 73 73 20 67 72 6f | 75 70 20 2a 2f 0d 0d 23 |cess gro|up */..#|
|00001bf0| 64 65 66 69 6e 65 09 53 | 49 4f 43 41 44 44 52 54 |define.S|IOCADDRT|
|00001c00| 09 5f 49 4f 57 28 27 72 | 27 2c 20 31 30 2c 20 73 |._IOW('r|', 10, s|
|00001c10| 74 72 75 63 74 20 6f 72 | 74 65 6e 74 72 79 29 09 |truct or|tentry).|
|00001c20| 2f 2a 20 61 64 64 20 72 | 6f 75 74 65 20 2a 2f 0d |/* add r|oute */.|
|00001c30| 23 64 65 66 69 6e 65 09 | 53 49 4f 43 44 45 4c 52 |#define.|SIOCDELR|
|00001c40| 54 09 5f 49 4f 57 28 27 | 72 27 2c 20 31 31 2c 20 |T._IOW('|r', 11, |
|00001c50| 73 74 72 75 63 74 20 6f | 72 74 65 6e 74 72 79 29 |struct o|rtentry)|
|00001c60| 09 2f 2a 20 64 65 6c 65 | 74 65 20 72 6f 75 74 65 |./* dele|te route|
|00001c70| 20 2a 2f 0d 0d 23 64 65 | 66 69 6e 65 09 53 49 4f | */..#de|fine.SIO|
|00001c80| 43 53 49 46 41 44 44 52 | 09 5f 49 4f 57 28 27 69 |CSIFADDR|._IOW('i|
|00001c90| 27 2c 20 31 32 2c 20 73 | 74 72 75 63 74 20 69 66 |', 12, s|truct if|
|00001ca0| 72 65 71 29 09 2f 2a 20 | 73 65 74 20 69 66 6e 65 |req)./* |set ifne|
|00001cb0| 74 20 61 64 64 72 65 73 | 73 20 2a 2f 0d 23 64 65 |t addres|s */.#de|
|00001cc0| 66 69 6e 65 09 4f 53 49 | 4f 43 47 49 46 41 44 44 |fine.OSI|OCGIFADD|
|00001cd0| 52 09 5f 49 4f 57 52 28 | 27 69 27 2c 31 33 2c 20 |R._IOWR(|'i',13, |
|00001ce0| 73 74 72 75 63 74 20 69 | 66 72 65 71 29 09 2f 2a |struct i|freq)./*|
|00001cf0| 20 67 65 74 20 69 66 6e | 65 74 20 61 64 64 72 65 | get ifn|et addre|
|00001d00| 73 73 20 2a 2f 0d 23 64 | 65 66 69 6e 65 09 53 49 |ss */.#d|efine.SI|
|00001d10| 4f 43 47 49 46 41 44 44 | 52 09 5f 49 4f 57 52 28 |OCGIFADD|R._IOWR(|
|00001d20| 27 69 27 2c 33 33 2c 20 | 73 74 72 75 63 74 20 69 |'i',33, |struct i|
|00001d30| 66 72 65 71 29 09 2f 2a | 20 67 65 74 20 69 66 6e |freq)./*| get ifn|
|00001d40| 65 74 20 61 64 64 72 65 | 73 73 20 2a 2f 0d 23 64 |et addre|ss */.#d|
|00001d50| 65 66 69 6e 65 09 53 49 | 4f 43 53 49 46 44 53 54 |efine.SI|OCSIFDST|
|00001d60| 41 44 44 52 09 5f 49 4f | 57 28 27 69 27 2c 20 31 |ADDR._IO|W('i', 1|
|00001d70| 34 2c 20 73 74 72 75 63 | 74 20 69 66 72 65 71 29 |4, struc|t ifreq)|
|00001d80| 09 2f 2a 20 73 65 74 20 | 70 2d 70 20 61 64 64 72 |./* set |p-p addr|
|00001d90| 65 73 73 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 4f |ess */.#|define.O|
|00001da0| 53 49 4f 43 47 49 46 44 | 53 54 41 44 44 52 09 5f |SIOCGIFD|STADDR._|
|00001db0| 49 4f 57 52 28 27 69 27 | 2c 31 35 2c 20 73 74 72 |IOWR('i'|,15, str|
|00001dc0| 75 63 74 20 69 66 72 65 | 71 29 09 2f 2a 20 67 65 |uct ifre|q)./* ge|
|00001dd0| 74 20 70 2d 70 20 61 64 | 64 72 65 73 73 20 2a 2f |t p-p ad|dress */|
|00001de0| 0d 23 64 65 66 69 6e 65 | 09 53 49 4f 43 47 49 46 |.#define|.SIOCGIF|
|00001df0| 44 53 54 41 44 44 52 09 | 5f 49 4f 57 52 28 27 69 |DSTADDR.|_IOWR('i|
|00001e00| 27 2c 33 34 2c 20 73 74 | 72 75 63 74 20 69 66 72 |',34, st|ruct ifr|
|00001e10| 65 71 29 09 2f 2a 20 67 | 65 74 20 70 2d 70 20 61 |eq)./* g|et p-p a|
|00001e20| 64 64 72 65 73 73 20 2a | 2f 0d 23 64 65 66 69 6e |ddress *|/.#defin|
|00001e30| 65 09 53 49 4f 43 53 49 | 46 46 4c 41 47 53 09 5f |e.SIOCSI|FFLAGS._|
|00001e40| 49 4f 57 28 27 69 27 2c | 20 31 36 2c 20 73 74 72 |IOW('i',| 16, str|
|00001e50| 75 63 74 20 69 66 72 65 | 71 29 09 2f 2a 20 73 65 |uct ifre|q)./* se|
|00001e60| 74 20 69 66 6e 65 74 20 | 66 6c 61 67 73 20 2a 2f |t ifnet |flags */|
|00001e70| 0d 23 64 65 66 69 6e 65 | 09 53 49 4f 43 47 49 46 |.#define|.SIOCGIF|
|00001e80| 46 4c 41 47 53 09 5f 49 | 4f 57 52 28 27 69 27 2c |FLAGS._I|OWR('i',|
|00001e90| 31 37 2c 20 73 74 72 75 | 63 74 20 69 66 72 65 71 |17, stru|ct ifreq|
|00001ea0| 29 09 2f 2a 20 67 65 74 | 20 69 66 6e 65 74 20 66 |)./* get| ifnet f|
|00001eb0| 6c 61 67 73 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |lags */.|#define.|
|00001ec0| 4f 53 49 4f 43 47 49 46 | 42 52 44 41 44 44 52 09 |OSIOCGIF|BRDADDR.|
|00001ed0| 5f 49 4f 57 52 28 27 69 | 27 2c 31 38 2c 20 73 74 |_IOWR('i|',18, st|
|00001ee0| 72 75 63 74 20 69 66 72 | 65 71 29 09 2f 2a 20 67 |ruct ifr|eq)./* g|
|00001ef0| 65 74 20 62 72 6f 61 64 | 63 61 73 74 20 61 64 64 |et broad|cast add|
|00001f00| 72 20 2a 2f 0d 23 64 65 | 66 69 6e 65 09 53 49 4f |r */.#de|fine.SIO|
|00001f10| 43 47 49 46 42 52 44 41 | 44 44 52 09 5f 49 4f 57 |CGIFBRDA|DDR._IOW|
|00001f20| 52 28 27 69 27 2c 33 35 | 2c 20 73 74 72 75 63 74 |R('i',35|, struct|
|00001f30| 20 69 66 72 65 71 29 09 | 2f 2a 20 67 65 74 20 62 | ifreq).|/* get b|
|00001f40| 72 6f 61 64 63 61 73 74 | 20 61 64 64 72 20 2a 2f |roadcast| addr */|
|00001f50| 0d 23 64 65 66 69 6e 65 | 09 53 49 4f 43 53 49 46 |.#define|.SIOCSIF|
|00001f60| 42 52 44 41 44 44 52 09 | 5f 49 4f 57 28 27 69 27 |BRDADDR.|_IOW('i'|
|00001f70| 2c 31 39 2c 20 73 74 72 | 75 63 74 20 69 66 72 65 |,19, str|uct ifre|
|00001f80| 71 29 09 2f 2a 20 73 65 | 74 20 62 72 6f 61 64 63 |q)./* se|t broadc|
|00001f90| 61 73 74 20 61 64 64 72 | 20 2a 2f 0d 23 64 65 66 |ast addr| */.#def|
|00001fa0| 69 6e 65 09 4f 53 49 4f | 43 47 49 46 43 4f 4e 46 |ine.OSIO|CGIFCONF|
|00001fb0| 09 5f 49 4f 57 52 28 27 | 69 27 2c 32 30 2c 20 73 |._IOWR('|i',20, s|
|00001fc0| 74 72 75 63 74 20 69 66 | 63 6f 6e 66 29 09 2f 2a |truct if|conf)./*|
|00001fd0| 20 67 65 74 20 69 66 6e | 65 74 20 6c 69 73 74 20 | get ifn|et list |
|00001fe0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 53 49 4f 43 47 |*/.#defi|ne.SIOCG|
|00001ff0| 49 46 43 4f 4e 46 09 5f | 49 4f 57 52 28 27 69 27 |IFCONF._|IOWR('i'|
|00002000| 2c 33 36 2c 20 73 74 72 | 75 63 74 20 69 66 63 6f |,36, str|uct ifco|
|00002010| 6e 66 29 09 2f 2a 20 67 | 65 74 20 69 66 6e 65 74 |nf)./* g|et ifnet|
|00002020| 20 6c 69 73 74 20 2a 2f | 0d 23 64 65 66 69 6e 65 | list */|.#define|
|00002030| 09 4f 53 49 4f 43 47 49 | 46 4e 45 54 4d 41 53 4b |.OSIOCGI|FNETMASK|
|00002040| 09 5f 49 4f 57 52 28 27 | 69 27 2c 32 31 2c 20 73 |._IOWR('|i',21, s|
|00002050| 74 72 75 63 74 20 69 66 | 72 65 71 29 09 2f 2a 20 |truct if|req)./* |
|00002060| 67 65 74 20 6e 65 74 20 | 61 64 64 72 20 6d 61 73 |get net |addr mas|
|00002070| 6b 20 2a 2f 0d 23 64 65 | 66 69 6e 65 09 53 49 4f |k */.#de|fine.SIO|
|00002080| 43 47 49 46 4e 45 54 4d | 41 53 4b 09 5f 49 4f 57 |CGIFNETM|ASK._IOW|
|00002090| 52 28 27 69 27 2c 33 37 | 2c 20 73 74 72 75 63 74 |R('i',37|, struct|
|000020a0| 20 69 66 72 65 71 29 09 | 2f 2a 20 67 65 74 20 6e | ifreq).|/* get n|
|000020b0| 65 74 20 61 64 64 72 20 | 6d 61 73 6b 20 2a 2f 0d |et addr |mask */.|
|000020c0| 23 64 65 66 69 6e 65 09 | 53 49 4f 43 53 49 46 4e |#define.|SIOCSIFN|
|000020d0| 45 54 4d 41 53 4b 09 5f | 49 4f 57 28 27 69 27 2c |ETMASK._|IOW('i',|
|000020e0| 32 32 2c 20 73 74 72 75 | 63 74 20 69 66 72 65 71 |22, stru|ct ifreq|
|000020f0| 29 09 2f 2a 20 73 65 74 | 20 6e 65 74 20 61 64 64 |)./* set| net add|
|00002100| 72 20 6d 61 73 6b 20 2a | 2f 0d 23 64 65 66 69 6e |r mask *|/.#defin|
|00002110| 65 09 53 49 4f 43 47 49 | 46 4d 45 54 52 49 43 09 |e.SIOCGI|FMETRIC.|
|00002120| 5f 49 4f 57 52 28 27 69 | 27 2c 32 33 2c 20 73 74 |_IOWR('i|',23, st|
|00002130| 72 75 63 74 20 69 66 72 | 65 71 29 09 2f 2a 20 67 |ruct ifr|eq)./* g|
|00002140| 65 74 20 49 46 20 6d 65 | 74 72 69 63 20 2a 2f 0d |et IF me|tric */.|
|00002150| 23 64 65 66 69 6e 65 09 | 53 49 4f 43 53 49 46 4d |#define.|SIOCSIFM|
|00002160| 45 54 52 49 43 09 5f 49 | 4f 57 28 27 69 27 2c 32 |ETRIC._I|OW('i',2|
|00002170| 34 2c 20 73 74 72 75 63 | 74 20 69 66 72 65 71 29 |4, struc|t ifreq)|
|00002180| 09 2f 2a 20 73 65 74 20 | 49 46 20 6d 65 74 72 69 |./* set |IF metri|
|00002190| 63 20 2a 2f 0d 23 64 65 | 66 69 6e 65 09 53 49 4f |c */.#de|fine.SIO|
|000021a0| 43 44 49 46 41 44 44 52 | 09 5f 49 4f 57 28 27 69 |CDIFADDR|._IOW('i|
|000021b0| 27 2c 32 35 2c 20 73 74 | 72 75 63 74 20 69 66 72 |',25, st|ruct ifr|
|000021c0| 65 71 29 09 2f 2a 20 64 | 65 6c 65 74 65 20 49 46 |eq)./* d|elete IF|
|000021d0| 20 61 64 64 72 20 2a 2f | 0d 23 64 65 66 69 6e 65 | addr */|.#define|
|000021e0| 09 53 49 4f 43 41 49 46 | 41 44 44 52 09 5f 49 4f |.SIOCAIF|ADDR._IO|
|000021f0| 57 28 27 69 27 2c 32 36 | 2c 20 73 74 72 75 63 74 |W('i',26|, struct|
|00002200| 20 69 66 61 6c 69 61 73 | 72 65 71 29 09 2f 2a 20 | ifalias|req)./* |
|00002210| 61 64 64 2f 63 68 67 20 | 49 46 20 61 6c 69 61 73 |add/chg |IF alias|
|00002220| 20 2a 2f 0d 0d 23 64 65 | 66 69 6e 65 09 53 49 4f | */..#de|fine.SIO|
|00002230| 43 53 41 52 50 09 5f 49 | 4f 57 28 27 69 27 2c 20 |CSARP._I|OW('i', |
|00002240| 33 30 2c 20 73 74 72 75 | 63 74 20 61 72 70 72 65 |30, stru|ct arpre|
|00002250| 71 29 09 2f 2a 20 73 65 | 74 20 61 72 70 20 65 6e |q)./* se|t arp en|
|00002260| 74 72 79 20 2a 2f 0d 23 | 64 65 66 69 6e 65 09 4f |try */.#|define.O|
|00002270| 53 49 4f 43 47 41 52 50 | 09 5f 49 4f 57 52 28 27 |SIOCGARP|._IOWR('|
|00002280| 69 27 2c 33 31 2c 20 73 | 74 72 75 63 74 20 61 72 |i',31, s|truct ar|
|00002290| 70 72 65 71 29 09 2f 2a | 20 67 65 74 20 61 72 70 |preq)./*| get arp|
|000022a0| 20 65 6e 74 72 79 20 2a | 2f 0d 23 64 65 66 69 6e | entry *|/.#defin|
|000022b0| 65 09 53 49 4f 43 47 41 | 52 50 09 5f 49 4f 57 52 |e.SIOCGA|RP._IOWR|
|000022c0| 28 27 69 27 2c 33 38 2c | 20 73 74 72 75 63 74 20 |('i',38,| struct |
|000022d0| 61 72 70 72 65 71 29 09 | 2f 2a 20 67 65 74 20 61 |arpreq).|/* get a|
|000022e0| 72 70 20 65 6e 74 72 79 | 20 2a 2f 0d 23 64 65 66 |rp entry| */.#def|
|000022f0| 69 6e 65 09 53 49 4f 43 | 44 41 52 50 09 5f 49 4f |ine.SIOC|DARP._IO|
|00002300| 57 28 27 69 27 2c 20 33 | 32 2c 20 73 74 72 75 63 |W('i', 3|2, struc|
|00002310| 74 20 61 72 70 72 65 71 | 29 09 2f 2a 20 64 65 6c |t arpreq|)./* del|
|00002320| 65 74 65 20 61 72 70 20 | 65 6e 74 72 79 20 2a 2f |ete arp |entry */|
|00002330| 0d 0d 23 65 6e 64 69 66 | 0d 00 00 00 00 00 00 00 |..#endif|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00002390| 09 69 6e 74 20 73 2c 0d | 09 63 68 61 72 20 2a 62 |.int s,.|.char *b|
|000023a0| 75 66 66 65 72 2c 0d 09 | 69 6e 74 20 62 75 66 6c |uffer,..|int bufl|
|000023b0| 0b 73 79 73 2f 69 6f 63 | 74 6c 2e 68 02 00 00 00 |.sys/ioc|tl.h....|
|000023c0| 54 45 58 54 4d 50 53 20 | 00 00 ff ff ff ff 00 00 |TEXTMPS |........|
|000023d0| 00 00 54 45 58 54 4d 50 | 53 20 00 00 ff ff ff ff |..TEXTMP|S ......|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 a4 87 7f ab 00 00 | 22 b9 00 00 01 ac 73 2c |........|".....s,|
|00002400| 20 4e 55 4c 4c 2c 20 26 | 66 72 6f 6d 6c 65 6e 29 | NULL, &|fromlen)|
|00002410| 29 3b 0d 7d 0d 0d 69 6e | 74 20 73 5f 72 65 63 76 |);.}..in|t s_recv|
|00002420| 66 72 6f 6d 28 0d 09 69 | 6e 74 20 73 2c 0d 09 63 |from(..i|nt s,..c|
|00002430| 68 61 72 20 2a 62 75 66 | 66 65 72 2c 0d 09 69 6e |har *buf|fer,..in|
|00002440| 74 20 62 75 66 6c 65 6e | 2c 0d 09 69 6e 74 20 66 |t buflen|,..int f|
|00002450| 6c 61 67 73 2c 0d 09 73 | 74 72 75 63 74 20 73 6f |lags,..s|truct so|
|00002460| 63 6b 61 64 64 72 20 2a | 73 61 5f 66 72 6f 6d 2c |ckaddr *|sa_from,|
|00002470| 0d 09 69 6e 74 20 2a 66 | 72 6f 6d 6c 65 6e 29 0d |..int *f|romlen).|
|00002480| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 ff 00 13 |...H..Mo|naco....|
|00002490| 00 00 00 14 00 06 0c 84 | 00 0a 01 ce 02 2e 01 dd |........|........|
|000024a0| 02 3d 00 0f 00 00 00 06 | 00 03 00 dc 00 04 01 dd |.=......|........|
|000024b0| 02 3d 00 dc 00 04 01 dd | 02 3d a5 1a 28 e3 00 00 |.=......|.=..(...|
|000024c0| 18 b6 00 00 18 bd 00 00 | 04 b8 01 00 00 00 00 1e |........|........|
|000024d0| 00 dc 00 04 01 dd 02 3d | 00 dc 00 04 01 dd 02 3d |.......=|.......=|
|000024e0| 00 00 04 b8 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 49 |.....n..|.n...>.I|
|00002500| aa 38 14 f0 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |.8......|.>..MPSR|
|00002510| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 03 f0 ff ff 00 00 00 4c | 00 4f db 38 00 00 00 00 |.......L|.O.8....|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+