Subversion Repositories SvarDOS

Rev

Rev 1364 | Rev 1413 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1364 Rev 1409
Line 2... Line 2...
2
 * Functions interacting with DOS
2
 * Functions interacting with DOS
3
 *
3
 *
4
 * This file is part of the Mateusz' DOS Routines (MDR): http://mdr.osdn.io
4
 * This file is part of the Mateusz' DOS Routines (MDR): http://mdr.osdn.io
5
 * Published under the terms of the MIT License, as stated below.
5
 * Published under the terms of the MIT License, as stated below.
6
 *
6
 *
7
 * Copyright (C) 2014-2022 Mateusz Viste
7
 * Copyright (C) 2014-2023 Mateusz Viste
8
 *
8
 *
9
 * Permission is hereby granted, free of charge, to any person obtaining a copy
9
 * Permission is hereby granted, free of charge, to any person obtaining a copy
10
 * of this software and associated documentation files (the "Software"), to
10
 * of this software and associated documentation files (the "Software"), to
11
 * deal in the Software without restriction, including without limitation the
11
 * deal in the Software without restriction, including without limitation the
12
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
Line 49... Line 49...
49
 
49
 
50
/* returns a far pointer to the full path and filename of the running program.
50
/* returns a far pointer to the full path and filename of the running program.
51
 * returns NULL on error. */
51
 * returns NULL on error. */
52
const char far *mdr_dos_selfexe(void);
52
const char far *mdr_dos_selfexe(void);
53
 
53
 
-
 
54
/* waits for a keypress and returns it
-
 
55
 * extended keys are returned ORed with 0x100 (example: PGUP is 0x149) */
-
 
56
int mdr_dos_getkey(void);
-
 
57
 
-
 
58
/* Same as mdr_dos_getkey(), but this call cannot be aborted by CTRL+C */
-
 
59
int mdr_dos_getkey2(void);
-
 
60
 
-
 
61
/* flush the keyboard buffer */
-
 
62
void mdr_dos_flushkeyb(void);
-
 
63
 
-
 
64
/* poll stdin status, returns 0 if no character is pending in the keyboard
-
 
65
 * buffer, non-zero otherwise */
-
 
66
int mdr_dos_keypending(void);
-
 
67
 
-
 
68
/* disables the CTRL+C handler for the running program - in other words,
-
 
69
 * after this call DOS will no longer abort the program on CTRL+C */
-
 
70
void mdr_dos_ctrlc_disable(void);
-
 
71
 
54
/* converts a "DOS format" 16-bit packed date into a standard (time_t)
72
/* converts a "DOS format" 16-bit packed date into a standard (time_t)
55
 * unix timestamp. A DOS date is a 16-bit value:
73
 * unix timestamp. A DOS date is a 16-bit value:
56
 * YYYYYYYM MMMDDDDD
74
 * YYYYYYYM MMMDDDDD
57
 *
75
 *
58
 * day of month is always within 1-31 range;
76
 * day of month is always within 1-31 range;