wok view syslinux/stuff/iso2exe/libdos.h @ rev 23341
updated perl-html-tree (4.1 -> 5.07)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 09:01:44 2020 +0100 (2020-03-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