source: buchla-68k/libcio/filesys.x@ 6262b5c

Last change on this file since 6262b5c was 6262b5c, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added include files for global functions and variables.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1#pragma once
2
3#include "biosdefs.h"
4#include "stdint.h"
5
6/*
7 =============================================================================
8 filesys.c -- global variables
9 =============================================================================
10*/
11
12extern int32_t _berrno;
13extern int16_t _bpbin;
14extern int16_t _dirin;
15extern int16_t _dirmod;
16extern struct dirent *_dptr;
17extern int16_t _fatin;
18extern int16_t _fatmod;
19extern struct bpb *_thebpb;
20extern struct dirent _thedir[224];
21extern uint16_t _thefat[7 * 256];
22
23/*
24 =============================================================================
25 filesys.c -- global functions
26 =============================================================================
27*/
28
29extern int16_t ClsFile(struct fcb *fcp);
30extern int16_t DelFile(struct fcb *fcp);
31extern int16_t _alcnew(struct fcb *fcp);
32extern uint16_t _cl2lsn(struct bpb *bpp, uint16_t clnum);
33extern void _clsvol(void);
34extern void _deadio(struct fcb *fcp, int16_t err);
35extern struct dirent *_dsnew(void);
36extern struct dirent *_dsrch(struct dirent *de);
37extern int16_t _fmake(struct fcb *fcp);
38extern int16_t _ftrnc(struct dirent *dp);
39extern uint16_t _getfat(uint16_t *bufad, uint16_t nfat, struct bpb *bpp);
40extern uint16_t _gtcl12(int8_t *fat, uint16_t cl);
41extern int16_t _inifcb(struct fcb *fcp, int8_t *name, int8_t *ext, int16_t mode);
42extern int16_t _newcls(void);
43extern int16_t _nsic(struct fcb *fcp, struct bpb *bpp, int8_t *fp);
44extern int16_t _opfcb(struct fcb *fcp);
45extern int16_t _opnvol(void);
46extern int16_t _rdfat(uint16_t *bufad, struct bpb *bpp);
47extern int16_t _rdroot(uint16_t *buf, struct bpb *bpp);
48extern int16_t _seek(struct fcb *fcp);
49extern int16_t fcbinit(int8_t *name, struct fcb *fcp);
50
Note: See TracBrowser for help on using the repository browser.