Open ExoSkye opened 1 year ago
I've since been informed that getcwd
and getwd
should be possible to implement by Andy - so I'll implement those when I get home
I'm going to set this as ready to review since I believe, other than certain stubbed functions, this is ready to go
I say this, and then completely forget to actually add the .c
file to the makefile, whoops, i'll fix that rq
Can confirm that this built locally with no hiccups
Ok, I've implemented a Win32 error code to errno function which just uses a switch statement (I felt that that would be easier for a compiler to optimise, there's even a chance that given there's no IO in it, it could optimise it away completely)
fnmerge
andfnsplit
haven't been implemented since I noticed inconsistencies in the documentation relating to them, for now I simply have empty function definitions in the form described by https://www.digitalmars.com/rtl/direct.html (ie no_
prefix)The status of other functions is as follows:
_chdir
,_chdrive
: impossible to implement, succeeds without an error code, or change of state in the Xbox_getcwd
,_getwd
: impossible to implement, return NULL pointers and setserrno
to-EINVAL
_getdrive
: as before, impossible to implement - returns0
and setserrno
to-EINVAL
(this is the error state described by a combo of MS public documentation and digital mars docs)_searchpath
: impossible to implement since there is no PATH variable on the Xbox_mkdir
,_rmdir
: implemented, testing required, howeverMAXPATH
,MAXDRIVE
defined, however these may be incorrect right now (they were taken from DOS-era documentation)Should fix #466 when complete