opengame.c
970 Bytes
/**************************************************************************
* *
* Copyright (C) 1995, Silicon Graphics, Inc. *
* *
* These coded instructions, statements, and computer programs contain *
* unpublished proprietary information of Silicon Graphics, Inc., and *
* are protected by Federal copyright law. They may not be disclosed *
* to third parties or copied or duplicated in any form, in whole or *
* in part, without the prior written consent of Silicon Graphics, Inc. *
* *
**************************************************************************/
#include <fcntl.h>
#include <ultrahost.h>
#include <sys/u64gio.h>
/*
* Name: uhOpenGame
*
* Description:
* Open the given device file and set appropriate modes for
* host <> game data transfer.
*/
int uhOpenGame(const char *pathName)
{
int fd;
if ((fd = open(pathName, O_RDWR)) == -1)
return(-1);
return(fd);
}