Mail Archives: djgpp-workers/2001/10/09/10:39:34
> diff -Nu /cvsroot/djgpp/src/libc/dos/io/_findfir.c /djgpp-cvs/src/libc/dos/io/_findfir.c
> --- /cvsroot/djgpp/src/libc/dos/io/_findfir.c Thu Jan 1 00:00:00 1970
> +++ /djgpp-cvs/src/libc/dos/io/_findfir.c Tue Oct 9 10:29:10 2001
> @@ -0,0 +1,113 @@
> +#include <libc/stubs.h>
> +#include <libc/dosio.h>
> +#include <stdlib.h>
> +#include <string.h>
> +#include <errno.h>
> +#include <time.h>
> +#include <fcntl.h>
> +#include <go32.h>
> +#include <dpmi.h>
> +#include <dir.h>
> +#include <io.h>
> +
> +extern time_t __dostime_to_time_t(unsigned short dosdate, unsigned short dostime);
> +
> +time_t __dostime_to_time_t(unsigned short dosdate, unsigned short dostime)
> +{
This one is undocumented. Document it. And break it out into its own
file. Others perhaps can give some reasonable place to put it.
...
> --- /cvsroot/djgpp/include/io.h Thu Feb 1 20:39:54 2001
> +++ /djgpp-cvs/include/io.h Tue Oct 9 11:00:12 2001
> @@ -24,6 +36,9 @@
> int _dos_lock(int _fd, long _offset, long _length);
> int _dos_lk64(int _fd, long long _offset, long long _length);
> long filelength(int _handle);
> +long _findfirst(const char *pathname, struct _finddata_t *fileinfo);
> +int _findnext(long handle, struct _finddata_t *fileinfo);
> +int _findclose(long handle);
The formal arguments in prototyes should have "_" prepended.
Right,
MartinS
- Raw text -