summaryrefslogtreecommitdiff
path: root/sysfile.c
AgeCommit message (Collapse)AuthorFilesLines
2007-08-22PDF at http://am.lcs.mit.edu/~rsc/xv6.pdfrsc1-103/+211
Various changes made while offline. + bwrite sector argument is redundant; use b->sector. + reformatting of files for nicer PDF page breaks + distinguish between locked, unlocked inodes in type signatures + change FD_FILE to FD_INODE + move userinit (nee proc0init) to proc.c + move ROOTDEV to param.h + always parenthesize sizeof argument
2007-08-21ARGMAX -> MAXARGSrsc1-3/+3
2007-08-21Various cleanup:rsc1-187/+32
- Got rid of dummy proc[0]. Now proc[0] is init. - Added initcode.S to exec /init, so that /init is just a regular binary. - Moved exec out of sysfile to exec.c - Moved code dealing with fs guts (like struct inode) from sysfile.c to fs.c. Code dealing with system call arguments stays in sysfile.c - Refactored directory routines in fs.c; should be simpler. - Changed iget to return *unlocked* inode structure. This solves the lookup-then-use race in namei without introducing deadlocks. It also enabled getting rid of the dummy proc[0].
2007-08-20checkpoint - simpler namei interfacersc1-31/+36
2007-08-10avoid assignments in declarationsrsc1-1/+1
2007-08-10Make cp a magic symbol.rsc1-6/+1
2007-08-09oopsrsc1-1/+1
2007-08-09try to use cp only for curproc[cpu()]rsc1-11/+12
2007-08-08save process name for debuggingrsc1-2/+8
2006-09-07fix ide, pit interfacesrsc1-1/+1
2006-09-07fix pipe bugrsc1-0/+2
2006-09-07refactor syscall codersc1-186/+142
2006-09-06wrap long linesrsc1-2/+6
2006-09-06fd_* => file_*rsc1-13/+13
2006-09-06fd.* -> file.*rsc1-1/+1
2006-09-06struct fd -> struct filersc1-19/+19
2006-09-06split syscall.c into sysfile.c and sysproc.crsc1-0/+477