summaryrefslogtreecommitdiff
path: root/sys/src/9/port/sysfile.c
AgeCommit message (Collapse)Author
2016-05-16avoid updating offset in pread; avoid diagnostic about vlong mask (charles ↵cinap_lenrek
forsyth)
2015-08-09kernel: mount flag is int not ulong, reduce size of Mount struct by putting ↵cinap_lenrek
mflag field in what would be wasted as padding
2015-07-28kernel: export mntattach() from devmnt.c avoiding bogus struct passing and ↵cinap_lenrek
special case in namec() we already export mntauth() and mntversion(), so why not stop being sneaky and just export mntattach() so bindmount() and devshr can just call it directly with proper arguments being checked. we can also avoid handling #M attach specially in namec() by having the devmnt's attach function do error(Enoattach).
2015-07-23kernel: make sure fd is in range in fdclose()cinap_lenrek
as the Fgrp can be shared with other processes, we have to recheck the fd index after locking the Fgrp in fdclose() to make sure not to read beyond the bounds of the fd array.
2015-07-23kernel: simplify syspipe()cinap_lenrek
2015-07-22kernel: consistent use of nil for pointer in sysfile.ccinap_lenrek
2014-08-08kernel: use nil for pointers instead of 0, zero channel umc and dirrock in ↵cinap_lenrek
newchan()
2014-05-26kernel: simplify fdclose()cinap_lenrek
2014-05-20add _nsec() syscall 53 for binary compatibility with labs distributioncinap_lenrek
the new syscall is added under the symbol _nsec() for binary compatibility. nsec() is still a library function reading /dev/bintime.
2014-02-02kernel: do not pass user address of fd[2] array to newfd2()cinap_lenrek
access to user memory can pagefault and newfd2() holds fgrp spinlock while writing to it. make temporary copy on the stack in syspipe().
2014-01-20kernel: apply uintptr for ulong when a pointer is storedcinap_lenrek
this change is in preparation for amd64. the systab calling convention was also changed to return uintptr (as segattach returns a pointer) and the arguments are now passed as va_list which handles amd64 arguments properly (all arguments are passed in 64bit quantities on the stack, tho the upper part will not be initialized when the element is smaller than 8 bytes). this is partial. xalloc needs to be converted in the future.
2012-04-27async clunk for cached mounts, fix closeproc explosioncinap_lenrek
2011-08-11eqlock(): use eqlock when interruption is possiblecinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen