CompuServe Messages

#Porting Database

    22-May-93 19:17:00
Fm: John Toebes/SYSOP 70007,3467
To: JAMES MORRIS 71756,247
There are a couple of ways that you could do this. The variable arguments for the prototype for open allows an optional protection word for creat type calls. Only when you specify O_CREAT as an open mode is this variable referenced. The #if is probably your best way to deal with it. Note that if mix is attempting to declare a prototype for open and then call it, you are better off just not having that prototype in the mix header files. Basically, anything that is part of the compiler library should be declared by the compiler include files and not redeclared by the program using it.