wok view syslinux/stuff/iso2exe/libdos.h @ rev 20891

Update some WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:20:18 2019 +0100 (12 months ago)
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