Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
#include "dosemuin.h"
2
 
3
_io_struct _io_handles[_MAX_HANDLES];
4
 
5
void dosemu_inithandles(void)
6
{
7
 int i;
8
 for(i=0;i<_MAX_HANDLES;i++)
9
  _io_handles[i].oflags=-1;
10
 _io_handles[0].oflags=1;
11
 _io_handles[1].oflags=1;
12
 _io_handles[2].oflags=1;
13
 _io_handles[3].oflags=1;
14
}
15
 
16
/* If you want to do some actions for closing handles,
17
   you must add it to this function
18
   and uncomment call to atexit(dosemu_atexit) in crt1.c.
19
   In this case I recommend to implement all referenced functions
20
   here (and not in dosemu.c) to avoid linking dosemu.o
21
   in programs which do not use I/O system. - diamond */
22
//void dosemu_atexit()
23
//{}
24
 
25
char __curdir_buf[1024];
26
extern char __menuet__app_path_area[];
27
 
28
void init_dir_stack(void)
29
{
30
	strcpy(__curdir_buf,__menuet__app_path_area);
31
	*strrchr(__curdir_buf,'/') = 0;
32
}