Skip to content

Commit d7887af

Browse files
committed
Remove new redundant definitions
1 parent 1cf4443 commit d7887af

File tree

4 files changed

+0
-141
lines changed

4 files changed

+0
-141
lines changed

src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs

-41
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ pub type c_char = u8;
44
pub type wchar_t = ::c_int;
55

66
s! {
7-
pub struct pthread_attr_t {
8-
__size: [::c_ulong; 7],
9-
}
10-
117
pub struct msqid_ds {
128
pub msg_perm: ::ipc_perm,
139
pub msg_stime: ::time_t,
@@ -22,28 +18,6 @@ s! {
2218
__glibc_reserved5: ::c_ulong,
2319
}
2420

25-
pub struct stat {
26-
pub st_dev: ::dev_t,
27-
pub st_ino: ::ino_t,
28-
pub st_mode: ::mode_t,
29-
pub st_nlink: ::nlink_t,
30-
pub st_uid: ::uid_t,
31-
pub st_gid: ::gid_t,
32-
pub st_rdev: ::dev_t,
33-
pub __pad1: ::dev_t,
34-
pub st_size: ::off_t,
35-
pub st_blksize: ::blksize_t,
36-
pub __pad2: ::c_int,
37-
pub st_blocks: ::blkcnt_t,
38-
pub st_atime: ::time_t,
39-
pub st_atime_nsec: ::c_long,
40-
pub st_mtime: ::time_t,
41-
pub st_mtime_nsec: ::c_long,
42-
pub st_ctime: ::time_t,
43-
pub st_ctime_nsec: ::c_long,
44-
__unused: [::c_int; 2usize],
45-
}
46-
4721
pub struct stat64 {
4822
pub st_dev: ::dev_t,
4923
pub st_ino: ::ino64_t,
@@ -96,21 +70,6 @@ s! {
9670
pub f_spare: [::c_long; 4],
9771
}
9872

99-
pub struct statvfs {
100-
pub f_bsize: ::c_ulong,
101-
pub f_frsize: ::c_ulong,
102-
pub f_blocks: ::fsblkcnt_t,
103-
pub f_bfree: ::fsblkcnt_t,
104-
pub f_bavail: ::fsblkcnt_t,
105-
pub f_files: ::fsfilcnt_t,
106-
pub f_ffree: ::fsfilcnt_t,
107-
pub f_favail: ::fsfilcnt_t,
108-
pub f_fsid: ::c_ulong,
109-
pub f_flag: ::c_ulong,
110-
pub f_namemax: ::c_ulong,
111-
pub __f_spare: [::c_int; 6],
112-
}
113-
11473
pub struct statvfs64 {
11574
pub f_bsize: ::c_ulong,
11675
pub f_frsize: ::c_ulong,

src/unix/linux_like/linux/gnu/b32/sparc/mod.rs

-36
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,6 @@ s! {
5858
pub ss_size: ::size_t
5959
}
6060

61-
pub struct stat {
62-
pub st_dev: ::dev_t,
63-
pub st_ino: ::ino64_t,
64-
pub st_mode: ::mode_t,
65-
pub st_nlink: ::nlink_t,
66-
pub st_uid: ::uid_t,
67-
pub st_gid: ::gid_t,
68-
pub st_rdev: ::dev_t,
69-
__pad2: ::c_ushort,
70-
pub st_size: ::off64_t,
71-
pub st_blksize: ::blksize_t,
72-
pub st_blocks: ::blkcnt64_t,
73-
pub st_atime: ::time_t,
74-
pub st_atime_nsec: ::c_long,
75-
pub st_mtime: ::time_t,
76-
pub st_mtime_nsec: ::c_long,
77-
pub st_ctime: ::time_t,
78-
pub st_ctime_nsec: ::c_long,
79-
__unused: [::c_long; 2],
80-
}
81-
8261
pub struct stat64 {
8362
pub st_dev: ::dev_t,
8463
pub st_ino: ::ino64_t,
@@ -115,21 +94,6 @@ s! {
11594
pub f_spare: [::__fsword_t; 4],
11695
}
11796

118-
pub struct statvfs {
119-
pub f_bsize: ::c_ulong,
120-
pub f_frsize: ::c_ulong,
121-
pub f_blocks: ::fsblkcnt_t,
122-
pub f_bfree: ::fsblkcnt_t,
123-
pub f_bavail: ::fsblkcnt_t,
124-
pub f_files: ::fsfilcnt_t,
125-
pub f_ffree: ::fsfilcnt_t,
126-
pub f_favail: ::fsfilcnt_t,
127-
pub f_fsid: ::c_ulong,
128-
pub f_flag: ::c_ulong,
129-
pub f_namemax: ::c_ulong,
130-
__f_spare: [::c_int; 6],
131-
}
132-
13397
pub struct statvfs64 {
13498
pub f_bsize: ::c_ulong,
13599
pub f_frsize: ::c_ulong,

src/unix/linux_like/linux/musl/b64/loongarch64/mod.rs

-34
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ pub type __u64 = ::c_ulonglong;
1111
pub type __s64 = ::c_longlong;
1212

1313
s! {
14-
pub struct pthread_attr_t {
15-
__size: [::c_ulong; 7],
16-
}
17-
1814
pub struct stat {
1915
pub st_dev: ::dev_t,
2016
pub st_ino: ::ino_t,
@@ -59,36 +55,6 @@ s! {
5955
__unused: [::c_int; 2],
6056
}
6157

62-
pub struct statfs {
63-
pub f_type: ::c_long,
64-
pub f_bsize: ::c_long,
65-
pub f_blocks: ::fsblkcnt_t,
66-
pub f_bfree: ::fsblkcnt_t,
67-
pub f_bavail: ::fsblkcnt_t,
68-
pub f_files: ::fsfilcnt_t,
69-
pub f_ffree: ::fsfilcnt_t,
70-
pub f_fsid: ::fsid_t,
71-
pub f_namelen: ::c_long,
72-
pub f_frsize: ::c_long,
73-
pub f_flags: ::c_long,
74-
pub f_spare: [::c_long; 4],
75-
}
76-
77-
pub struct statfs64 {
78-
pub f_type: ::c_long,
79-
pub f_bsize: ::c_long,
80-
pub f_blocks: ::fsblkcnt64_t,
81-
pub f_bfree: ::fsblkcnt64_t,
82-
pub f_bavail: ::fsblkcnt64_t,
83-
pub f_files: ::fsfilcnt64_t,
84-
pub f_ffree: ::fsfilcnt64_t,
85-
pub f_fsid: ::fsid_t,
86-
pub f_namelen: ::c_long,
87-
pub f_frsize: ::c_long,
88-
pub f_flags: ::c_long,
89-
pub f_spare: [::c_long; 4],
90-
}
91-
9258
pub struct ipc_perm {
9359
pub __key: ::key_t,
9460
pub uid: ::uid_t,

src/unix/linux_like/linux/musl/b64/mips64.rs

-30
Original file line numberDiff line numberDiff line change
@@ -54,36 +54,6 @@ s! {
5454
__pad5: [::c_int; 14],
5555
}
5656

57-
pub struct statfs {
58-
pub f_type: ::c_ulong,
59-
pub f_bsize: ::c_ulong,
60-
pub f_frsize: ::c_ulong,
61-
pub f_blocks: ::fsblkcnt_t,
62-
pub f_bfree: ::fsblkcnt_t,
63-
pub f_files: ::fsfilcnt_t,
64-
pub f_ffree: ::fsfilcnt_t,
65-
pub f_bavail: ::fsblkcnt_t,
66-
pub f_fsid: ::fsid_t,
67-
pub f_namelen: ::c_ulong,
68-
pub f_flags: ::c_ulong,
69-
pub f_spare: [::c_ulong; 5],
70-
}
71-
72-
pub struct statfs64 {
73-
pub f_type: ::c_ulong,
74-
pub f_bsize: ::c_ulong,
75-
pub f_frsize: ::c_ulong,
76-
pub f_blocks: ::fsblkcnt64_t,
77-
pub f_bfree: ::fsblkcnt64_t,
78-
pub f_files: ::fsfilcnt64_t,
79-
pub f_ffree: ::fsfilcnt64_t,
80-
pub f_bavail: ::fsblkcnt64_t,
81-
pub f_fsid: ::fsid_t,
82-
pub f_namelen: ::c_ulong,
83-
pub f_flags: ::c_ulong,
84-
pub f_spare: [::c_ulong; 5],
85-
}
86-
8757
pub struct ipc_perm {
8858
pub __ipc_perm_key: ::key_t,
8959
pub uid: ::uid_t,

0 commit comments

Comments
 (0)