krbfileio.c revision 159d09a20817016f09b3ea28d1bdada4a336bb91
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "k5-int.h"
#include <fcntl.h>
#ifndef O_BINARY
#define O_BINARY 0
#endif
{
int fd;
int open_flag;
/*
* Make sure file name is reserved.
* The O_BINARY flag is not a supported flag in the Solaris
* open(2) system call, but it is included here to be consistent
* with other open calls in the Kerberos library code.
*/
if (fd == -1) {
return (errno);
} else {
return (0);
}
}
{
return (errno);
}
return (errno);
}
return (0);
}