Skip to content

Commit e955ae7

Browse files
krajakiernan
authored andcommitted
musl: Define SOCK_SEQPACKET in common place
This define is not architecture specific in musl [1] [1] https://git.musl-libc.org/cgit/musl/tree/include/sys/socket.h#n90 Signed-off-by: Khem Raj <[email protected]>
1 parent b042f5d commit e955ae7

File tree

7 files changed

+1
-7
lines changed

7 files changed

+1
-7
lines changed

src/unix/linux_like/linux/musl/b32/arm/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ pub const MAP_SYNC: ::c_int = 0x080000;
325325

326326
pub const SOCK_STREAM: ::c_int = 1;
327327
pub const SOCK_DGRAM: ::c_int = 2;
328-
pub const SOCK_SEQPACKET: ::c_int = 5;
329328

330329
pub const EDEADLK: ::c_int = 35;
331330
pub const ENAMETOOLONG: ::c_int = 36;

src/unix/linux_like/linux/musl/b32/hexagon.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ pub const SIG_SETMASK: ::c_int = 2; // FIXME check these
291291
pub const SIG_BLOCK: ::c_int = 0x000000;
292292
pub const SIG_UNBLOCK: ::c_int = 0x01;
293293
pub const SOCK_DGRAM: ::c_int = 2;
294-
pub const SOCK_SEQPACKET: ::c_int = 5;
295294
pub const SOCK_STREAM: ::c_int = 1;
296295
pub const SOL_CAIF: ::c_int = 278;
297296
pub const SOL_IUCV: ::c_int = 277;

src/unix/linux_like/linux/musl/b32/mips/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ pub const ERFKILL: ::c_int = 167;
350350

351351
pub const SOCK_STREAM: ::c_int = 2;
352352
pub const SOCK_DGRAM: ::c_int = 1;
353-
pub const SOCK_SEQPACKET: ::c_int = 5;
354353

355354
pub const SA_ONSTACK: ::c_int = 0x08000000;
356355
pub const SA_SIGINFO: ::c_int = 8;

src/unix/linux_like/linux/musl/b32/powerpc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 0x1e;
261261

262262
pub const SOCK_STREAM: ::c_int = 1;
263263
pub const SOCK_DGRAM: ::c_int = 2;
264-
pub const SOCK_SEQPACKET: ::c_int = 5;
265264

266265
pub const EDEADLK: ::c_int = 35;
267266
pub const ENAMETOOLONG: ::c_int = 36;

src/unix/linux_like/linux/musl/b32/x86/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ pub const MAP_SYNC: ::c_int = 0x080000;
314314

315315
pub const SOCK_STREAM: ::c_int = 1;
316316
pub const SOCK_DGRAM: ::c_int = 2;
317-
pub const SOCK_SEQPACKET: ::c_int = 5;
318317

319318
pub const EDEADLK: ::c_int = 35;
320319
pub const ENAMETOOLONG: ::c_int = 36;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
134134
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
135135
pub const __SIZEOF_PTHREAD_BARRIER_T: usize = 32;
136136

137-
pub const SOCK_SEQPACKET: ::c_int = 5;
138-
139137
extern "C" {
140138
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
141139
}

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ pub const POSIX_MADV_DONTNEED: ::c_int = 4;
545545

546546
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;
547547

548+
pub const SOCK_SEQPACKET: ::c_int = 5;
548549
pub const SOCK_DCCP: ::c_int = 6;
549550
pub const SOCK_NONBLOCK: ::c_int = O_NONBLOCK;
550551
pub const SOCK_PACKET: ::c_int = 10;

0 commit comments

Comments
 (0)