wok view syslinux/stuff/iso2exe/libdos.h @ rev 20632
linld: 32 bits lseeks for tazboot
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 05 17:23:23 2019 +0100 (2019-01-05) |
parents | 3e7ad70145ce |
children |
line source
1 #ifndef __LIBDOS_H
2 #define __LIBDOS_H
3 #undef __SLEEP
4 # ifdef __MSDOS__
5 // extern void sleep(int seconds);
6 extern char *progname(void);
7 extern int chdir(char *path);
8 extern int chdirname(char *path);
9 extern void dosshutdown(void);
10 extern int versiondos;
11 extern int dosversion(void);
12 extern void copycmdline(char store[]);
13 # else
14 #define progname() (argv[0])
15 #define chdirname(x) chdir(dirname(x))
16 #define dosshutdown()
17 #define dosversion() (0)
18 #define copycmdline(x) { \
19 int n; \
20 char *s, *p; \
21 for (n = 1, s = x; n < argc; n++, *s++ = ' ') \
22 for (p = argv[n]; *p; *s++ = *p++); \
23 *s = 0; \
24 }
25 # endif
26 #endif