From: Piotr Fusik (P.Fusik_at_elka.pw.edu.pl)
Date: 2003-01-07 10:49:10
Hi! Next comments: fcntl.h: >>> There could be: >>> #define creat(name,mode) open(name,O_WRONLY|O_CREAT|O_TRUNC,mode) typedef long int off_t; int __fastcall__ close (int fd); int __fastcall__ write (int fd, const void* buf, unsigned count); int __fastcall__ read (int fd, void* buf, unsigned count); int rmdir (const char* name); off_t __fastcall__ lseek(int fd, off_t offset, int whence); >>> I think these should go to unistd.h, together with: >>> #define SEEK_SET 0 >>> #define SEEK_CUR 1 >>> #define SEEK_END 2 >>> (note these defines are wrong in stdio.h) int mkdir (const char* name, ...); /* May take a mode argument */ >>> Should go to sys/stat.h. stdio.h: #define unlink(name) remove (name) /* Unix */ >>> Should go to unistd.h. Probably exporting 'unlink' equal to 'remove' >>> is better than a macro. Piotr ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-01-07 10:49:27 CET