SC_OPEN(2)
SCORE-D SYSTEM CALLS
SC_OPEN(2)
NAME
sc_open - open a SCore-D device

SYNOPSIS
#include <sc.h>

int sc_open(int* scfd, char* devname, char** argv);

DESCRIPTION
The sc_open() function opens a device and creates a file descriptor for the opened I/O device. If the opened descriptor is global, the descriptor can be used from any processing node in a parallel process once it is opened. The devname character string must be a device name.

RETURN VALUES
sc_open() returns 0 on success or one of the following errors:

ERRORS
ENODEV
No such device
EBUSY
Cannot open device
EIO
Cannot communicate with device process
EINTR
Job is restarted from a checkpoint during the systemcall

SEE ALSO
sc_close(2)

CREDIT
This document is a part of the SCore cluster system software developed at PC Cluster Consortium, Japan. Copyright (C) 2003 PC Cluster Consortium.