fdesc.h File Reference

#include <libc.h>

Go to the source code of this file.

Data Structures

struct  iovec
struct  s_fshare

Defines

#define __POSIX_FDESC_H__   1
#define FDESCOPT_NOCACHE   (1<<0u)

Typedefs

typedef s_fshare t_fshare

Enumerations

enum  t_fdesc_suberrno_codes {
  FDESC_NOT_IN_LTABLE = 100, FDESC_NOT_AVAIL, FDESC_BAD_REFCNT, FDESC_PROP_FETCH,
  FDESC_PROP_STORE, FDESC_PROP_DELETE, FDESC_PROP_ATTACH, FDESC_PROP_DETACH
}

Functions

void fdesc_init (void)
void fdesc_cache_invalidate (void)
void fdesc_cache_add (int fd, t_fshare *fshare, int refcnt)
int fdesc_cache_get (int fd, t_fshare *fshare, int *refcnt)
void fdesc_cache_dump (void)
t_fdescfdesc_get_i (int fd)
int fshare_get (resid_t resid, t_fshare *fshare, int *refcnt)
int fdesc_get (int d, u_int32_t fdescopts, t_fdesc **fdesc, t_fshare *fshare, int *refcnt, char *s)
int fdesc_nextd (int from)
int fshare_add (resid_t *resid, int gate, int gate_id, mode_t perm)
int fshare_rm (resid_t resid)
int fdesc_add (int d, resid_t resid, int statusfl, int fl)
int fdesc_rm (t_fdesc *fdesc, t_fshare *fshare, int refcnt)
void fdesc_dump (void)


Define Documentation

#define __POSIX_FDESC_H__   1
 

#define FDESCOPT_NOCACHE   (1<<0u)
 


Typedef Documentation

typedef struct s_fshare t_fshare
 


Enumeration Type Documentation

enum t_fdesc_suberrno_codes
 

Enumerator:
FDESC_NOT_IN_LTABLE 
FDESC_NOT_AVAIL 
FDESC_BAD_REFCNT 
FDESC_PROP_FETCH 
FDESC_PROP_STORE 
FDESC_PROP_DELETE 
FDESC_PROP_ATTACH 
FDESC_PROP_DETACH 


Function Documentation

int fdesc_add int  d,
resid_t  resid,
int  statusfl,
int  fl
 

add a fd

void fdesc_cache_add int  fd,
t_fshare fshare,
int  refcnt
 

void fdesc_cache_dump void   ) 
 

int fdesc_cache_get int  fd,
t_fshare fshare,
int *  refcnt
 

void fdesc_cache_invalidate void   ) 
 

void fdesc_dump void   ) 
 

dump local table (debug)

int fdesc_get int  d,
u_int32_t  fdescopts,
t_fdesc **  fdesc,
t_fshare fshare,
int *  refcnt,
char *  s
 

get full fd information

t_fdesc* fdesc_get_i int  fd  ) 
 

void fdesc_init void   ) 
 

initializes local fd table

int fdesc_nextd int  from  ) 
 

get next free descriptor

int fdesc_rm t_fdesc fdesc,
t_fshare fshare,
int  refcnt
 

removes a fd - refcnt should be theorical refcnt

int fshare_add resid_t resid,
int  gate,
int  gate_id,
mode_t  perm
 

add a fshare struct

int fshare_get resid_t  resid,
t_fshare fshare,
int *  refcnt
 

get fshare struct associated to resid

int fshare_rm resid_t  resid  ) 
 

remove a fshare struct


Generated on Wed May 24 23:05:57 2006 for LSE/OS by  doxygen 1.4.6