forked from gramineproject/gramine
-
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.
Reformat repository to our C formatting rules (final iteration)
- Loading branch information
Showing
284 changed files
with
5,320 additions
and
5,759 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
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
#ifndef _SHIM_DEFS_H_ | ||
#define _SHIM_DEFS_H_ | ||
|
||
#define DEFAULT_HEAP_MIN_SIZE (256 * 1024 * 1024) /* 256MB */ | ||
#define DEFAULT_MEM_MAX_NPAGES (1024 * 1024) /* 4GB */ | ||
#define DEFAULT_BRK_MAX_SIZE (256 * 1024) /* 256KB */ | ||
#define DEFAULT_SYS_STACK_SIZE (256 * 1024) /* 256KB */ | ||
#define DEFAULT_HEAP_MIN_SIZE (256 * 1024 * 1024) /* 256MB */ | ||
#define DEFAULT_MEM_MAX_NPAGES (1024 * 1024) /* 4GB */ | ||
#define DEFAULT_BRK_MAX_SIZE (256 * 1024) /* 256KB */ | ||
#define DEFAULT_SYS_STACK_SIZE (256 * 1024) /* 256KB */ | ||
|
||
#define CP_INIT_VMA_SIZE (64 * 1024 * 1024) /* 64MB */ | ||
#define CP_INIT_VMA_SIZE (64 * 1024 * 1024) /* 64MB */ | ||
|
||
/* debug message printout */ | ||
#define DEBUGBUF_SIZE 256 | ||
#define DEBUGBUF_BREAK 0 | ||
#define DEBUGBUF_SIZE 256 | ||
#define DEBUGBUF_BREAK 0 | ||
|
||
#define DEFAULT_VMA_COUNT 64 | ||
#define DEFAULT_VMA_COUNT 64 | ||
|
||
/* ELF aux vectors */ | ||
#define REQUIRED_ELF_AUXV 8 /* number of LibOS-supported vectors */ | ||
#define REQUIRED_ELF_AUXV_SPACE 16 /* extra memory space (in bytes) */ | ||
#define REQUIRED_ELF_AUXV 8 /* number of LibOS-supported vectors */ | ||
#define REQUIRED_ELF_AUXV_SPACE 16 /* extra memory space (in bytes) */ | ||
|
||
#if defined(__i386__) || defined(__x86_64__) | ||
#define LIBOS_SYSCALL_BOUND (340 + 1) | ||
#define LIBOS_SYSCALL_BOUND (340 + 1) | ||
#endif | ||
|
||
#endif /* _SHIM_DEFS_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
Oops, something went wrong.