]> git.sur5r.net Git - cc65/commitdiff
New chdir() function
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 12 Aug 2003 13:24:25 +0000 (13:24 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 12 Aug 2003 13:24:25 +0000 (13:24 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2273 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/Makefile
libsrc/common/chdir.s [new file with mode: 0644]

index 2c850d8b37e367d348fc19c1b9077897c65d8833..de9459c4f06b8b61181eb62d1577da32a6f1f6f9 100644 (file)
@@ -72,6 +72,7 @@ S_OBJS =      _fdesc.o        \
                atexit.o        \
                atoi.o          \
                calloc.o        \
+                chdir.o         \
                copydata.o      \
                 creat.o         \
                 ctime.o         \
diff --git a/libsrc/common/chdir.s b/libsrc/common/chdir.s
new file mode 100644 (file)
index 0000000..4a17d49
--- /dev/null
@@ -0,0 +1,24 @@
+;
+; Ullrich von Bassewitz, 2003-08-12
+;
+; int __fastcall__ chdir (const char* name);
+;
+
+        .export         _chdir
+
+        .import         __syschdir
+        .import         oserrcheck
+
+
+;--------------------------------------------------------------------------
+
+.proc   _chdir
+
+        jsr     __syschdir      ; Call the machine specific function
+        jmp     oserrcheck      ; Store into _oserror, set errno, return 0/-1
+
+.endproc
+
+
+
+