Merged fs0 to mm0 for simpler progress on posix api.

mm0 and all other posix dependents are building ok.
This commit is contained in:
Bahadir Balban
2009-10-04 17:34:19 +03:00
parent ed9199a972
commit f8bcd7a546
88 changed files with 593 additions and 2638 deletions

View File

@@ -47,6 +47,7 @@ struct file_descriptor {
struct task_fd_head {
struct file_descriptor fd[TASK_FILES_MAX];
struct id_pool *fdpool;
int tcb_refs;
};
@@ -55,6 +56,18 @@ struct task_vma_head {
int tcb_refs;
};
#define TCB_NO_SHARING 0
#define TCB_SHARED_VM (1 << 0)
#define TCB_SHARED_FILES (1 << 1)
#define TCB_SHARED_FS (1 << 2)
#define TASK_FILES_MAX 32
struct task_fs_data {
struct vnode *curdir;
struct vnode *rootdir;
int tcb_refs;
};
struct utcb_desc {
struct link list;
unsigned long utcb_base;
@@ -114,9 +127,6 @@ struct tcb {
unsigned long map_start;
unsigned long map_end;
/* Default ipc-shared-page information */
void *shared_page;
/* Chain of utcb descriptors */
struct utcb_head *utcb_head;
@@ -128,6 +138,8 @@ struct tcb {
/* File descriptors for this task */
struct task_fd_head *files;
struct task_fs_data *fs_data;
};
struct tcb_head {