wok annotate syslinux/stuff/iso2exe/libdos.h @ rev 18140
syslinux/taziso: add floppyset
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 15 16:28:54 2015 +0200 (2015-06-15) |
parents | 3e7ad70145ce |
children |
rev | line source |
---|---|
pascal@13691 | 1 #ifndef __LIBDOS_H |
pascal@13691 | 2 #define __LIBDOS_H |
pascal@13691 | 3 #undef __SLEEP |
pascal@13691 | 4 # ifdef __MSDOS__ |
pascal@13691 | 5 // extern void sleep(int seconds); |
pascal@13691 | 6 extern char *progname(void); |
pascal@13691 | 7 extern int chdir(char *path); |
pascal@13691 | 8 extern int chdirname(char *path); |
pascal@17160 | 9 extern void dosshutdown(void); |
pascal@17160 | 10 extern int versiondos; |
pascal@17160 | 11 extern int dosversion(void); |
pascal@17562 | 12 extern void copycmdline(char store[]); |
pascal@13691 | 13 # else |
pascal@17160 | 14 #define progname() (argv[0]) |
pascal@13691 | 15 #define chdirname(x) chdir(dirname(x)) |
pascal@17160 | 16 #define dosshutdown() |
pascal@17160 | 17 #define dosversion() (0) |
pascal@17562 | 18 #define copycmdline(x) { \ |
pascal@17562 | 19 int n; \ |
pascal@17562 | 20 char *s, *p; \ |
pascal@17562 | 21 for (n = 1, s = x; n < argc; n++, *s++ = ' ') \ |
pascal@17562 | 22 for (p = argv[n]; *p; *s++ = *p++); \ |
pascal@17562 | 23 *s = 0; \ |
pascal@17562 | 24 } |
pascal@13691 | 25 # endif |
pascal@13691 | 26 #endif |