CompuServe Messages

Porting Database

    23-May-93 09:22:22
Sb: #34901-Porting Database
Fm: Doug Walker 71165,2274
To: John Toebes/SYSOP 70007,3467
John is correct (of course) – you should always use the compiler's version of a prototype if possible. As to why it's different, our version of open() corresponds to the version used on most recent UNIX systems. The problem is that open() uses two parameters MOST OF THE TIME, and a third parameter if the open mode is O_CREAT (Also as John says.) UNIX code tends to only pass 2 parameters except when O_CREAT is specified. This makes open() a varargs function, according to the ANSI standard. –Doug