diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-24 01:10:32 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-24 01:10:32 +0100 |
| commit | 0d36b950f6a560a0312f2dcd326d3bb5362af370 (patch) | |
| tree | 6d417483e22589e5ca07bf98a0bd8099ae5882e8 /userspace/sys/syscalls.c | |
| parent | ec0ba7bc40854eab6a1cdb41364f41f9c11407e1 (diff) | |
playing with enviroment variables
Diffstat (limited to 'userspace/sys/syscalls.c')
| -rw-r--r-- | userspace/sys/syscalls.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/userspace/sys/syscalls.c b/userspace/sys/syscalls.c index 25c48b0..9456ea4 100644 --- a/userspace/sys/syscalls.c +++ b/userspace/sys/syscalls.c @@ -1,15 +1,10 @@ #include "kernel/syscalls.h" -/* -char *__env3[]={0}; -char *__env1[]={"a=10","b=20"}; -char *__env2[]={"dupa=test2"}; -char **environ={__env1,__env2,__env3}; -*/ +char **environ; -void _exit(int ret) +void _exit2(int ret,char **environ) { - return syscall(SYSCALL_EXIT,ret,0,0); + return syscall(SYSCALL_EXIT,ret,environ,0); } // generic syscall interface! |
