open

Name

open -- open a file

Synopsis

#include <sys/stat.h>
#include <fcntl.h>

int open(const char *path, int oflag, ...);

Description

The open function shall behave as specified in ISO POSIX (2003), except with differences as listed below.

May return ENODEV in place of ENXIO

Where ISO POSIX (2003) specifies an ENXIO return, a conforming implementation may return either ENXIO or ENODEV. Implementations are encouraged to return ENXIO.

NoteRationale
 

As of spring 2004, no Linux kernel patches to switch to ENXIO are known, but it is believed that such a kernel patch would be accepted if submitted.