Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1882 | clevermous | 1 | /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */ |
2 | /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ |
||
3 | /* |
||
4 | * This is file GETDOS_V.C |
||
5 | * |
||
6 | * Copyright (c) 1994,95 Eli Zaretskii |
||
7 | * |
||
8 | * This software may be used freely so long as this copyright notice is |
||
9 | * left intact. There is no warranty on this software. |
||
10 | * |
||
11 | */ |
||
12 | |||
13 | #include |
||
14 | #include |
||
15 | |||
16 | /* Return OS version number, either true or ``simulated'' one. |
||
17 | Global variables _OSMAJOR and _OSMINOR are ALWAYS set to whatever |
||
18 | INT 21h/AX=30h returns. Global _OS_FLAVOR is set to a string |
||
19 | which identifies the OEM of DOS. |
||
20 | */ |
||
21 | |||
22 | /* From Ralph Brown's interrupt list, v.45. |
||
23 | Note: some OEMs, like Novell NDOS 7, Compaq DOS 3.31 and possibly |
||
24 | others return 0 OEM code, like IBM PC-DOS. There is nothing |
||
25 | I can do to overcome this. |
||
26 | */ |
||
27 | static struct _oem_info { |
||
28 | unsigned char oem_num; |
||
29 | const char * oem_name; |
||
30 | } dos_flavors[] = { |
||
31 | {0, "IBM PC-DOS"}, |
||
32 | {1, "Compaq DOS"}, |
||
33 | {2, "Microsoft DOS"}, |
||
34 | {4, "AT&T DOS"}, |
||
35 | {5, "Zenith DOS"}, |
||
36 | {6, "Hewlett-Packard DOS"}, |
||
37 | {7, "Groupe Bull DOS"}, |
||
38 | {0xd, "Packard-Bell DOS"}, |
||
39 | {0x16, "DEC DOS"}, |
||
40 | {0x23, "Olivetti DOS"}, |
||
41 | {0x28, "Texas Instruments DOS"}, |
||
42 | {0x29, "Toshiba DOS"}, |
||
43 | {0x33, "Novell Win3 device ID"}, |
||
44 | {0x34, "MS Multimedia Win3 device ID"}, |
||
45 | {0x35, "MS Multimedia Win3 device ID"}, |
||
46 | {0x4d, "Hewlett-Packard DOS"}, |
||
47 | {0x5e, "RxDOS"}, |
||
48 | {0x66, "PTS-DOS"}, |
||
49 | {0x99, "GenSoft Embedded DOS"}, |
||
50 | {0xee, "DR-DOS"}, |
||
51 | {0xef, "Novell DOS"}, |
||
52 | {0xff, "Microsoft MS-DOS"}, |
||
53 | {0, (char *)0} |
||
54 | }; |
||
55 | |||
56 | static int getdosv_count = -1; |
||
57 | |||
58 | unsigned short |
||
59 | _get_dos_version(int true_version) |
||
60 | { |
||
61 | return 0x0500; |
||
62 | } |