Main Page | Alphabetical List | Class List | File List | Class Members | File Members

fcntl_os1.h File Reference

#include <nlibc.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <os1/defs_os1.h>
#include <errno.h>

Include dependency graph for fcntl_os1.h:

Include dependency graph

Go to the source code of this file.

Defines

#define O_RDONLY   00
#define O_WRONLY   01
#define O_RDWR   02
#define O_CREAT   0100
#define O_TRUNC   01000
#define O_APPEND   02000
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2

Typedefs

typedef int ssize_t

Functions

int open (const char *pathname, int flags,...)
int creat (const char *pathname, mode_t mode)
ssize_t read (int fd, void *buf, size_t count)
ssize_t write (int fd, void *buf, size_t count)
int close (int fd)
off_t lseek (int fildes, off_t offset, int whence)


Define Documentation

#define O_APPEND   02000
 

Definition at line 26 of file fcntl_os1.h.

#define O_CREAT   0100
 

Definition at line 24 of file fcntl_os1.h.

Referenced by creat().

#define O_RDONLY   00
 

Definition at line 21 of file fcntl_os1.h.

#define O_RDWR   02
 

Definition at line 23 of file fcntl_os1.h.

#define O_TRUNC   01000
 

Definition at line 25 of file fcntl_os1.h.

Referenced by creat().

#define O_WRONLY   01
 

Definition at line 22 of file fcntl_os1.h.

Referenced by creat().

#define SEEK_CUR   1
 

Definition at line 461 of file fcntl_os1.h.

Referenced by _fsetpos(), and lseek().

#define SEEK_END   2
 

Definition at line 462 of file fcntl_os1.h.

Referenced by _fsetpos(), and lseek().

#define SEEK_SET   0
 

Definition at line 460 of file fcntl_os1.h.

Referenced by _fsetpos(), fsetpos(), lseek(), and rewind().


Typedef Documentation

typedef int ssize_t
 

Definition at line 28 of file fcntl_os1.h.


Function Documentation

int close int  fd  ) 
 

int creat const char *  pathname,
mode_t  mode
[inline]
 

Definition at line 146 of file fcntl_os1.h.

References mode_t, O_CREAT, O_TRUNC, O_WRONLY, and open().

off_t lseek int  fildes,
off_t  offset,
int  whence
[inline]
 

Definition at line 466 of file fcntl_os1.h.

References __NLCC_OS1_MAX_FILES__, EBADF, EINVAL, errno, off_t, SEEK_CUR, SEEK_END, and SEEK_SET.

int open const char *  pathname,
int  flags,
... 
 

Referenced by creat().

ssize_t read int  fd,
void *  buf,
size_t  count
 

ssize_t write int  fd,
void *  buf,
size_t  count
 


Generated on Mon Feb 20 15:54:24 2006 for nlibc by doxygen 1.3.5