File tree 3 files changed +18
-0
lines changed
src/unix/bsd/freebsdlike/freebsd
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1818,6 +1818,7 @@ fn test_freebsd(target: &str) {
1818
1818
"sys/un.h" ,
1819
1819
"sys/user.h" ,
1820
1820
"sys/utsname.h" ,
1821
+ "sys/uuid.h" ,
1821
1822
"sys/wait.h" ,
1822
1823
"libprocstat.h" ,
1823
1824
"syslog.h" ,
Original file line number Diff line number Diff line change @@ -1365,6 +1365,7 @@ _SC_XOPEN_STREAMS
1365
1365
_SC_XOPEN_UNIX
1366
1366
_SC_XOPEN_VERSION
1367
1367
_SC_XOPEN_XCU_VERSION
1368
+ _UUID_NODE_LEN
1368
1369
__c_anonymous_cr_pid
1369
1370
__error
1370
1371
__xuname
@@ -1751,6 +1752,7 @@ telldir
1751
1752
timex
1752
1753
truncate
1753
1754
ttyname_r
1755
+ uuidgen
1754
1756
unmount
1755
1757
useconds_t
1756
1758
uselocale
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ pub type pthread_spinlock_t = *mut __c_anonymous_pthread_spinlock;
24
24
pub type pthread_barrierattr_t = * mut __c_anonymous_pthread_barrierattr ;
25
25
pub type pthread_barrier_t = * mut __c_anonymous_pthread_barrier ;
26
26
27
+ pub type uuid_t = :: uuid ;
28
+
27
29
s ! {
28
30
pub struct aiocb {
29
31
pub aio_fildes: :: c_int,
@@ -152,6 +154,15 @@ s! {
152
154
c_spare: [ u32 ; 1 ] ,
153
155
}
154
156
157
+ pub struct uuid {
158
+ pub time_low: u32 ,
159
+ pub time_mid: u16 ,
160
+ pub time_hi_and_version: u16 ,
161
+ pub clock_seq_hi_and_reserved: u8 ,
162
+ pub clock_seq_low: u8 ,
163
+ pub node: [ u8 ; _UUID_NODE_LEN] ,
164
+ }
165
+
155
166
pub struct __c_anonymous_pthread_spinlock {
156
167
s_clock: umutex,
157
168
}
@@ -1383,6 +1394,8 @@ pub const _PC_ACL_NFS4: ::c_int = 64;
1383
1394
1384
1395
pub const _SC_CPUSET_SIZE: :: c_int = 122 ;
1385
1396
1397
+ pub const _UUID_NODE_LEN: usize = 6 ;
1398
+
1386
1399
// Flags which can be passed to pdfork(2)
1387
1400
pub const PD_DAEMON : :: c_int = 0x00000001 ;
1388
1401
pub const PD_CLOEXEC : :: c_int = 0x00000002 ;
@@ -1766,6 +1779,8 @@ extern "C" {
1766
1779
newfd : :: c_int ,
1767
1780
) -> :: c_int ;
1768
1781
1782
+ pub fn uuidgen ( store : * mut uuid , count : :: c_int ) -> :: c_int ;
1783
+
1769
1784
pub fn pthread_getthreadid_np ( ) -> :: c_int ;
1770
1785
pub fn pthread_getaffinity_np (
1771
1786
td : :: pthread_t ,
You can’t perform that action at this time.
0 commit comments