diff --git a/libsrc/common/Makefile b/libsrc/common/Makefile index 2c850d8b3..de9459c4f 100644 --- a/libsrc/common/Makefile +++ b/libsrc/common/Makefile @@ -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 index 000000000..4a17d4910 --- /dev/null +++ b/libsrc/common/chdir.s @@ -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 + + + +