summaryrefslogtreecommitdiff
path: root/ULibc.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-19 00:10:00 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-06-19 00:10:00 +0200
commita54366fd435e11ef3d594bcf3419df400725dabe (patch)
tree2a4378e78f5b0a6d318282e11b8e1e58e9a39c15 /ULibc.pas
parent5a7f575133656f20cf64ee591818a5178a002788 (diff)
downloadtuxcmd-a54366fd435e11ef3d594bcf3419df400725dabe.tar.xz
Fix crash while executing invalid command
Diffstat (limited to 'ULibc.pas')
-rw-r--r--ULibc.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/ULibc.pas b/ULibc.pas
index 585b7c8..ba60e47 100644
--- a/ULibc.pas
+++ b/ULibc.pas
@@ -790,6 +790,8 @@ function WCOREDUMP(Status: longint): Boolean;
function W_EXITCODE(ReturnCode, Signal: longint): longint;
function W_STOPCODE(Signal: longint): longint;
+procedure _exit(status: longint); cdecl; external GLIBC_LIB name '_exit';
+
function gethostname(name: PChar; len: size_t): Longint; cdecl; external GLIBC_LIB name 'gethostname';
function sigqueue(pid: __pid_t; sig: Longint; val: sigval): Longint; cdecl; external GLIBC_LIB name 'sigqueue';