Minor changes for making apps/baresh compile (tough it doesn't work yet).
[reactos.git] / posix / lib / psxdll / misc / init.c
1 /* $Id: init.c,v 1.1 2002/02/24 22:14:05 ea Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS POSIX+ Subsystem
5 * FILE: reactos/subsys/psx/lib/psxdll/misc/init.c
6 * PURPOSE: Client initialization
7 * PROGRAMMER: Emanuele Aliberti
8 * UPDATE HISTORY:
9 * 2001-05-06
10 */
11 #define NTOS_MODE_USER
12 #include <ntos.h>
13
14 /* DLL GLOBALS */
15 int * errno = NULL;
16 char *** _environ = NULL;
17 /*
18 * Called by startup code in crt0.o, where real
19 * errno and _environ are actually defined.
20 */
21 VOID STDCALL __PdxInitializeData (int * errno_arg, char *** environ_arg)
22 {
23 errno = errno_arg;
24 _environ = environ_arg;
25 }
26 /* EOF */
27