mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +00:00
Make close() fastcall
git-svn-id: svn://svn.cc65.org/cc65/trunk@1530 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
70bc177714
commit
9e74c2b26f
@ -58,7 +58,7 @@ typedef long int off_t;
|
||||
|
||||
/* Functions */
|
||||
int open (const char* name, int flags, ...); /* May take a mode argument */
|
||||
int close (int fd);
|
||||
int __fastcall__ close (int fd);
|
||||
int write (int fd, const void* buf, unsigned count);
|
||||
int read (int fd, void* buf, unsigned count);
|
||||
int mkdir (const char* name, ...); /* May take a mode argument */
|
||||
|
@ -10,7 +10,6 @@
|
||||
.import fdtoiocb_down,__inviocb
|
||||
|
||||
.proc _close
|
||||
jsr popax
|
||||
jsr fdtoiocb_down ; get iocb index into X and decr. usage count
|
||||
bmi inverr
|
||||
bne ok ; not last one -> don't close yet
|
||||
|
Loading…
Reference in New Issue
Block a user