Re: [Freedos-kernel] sys.c issues

2004-02-24 Thread Arkady V.Belousov
Hi! BTW, for checking target drive validness I add next code (where `drive' is a drive letter): __O\_/_\_/O__ { static char src [] = :\\, dst [SYS_MAXPATH] /*= */; src [0] = drive; truename (dst, src); if (dst [0] =

Re: [Freedos-kernel] sys.c issues

2004-02-23 Thread Arkady V.Belousov
Hi! 23--2004 09:03 [EMAIL PROTECTED] (Kenneth J. Davis) wrote to [EMAIL PROTECTED]: else if (memicmp(argp, BOTH, 4) == 0 !both) - AIU, there should be stricmp() (or third parameter of memicmp() should be increased to include zero byte)? KJD Could, but its more of, are exact arguments here

[Freedos-kernel] sys.c issues

2004-02-22 Thread Arkady V.Belousov
Hi! BOOL copy(COUNT drive, BYTE * srcPath, BYTE * rootPath, BYTE * file) [...] if (!check_space(drive, filelength(fdin))) { printf(%s: Not enough space to transfer %s\n, pgm, file); close(fdin); exit(1); } [...] if (write(fdout, copybuffer, ret) != ret) {