kern_descrip.c File Reference

#include <sys/kern_descrip.h>
#include <ubixos/types.h>
#include <sys/sysproto.h>
#include <sys/thread.h>
#include <lib/kprintf.h>
#include <ubixos/endtask.h>
#include <lib/kmalloc.h>
#include <assert.h>

Go to the source code of this file.

Functions

int close (struct thread *td, struct close_args *uap)
int falloc (struct thread *td, struct file **resultfp, int *resultfd)
int fcntl (struct thread *td, struct fcntl_args *uap)
int fstat (struct thread *td, struct fstat_args *uap)
int getdtablesize (struct thread *td, struct getdtablesize_args *uap)
int ioctl (struct thread *td, struct ioctl_args *uap)


Function Documentation

int close ( struct thread td,
struct close_args uap 
)

Definition at line 82 of file kern_descrip.c.

References close_args::fd, kfree(), thread::o_files, and thread::td_retval.

int falloc ( struct thread td,
struct file **  resultfp,
int *  resultfd 
)

Definition at line 63 of file kern_descrip.c.

References kmalloc(), and thread::o_files.

Referenced by pipe().

int fcntl ( struct thread td,
struct fcntl_args uap 
)

Definition at line 39 of file kern_descrip.c.

References fcntl_args::arg, fcntl_args::cmd, file::f_flag, FCNTLFLAGS, fcntl_args::fd, FFLAGS, kprintf(), O_ACCMODE, thread::o_files, and thread::td_retval.

int fstat ( struct thread td,
struct fstat_args uap 
)

Definition at line 96 of file kern_descrip.c.

References _current, fstat_args::fd, thread::o_files, fstat_args::sb, stat::st_blksize, stat::st_mode, and taskStruct::td.

int getdtablesize ( struct thread td,
struct getdtablesize_args uap 
)

Definition at line 90 of file kern_descrip.c.

References thread::td_retval.

int ioctl ( struct thread td,
struct ioctl_args uap 
)

HACK

Definition at line 108 of file kern_descrip.c.

References thread::td_retval.


Generated on Tue Dec 5 09:28:07 2006 for UbixOS V2 by  doxygen 1.4.7