New SDK dos.library/DeleteFile and /SetFileDate gone?

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
JosDuchIt
Posts: 291
Joined: Sun Jun 26, 2011 6:47 pm
Contact:

New SDK dos.library/DeleteFile and /SetFileDate gone?

Post by JosDuchIt »

I am quite sure the new SDK is great, but ..?

I get undefined references to DeleteFile & SetFileDate
dos.doc still mentions DeleteFile and SetFileDate but they don't appear any more as library functions

SEE ALSO
GetVar(), SetVar(), FindVar(), DeleteFile(), <dos/var.h>

SEE ALSO
DateToStr(), StrToDate(), SetFileDate(), CompareDates(),
SecondsToDateStamp(), DateStampToSeconds()

Some defines disappeared too
dosextens.h (old)
#define cli_CommandDir cli_PathList /* old source compatibility - disappeared*/

dos.h (old)
#define LOCK_SAME_HANDLER LOCK_SAME_VOLUME
User avatar
salass00
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 534
Joined: Sat Jun 18, 2011 4:12 pm
Location: Finland
Contact:

Re: New SDK dos.library/DeleteFile and /SetFileDate gone?

Post by salass00 »

Either add "#include <dos/obsolete.h>" to your code or switch to the new names:

DeleteFile() -> Delete()
SetFileDate() -> SetDate()

The old function names were misleading since they apply to directories as well as files.
Post Reply