Skip to content

Commit b619df8

Browse files
author
Tyler Julian
committed
Add MSG_PEEK socket flag
1 parent 95d5534 commit b619df8

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,8 @@ pub const SO_RCVTIMEO: ::c_int = 0x1006;
860860
pub const SO_ERROR: ::c_int = 0x1007;
861861
pub const SO_TYPE: ::c_int = 0x1008;
862862

863+
pub const MSG_PEEK: ::c_int = 0x2;
864+
863865
pub const IFF_LOOPBACK: ::c_int = 0x8;
864866

865867
pub const SHUT_RD: ::c_int = 0;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ pub const NOTE_TRACK: ::uint32_t = 0x00000001;
344344
pub const NOTE_TRACKERR: ::uint32_t = 0x00000002;
345345
pub const NOTE_CHILD: ::uint32_t = 0x00000004;
346346

347+
pub const MSG_PEEK: ::c_int = 0x2;
347348
pub const MSG_NOSIGNAL: ::c_int = 0x400;
348349

349350
pub const EMPTY: ::c_short = 0;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ pub const USER_MAXID: ::c_int = 21;
331331
#[doc(hidden)]
332332
pub const CTL_P1003_1B_MAXID: ::c_int = 26;
333333

334+
pub const MSG_PEEK: ::c_int = 0x2;
334335
pub const MSG_NOSIGNAL: ::c_int = 0x20000;
335336

336337
pub const EMPTY: ::c_short = 0;

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ pub const SO_RCVLOWAT: ::c_int = 0x1004;
392392
pub const SO_ERROR: ::c_int = 0x1007;
393393
pub const SO_TYPE: ::c_int = 0x1008;
394394

395+
pub const MSG_PEEK: ::c_int = 0x2;
395396
pub const MSG_NOSIGNAL: ::c_int = 0x400;
396397

397398
pub const IFF_LOOPBACK: ::c_int = 0x8;

src/unix/haiku/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ pub const IPV6_V6ONLY: ::c_int = 30;
556556

557557
pub const SO_DEBUG: ::c_int = 0x00000004;
558558

559+
pub const MSG_PEEK: ::c_int = 0x2;
559560
pub const MSG_NOSIGNAL: ::c_int = 0x0800;
560561

561562
pub const SHUT_RD: ::c_int = 0;

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ pub const IPV6_V6ONLY: ::c_int = 26;
468468

469469
pub const SO_DEBUG: ::c_int = 1;
470470

471+
pub const MSG_PEEK: ::c_int = 0x2;
471472
pub const MSG_NOSIGNAL: ::c_int = 0x4000;
472473

473474
pub const SHUT_RD: ::c_int = 0;

0 commit comments

Comments
 (0)