summaryrefslogtreecommitdiff
path: root/syscall.c
AgeCommit message (Collapse)AuthorFilesLines
2007-08-24nitsrsc1-2/+3
2007-08-24Add yield system call, for zombie test program (bad idea?).rsc1-0/+2
2007-08-24simplify ide queuingrtm1-1/+1
nits in comments
2007-08-21Various cleanup:rsc1-1/+0
- 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-14formattingrsc1-0/+1
2007-08-10Make cp a magic symbol.rsc1-4/+1
2007-08-09try to use cp only for curproc[cpu()]rsc1-9/+9
2007-08-08convert syscall dispatch to tablersc1-64/+28
2006-09-07refactor syscall codersc1-32/+39
2006-09-07comment fixesrsc1-1/+1
2006-09-06for vs whilersc1-1/+1
2006-09-06fd.* -> file.*rsc1-1/+1
2006-09-06split syscall.c into sysfile.c and sysproc.crsc1-517/+19
2006-09-06writeable => writablersc1-3/+3
2006-09-06no /* */ commentsrsc1-14/+10
2006-09-06standardize various * conventionsrsc1-25/+25
2006-08-30complain if no disk 1rtm1-10/+1
lots of cleanup
2006-08-29clear killed flag in exitrtm1-3/+0
idecref cwd in exit
2006-08-29prune unneeded panics and debug outputrtm1-1/+1
2006-08-29i broke sbrk, fix itrtm1-2/+3
2006-08-29clean up stale error checks and panicsrtm1-3/+3
delete unused functions a few comments
2006-08-26consistently ignore more than 14 chars in path componentrtm1-8/+22
forbid create or write of existing directory mkdir("d1/d2/d3"), .. should refer to d2, not cwd mkdir increase parent link count
2006-08-26mkdir check error from mknodrtm1-2/+4
chdir return -1 if target not a dir
2006-08-25inode addrs[NDIRECT] -> NADDRSrtm1-11/+21
fix race in mknod / creat use last component in dirent in mknod, not path
2006-08-24user-level malloc (untested)kaashoek1-19/+5
nit in sbrk indirect block fix dup to share fd struct
2006-08-23i/o redirection in shkaashoek1-0/+29
better parsing of sh commands (copied from jos sh) cat: read from 1 if no args sbrk system call, but untested getpid system call moved locks in keyboard intr, but why do we get intr w. null characters from keyboard?
2006-08-20compiling, but untested dupkaashoek1-5/+24
2006-08-20removed block system callkaashoek1-41/+20
renumber system calls (run gmake clean!) skeleton for dup system call
2006-08-19chdirkaashoek1-1/+42
cd in shell nits in mkdir, ls, etc.
2006-08-14set size for directories correctly in wdir and mkfskaashoek1-1/+11
mkdir ls shows stat info for each dir entry
2006-08-14start on mkdirkaashoek1-0/+28
stat
2006-08-13fix iget() bug that allocated in-use inode[] entriesrtm1-1/+2
2006-08-13namei returns locked parent dir inode for create / unlinkrtm1-3/+3
don't hold fd table lock across idecref() (latter does block i/o) idecref calls iput() in case last ref -> freeing inode dir size is 512 * # blocks, so readi/writei &c work unlink deletes dirent even if ip->nlink > 0
2006-08-13link()rtm1-1/+18
2006-08-12fix getblk to actually lock the blockrtm1-53/+0
no more cons_put system calls usertests tests two processes writing files
2006-08-12fstatkaashoek1-0/+26
primitive ls
2006-08-12unlink,mknod,create with multi-component pathnames should work nowkaashoek1-12/+6
remove console init code from userfs
2006-08-11fix deadlock---iput(dp) asapkaashoek1-28/+8
working unlink, but doesn't free dir blocks that become empty remove out-of-date comment in ioapic
2006-08-11init creates console, opens 0/1/2, runs shrtm1-5/+12
sh accepts 0-argument commands (like userfs) reads from console
2006-08-10low-level keyboard input (not hooked up to /dev yet)rtm1-0/+1
fix acquire() to cli() *before* incrementing nlock make T_SYSCALL a trap gate, not an interrupt gate sadly, various crashes if you hold down a keyboard key...
2006-08-10printfkaashoek1-0/+27
convert userfs to use printf bfree ifree writei start on unlink
2006-08-09iread for T_DEVkaashoek1-10/+19
O_RDWR, etc. create file
2006-08-09fix test program: don't close before writingkaashoek1-8/+1
set fd to writeable on open for write
2006-08-09devswkaashoek1-2/+7
checkpoint: write(fd,"hello\n",6) where fd is a console dev almost works
2006-08-08fix race in holding() check in acquire()rtm1-0/+1
give cpu1 a TSS and gdt for when it enters scheduler() and a pseudo proc[] entry for each cpu cpu0 waits for each other cpu to start up read() for files
2006-08-08mknod,ialloc,iupdatekaashoek1-0/+38
2006-08-07bwritekaashoek1-0/+8
2006-08-04better interrupt plan---this one appears to workkaashoek1-0/+1
ioapic
2006-07-29open()rtm1-0/+39
2006-07-28exec argumentsrtm1-7/+63