krbfileio.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "k5-int.h"
#include <fcntl.h>
#ifndef O_BINARY
#define O_BINARY 0
#endif
/*ARGSUSED*/
const char * pathname;
{
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);
}
}
/*ARGSUSED*/
{
return (errno);
}
return (errno);
}
return (0);
}