Skip to content

Commit 27ce7b1

Browse files
committed
Cleaned up unused socket constants.
1 parent 5494238 commit 27ce7b1

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,6 @@ pub const SO_SETFIB: ::c_int = 0x1014;
356356
pub const SO_USER_COOKIE: ::c_int = 0x1015;
357357
pub const SO_PROTOCOL: ::c_int = 0x1016;
358358
pub const SO_PROTOTYPE: ::c_int = SO_PROTOCOL;
359-
// pub const SO_TS_CLOCK: ::c_int = 0x1017;
360-
// pub const SO_MAX_PACING_RATE: ::c_int = 0x1018;
361-
// pub const SO_TS_REALTIME_MICRO: ::c_int = 0;
362-
// pub const SO_TS_BINTIME: ::c_int = 1;
363-
// pub const SO_TS_REALTIME: ::c_int = 2;
364-
// pub const SO_TS_MONOTONIC: ::c_int = 3;
365-
// pub const SO_TS_DEFAULT: ::c_int = SO_TS_REALTIME_MICRO;
366-
// pub const SO_TS_CLOCK_MAX: ::c_int = SO_TS_MONOTONIC;
367359
pub const SO_VENDOR: ::c_int = 0x80000000;
368360

369361
pub const AF_SLOW: ::c_int = 33;
@@ -411,7 +403,6 @@ pub const MSG_NOTIFICATION: ::c_int = 0x00002000;
411403
pub const MSG_NBIO: ::c_int = 0x00004000;
412404
pub const MSG_COMPAT: ::c_int = 0x00008000;
413405
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x00040000;
414-
// pub const MSG_WAITFORONE: ::c_int = 0x00080000;
415406
pub const MSG_NOSIGNAL: ::c_int = 0x20000;
416407

417408
pub const EMPTY: ::c_short = 0;

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ pub const EWOULDBLOCK: ::c_int = EAGAIN;
396396

397397
pub const SCM_RIGHTS: ::c_int = 0x01;
398398
pub const SCM_CREDENTIALS: ::c_int = 0x02;
399-
// pub const SCM_SECURITY: ::c_int = 0x03;
400399

401400
pub const IPPROTO_RAW: ::c_int = 255;
402401

@@ -439,14 +438,6 @@ pub const SOL_TCP: ::c_int = 6;
439438
pub const SOL_IPV6: ::c_int = 41;
440439
pub const SOL_ICMPV6: ::c_int = 58;
441440
pub const SOL_RAW: ::c_int = 255;
442-
// pub const SOL_UDP: ::c_int = 17;
443-
// pub const SOL_SCTP: ::c_int = 132;
444-
// pub const SOL_UDPLITE: ::c_int = 136;
445-
// pub const SOL_IPX: ::c_int = 256;
446-
// pub const SOL_AX25: ::c_int = 257;
447-
// pub const SOL_ATALK: ::c_int = 258;
448-
// pub const SOL_NETROM: ::c_int = 259;
449-
// pub const SOL_ROSE: ::c_int = 260;
450441
pub const SOL_DECNET: ::c_int = 261;
451442
pub const SOL_X25: ::c_int = 262;
452443
pub const SOL_PACKET: ::c_int = 263;
@@ -458,17 +449,6 @@ pub const SOL_LLC: ::c_int = 268;
458449
pub const SOL_DCCP: ::c_int = 269;
459450
pub const SOL_NETLINK: ::c_int = 270;
460451
pub const SOL_TIPC: ::c_int = 271;
461-
// pub const SOL_RXRPC: ::c_int = 272;
462-
// pub const SOL_PPPOL2TP: ::c_int = 273;
463-
// pub const SOL_BLUETOOTH: ::c_int = 274;
464-
// pub const SOL_PNPIPE: ::c_int = 275;
465-
// pub const SOL_RDS: ::c_int = 276;
466-
// pub const SOL_IUCV: ::c_int = 277;
467-
// pub const SOL_CAIF: ::c_int = 278;
468-
// pub const SOL_ALG: ::c_int = 279;
469-
// pub const SOL_NFC: ::c_int = 280;
470-
471-
// pub const IPX_TYPE: ::c_int = 1;
472452

473453
pub const AF_UNSPEC: ::c_int = 0;
474454
pub const AF_UNIX: ::c_int = 1;
@@ -499,10 +479,6 @@ pub const AF_IRDA: ::c_int = 23;
499479
pub const AF_PPPOX: ::c_int = 24;
500480
pub const AF_WANPIPE: ::c_int = 25;
501481
pub const AF_LLC: ::c_int = 26;
502-
// pub const AF_IB: ::c_int = 27;
503-
// pub const AF_MPLS: ::c_int = 28;
504-
// pub const AF_NFC: ::c_int = 39;
505-
// pub const AF_VSOCK: ::c_int = 40;
506482
pub const AF_CAN: ::c_int = 29;
507483
pub const AF_TIPC: ::c_int = 30;
508484
pub const AF_BLUETOOTH: ::c_int = 31;
@@ -543,10 +519,6 @@ pub const PF_IRDA: ::c_int = AF_IRDA;
543519
pub const PF_PPPOX: ::c_int = AF_PPPOX;
544520
pub const PF_WANPIPE: ::c_int = AF_WANPIPE;
545521
pub const PF_LLC: ::c_int = AF_LLC;
546-
// pub const PF_IB: ::c_int = AF_IB;
547-
// pub const PF_MPLS: ::c_int = AF_MPLS;
548-
// pub const PF_NFC: ::c_int = AF_NFC;
549-
// pub const PF_VSOCK: ::c_int = AF_VSOCK;
550522
pub const PF_CAN: ::c_int = AF_CAN;
551523
pub const PF_TIPC: ::c_int = AF_TIPC;
552524
pub const PF_BLUETOOTH: ::c_int = AF_BLUETOOTH;
@@ -563,9 +535,7 @@ pub const SOMAXCONN: ::c_int = 128;
563535
pub const MSG_OOB: ::c_int = 1;
564536
pub const MSG_PEEK: ::c_int = 2;
565537
pub const MSG_DONTROUTE: ::c_int = 4;
566-
// pub const MSG_TRYHARD: ::c_int = 4;
567538
pub const MSG_CTRUNC: ::c_int = 8;
568-
// pub const MSG_PROBE: ::c_int = 0x10;
569539
pub const MSG_TRUNC: ::c_int = 0x20;
570540
pub const MSG_DONTWAIT: ::c_int = 0x40;
571541
pub const MSG_EOR: ::c_int = 0x80;
@@ -578,8 +548,6 @@ pub const MSG_ERRQUEUE: ::c_int = 0x2000;
578548
pub const MSG_NOSIGNAL: ::c_int = 0x4000;
579549
pub const MSG_MORE: ::c_int = 0x8000;
580550
pub const MSG_WAITFORONE: ::c_int = 0x10000;
581-
// pub const MSG_SENDPAGE_NOTLAST: ::c_int = 0x20000;
582-
// pub const MSG_EOF: ::c_int = MSG_FIN;
583551
pub const MSG_FASTOPEN: ::c_int = 0x20000000;
584552
pub const MSG_CMSG_CLOEXEC: ::c_int = 0x40000000;
585553

0 commit comments

Comments
 (0)