Skip to content

Commit bb4dabb

Browse files
committed
Auto merge of rust-lang#300 - rrichardson:master, r=alexcrichton
added const SOCK_SEQPACKET, and SOCK_RDM where applicable ... which is used for UNIX Seqpacket sockets as well as SCTP IP. I have verified in source on a couple Linux flavours as well as freebsd and darwin source that SOCK_SEQPACKET has value 5. Solaris is the odd one with a value of 6. I also added RDM for solaris (value 5)
2 parents a200a04 + df0a9ba commit bb4dabb

File tree

12 files changed

+13
-0
lines changed

12 files changed

+13
-0
lines changed

src/unix/bsd/apple/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ pub const AF_INET6: ::c_int = 30;
762762
pub const SOCK_STREAM: ::c_int = 1;
763763
pub const SOCK_DGRAM: ::c_int = 2;
764764
pub const SOCK_RAW: ::c_int = 3;
765+
pub const SOCK_SEQPACKET: ::c_int = 5;
765766
pub const IPPROTO_TCP: ::c_int = 6;
766767
pub const IPPROTO_IP: ::c_int = 0;
767768
pub const IPPROTO_IPV6: ::c_int = 41;

src/unix/bsd/freebsdlike/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ pub const AF_UNIX: ::c_int = 1;
531531
pub const SOCK_STREAM: ::c_int = 1;
532532
pub const SOCK_DGRAM: ::c_int = 2;
533533
pub const SOCK_RAW: ::c_int = 3;
534+
pub const SOCK_SEQPACKET: ::c_int = 5;
534535
pub const IPPROTO_TCP: ::c_int = 6;
535536
pub const IPPROTO_IP: ::c_int = 0;
536537
pub const IPPROTO_IPV6: ::c_int = 41;

src/unix/bsd/openbsdlike/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ pub const AF_INET6: ::c_int = 24;
361361
pub const SOCK_STREAM: ::c_int = 1;
362362
pub const SOCK_DGRAM: ::c_int = 2;
363363
pub const SOCK_RAW: ::c_int = 3;
364+
pub const SOCK_SEQPACKET: ::c_int = 5;
364365
pub const IPPROTO_TCP: ::c_int = 6;
365366
pub const IPPROTO_IP: ::c_int = 0;
366367
pub const IPPROTO_IPV6: ::c_int = 41;

src/unix/notbsd/android/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ pub const ENOTRECOVERABLE: ::c_int = 131;
324324

325325
pub const SOCK_STREAM: ::c_int = 1;
326326
pub const SOCK_DGRAM: ::c_int = 2;
327+
pub const SOCK_SEQPACKET: ::c_int = 5;
327328

328329
pub const SOL_SOCKET: ::c_int = 1;
329330

src/unix/notbsd/linux/mips.rs

+1
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ pub const MAP_STACK: ::c_int = 0x40000;
349349

350350
pub const SOCK_STREAM: ::c_int = 2;
351351
pub const SOCK_DGRAM: ::c_int = 1;
352+
pub const SOCK_SEQPACKET: ::c_int = 5;
352353

353354
pub const SOL_SOCKET: ::c_int = 0xffff;
354355

src/unix/notbsd/linux/musl/b32/arm.rs

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pub const MAP_STACK: ::c_int = 0x020000;
121121

122122
pub const SOCK_STREAM: ::c_int = 1;
123123
pub const SOCK_DGRAM: ::c_int = 2;
124+
pub const SOCK_SEQPACKET: ::c_int = 5;
124125

125126
pub const SOL_SOCKET: ::c_int = 1;
126127

src/unix/notbsd/linux/musl/b32/asmjs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ pub const MAP_STACK: ::c_int = 0x020000;
121121

122122
pub const SOCK_STREAM: ::c_int = 1;
123123
pub const SOCK_DGRAM: ::c_int = 2;
124+
pub const SOCK_SEQPACKET: ::c_int = 5;
124125

125126
pub const SOL_SOCKET: ::c_int = 1;
126127

src/unix/notbsd/linux/musl/b32/mips.rs

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ pub const ERFKILL: ::c_int = 167;
205205

206206
pub const SOCK_STREAM: ::c_int = 2;
207207
pub const SOCK_DGRAM: ::c_int = 1;
208+
pub const SOCK_SEQPACKET: ::c_int = 5;
208209

209210
pub const SOL_SOCKET: ::c_int = 65535;
210211

src/unix/notbsd/linux/musl/b32/x86.rs

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ pub const MAP_STACK: ::c_int = 0x020000;
134134

135135
pub const SOCK_STREAM: ::c_int = 1;
136136
pub const SOCK_DGRAM: ::c_int = 2;
137+
pub const SOCK_SEQPACKET: ::c_int = 5;
137138

138139
pub const SOL_SOCKET: ::c_int = 1;
139140

src/unix/notbsd/linux/musl/b64/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ pub const MAP_32BIT: ::c_int = 0x0040;
143143

144144
pub const SOCK_STREAM: ::c_int = 1;
145145
pub const SOCK_DGRAM: ::c_int = 2;
146+
pub const SOCK_SEQPACKET: ::c_int = 5;
146147

147148
pub const SOL_SOCKET: ::c_int = 1;
148149

src/unix/notbsd/linux/other/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ pub const ERFKILL: ::c_int = 132;
264264

265265
pub const SOCK_STREAM: ::c_int = 1;
266266
pub const SOCK_DGRAM: ::c_int = 2;
267+
pub const SOCK_SEQPACKET: ::c_int = 5;
267268

268269
pub const SOL_SOCKET: ::c_int = 1;
269270

src/unix/solaris/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ pub const AF_UNIX: ::c_int = 1;
696696
pub const SOCK_DGRAM: ::c_int = 1;
697697
pub const SOCK_STREAM: ::c_int = 2;
698698
pub const SOCK_RAW: ::c_int = 4;
699+
pub const SOCK_RDM: ::c_int = 5;
700+
pub const SOCK_SEQPACKET: ::c_int = 6;
699701
pub const IPPROTO_TCP: ::c_int = 6;
700702
pub const IPPROTO_IP: ::c_int = 0;
701703
pub const IPPROTO_IPV6: ::c_int = 41;

0 commit comments

Comments
 (0)