Skip to content

Commit 14a4d15

Browse files
committed
Added linger struct
1 parent c32ac0d commit 14a4d15

File tree

12 files changed

+60
-0
lines changed

12 files changed

+60
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ s! {
287287
pub int_p_sign_posn: ::c_char,
288288
pub int_n_sign_posn: ::c_char,
289289
}
290+
291+
pub struct linger {
292+
pub l_onoff: ::c_int,
293+
pub l_linger: ::c_int,
294+
}
290295
}
291296

292297
pub const LC_COLLATE_MASK: ::c_int = (1 << 0);

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ s! {
155155
pub struct _sem {
156156
data: [u32; 4],
157157
}
158+
159+
pub struct linger {
160+
pub l_onoff: ::c_int,
161+
pub l_linger: ::c_int,
162+
}
158163
}
159164

160165
pub const LC_COLLATE_MASK: ::c_int = (1 << 0);

src/unix/bsd/openbsdlike/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ s! {
5454
pub l_type: ::c_short,
5555
pub l_whence: ::c_short,
5656
}
57+
58+
pub struct linger {
59+
pub l_onoff: ::c_int,
60+
pub l_linger: ::c_int,
61+
}
5762
}
5863

5964
pub const D_T_FMT: ::nl_item = 0;

src/unix/notbsd/android/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ s! {
9999
pub struct sem_t {
100100
count: ::c_uint,
101101
}
102+
103+
pub struct linger {
104+
pub l_onoff: ::c_int,
105+
pub l_linger: ::c_int,
106+
}
102107
}
103108

104109
pub const BUFSIZ: ::c_uint = 1024;

src/unix/notbsd/linux/mips.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ s! {
198198
__size: [::c_char; 32],
199199
__align: [::c_long; 0],
200200
}
201+
202+
pub struct linger {
203+
pub l_onoff: ::c_int,
204+
pub l_linger: ::c_int,
205+
}
201206
}
202207

203208
pub const BUFSIZ: ::c_uint = 8192;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ s! {
8282
pub f_flags: ::c_ulong,
8383
pub f_spare: [::c_ulong; 4],
8484
}
85+
86+
pub struct linger {
87+
pub l_onoff: ::c_int,
88+
pub l_linger: ::c_int,
89+
}
8590
}
8691

8792
pub const O_DIRECT: ::c_int = 0x4000;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ s! {
8282
pub f_flags: ::c_ulong,
8383
pub f_spare: [::c_ulong; 4],
8484
}
85+
86+
pub struct linger {
87+
pub l_onoff: ::c_int,
88+
pub l_linger: ::c_int,
89+
}
8590
}
8691

8792
pub const O_DIRECT: ::c_int = 0x4000;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ s! {
8181
pub f_flags: ::c_ulong,
8282
pub f_spare: [::c_ulong; 5],
8383
}
84+
85+
pub struct linger {
86+
pub l_onoff: ::c_int,
87+
pub l_linger: ::c_int,
88+
}
8489
}
8590

8691
pub const O_DIRECT: ::c_int = 0o100000;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ s! {
9595
pub uc_sigmask: ::sigset_t,
9696
__private: [u8; 112],
9797
}
98+
99+
pub struct linger {
100+
pub l_onoff: ::c_int,
101+
pub l_linger: ::c_int,
102+
}
98103
}
99104

100105
pub const O_DIRECT: ::c_int = 0x4000;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ s! {
104104
pub struct sem_t {
105105
__val: [::c_int; 8],
106106
}
107+
108+
pub struct linger {
109+
pub l_onoff: ::c_int,
110+
pub l_linger: ::c_int,
111+
}
107112
}
108113

109114
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ s! {
130130
__size: [::c_char; 32],
131131
__align: [::c_long; 0],
132132
}
133+
134+
pub struct linger {
135+
pub l_onoff: ::c_int,
136+
pub l_linger: ::c_int,
137+
}
133138
}
134139

135140
pub const RLIMIT_RSS: ::c_int = 5;

src/unix/solaris/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@ s! {
318318
pub l_pid: ::pid_t,
319319
pub l_pad: [::c_long; 4]
320320
}
321+
322+
pub struct linger {
323+
pub l_onoff: ::c_int,
324+
pub l_linger: ::c_int,
325+
}
321326
}
322327

323328
pub const LC_CTYPE: ::c_int = 0;

0 commit comments

Comments
 (0)