-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sysctl malloc.debug=2 output control when DEBUG == 2
- Loading branch information
Showing
2 changed files
with
56 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/**************************************************************************** | ||
* | ||
* Description: ELKS sysctl() system call. | ||
* | ||
****************************************************************************/ | ||
|
||
#include <malloc.h> | ||
#include "watcom/syselks.h" | ||
|
||
int sysctl( int op, char * __name, int * __value) | ||
{ | ||
sys_setseg(__name); | ||
syscall_res res = sys_call3( SYS_sysctl, op, (unsigned)__name, (unsigned)__value); | ||
__syscall_return( int, res ); | ||
} |