wok-current view syslinux/stuff/iso2exe/libdos.h @ rev 23831
syslinux/iso2exe: fix loram case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 31 14:59:28 2020 +0000 (2020-05-31) |
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