File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
/// L4Re specifics
2
2
/// This module contains definitions required by various L4Re libc backends.
3
- /// Some of them are formally not part of the libc, but are a dependency of the libc and hence we
4
- /// should provide them here.
3
+ /// Some of them are formally not part of the libc, but are a dependency of the
4
+ /// libc and hence we should provide them here.
5
5
6
6
pub type l4_umword_t = :: c_ulong ; // Unsigned machine word.
7
7
@@ -41,3 +41,6 @@ pub struct pthread_attr_t {
41
41
pub create_flags : :: c_uint ,
42
42
}
43
43
44
+ // L4Re requires a min stack size of 64k; that isn't defined in uClibc, but
45
+ // somewhere in the core libraries. uClibc wants 16k, but that's not enough.
46
+ pub const PTHREAD_STACK_MIN : usize = 65536 ;
Original file line number Diff line number Diff line change 139
139
pub struct stat {
140
140
pub st_dev: :: c_ulong,
141
141
pub st_ino: :: ino_t,
142
- // According to uclibc/libc/sysdeps/linux/x86_64/bits/stat.h, order of nlink and mode are
143
- // swapped on 64 bit systems.
142
+ // According to uclibc/libc/sysdeps/linux/x86_64/bits/stat.h, order of
143
+ // nlink and mode are swapped on 64 bit systems.
144
144
pub st_nlink: :: nlink_t,
145
145
pub st_mode: :: mode_t,
146
146
pub st_uid: :: uid_t,
@@ -323,8 +323,8 @@ pub const O_EXCL: ::c_int = 0200;
323
323
pub const O_NONBLOCK : :: c_int = 04000 ;
324
324
pub const O_TRUNC : :: c_int = 01000 ;
325
325
pub const NCCS : usize = 32 ;
326
- pub const PTHREAD_STACK_MIN : usize = 16384 ;
327
326
pub const SIG_SETMASK : :: c_int = 2 ; // Set the set of blocked signals
327
+ pub const PTHREAD_STACK_MIN : usize = 16384 ;
328
328
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40 ;
329
329
pub const __SIZEOF_PTHREAD_MUTEXATTR_T: usize = 4 ;
330
330
pub const PTHREAD_MUTEX_NORMAL : :: c_int = 0 ;
You can’t perform that action at this time.
0 commit comments