2000-05-06 21:34:20 +02:00
|
|
|
/****************************************************************/
|
|
|
|
/* */
|
|
|
|
/* proto.h */
|
|
|
|
/* */
|
|
|
|
/* Global Function Prototypes */
|
|
|
|
/* */
|
|
|
|
/* Copyright (c) 1995, 1996 */
|
|
|
|
/* Pasquale J. Villani */
|
|
|
|
/* All Rights Reserved */
|
|
|
|
/* */
|
|
|
|
/* This file is part of DOS-C. */
|
|
|
|
/* */
|
|
|
|
/* DOS-C is free software; you can redistribute it and/or */
|
|
|
|
/* modify it under the terms of the GNU General Public License */
|
|
|
|
/* as published by the Free Software Foundation; either version */
|
|
|
|
/* 2, or (at your option) any later version. */
|
|
|
|
/* */
|
|
|
|
/* DOS-C is distributed in the hope that it will be useful, but */
|
|
|
|
/* WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
|
|
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See */
|
|
|
|
/* the GNU General Public License for more details. */
|
|
|
|
/* */
|
|
|
|
/* You should have received a copy of the GNU General Public */
|
|
|
|
/* License along with DOS-C; see the file COPYING. If not, */
|
|
|
|
/* write to the Free Software Foundation, 675 Mass Ave, */
|
|
|
|
/* Cambridge, MA 02139, USA. */
|
|
|
|
/****************************************************************/
|
|
|
|
|
|
|
|
#ifdef MAIN
|
|
|
|
#ifdef VERSION_STRINGS
|
2001-11-18 15:01:12 +01:00
|
|
|
static BYTE *Proto_hRcsId =
|
|
|
|
"$Id$";
|
2000-05-06 21:34:20 +02:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* blockio.c */
|
|
|
|
ULONG getblkno(struct buffer FAR *);
|
|
|
|
VOID setblkno(struct buffer FAR *, ULONG);
|
2001-11-18 15:01:12 +01:00
|
|
|
struct buffer FAR *getblock(ULONG blkno, COUNT dsk);
|
2001-06-03 16:16:18 +02:00
|
|
|
struct buffer FAR *getblockOver(ULONG blkno, COUNT dsk);
|
2000-05-06 21:34:20 +02:00
|
|
|
VOID setinvld(REG COUNT dsk);
|
|
|
|
BOOL flush_buffers(REG COUNT dsk);
|
|
|
|
BOOL flush1(struct buffer FAR * bp);
|
|
|
|
BOOL flush(void);
|
|
|
|
BOOL fill(REG struct buffer FAR * bp, ULONG blkno, COUNT dsk);
|
2001-11-04 20:47:39 +01:00
|
|
|
BOOL DeleteBlockInBufferCache(ULONG blknolow, ULONG blknohigh, COUNT dsk);
|
2000-10-30 01:21:15 +01:00
|
|
|
/* *** Changed on 9/4/00 BER */
|
2001-11-18 15:01:12 +01:00
|
|
|
UWORD dskxfer(COUNT dsk, ULONG blkno, VOID FAR * buf, UWORD numblocks,
|
|
|
|
COUNT mode);
|
2001-09-23 22:39:44 +02:00
|
|
|
/* *** End of change */
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* chario.c */
|
|
|
|
VOID sto(COUNT c);
|
2001-08-19 14:58:36 +02:00
|
|
|
VOID cso(COUNT c);
|
|
|
|
VOID mod_cso(REG UCOUNT c);
|
2000-05-06 21:34:20 +02:00
|
|
|
VOID destr_bs(void);
|
2001-08-19 14:58:36 +02:00
|
|
|
UCOUNT _sti(BOOL check_break);
|
2000-05-06 21:34:20 +02:00
|
|
|
VOID con_hold(void);
|
|
|
|
BOOL con_break(void);
|
|
|
|
BOOL StdinBusy(void);
|
|
|
|
VOID KbdFlush(void);
|
|
|
|
VOID Do_DosIdle_loop(void);
|
2001-08-19 14:58:36 +02:00
|
|
|
UCOUNT sti_0a(keyboard FAR * kp);
|
|
|
|
UCOUNT sti(keyboard * kp);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-06-03 16:16:18 +02:00
|
|
|
sft FAR *get_sft(UCOUNT);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* dosfns.c */
|
2000-05-26 21:25:19 +02:00
|
|
|
BYTE FAR *get_root(BYTE FAR *);
|
2000-05-06 21:34:20 +02:00
|
|
|
BOOL check_break(void);
|
2001-11-18 15:01:12 +01:00
|
|
|
UCOUNT GenericReadSft(sft far * sftp, UCOUNT n, BYTE FAR * bp,
|
|
|
|
COUNT FAR * err, BOOL force_binary);
|
|
|
|
COUNT SftSeek(sft FAR * sftp, LONG new_pos, COUNT mode);
|
2002-01-23 23:29:41 +01:00
|
|
|
/*COUNT DosRead(COUNT hndl, UCOUNT n, BYTE FAR * bp, COUNT FAR * err); */
|
2001-11-04 20:47:39 +01:00
|
|
|
#define GenericRead(hndl, n, bp, err, t) GenericReadSft(get_sft(hndl), n, bp, err, t)
|
|
|
|
#define DosRead(hndl, n, bp, err) GenericRead(hndl, n, bp, err, FALSE)
|
|
|
|
#define DosReadSft(sftp, n, bp, err) GenericReadSft(sftp, n, bp, err, FALSE)
|
2002-02-16 20:20:20 +01:00
|
|
|
UCOUNT DosWriteSft(sft FAR * sftp, UCOUNT n, const BYTE FAR * bp,
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT FAR * err);
|
2001-11-04 20:47:39 +01:00
|
|
|
#define DosWrite(hndl, n, bp, err) DosWriteSft(get_sft(hndl), n, bp, err)
|
2000-05-06 21:34:20 +02:00
|
|
|
COUNT DosSeek(COUNT hndl, LONG new_pos, COUNT mode, ULONG * set_pos);
|
|
|
|
COUNT DosCreat(BYTE FAR * fname, COUNT attrib);
|
2001-07-23 14:47:42 +02:00
|
|
|
COUNT DosCreatSft(BYTE * fname, COUNT attrib);
|
2000-05-06 21:34:20 +02:00
|
|
|
COUNT CloneHandle(COUNT hndl);
|
|
|
|
COUNT DosDup(COUNT Handle);
|
|
|
|
COUNT DosForceDup(COUNT OldHandle, COUNT NewHandle);
|
|
|
|
COUNT DosOpen(BYTE FAR * fname, COUNT mode);
|
2001-07-23 14:47:42 +02:00
|
|
|
COUNT DosOpenSft(BYTE * fname, COUNT mode);
|
2000-05-06 21:34:20 +02:00
|
|
|
COUNT DosClose(COUNT hndl);
|
2002-01-23 23:29:41 +01:00
|
|
|
COUNT DosCloseSft(WORD sft_idx, BOOL commitonly);
|
|
|
|
#define DosCommit(hndl) DosCloseSft(get_sft_idx(hndl), TRUE)
|
2001-11-18 15:01:12 +01:00
|
|
|
BOOL DosGetFree(UBYTE drive, UCOUNT FAR * spc, UCOUNT FAR * navc,
|
|
|
|
UCOUNT FAR * bps, UCOUNT FAR * nc);
|
2001-04-15 05:21:50 +02:00
|
|
|
COUNT DosGetCuDir(UBYTE drive, BYTE FAR * s);
|
2000-05-06 21:34:20 +02:00
|
|
|
COUNT DosChangeDir(BYTE FAR * s);
|
|
|
|
COUNT DosFindFirst(UCOUNT attr, BYTE FAR * name);
|
|
|
|
COUNT DosFindNext(void);
|
|
|
|
COUNT DosGetFtime(COUNT hndl, date FAR * dp, time FAR * tp);
|
2001-08-19 14:58:36 +02:00
|
|
|
COUNT DosSetFtimeSft(WORD sft_idx, date dp, time tp);
|
2001-07-23 14:47:42 +02:00
|
|
|
#define DosSetFtime(hndl, dp, tp) DosSetFtimeSft(get_sft_idx(hndl), (dp), (tp))
|
2001-07-22 03:58:58 +02:00
|
|
|
COUNT DosGetFattr(BYTE FAR * name);
|
|
|
|
COUNT DosSetFattr(BYTE FAR * name, UWORD attrp);
|
2001-04-15 05:21:50 +02:00
|
|
|
UBYTE DosSelectDrv(UBYTE drv);
|
2002-02-16 20:20:20 +01:00
|
|
|
COUNT DosDelete(BYTE FAR * path, int attrib);
|
2000-05-08 06:30:00 +02:00
|
|
|
COUNT DosRename(BYTE FAR * path1, BYTE FAR * path2);
|
2002-02-16 20:20:20 +01:00
|
|
|
COUNT DosRenameTrue(BYTE * path1, BYTE * path2, int attrib);
|
2000-05-08 06:30:00 +02:00
|
|
|
COUNT DosMkdir(BYTE FAR * dir);
|
|
|
|
COUNT DosRmdir(BYTE FAR * dir);
|
2001-11-18 15:01:12 +01:00
|
|
|
struct dhdr FAR *IsDevice(BYTE FAR * FileName);
|
2001-04-15 05:21:50 +02:00
|
|
|
BOOL IsShareInstalled(void);
|
|
|
|
COUNT DosLockUnlock(COUNT hndl, LONG pos, LONG len, COUNT unlock);
|
2001-07-23 14:47:42 +02:00
|
|
|
sft FAR *idx_to_sft(COUNT SftIndex);
|
|
|
|
COUNT get_sft_idx(UCOUNT hndl);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/*dosidle.asm */
|
2001-09-23 22:39:44 +02:00
|
|
|
VOID ASMCFUNC DosIdle_int(void);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* dosnames.c */
|
|
|
|
VOID SpacePad(BYTE *, COUNT);
|
2001-07-22 03:58:58 +02:00
|
|
|
COUNT ParseDosName(BYTE *, COUNT *, BYTE *, BYTE *, BYTE *, BOOL);
|
2002-01-23 23:29:41 +01:00
|
|
|
/*COUNT ParseDosPath(BYTE *, COUNT *, BYTE *, BYTE FAR *); */
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* error.c */
|
|
|
|
VOID dump(void);
|
|
|
|
VOID panic(BYTE * s);
|
2001-04-15 05:21:50 +02:00
|
|
|
VOID fatal(BYTE * err_msg);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* fatdir.c */
|
2001-11-04 20:47:39 +01:00
|
|
|
VOID dir_init_fnode(f_node_ptr fnp, CLUSTER dirstart);
|
2001-07-22 03:58:58 +02:00
|
|
|
f_node_ptr dir_open(BYTE * dirname);
|
2001-06-03 16:16:18 +02:00
|
|
|
COUNT dir_read(REG f_node_ptr fnp);
|
2001-11-04 20:47:39 +01:00
|
|
|
BOOL dir_write(REG f_node_ptr fnp);
|
2001-06-03 16:16:18 +02:00
|
|
|
VOID dir_close(REG f_node_ptr fnp);
|
2001-07-22 03:58:58 +02:00
|
|
|
COUNT dos_findfirst(UCOUNT attr, BYTE * name);
|
2000-05-06 21:34:20 +02:00
|
|
|
COUNT dos_findnext(void);
|
2001-11-18 15:01:12 +01:00
|
|
|
void ConvertName83ToNameSZ(BYTE FAR * destSZ, BYTE FAR * srcFCBName);
|
|
|
|
int FileName83Length(BYTE * filename83);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* fatfs.c */
|
2001-11-18 15:01:12 +01:00
|
|
|
ULONG clus2phys(CLUSTER cl_no, struct dpb FAR * dpbp);
|
2001-07-22 03:58:58 +02:00
|
|
|
COUNT dos_open(BYTE * path, COUNT flag);
|
|
|
|
BOOL fcmp(BYTE * s1, BYTE * s2, COUNT n);
|
2000-05-06 21:34:20 +02:00
|
|
|
BOOL fcmp_wild(BYTE FAR * s1, BYTE FAR * s2, COUNT n);
|
2001-07-22 03:58:58 +02:00
|
|
|
VOID touc(BYTE * s, COUNT n);
|
2001-04-15 05:21:50 +02:00
|
|
|
COUNT dos_close(COUNT fd);
|
2002-01-23 23:29:41 +01:00
|
|
|
COUNT dos_commit(COUNT fd);
|
2002-02-16 20:20:20 +01:00
|
|
|
COUNT dos_creat(BYTE * path, int attrib);
|
|
|
|
COUNT dos_delete(BYTE * path, int attrib);
|
2001-07-22 03:58:58 +02:00
|
|
|
COUNT dos_rmdir(BYTE * path);
|
2002-02-16 20:20:20 +01:00
|
|
|
COUNT dos_rename(BYTE * path1, BYTE * path2, int attrib);
|
2001-04-15 05:21:50 +02:00
|
|
|
date dos_getdate(void);
|
|
|
|
time dos_gettime(void);
|
2000-05-06 21:34:20 +02:00
|
|
|
COUNT dos_getftime(COUNT fd, date FAR * dp, time FAR * tp);
|
2001-08-19 14:58:36 +02:00
|
|
|
COUNT dos_setftime(COUNT fd, date dp, time tp);
|
2000-05-06 21:34:20 +02:00
|
|
|
LONG dos_getcufsize(COUNT fd);
|
|
|
|
LONG dos_getfsize(COUNT fd);
|
|
|
|
BOOL dos_setfsize(COUNT fd, LONG size);
|
2001-07-22 03:58:58 +02:00
|
|
|
COUNT dos_mkdir(BYTE * dir);
|
2001-06-03 16:16:18 +02:00
|
|
|
BOOL last_link(f_node_ptr fnp);
|
|
|
|
COUNT map_cluster(REG f_node_ptr fnp, COUNT mode);
|
2002-05-09 00:49:35 +02:00
|
|
|
UCOUNT rwblock(COUNT fd, VOID FAR * buffer, UCOUNT count, int mode);
|
2001-04-15 05:21:50 +02:00
|
|
|
COUNT dos_read(COUNT fd, VOID FAR * buffer, UCOUNT count);
|
2002-02-16 20:20:20 +01:00
|
|
|
COUNT dos_write(COUNT fd, const VOID FAR * buffer, UCOUNT count);
|
2000-05-06 21:34:20 +02:00
|
|
|
LONG dos_lseek(COUNT fd, LONG foffset, COUNT origin);
|
2001-11-18 15:01:12 +01:00
|
|
|
CLUSTER dos_free(struct dpb FAR * dpbp);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
VOID trim_path(BYTE FAR * s);
|
|
|
|
|
2001-07-22 03:58:58 +02:00
|
|
|
COUNT dos_cd(struct cds FAR * cdsp, BYTE * PathName);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2001-06-03 16:16:18 +02:00
|
|
|
f_node_ptr get_f_node(void);
|
|
|
|
VOID release_f_node(f_node_ptr fnp);
|
2000-05-06 21:34:20 +02:00
|
|
|
VOID dos_setdta(BYTE FAR * newdta);
|
2001-07-22 03:58:58 +02:00
|
|
|
COUNT dos_getfattr(BYTE * name);
|
|
|
|
COUNT dos_setfattr(BYTE * name, UWORD attrp);
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT media_check(REG struct dpb FAR * dpbp);
|
2001-06-03 16:16:18 +02:00
|
|
|
f_node_ptr xlt_fd(COUNT fd);
|
|
|
|
COUNT xlt_fnp(f_node_ptr fnp);
|
2002-01-23 23:29:41 +01:00
|
|
|
struct dhdr FAR * select_unit(COUNT drive);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* fattab.c */
|
2001-11-18 15:01:12 +01:00
|
|
|
void read_fsinfo(struct dpb FAR * dpbp);
|
|
|
|
void write_fsinfo(struct dpb FAR * dpbp);
|
|
|
|
UCOUNT link_fat(struct dpb FAR * dpbp, CLUSTER Cluster1,
|
|
|
|
REG CLUSTER Cluster2);
|
|
|
|
CLUSTER next_cluster(struct dpb FAR * dpbp, REG CLUSTER ClusterNum);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* fcbfns.c */
|
|
|
|
VOID DosOutputString(BYTE FAR * s);
|
|
|
|
int DosCharInputEcho(VOID);
|
|
|
|
int DosCharInput(VOID);
|
|
|
|
VOID DosDirectConsoleIO(iregs FAR * r);
|
|
|
|
VOID DosCharOutput(COUNT c);
|
|
|
|
VOID DosDisplayOutput(COUNT c);
|
2001-11-18 15:01:12 +01:00
|
|
|
VOID FatGetDrvData(UCOUNT drive, UCOUNT FAR * spc, UCOUNT FAR * bps,
|
|
|
|
UCOUNT FAR * nc, BYTE FAR ** mdp);
|
2002-02-16 20:20:20 +01:00
|
|
|
WORD FcbParseFname(int wTestMode, const BYTE FAR ** lpFileName, fcb FAR * lpFcb);
|
|
|
|
const BYTE FAR *ParseSkipWh(const BYTE FAR * lpFileName);
|
2000-05-06 21:34:20 +02:00
|
|
|
BOOL TestCmnSeps(BYTE FAR * lpFileName);
|
|
|
|
BOOL TestFieldSeps(BYTE FAR * lpFileName);
|
2002-02-16 20:20:20 +01:00
|
|
|
const BYTE FAR *GetNameField(const BYTE FAR * lpFileName, BYTE FAR * lpDestField,
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT nFieldSize, BOOL * pbWildCard);
|
2002-01-23 23:29:41 +01:00
|
|
|
typedef BOOL FcbFunc_t (xfcb FAR *, COUNT *, UCOUNT);
|
|
|
|
FcbFunc_t FcbRead, FcbWrite;
|
2000-05-06 21:34:20 +02:00
|
|
|
BOOL FcbGetFileSize(xfcb FAR * lpXfcb);
|
|
|
|
BOOL FcbSetRandom(xfcb FAR * lpXfcb);
|
|
|
|
BOOL FcbCalcRec(xfcb FAR * lpXfcb);
|
2001-11-18 15:01:12 +01:00
|
|
|
BOOL FcbRandomBlockRead(xfcb FAR * lpXfcb, COUNT nRecords,
|
|
|
|
COUNT * nErrorCode);
|
|
|
|
BOOL FcbRandomBlockWrite(xfcb FAR * lpXfcb, COUNT nRecords,
|
2002-01-23 23:29:41 +01:00
|
|
|
COUNT * nErrorCode);
|
|
|
|
BOOL FcbRandomIO(xfcb FAR * lpXfcb, COUNT * nErrorCode, FcbFunc_t *FcbFunc);
|
|
|
|
BOOL FcbOpenCreate(xfcb FAR * lpXfcb, BOOL Create);
|
|
|
|
#define FcbOpen(fcb) FcbOpenCreate(fcb, FALSE)
|
|
|
|
#define FcbCreate(fcb) FcbOpenCreate(fcb, TRUE)
|
2000-05-06 21:34:20 +02:00
|
|
|
void FcbNameInit(fcb FAR * lpFcb, BYTE * pszBuffer, COUNT * pCurDrive);
|
|
|
|
BOOL FcbDelete(xfcb FAR * lpXfcb);
|
|
|
|
BOOL FcbRename(xfcb FAR * lpXfcb);
|
|
|
|
BOOL FcbClose(xfcb FAR * lpXfcb);
|
2001-07-23 14:47:42 +02:00
|
|
|
VOID FcbCloseAll(VOID);
|
2000-05-06 21:34:20 +02:00
|
|
|
BOOL FcbFindFirst(xfcb FAR * lpXfcb);
|
|
|
|
BOOL FcbFindNext(xfcb FAR * lpXfcb);
|
|
|
|
|
|
|
|
/* ioctl.c */
|
2001-04-15 05:21:50 +02:00
|
|
|
COUNT DosDevIOctl(iregs FAR * r);
|
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
/* memmgr.c */
|
|
|
|
seg far2para(VOID FAR * p);
|
2001-04-15 05:21:50 +02:00
|
|
|
seg long2para(ULONG size);
|
2000-05-06 21:34:20 +02:00
|
|
|
VOID FAR *add_far(VOID FAR * fp, ULONG off);
|
2002-08-03 18:54:09 +02:00
|
|
|
void FAR *adjust_far(const void FAR * fp);
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT DosMemAlloc(UWORD size, COUNT mode, seg FAR * para,
|
|
|
|
UWORD FAR * asize);
|
2000-05-06 21:34:20 +02:00
|
|
|
COUNT DosMemLargest(UWORD FAR * size);
|
|
|
|
COUNT DosMemFree(UWORD para);
|
|
|
|
COUNT DosMemChange(UWORD para, UWORD size, UWORD * maxSize);
|
|
|
|
COUNT DosMemCheck(void);
|
|
|
|
COUNT FreeProcessMem(UWORD ps);
|
|
|
|
COUNT DosGetLargestBlock(UWORD FAR * block);
|
|
|
|
VOID show_chain(void);
|
2000-08-06 07:50:17 +02:00
|
|
|
VOID DosUmbLink(BYTE n);
|
2000-05-06 21:34:20 +02:00
|
|
|
VOID mcb_print(mcb FAR * mcbp);
|
|
|
|
|
|
|
|
/* misc.c */
|
2002-02-16 20:20:20 +01:00
|
|
|
VOID ASMCFUNC strcpy(REG BYTE * d, REG const BYTE * s);
|
|
|
|
VOID ASMCFUNC fmemcpy(REG VOID FAR * d, REG const VOID FAR * s, REG COUNT n);
|
|
|
|
VOID ASMCFUNC fstrcpy(REG BYTE FAR * d, REG const BYTE FAR * s);
|
|
|
|
void ASMCFUNC memcpy(REG void *d, REG const VOID * s, REG COUNT n);
|
2001-09-23 22:39:44 +02:00
|
|
|
void ASMCFUNC fmemset(REG VOID FAR * s, REG int ch, REG COUNT n);
|
2001-11-18 00:26:45 +01:00
|
|
|
void ASMCFUNC memset(REG VOID * s, REG int ch, REG COUNT n);
|
2001-03-21 03:56:26 +01:00
|
|
|
|
2001-11-14 00:36:45 +01:00
|
|
|
/* lfnapi.c */
|
|
|
|
COUNT lfn_allocate_inode(VOID);
|
|
|
|
COUNT lfn_free_inode(COUNT handle);
|
|
|
|
|
2002-01-23 23:29:41 +01:00
|
|
|
COUNT lfn_setup_inode(COUNT handle, ULONG dirstart, ULONG diroff);
|
2001-11-14 00:36:45 +01:00
|
|
|
|
|
|
|
COUNT lfn_create_entries(COUNT handle, lfn_inode_ptr lip);
|
|
|
|
COUNT lfn_remove_entries(COUNT handle);
|
|
|
|
|
|
|
|
COUNT lfn_dir_read(COUNT handle, lfn_inode_ptr lip);
|
|
|
|
COUNT lfn_dir_write(COUNT handle);
|
2001-03-21 03:56:26 +01:00
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
/* nls.c */
|
2000-08-06 07:50:17 +02:00
|
|
|
BYTE DosYesNo(unsigned char ch);
|
|
|
|
#ifndef DosUpMem
|
|
|
|
VOID DosUpMem(VOID FAR * str, unsigned len);
|
|
|
|
#endif
|
2001-09-23 22:39:44 +02:00
|
|
|
unsigned char ASMCFUNC DosUpChar(unsigned char ch);
|
2001-11-18 15:01:12 +01:00
|
|
|
VOID DosUpString(char FAR * str);
|
|
|
|
VOID DosUpFMem(VOID FAR * str, unsigned len);
|
2000-08-06 07:50:17 +02:00
|
|
|
unsigned char DosUpFChar(unsigned char ch);
|
2001-11-18 15:01:12 +01:00
|
|
|
VOID DosUpFString(char FAR * str);
|
|
|
|
COUNT DosGetData(int subfct, UWORD cp, UWORD cntry, UWORD bufsize,
|
|
|
|
VOID FAR * buf);
|
2000-08-06 07:50:17 +02:00
|
|
|
#ifndef DosGetCountryInformation
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT DosGetCountryInformation(UWORD cntry, VOID FAR * buf);
|
2000-08-06 07:50:17 +02:00
|
|
|
#endif
|
|
|
|
#ifndef DosSetCountry
|
|
|
|
COUNT DosSetCountry(UWORD cntry);
|
|
|
|
#endif
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT DosGetCodepage(UWORD FAR * actCP, UWORD FAR * sysCP);
|
2000-08-06 07:50:17 +02:00
|
|
|
COUNT DosSetCodepage(UWORD actCP, UWORD sysCP);
|
2001-09-23 22:39:44 +02:00
|
|
|
UWORD ASMCFUNC syscall_MUX14(DIRECT_IREGS);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* prf.c */
|
|
|
|
VOID put_console(COUNT c);
|
2002-01-23 23:29:41 +01:00
|
|
|
WORD CDECL printf(CONST BYTE * fmt, ...);
|
|
|
|
WORD CDECL sprintf(BYTE * buff, CONST BYTE * fmt, ...);
|
2001-11-18 15:01:12 +01:00
|
|
|
VOID hexd(char *title, VOID FAR * p, COUNT numBytes);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* strings.c */
|
2001-09-23 22:39:44 +02:00
|
|
|
COUNT ASMCFUNC strlen(REG BYTE * s);
|
|
|
|
COUNT ASMCFUNC fstrlen(REG BYTE FAR * s);
|
|
|
|
VOID ASMCFUNC _fstrcpy(REG BYTE FAR * d, REG BYTE FAR * s);
|
|
|
|
VOID ASMCFUNC strncpy(REG BYTE * d, REG BYTE * s, COUNT l);
|
|
|
|
COUNT ASMCFUNC strcmp(REG BYTE * d, REG BYTE * s);
|
|
|
|
COUNT ASMCFUNC fstrcmp(REG BYTE FAR * d, REG BYTE FAR * s);
|
|
|
|
COUNT ASMCFUNC fstrncmp(REG BYTE FAR * d, REG BYTE FAR * s, COUNT l);
|
|
|
|
COUNT ASMCFUNC strncmp(REG BYTE * d, REG BYTE * s, COUNT l);
|
|
|
|
void ASMCFUNC fstrncpy(REG BYTE FAR * d, REG BYTE FAR * s, COUNT l);
|
2002-02-03 23:40:24 +01:00
|
|
|
BYTE * ASMCFUNC strchr(const BYTE * s, BYTE c);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* sysclk.c */
|
|
|
|
COUNT BcdToByte(COUNT x);
|
|
|
|
COUNT BcdToWord(BYTE * x, UWORD * mon, UWORD * day, UWORD * yr);
|
|
|
|
COUNT ByteToBcd(COUNT x);
|
|
|
|
LONG WordToBcd(BYTE * x, UWORD * mon, UWORD * day, UWORD * yr);
|
|
|
|
|
|
|
|
/* syspack.c */
|
2001-09-23 22:39:44 +02:00
|
|
|
#ifdef NONNATIVE
|
2000-05-06 21:34:20 +02:00
|
|
|
VOID getdirent(BYTE FAR * vp, struct dirent FAR * dp);
|
|
|
|
VOID putdirent(struct dirent FAR * dp, BYTE FAR * vp);
|
2001-09-23 22:39:44 +02:00
|
|
|
#else
|
|
|
|
#define getdirent(vp, dp) fmemcpy(dp, vp, sizeof(struct dirent))
|
|
|
|
#define putdirent(dp, vp) fmemcpy(vp, dp, sizeof(struct dirent))
|
|
|
|
#endif
|
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
/* systime.c */
|
2001-11-18 15:01:12 +01:00
|
|
|
VOID DosGetTime(BYTE FAR * hp, BYTE FAR * mp, BYTE FAR * sp,
|
|
|
|
BYTE FAR * hdp);
|
2001-11-04 20:47:39 +01:00
|
|
|
COUNT DosSetTime(BYTE h, BYTE m, BYTE s, BYTE hd);
|
2001-11-18 15:01:12 +01:00
|
|
|
VOID DosGetDate(BYTE FAR * wdp, BYTE FAR * mp, BYTE FAR * mdp,
|
|
|
|
COUNT FAR * yp);
|
2001-11-04 20:47:39 +01:00
|
|
|
COUNT DosSetDate(UWORD Month, UWORD DayOfMonth, UWORD Year);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
2002-02-03 23:40:24 +01:00
|
|
|
const UWORD *is_leap_year_monthdays(UWORD year);
|
2001-08-19 14:58:36 +02:00
|
|
|
UWORD DaysFromYearMonthDay(UWORD Year, UWORD Month, UWORD DayOfMonth);
|
2001-03-21 03:56:26 +01:00
|
|
|
|
2000-05-06 21:34:20 +02:00
|
|
|
/* task.c */
|
|
|
|
VOID new_psp(psp FAR * p, int psize);
|
|
|
|
VOID return_user(void);
|
2001-04-15 05:21:50 +02:00
|
|
|
COUNT DosExec(COUNT mode, exec_blk FAR * ep, BYTE FAR * lp);
|
2002-08-03 18:54:09 +02:00
|
|
|
ULONG DosGetFsize(COUNT hndl);
|
2001-04-15 05:21:50 +02:00
|
|
|
VOID InitPSP(VOID);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* newstuff.c */
|
|
|
|
int SetJFTSize(UWORD nHandles);
|
|
|
|
int DosMkTmp(BYTE FAR * pathname, UWORD attr);
|
2000-05-08 06:30:00 +02:00
|
|
|
COUNT get_verify_drive(char FAR * src);
|
2002-01-23 23:29:41 +01:00
|
|
|
COUNT truename(char FAR * src, char FAR * dest, COUNT t);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
/* network.c */
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT ASMCFUNC remote_doredirect(UWORD b, UCOUNT n, UWORD d, VOID FAR * s,
|
|
|
|
UWORD i, VOID FAR * data);
|
|
|
|
COUNT ASMCFUNC remote_printset(UWORD b, UCOUNT n, UWORD d, VOID FAR * s,
|
|
|
|
UWORD i, VOID FAR * data);
|
2001-11-04 20:47:39 +01:00
|
|
|
COUNT ASMCFUNC remote_rename(VOID);
|
|
|
|
COUNT ASMCFUNC remote_delete(VOID);
|
|
|
|
COUNT ASMCFUNC remote_chdir(VOID);
|
|
|
|
COUNT ASMCFUNC remote_mkdir(VOID);
|
|
|
|
COUNT ASMCFUNC remote_rmdir(VOID);
|
|
|
|
COUNT ASMCFUNC remote_close_all(VOID);
|
|
|
|
COUNT ASMCFUNC remote_process_end(VOID);
|
|
|
|
COUNT ASMCFUNC remote_flushall(VOID);
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT ASMCFUNC remote_findfirst(VOID FAR * s);
|
|
|
|
COUNT ASMCFUNC remote_findnext(VOID FAR * s);
|
2001-11-04 20:47:39 +01:00
|
|
|
COUNT ASMCFUNC remote_getfattr(VOID);
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT ASMCFUNC remote_getfree(VOID FAR * s, VOID * d);
|
|
|
|
COUNT ASMCFUNC remote_open(sft FAR * s, COUNT mode);
|
|
|
|
LONG ASMCFUNC remote_lseek(sft FAR * s, LONG new_pos);
|
|
|
|
UCOUNT ASMCFUNC remote_read(sft FAR * s, UCOUNT n, COUNT * err);
|
|
|
|
UCOUNT ASMCFUNC remote_write(sft FAR * s, UCOUNT n, COUNT * err);
|
|
|
|
COUNT ASMCFUNC remote_creat(sft FAR * s, COUNT attr);
|
2001-11-04 20:47:39 +01:00
|
|
|
COUNT ASMCFUNC remote_setfattr(COUNT attr);
|
|
|
|
COUNT ASMCFUNC remote_printredir(UCOUNT dx, UCOUNT ax);
|
2002-01-23 23:29:41 +01:00
|
|
|
COUNT ASMCFUNC remote_commit(sft FAR * s);
|
2001-11-18 15:01:12 +01:00
|
|
|
COUNT ASMCFUNC remote_close(sft FAR * s);
|
2001-09-23 22:39:44 +02:00
|
|
|
COUNT ASMCFUNC QRemote_Fn(char FAR * s, char FAR * d);
|
2000-05-06 21:34:20 +02:00
|
|
|
|
|
|
|
UWORD get_machine_name(BYTE FAR * netname);
|
|
|
|
VOID set_machine_name(BYTE FAR * netname, UWORD name_num);
|
|
|
|
|
|
|
|
/* procsupt.asm */
|
2001-09-23 22:39:44 +02:00
|
|
|
VOID ASMCFUNC exec_user(iregs FAR * irp);
|
2000-08-06 07:50:17 +02:00
|
|
|
|
2001-03-21 03:56:26 +01:00
|
|
|
/* new by TE */
|
|
|
|
|
|
|
|
/*
|
|
|
|
assert at compile time, that something is true.
|
|
|
|
|
|
|
|
use like
|
|
|
|
ASSERT_CONST( SECSIZE == 512)
|
|
|
|
ASSERT_CONST( (BYTE FAR *)x->fcb_ext - (BYTE FAR *)x->fcbname == 8)
|
|
|
|
*/
|
|
|
|
|
2001-09-23 22:39:44 +02:00
|
|
|
#define ASSERT_CONST(x) { typedef struct { char _xx[x ? 1 : -1]; } xx ; }
|
|
|
|
|
2001-11-18 00:26:45 +01:00
|
|
|
/*
|
|
|
|
* Log: proto.h,v
|
|
|
|
*
|
|
|
|
* Revision 1.17 2000/03/31 05:40:09 jtabor
|
|
|
|
* Added Eric W. Biederman Patches
|
|
|
|
*
|
|
|
|
* Revision 1.16 2000/03/17 22:59:04 kernel
|
|
|
|
* Steffen Kaiser's NLS changes
|
|
|
|
*
|
|
|
|
* Revision 1.15 2000/03/09 06:07:11 kernel
|
|
|
|
* 2017f updates by James Tabor
|
|
|
|
*
|
|
|
|
* Revision 1.14 1999/09/23 04:40:48 jprice
|
|
|
|
* *** empty log message ***
|
|
|
|
*
|
|
|
|
* Revision 1.10 1999/08/25 03:18:09 jprice
|
|
|
|
* ror4 patches to allow TC 2.01 compile.
|
|
|
|
*
|
|
|
|
* Revision 1.9 1999/05/03 06:25:45 jprice
|
|
|
|
* Patches from ror4 and many changed of signed to unsigned variables.
|
|
|
|
*
|
|
|
|
* Revision 1.8 1999/04/23 04:24:39 jprice
|
|
|
|
* Memory manager changes made by ska
|
|
|
|
*
|
|
|
|
* Revision 1.7 1999/04/16 21:43:40 jprice
|
|
|
|
* ror4 multi-sector IO
|
|
|
|
*
|
|
|
|
* Revision 1.6 1999/04/16 12:21:22 jprice
|
|
|
|
* Steffen c-break handler changes
|
|
|
|
*
|
|
|
|
* Revision 1.5 1999/04/12 03:21:17 jprice
|
|
|
|
* more ror4 patches. Changes for multi-block IO
|
|
|
|
*
|
|
|
|
* Revision 1.4 1999/04/11 04:33:39 jprice
|
|
|
|
* ror4 patches
|
|
|
|
*
|
|
|
|
* Revision 1.2 1999/04/04 18:51:43 jprice
|
|
|
|
* no message
|
|
|
|
*
|
|
|
|
* Revision 1.1.1.1 1999/03/29 15:41:30 jprice
|
|
|
|
* New version without IPL.SYS
|
|
|
|
*
|
|
|
|
* Revision 1.4 1999/02/08 05:55:57 jprice
|
|
|
|
* Added Pat's 1937 kernel patches
|
|
|
|
*
|
|
|
|
* Revision 1.3 1999/02/01 01:48:41 jprice
|
|
|
|
* Clean up; Now you can use hex numbers in config.sys. added config.sys screen function to change screen mode (28 or 43/50 lines)
|
|
|
|
*
|
|
|
|
* Revision 1.2 1999/01/22 04:13:27 jprice
|
|
|
|
* Formating
|
|
|
|
*
|
|
|
|
* Revision 1.1.1.1 1999/01/20 05:51:01 jprice
|
|
|
|
* Imported sources
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Rev 1.11 06 Dec 1998 8:47:18 patv
|
|
|
|
*Expanded due to new I/O subsystem.
|
|
|
|
*
|
|
|
|
* Rev 1.10 07 Feb 1998 20:38:00 patv
|
|
|
|
*Modified stack fram to match DOS standard
|
|
|
|
*
|
|
|
|
* Rev 1.9 22 Jan 1998 4:09:26 patv
|
|
|
|
*Fixed pointer problems affecting SDA
|
|
|
|
*
|
|
|
|
* Rev 1.8 11 Jan 1998 2:06:22 patv
|
|
|
|
*Added functionality to ioctl.
|
|
|
|
*
|
|
|
|
* Rev 1.7 04 Jan 1998 23:16:22 patv
|
|
|
|
*Changed Log for strip utility
|
|
|
|
*
|
|
|
|
* Rev 1.6 03 Jan 1998 8:36:48 patv
|
|
|
|
*Converted data area to SDA format
|
|
|
|
*
|
|
|
|
* Rev 1.5 16 Jan 1997 12:46:44 patv
|
|
|
|
*pre-Release 0.92 feature additions
|
|
|
|
*
|
|
|
|
* Rev 1.4 29 May 1996 21:03:40 patv
|
|
|
|
*bug fixes for v0.91a
|
|
|
|
*
|
|
|
|
* Rev 1.3 19 Feb 1996 3:23:06 patv
|
|
|
|
*Added NLS, int2f and config.sys processing
|
|
|
|
*
|
|
|
|
* Rev 1.2 01 Sep 1995 17:54:26 patv
|
|
|
|
*First GPL release.
|
|
|
|
*
|
|
|
|
* Rev 1.1 30 Jul 1995 20:51:58 patv
|
|
|
|
*Eliminated version strings in ipl
|
|
|
|
*
|
|
|
|
* Rev 1.0 05 Jul 1995 11:32:16 patv
|
|
|
|
*Initial revision.
|
|
|
|
*/
|