PSX: early code for the PSXSS server program. Currently it is a W32 console application,
[reactos.git] / posix / server / call / _exit.c
diff --git a/posix/server/call/_exit.c b/posix/server/call/_exit.c
new file mode 100644 (file)
index 0000000..40b1e10
--- /dev/null
@@ -0,0 +1,40 @@
+/* $Id: _exit.c,v 1.1 2002/04/10 21:30:21 ea Exp $
+ * 
+ * PROJECT    : ReactOS / POSIX+ Environment Subsystem Server
+ * FILE       : reactos/subsys/psx/server/call/_exit.c
+ * DESCRIPTION: System call _exit().
+ * DATE       : 2002-04-05
+ * AUTHOR     : Emanuele Aliberti <eal@users.sf.net>
+ *
+ * --------------------------------------------------------------------
+ *
+ * This software is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; see the file COPYING. If not, write
+ * to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
+ * MA 02139, USA.  
+ *
+ * --------------------------------------------------------------------
+ */
+#define NTOS_MODE_USER
+#include <ntos.h>
+#include <ntdll/rtl.h>
+#include <napi/lpc.h>
+#include <psxss.h>
+
+NTSTATUS STDCALL syscall__exit (PPSX_MAX_MESSAGE Msg)
+{
+    Msg->PsxHeader.Status = STATUS_SUCCESS;
+    /* TODO */
+    return STATUS_SUCCESS;
+}
+/* EOF */