summaryrefslogtreecommitdiff
path: root/syscall.c
AgeCommit message (Collapse)AuthorFilesLines
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
2006-07-27primitive execrtm1-3/+97
2006-07-21nameirtm1-1/+11
2006-07-21breadrtm1-21/+21
iget mkfs makes a file system image put this in your .bochsrc: ata0-slave: type=disk, mode=flat, path="fs.img", cylinders=1024, heads=1, spt=1
2006-07-20uint32_t -> uint &crtm1-0/+2
2006-07-18prevent longjmp / forkret from writing over tf->edirtm1-5/+3
2006-07-17add ide_lock for sleeprsc1-1/+4
2006-07-17add uint and standardize on typedefs instead of unsignedrsc1-10/+10
2006-07-17goodbye PushRegsrsc1-2/+2
2006-07-16standardize on not using foo_ prefix in struct foorsc1-3/+6
2006-07-16add cons_puts for atomic (readable) outputrsc1-5/+40
2006-07-16Attempt to clean up newproc somewhat.rsc1-8/+5
Also remove all calls to memcpy in favor of memmove, which has defined semantics when the ranges overlap. The fact that memcpy was working in console.c to scroll the screen is not guaranteed by all implementations.
2006-07-16New scheduler.rsc1-1/+2
Removed cli and sti stack in favor of tracking number of locks held on each CPU and explicit conditionals in spinlock.c.
2006-07-15move everything having to do with proc_table_lock into proc.crsc1-46/+9
2006-07-15Add void for ANSI Crsc1-13/+11
2006-07-15Change fetchint, fetcharg, and putint to return -1 on error, 0 on success.rsc1-5/+5
They had been returning 0 on error, 1 on success, but all the callers were checking for return value < 0.
2006-07-15no more recursive locksrtm1-9/+24
wakeup1() assumes you hold proc_table_lock sleep(chan, lock) provides atomic sleep-and-release to wait for condition ugly code in swtch/scheduler to implement new sleep fix lots of bugs in pipes, wait, and exit fix bugs if timer interrupt goes off in schedule() console locks per line, not per byte
2006-07-12no more big kernel lockrtm1-0/+10
succeeds at usertests.c pipe test