Skip to content

Commit 37afe49

Browse files
committed
styling
1 parent cef8e1b commit 37afe49

File tree

4 files changed

+15
-20
lines changed

4 files changed

+15
-20
lines changed

libc-test/build.rs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@
22
#![allow(clippy::match_like_matches_macro)]
33

44
use std::fs::File;
5-
use std::io::{BufRead, BufReader, BufWriter, Write};
6-
use std::path::{Path, PathBuf};
7-
use std::{env, io};
5+
use std::io::{
6+
BufRead,
7+
BufReader,
8+
BufWriter,
9+
Write,
10+
};
11+
use std::path::{
12+
Path,
13+
PathBuf,
14+
};
15+
use std::{
16+
env,
17+
io,
18+
};
819

920
fn do_cc() {
1021
let target = env::var("TARGET").unwrap();
@@ -4118,6 +4129,7 @@ fn test_linux(target: &str) {
41184129

41194130
// FIXME(linux): Requires >= 6.12 kernel headers.
41204131
"dmabuf_cmsg" | "dmabuf_token" => true,
4132+
41214133
// FIXME(linux): Requires >= 6.12 kernel headers.
41224134
"mnt_ns_info" => true,
41234135

libc-test/semver/apple.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,10 +1784,7 @@ __PTHREAD_MUTEX_SIZE__
17841784
__PTHREAD_ONCE_SIZE__
17851785
__PTHREAD_RWLOCKATTR_SIZE__
17861786
__PTHREAD_RWLOCK_SIZE__
1787-
__PTHREAD_SIZE__
17881787
__darwin_mcontext64
1789-
__darwin_pthread_handler_rec
1790-
__darwin_pthread_t
17911788
__error
17921789
_opaque_pthread_t
17931790
abs

src/unix/bsd/apple/b32/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ s_no_extra_traits! {
6060
#[deprecated(since = "0.2.55")]
6161
pub const NET_RT_MAXID: c_int = 10;
6262

63-
pub const __PTHREAD_MUTEX_SIZE__: usize = 40;
64-
pub const __PTHREAD_COND_SIZE__: usize = 24;
65-
pub const __PTHREAD_CONDATTR_SIZE__: usize = 4;
66-
pub const __PTHREAD_ONCE_SIZE__: usize = 4;
67-
pub const __PTHREAD_RWLOCK_SIZE__: usize = 124;
68-
pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 12;
69-
7063
pub const TIOCTIMESTAMP: c_ulong = 0x40087459;
7164
pub const TIOCDCDTIMESTAMP: c_ulong = 0x40087458;
7265

src/unix/bsd/apple/b64/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ s! {
5353
#[deprecated(since = "0.2.55")]
5454
pub const NET_RT_MAXID: c_int = 11;
5555

56-
pub const __PTHREAD_MUTEX_SIZE__: usize = 56;
57-
pub const __PTHREAD_COND_SIZE__: usize = 40;
58-
pub const __PTHREAD_CONDATTR_SIZE__: usize = 8;
59-
pub const __PTHREAD_ONCE_SIZE__: usize = 8;
60-
pub const __PTHREAD_RWLOCK_SIZE__: usize = 192;
61-
pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 16;
62-
6356
pub const TIOCTIMESTAMP: c_ulong = 0x40107459;
6457
pub const TIOCDCDTIMESTAMP: c_ulong = 0x40107458;
6558

0 commit comments

Comments
 (0)