Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
2c99f4be
Commit
2c99f4be
authored
4 years ago
by
Yuki Okushi
Browse files
Options
Downloads
Patches
Plain Diff
Fix build for `sparc-unknown-linux-gnu`
parent
550e4be2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/unix/linux_like/linux/gnu/b32/mod.rs
+105
-51
105 additions, 51 deletions
src/unix/linux_like/linux/gnu/b32/mod.rs
src/unix/linux_like/linux/gnu/b32/sparc/mod.rs
+0
-67
0 additions, 67 deletions
src/unix/linux_like/linux/gnu/b32/sparc/mod.rs
with
105 additions
and
118 deletions
src/unix/linux_like/linux/gnu/b32/mod.rs
+
105
−
51
View file @
2c99f4be
...
...
@@ -140,74 +140,128 @@ s! {
}
}
pub
const
O_NOATIME
:
::
c_int
=
0o1000000
;
pub
const
O_PATH
:
::
c_int
=
0o10000000
;
pub
const
O_TMPFILE
:
::
c_int
=
0o20000000
|
O_DIRECTORY
;
pub
const
SO_PRIORITY
:
::
c_int
=
12
;
pub
const
SO_BSDCOMPAT
:
::
c_int
=
14
;
pub
const
SO_BINDTODEVICE
:
::
c_int
=
25
;
pub
const
SO_TIMESTAMP
:
::
c_int
=
29
;
pub
const
SO_MARK
:
::
c_int
=
36
;
pub
const
SO_RXQ_OVFL
:
::
c_int
=
40
;
pub
const
SO_PEEK_OFF
:
::
c_int
=
42
;
pub
const
SO_BUSY_POLL
:
::
c_int
=
46
;
pub
const
SA_ONSTACK
:
::
c_int
=
0x08000000
;
pub
const
PTRACE_DETACH
:
::
c_uint
=
17
;
pub
const
POSIX_FADV_DONTNEED
:
::
c_int
=
4
;
pub
const
POSIX_FADV_NOREUSE
:
::
c_int
=
5
;
pub
const
F_SETLK
:
::
c_int
=
6
;
pub
const
F_SETLKW
:
::
c_int
=
7
;
pub
const
F_RDLCK
:
::
c_int
=
0
;
pub
const
F_WRLCK
:
::
c_int
=
1
;
pub
const
F_UNLCK
:
::
c_int
=
2
;
pub
const
F_OFD_GETLK
:
::
c_int
=
36
;
pub
const
F_OFD_SETLK
:
::
c_int
=
37
;
pub
const
F_OFD_SETLKW
:
::
c_int
=
38
;
pub
const
SFD_CLOEXEC
:
::
c_int
=
0x080000
;
pub
const
NCCS
:
usize
=
32
;
pub
const
O_TRUNC
:
::
c_int
=
512
;
pub
const
O_CLOEXEC
:
::
c_int
=
0x80000
;
pub
const
EBFONT
:
::
c_int
=
59
;
pub
const
ENOSTR
:
::
c_int
=
60
;
pub
const
ENODATA
:
::
c_int
=
61
;
pub
const
ETIME
:
::
c_int
=
62
;
pub
const
ENOSR
:
::
c_int
=
63
;
pub
const
ENONET
:
::
c_int
=
64
;
pub
const
ENOPKG
:
::
c_int
=
65
;
pub
const
EREMOTE
:
::
c_int
=
66
;
pub
const
ENOLINK
:
::
c_int
=
67
;
pub
const
EADV
:
::
c_int
=
68
;
pub
const
ESRMNT
:
::
c_int
=
69
;
pub
const
ECOMM
:
::
c_int
=
70
;
pub
const
EPROTO
:
::
c_int
=
71
;
pub
const
EDOTDOT
:
::
c_int
=
73
;
pub
const
SA_NODEFER
:
::
c_int
=
0x40000000
;
pub
const
SA_RESETHAND
:
::
c_int
=
0x80000000
;
pub
const
SA_RESTART
:
::
c_int
=
0x10000000
;
pub
const
SA_NOCLDSTOP
:
::
c_int
=
0x00000001
;
pub
const
EPOLL_CLOEXEC
:
::
c_int
=
0x80000
;
pub
const
EFD_CLOEXEC
:
::
c_int
=
0x80000
;
pub
const
__SIZEOF_PTHREAD_CONDATTR_T
:
usize
=
4
;
pub
const
__SIZEOF_PTHREAD_MUTEX_T
:
usize
=
24
;
pub
const
__SIZEOF_PTHREAD_RWLOCK_T
:
usize
=
32
;
pub
const
__SIZEOF_PTHREAD_MUTEXATTR_T
:
usize
=
4
;
pub
const
__SIZEOF_PTHREAD_RWLOCKATTR_T
:
usize
=
8
;
cfg_if!
{
if
#[cfg(target_arch
=
"sparc"
)]
{
pub
const
O_NOATIME
:
::
c_int
=
0x200000
;
pub
const
O_PATH
:
::
c_int
=
0x1000000
;
pub
const
O_TMPFILE
:
::
c_int
=
0x2000000
|
O_DIRECTORY
;
pub
const
SO_BINDTODEVICE
:
::
c_int
=
0x000d
;
pub
const
SO_MARK
:
::
c_int
=
0x0022
;
pub
const
SO_RXQ_OVFL
:
::
c_int
=
0x0024
;
pub
const
SO_PEEK_OFF
:
::
c_int
=
0x0026
;
pub
const
SO_BUSY_POLL
:
::
c_int
=
0x0030
;
pub
const
SA_ONSTACK
:
::
c_int
=
1
;
pub
const
PTRACE_DETACH
:
::
c_uint
=
11
;
pub
const
F_SETLK
:
::
c_int
=
8
;
pub
const
F_SETLKW
:
::
c_int
=
9
;
pub
const
F_RDLCK
:
::
c_int
=
1
;
pub
const
F_WRLCK
:
::
c_int
=
2
;
pub
const
F_UNLCK
:
::
c_int
=
3
;
pub
const
SFD_CLOEXEC
:
::
c_int
=
0x400000
;
pub
const
NCCS
:
usize
=
17
;
pub
const
O_TRUNC
:
::
c_int
=
0x400
;
pub
const
O_CLOEXEC
:
::
c_int
=
0x400000
;
pub
const
EBFONT
:
::
c_int
=
109
;
pub
const
ENOSTR
:
::
c_int
=
72
;
pub
const
ENODATA
:
::
c_int
=
111
;
pub
const
ETIME
:
::
c_int
=
73
;
pub
const
ENOSR
:
::
c_int
=
74
;
pub
const
ENONET
:
::
c_int
=
80
;
pub
const
ENOPKG
:
::
c_int
=
113
;
pub
const
EREMOTE
:
::
c_int
=
71
;
pub
const
ENOLINK
:
::
c_int
=
82
;
pub
const
EADV
:
::
c_int
=
83
;
pub
const
ESRMNT
:
::
c_int
=
84
;
pub
const
ECOMM
:
::
c_int
=
85
;
pub
const
EPROTO
:
::
c_int
=
86
;
pub
const
EDOTDOT
:
::
c_int
=
88
;
pub
const
SA_NODEFER
:
::
c_int
=
0x20
;
pub
const
SA_RESETHAND
:
::
c_int
=
0x4
;
pub
const
SA_RESTART
:
::
c_int
=
0x2
;
pub
const
SA_NOCLDSTOP
:
::
c_int
=
0x00000008
;
pub
const
EPOLL_CLOEXEC
:
::
c_int
=
0x400000
;
pub
const
EFD_CLOEXEC
:
::
c_int
=
0x400000
;
}
else
{
pub
const
O_NOATIME
:
::
c_int
=
0o1000000
;
pub
const
O_PATH
:
::
c_int
=
0o10000000
;
pub
const
O_TMPFILE
:
::
c_int
=
0o20000000
|
O_DIRECTORY
;
pub
const
SO_BINDTODEVICE
:
::
c_int
=
25
;
pub
const
SO_MARK
:
::
c_int
=
36
;
pub
const
SO_RXQ_OVFL
:
::
c_int
=
40
;
pub
const
SO_PEEK_OFF
:
::
c_int
=
42
;
pub
const
SO_BUSY_POLL
:
::
c_int
=
46
;
pub
const
SA_ONSTACK
:
::
c_int
=
0x08000000
;
pub
const
PTRACE_DETACH
:
::
c_uint
=
17
;
pub
const
F_SETLK
:
::
c_int
=
6
;
pub
const
F_SETLKW
:
::
c_int
=
7
;
pub
const
F_RDLCK
:
::
c_int
=
0
;
pub
const
F_WRLCK
:
::
c_int
=
1
;
pub
const
F_UNLCK
:
::
c_int
=
2
;
pub
const
SFD_CLOEXEC
:
::
c_int
=
0x080000
;
pub
const
NCCS
:
usize
=
32
;
pub
const
O_TRUNC
:
::
c_int
=
512
;
pub
const
O_CLOEXEC
:
::
c_int
=
0x80000
;
pub
const
EBFONT
:
::
c_int
=
59
;
pub
const
ENOSTR
:
::
c_int
=
60
;
pub
const
ENODATA
:
::
c_int
=
61
;
pub
const
ETIME
:
::
c_int
=
62
;
pub
const
ENOSR
:
::
c_int
=
63
;
pub
const
ENONET
:
::
c_int
=
64
;
pub
const
ENOPKG
:
::
c_int
=
65
;
pub
const
EREMOTE
:
::
c_int
=
66
;
pub
const
ENOLINK
:
::
c_int
=
67
;
pub
const
EADV
:
::
c_int
=
68
;
pub
const
ESRMNT
:
::
c_int
=
69
;
pub
const
ECOMM
:
::
c_int
=
70
;
pub
const
EPROTO
:
::
c_int
=
71
;
pub
const
EDOTDOT
:
::
c_int
=
73
;
pub
const
SA_NODEFER
:
::
c_int
=
0x40000000
;
pub
const
SA_RESETHAND
:
::
c_int
=
0x80000000
;
pub
const
SA_RESTART
:
::
c_int
=
0x10000000
;
pub
const
SA_NOCLDSTOP
:
::
c_int
=
0x00000001
;
pub
const
EPOLL_CLOEXEC
:
::
c_int
=
0x80000
;
pub
const
EFD_CLOEXEC
:
::
c_int
=
0x80000
;
}
}
align_const!
{
#[cfg(target_endian
=
"little"
)]
pub
const
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
:
::
pthread_mutex_t
=
...
...
This diff is collapsed.
Click to expand it.
src/unix/linux_like/linux/gnu/b32/sparc/mod.rs
+
0
−
67
View file @
2c99f4be
...
...
@@ -204,9 +204,6 @@ s! {
}
}
pub
const
POSIX_FADV_DONTNEED
:
::
c_int
=
4
;
pub
const
POSIX_FADV_NOREUSE
:
::
c_int
=
5
;
pub
const
RLIM_INFINITY
:
::
rlim_t
=
!
0
;
pub
const
VEOF
:
usize
=
4
;
pub
const
RTLD_DEEPBIND
:
::
c_int
=
0x8
;
...
...
@@ -231,9 +228,6 @@ pub const O_SYNC: ::c_int = 0x802000;
pub
const
O_RSYNC
:
::
c_int
=
0x802000
;
pub
const
O_DSYNC
:
::
c_int
=
0x2000
;
pub
const
O_FSYNC
:
::
c_int
=
0x802000
;
pub
const
O_NOATIME
:
::
c_int
=
0x200000
;
pub
const
O_PATH
:
::
c_int
=
0x1000000
;
pub
const
O_TMPFILE
:
::
c_int
=
0x2000000
|
O_DIRECTORY
;
pub
const
MADV_SOFT_OFFLINE
:
::
c_int
=
101
;
pub
const
MAP_GROWSDOWN
:
::
c_int
=
0x0200
;
...
...
@@ -330,12 +324,6 @@ pub const SOL_SOCKET: ::c_int = 0xffff;
pub
const
SO_PASSCRED
:
::
c_int
=
2
;
pub
const
SO_REUSEADDR
:
::
c_int
=
4
;
pub
const
SO_BINDTODEVICE
:
::
c_int
=
0x000d
;
pub
const
SO_TIMESTAMP
:
::
c_int
=
0x001d
;
pub
const
SO_MARK
:
::
c_int
=
0x0022
;
pub
const
SO_RXQ_OVFL
:
::
c_int
=
0x0024
;
pub
const
SO_PEEK_OFF
:
::
c_int
=
0x0026
;
pub
const
SO_BUSY_POLL
:
::
c_int
=
0x0030
;
pub
const
SO_TYPE
:
::
c_int
=
0x1008
;
pub
const
SO_ERROR
:
::
c_int
=
0x1007
;
pub
const
SO_DONTROUTE
:
::
c_int
=
16
;
...
...
@@ -354,7 +342,6 @@ pub const SO_ACCEPTCONN: ::c_int = 0x8000;
pub
const
SOCK_STREAM
:
::
c_int
=
1
;
pub
const
SOCK_DGRAM
:
::
c_int
=
2
;
pub
const
SA_ONSTACK
:
::
c_int
=
1
;
pub
const
SA_SIGINFO
:
::
c_int
=
0x200
;
pub
const
SA_NOCLDWAIT
:
::
c_int
=
0x100
;
...
...
@@ -387,22 +374,11 @@ pub const POLLWRBAND: ::c_short = 0x100;
pub
const
O_ASYNC
:
::
c_int
=
0x40
;
pub
const
O_NDELAY
:
::
c_int
=
0x4004
;
pub
const
PTRACE_DETACH
:
::
c_uint
=
11
;
pub
const
EFD_NONBLOCK
:
::
c_int
=
0x4000
;
pub
const
F_GETLK
:
::
c_int
=
7
;
pub
const
F_GETOWN
:
::
c_int
=
5
;
pub
const
F_SETOWN
:
::
c_int
=
6
;
pub
const
F_SETLK
:
::
c_int
=
8
;
pub
const
F_SETLKW
:
::
c_int
=
9
;
pub
const
F_OFD_GETLK
:
::
c_int
=
36
;
pub
const
F_OFD_SETLK
:
::
c_int
=
37
;
pub
const
F_OFD_SETLKW
:
::
c_int
=
38
;
pub
const
F_RDLCK
:
::
c_int
=
1
;
pub
const
F_WRLCK
:
::
c_int
=
2
;
pub
const
F_UNLCK
:
::
c_int
=
3
;
pub
const
SFD_NONBLOCK
:
::
c_int
=
0x4000
;
...
...
@@ -429,37 +405,6 @@ pub const TIOCM_CAR: ::c_int = 0x040;
pub
const
TIOCM_RNG
:
::
c_int
=
0x080
;
pub
const
TIOCM_DSR
:
::
c_int
=
0x100
;
pub
const
SFD_CLOEXEC
:
::
c_int
=
0x400000
;
pub
const
NCCS
:
usize
=
17
;
pub
const
O_TRUNC
:
::
c_int
=
0x400
;
pub
const
O_CLOEXEC
:
::
c_int
=
0x400000
;
pub
const
EBFONT
:
::
c_int
=
109
;
pub
const
ENOSTR
:
::
c_int
=
72
;
pub
const
ENODATA
:
::
c_int
=
111
;
pub
const
ETIME
:
::
c_int
=
73
;
pub
const
ENOSR
:
::
c_int
=
74
;
pub
const
ENONET
:
::
c_int
=
80
;
pub
const
ENOPKG
:
::
c_int
=
113
;
pub
const
EREMOTE
:
::
c_int
=
71
;
pub
const
ENOLINK
:
::
c_int
=
82
;
pub
const
EADV
:
::
c_int
=
83
;
pub
const
ESRMNT
:
::
c_int
=
84
;
pub
const
ECOMM
:
::
c_int
=
85
;
pub
const
EPROTO
:
::
c_int
=
86
;
pub
const
EDOTDOT
:
::
c_int
=
88
;
pub
const
SA_NODEFER
:
::
c_int
=
0x20
;
pub
const
SA_RESETHAND
:
::
c_int
=
0x4
;
pub
const
SA_RESTART
:
::
c_int
=
0x2
;
pub
const
SA_NOCLDSTOP
:
::
c_int
=
0x00000008
;
pub
const
EPOLL_CLOEXEC
:
::
c_int
=
0x400000
;
pub
const
EFD_CLOEXEC
:
::
c_int
=
0x400000
;
pub
const
O_DIRECTORY
:
::
c_int
=
0o200000
;
pub
const
O_NOFOLLOW
:
::
c_int
=
0o400000
;
pub
const
O_LARGEFILE
:
::
c_int
=
0x40000
;
...
...
@@ -965,18 +910,6 @@ pub const SYS_pidfd_open: ::c_long = 434;
// Reserved in the kernel, but not actually implemented yet
pub
const
SYS_clone3
:
::
c_long
=
435
;
#[link(name
=
"util"
)]
extern
"C"
{
pub
fn
sysctl
(
name
:
*
mut
::
c_int
,
namelen
:
::
c_int
,
oldp
:
*
mut
::
c_void
,
oldlenp
:
*
mut
::
size_t
,
newp
:
*
mut
::
c_void
,
newlen
:
::
size_t
,
)
->
::
c_int
;
}
cfg_if!
{
if
#[cfg(libc_align)]
{
mod
align
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment