forked from managarm/mlibc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'managarm:master' into master
- Loading branch information
Showing
122 changed files
with
2,131 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,6 @@ | |
|
||
|
||
// This is mlibc-specific. | ||
#define EIEIO 1524152434 | ||
#define EIEIO 4095 | ||
|
||
#endif // _ABIBITS_ERRNO_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef _ABIBITS_STATVFS_H | ||
#define _ABIBITS_STATVFS_H | ||
|
||
#include <abi-bits/fsblkcnt_t.h> | ||
#include <abi-bits/fsfilcnt_t.h> | ||
|
||
#define ST_RDONLY 1 | ||
#define ST_NOSUID 2 | ||
#define ST_MANDLOCK 64 | ||
|
||
#define FSTYPSZ 16 | ||
|
||
// On Linux, this struct is not directly used by the kernel. | ||
struct statvfs { | ||
unsigned long f_bsize; | ||
unsigned long f_frsize; | ||
fsblkcnt_t f_blocks; | ||
fsblkcnt_t f_bfree; | ||
fsblkcnt_t f_bavail; | ||
|
||
fsfilcnt_t f_files; | ||
fsfilcnt_t f_ffree; | ||
fsfilcnt_t f_favail; | ||
|
||
unsigned long f_fsid; | ||
char f_basetype[FSTYPSZ]; | ||
|
||
unsigned long f_flag; | ||
unsigned long f_namemax; | ||
char f_fstr[32]; | ||
unsigned long f_filler[16]; | ||
}; | ||
|
||
#endif /* _ABIBITS_STATVFS_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[binaries] | ||
c = 'x86_64-linux-mlibc-gcc' | ||
cpp = 'x86_64-linux-mlibc-g++' | ||
|
||
[properties] | ||
needs_exe_wrapper = true | ||
|
||
[host_machine] | ||
system = 'managarm' | ||
cpu_family = 'x86_64' | ||
cpu = 'x86_64' | ||
endian = 'little' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
// We build an empty libsso because some packages expect -lssp | ||
// The actual ssp functions are provided by libc. | ||
|
||
extern "C" void __mlibc_libssp_dummy(void) { } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
// We build an empty libsso because some packages expect -lssp_nonshared | ||
// The actual ssp functions are provided by libc. | ||
|
||
extern "C" void __mlibc_libssp_nonshared_dummy(void) { } | ||
|
Oops, something went wrong.