Added the POSIX functions opendir() and closedir().

git-svn-id: svn://svn.cc65.org/cc65/trunk@5666 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-05-30 19:37:57 +00:00
parent 6952703d69
commit 08b4ed1035
4 changed files with 140 additions and 6 deletions

27
libsrc/cbm/dir.inc Normal file
View File

@@ -0,0 +1,27 @@
;
; Internal include file, do not use directly.
; Written by Ullrich von Bassewitz. Based on C code by Groepaz.
;
;------------------------------------------------------------------------------
; Data structures
.struct DIR
fd .word
offs .word
name .byte 16+1
.endstruct
;------------------------------------------------------------------------------
; C callable functions
.global _opendir
.global _closedir
.global _readdir
.global _telldir
.global _rewinddir