work/bootstrap/gec17.c
EIF_BOOLEAN eif_file_exists(EIF_FILENAME name) {
	int status;					/* System call status */
	rt_stat_buf buf;			/* Buffer to get file statistics */

	status = eif_file_stat (name, &buf, 1);

#ifdef EOVERFLOW
	if (status == -1) {
			/* If the file is larger than what our file routines can handle
			 * it does not mean that the file does not exist. It does but we
			 * cannot handle it.
			 * This is needed to be able to check existence of file bigger than 2GB.
			 */
		return (errno == EOVERFLOW ? EIF_TRUE : EIF_FALSE);
	} else {
		return EIF_TRUE;
	}
#else
	return (status == -1 ? EIF_FALSE : EIF_TRUE);
#endif
}
/*
 * Test whether file exists or not. If `name' represents a symbolic link,
 * it will check that pointed file does exist.
 */
Test whether file exists or not. If `name' represents a symbolic link,
it will check that pointed file does exist.
Test whether file exists or not . If ` name ' represents a symbolic link it will check that pointed file does exist .
EIF_BOOLEAN eif_file_exists(EIF_FILENAME name) {
	int status;					
	rt_stat_buf buf;			
	status = eif_file_stat (name, &buf, 1);
#ifdef EOVERFLOW
	if (status == -1) {
		return (errno == EOVERFLOW ? EIF_TRUE : EIF_FALSE);
	} else {
		return EIF_TRUE;
	}
#else
	return (status == -1 ? EIF_FALSE : EIF_TRUE);
#endif
}
EIF_BOOLEAN eif_file_exists ( EIF_FILENAME name ) { int status ; rt_stat_buf buf ; status = eif_file_stat ( name , & buf , 1 ) ; #ifdef EOVERFLOW if ( status == -1 ) { return ( errno == EOVERFLOW ? EIF_TRUE : EIF_FALSE ) ; } else { return EIF_TRUE ; } #else return ( status == -1 ? EIF_FALSE : EIF_TRUE ) ; #endif }
Test whether file exists or not.
Test whether file exists or not .
/* System call status */ /* Buffer to get file statistics */ /* If the file is larger than what our file routines can handle
			 * it does not mean that the file does not exist. It does but we
			 * cannot handle it.
			 * This is needed to be able to check existence of file bigger than 2GB.
			 */