Go to the documentation of this file.
42 struct file *fp = 0x0;
43 struct file *dup_fp = 0x0;
61 td->
o_files[i] = (
void*) dup_fp;
71 kprintf(
"[%s:%i] fdestroy(0x%X, 0x%X) failed\n", __FILE__, __LINE__, fp, td->
o_files[uap->
fd]);
73 kprintf(
"FCNTL: %i, %i, 0x%X.", i, uap->
fd, fp);
94 return (
fcntl(td, uap));
99 struct file *fp = 0x0;
163 kprintf(
"[%s:%i]",__FILE__,__LINE__);
165 kprintf(
"[%s:%i]", __FILE__, __LINE__);
177 kprintf(
"[%s:%i]",__FILE__,__LINE__);
185 struct file *fp = 0x0;
188 kprintf(
"[%s:%i]",__FILE__,__LINE__);
217 kprintf(
"[%s:%i]",__FILE__,__LINE__);
231 if (args->
fd == 0 || args->
fd == 1) {
341 if ((td->
td_retval[0] = lwip_select(args->
nd, args->
in, args->
ou, args->
ex, args->
tv)) == -1)
349 struct file *fp = 0x0;
350 struct file *dup_fp = 0x0;
356 else if (td->
o_files[to] != 0x0) {
360 kprintf(
"[%s:%i] Error with fdestroy!", __FILE__, __LINE__);
368 td->
o_files[to] = (
void*) dup_fp;
int getfd(struct thread *td, struct file **fp, int fd)
get pointer to file fd in specified thread
int sys_select(struct thread *td, struct sys_select_args *args)
int dup2(struct thread *td, u_int32_t from, u_int32_t to)
int sys_fcntl(struct thread *td, struct sys_fcntl_args *uap)
int sys_dup2(struct thread *td, struct sys_dup2_args *args)
void kfree(void *baseAddr)
int close(struct thread *td, struct close_args *uap)
int fdestroy(struct thread *td, struct file *fp, int fd)
This destroys a thread local file descriptor.
void * memcpy(const void *dst, const void *src, size_t length)
int fclose(fileDescriptor_t *fd)
int getdtablesize(struct thread *td, struct getdtablesize_args *uap)
return data table size
int fcntl(struct thread *td, struct sys_fcntl_args *uap)
int fstat(struct thread *td, struct sys_fstat_args *uap)
int falloc(struct thread *td, struct file **resultfp, int *resultfd)
void * kmalloc(uInt32 len)
int ioctl(struct thread *td, struct ioctl_args *uap)
ioctl functionality not implimented yet
int sys_ioctl(struct thread *td, struct sys_ioctl_args *args)
int kprintf(const char *,...)