| 1 | #ifndef SYS_H_INCLUDED
|
|---|
| 2 | #define SYS_H_INCLUDED
|
|---|
| 3 |
|
|---|
| 4 | /* For checking drives */
|
|---|
| 5 | #define QDT_FIXED_DISK 0x01
|
|---|
| 6 | #define QDT_REMOTE_DRIVE 0x02
|
|---|
| 7 | #define QDT_DISKETTE_DRIVE 0x03
|
|---|
| 8 | #define QDT_NO_DRIVE 0x04
|
|---|
| 9 | #define QDT_CDROM_DRIVE 0x05
|
|---|
| 10 | #define QDT_REMOVABLE_DISK 0
|
|---|
| 11 | #define QDT_ERROR_DISK 0xF0
|
|---|
| 12 |
|
|---|
| 13 | #if __cplusplus
|
|---|
| 14 | extern "C" {
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 | size_t
|
|---|
| 18 | strlcpy(char *dst, const char *src, size_t siz); /* From OpenBSD */
|
|---|
| 19 | size_t
|
|---|
| 20 | strlcat(char *dst, const char *src, size_t siz); /* From OpenBSD */
|
|---|
| 21 |
|
|---|
| 22 | char SysQueryBootDriveLetter(void);
|
|---|
| 23 | ULONG SysQueryOSRelease(void);
|
|---|
| 24 | void SysWriteToTrapLog(const char* chrFormat, ...);
|
|---|
| 25 | BOOL SysCheckFileExists(char* chrFileName);
|
|---|
| 26 | ULONG SysQueryCurrentTID(void);
|
|---|
| 27 | ULONG SysQueryFileSize(char* chrFileName);
|
|---|
| 28 | ULONG SysQueryDriveType(ULONG ulDriveNum);
|
|---|
| 29 | ULONG SysQueryFreeDriveSpace(ULONG ulDriveNum, ULONG *ulTotal, ULONG * ulFree, ULONG* ulBytesUnit);
|
|---|
| 30 | ULONG SysQueryDiskName(ULONG ulDriveNum, char *chrBuffer, ULONG ulSize);
|
|---|
| 31 | BOOL SysQueryHomeDir(char* chrBuf, ULONG ulSize);
|
|---|
| 32 |
|
|---|
| 33 | /* To be moved in clib */
|
|---|
| 34 | char* my_strlcpy(char* string1, char* string2, size_t count);
|
|---|
| 35 |
|
|---|
| 36 | #if __cplusplus
|
|---|
| 37 | }
|
|---|
| 38 | #endif
|
|---|
| 39 |
|
|---|
| 40 | #endif
|
|---|
| 41 |
|
|---|