- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
(extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
BT game source (never mixed into CODE/). Round 1-3 state:
* 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
(BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
since 1996.
* BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
its binary-recorded line 400 exactly.
* BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
(Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
TeamScore=12 flagged [T4]).
* MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
(VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
the period compiler is the drift detector).
* Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
(per-TU verification sweep under authentic OPT.MAK flags).
* README: corrected roadmap - MECH.HPP is the capstone grown with the mech
TU reconstructions; BTREG.CPP green = the header-family milestone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
124 lines
2.6 KiB
C++
124 lines
2.6 KiB
C++
/* stat.h
|
|
|
|
Definitions used for file status functions
|
|
*/
|
|
|
|
/*
|
|
* C/C++ Run Time Library - Version 6.5
|
|
*
|
|
* Copyright (c) 1987, 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
#if !defined(__STAT_H)
|
|
#define __STAT_H
|
|
|
|
#if !defined(___DEFS_H)
|
|
#include <_defs.h>
|
|
#endif
|
|
|
|
#if !defined(__TYPES_H)
|
|
#include <sys/types.h>
|
|
#endif
|
|
|
|
/* Traditional names for bits in st_mode.
|
|
*/
|
|
#define S_IFMT 0xF000 /* file type mask */
|
|
#define S_IFDIR 0x4000 /* directory */
|
|
#define S_IFIFO 0x1000 /* FIFO special */
|
|
#define S_IFCHR 0x2000 /* character special */
|
|
#define S_IFBLK 0x3000 /* block special */
|
|
#define S_IFREG 0x8000 /* or just 0x0000, regular */
|
|
#define S_IREAD 0x0100 /* owner may read */
|
|
#define S_IWRITE 0x0080 /* owner may write */
|
|
#define S_IEXEC 0x0040 /* owner may execute <directory search> */
|
|
|
|
#if defined(__FLAT__)
|
|
/* POSIX file type test macros. The parameter is an st_mode value.
|
|
*/
|
|
#define S_ISDIR(m) ((m) & S_IFDIR)
|
|
#define S_ISCHR(m) ((m) & S_IFCHR)
|
|
#define S_ISBLK(m) ((m) & S_IFBLK)
|
|
#define S_ISREG(m) ((m) & S_IFREG)
|
|
#define S_ISFIFO(m) ((m) & S_IFIFO)
|
|
|
|
/* POSIX names for bits in st_mode.
|
|
*/
|
|
#define S_IRWXU 0x01c0 /* RWE permissions mask for owner */
|
|
#define S_IRUSR 0x0100 /* owner may read */
|
|
#define S_IWUSR 0x0080 /* owner may write */
|
|
#define S_IXUSR 0x0040 /* owner may execute <directory search> */
|
|
|
|
#if !defined(_RC_INVOKED)
|
|
#pragma pack(1)
|
|
#endif
|
|
|
|
struct stat
|
|
{
|
|
dev_t st_dev;
|
|
ino_t st_ino;
|
|
mode_t st_mode;
|
|
nlink_t st_nlink;
|
|
uid_t st_uid;
|
|
gid_t st_gid;
|
|
dev_t st_rdev;
|
|
off_t st_size;
|
|
time_t st_atime;
|
|
time_t st_mtime;
|
|
time_t st_ctime;
|
|
};
|
|
|
|
#if !defined(_RC_INVOKED)
|
|
#pragma pack()
|
|
#endif
|
|
|
|
#else
|
|
struct stat
|
|
{
|
|
short st_dev;
|
|
short st_ino;
|
|
short st_mode;
|
|
short st_nlink;
|
|
int st_uid;
|
|
int st_gid;
|
|
short st_rdev;
|
|
long st_size;
|
|
long st_atime;
|
|
long st_mtime;
|
|
long st_ctime;
|
|
};
|
|
#endif /* __FLAT__ */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
int _RTLENTRY _EXPFUNC fstat(int __handle, struct stat _FAR *__statbuf);
|
|
int _RTLENTRY _EXPFUNC stat(const char _FAR *__path, struct stat _FAR *__statbuf);
|
|
|
|
#ifdef __MSC
|
|
#define _fstat(h,b) fstat(h,(struct stat *)b)
|
|
#define _stat(p,b) stat(p,(struct stat *)b)
|
|
struct _stat
|
|
{
|
|
short st_dev;
|
|
short st_ino;
|
|
short st_mode;
|
|
short st_nlink;
|
|
int st_uid;
|
|
int st_gid;
|
|
short st_rdev;
|
|
long st_size;
|
|
long st_atime;
|
|
long st_mtime;
|
|
long st_ctime;
|
|
};
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __STAT_H */
|
|
|
|
|