FreeBSD/contrib/ntp/util/tickadj.c
/*
 * openfile - open the file, check for errors
 */
open the file, check for errors
open the file check for errors
static int
openfile(
	const char *name,
	int mode
	)
{
	int ifd;
	ifd = open(name, mode);
	if (ifd < 0)
	{
		(void) fprintf(stderr, "%s: open %s: ", progname, name);
		perror("");
		exit(1);
	}
	return ifd;
}
static int openfile ( const char * name , int mode ) { int ifd ; ifd = open ( name , mode ) ; if ( ifd < 0 ) { ( void ) fprintf ( stderr , " " , progname , name ) ; perror ( " " ) ; exit ( 1 ) ; } return ifd ; }
openfile - open the file, check for errors
openfile - open the file check for errors