summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-06kernel: use Etoolong[] constant instead of string literal in validname0()cinap_lenrek
2015-08-06kernel: make shargs() function static in sysproc.ccinap_lenrek
2015-08-06kernel: reject empty argv (argv[0] == nil) in sysexec()cinap_lenrek
when executing a script, we did advance argp0 unconditionally to replace argv[0] with the script name. this fails when argv[] is empty, then we'd advance argp0 past the nil terminator. the alternative would be to *not* advance if *argp0 == nil, but that would require another validaddr() check for a case that is unlikely to have been anticipated in most programs being invoked as libc's ARGBEGIN macro assumes argv[0] being non-nil as it also unconditionally advances the argv pointer. to keep us sane, we now reject an empty argv[]. on entry, we verify that argv[] is valid for at least two elements: - the program name argv[0], has to be non-nil - the first potential nil terminator in argv[1] when argv[0] == nil, we throw Ebadarg "bad arg in system call"
2015-08-05init: do not run $home/lib/profile when cd $home failedcinap_lenrek
avoiding follow up error messages, which is annoying and quite common when running a terminal as "none" for testing.
2015-08-05kfs: set permission of / to 0775 on reamcinap_lenrek
this allows members of the -1 group to create new directories in / without having to fiddle with the fileserver console. this also makes it consistent to hjfs and cwfs.
2015-08-05cwfs: set permission of / to 0775 on reamcinap_lenrek
this allows members of the -1 group to create new directories in / without having to fiddle with the fileserver console. this also makes it consistent to hjfs.
2015-08-05pc, pc64: remove unused psaux driver, cleanup devkbdcinap_lenrek
the psaux driver is not used in any kernel configuration and theres no userspace mouse daemon. i8042auxcmds() is wrong as access to the user buffer can fault and we are holding an ilocks. little cleanups in devkbd.
2015-08-05devkbd: disable mosue/keyboard on shutdown, disable ps2 mouse on init, ↵cinap_lenrek
remove kbdenable()/kbdinit() on vmware, loading a new kernel sometimes reboots when wiggling the mouse. disabling keyboard and mouse on shutdown fixes the issue. make sure ps2 mouse is disabled on init, will get re-enabled in i8042auxenable(). keyboard isnt special anymore, we can just use the devreset entry point in the device to do the keyboard initialization, so kbdinit()/kbdenable() are not needed anymore.
2015-08-04kernel: remove unused qstate() functioncinap_lenrek
2015-08-04devkbd: poll pc keyboard before blocking on kbd.qcinap_lenrek
the keyboard stops sending interrupts when its fifo gets full, which can happen on boot when keys get mashed while interrupts are still disabled. to work arround this, call the keyboard interrupt handler when kbd.q is starved before blocking.
2015-08-04python: use altzonecinap_lenrek
2015-08-04ape: implement altzone for tzset()cinap_lenrek
2015-08-04ape: fix mktime() againcinap_lenrek
2015-08-03resample: simplify getint()cinap_lenrek
2015-08-03libc: make atoi() not parse c-style octal and hex numberscinap_lenrek
interpreting octal breaks parsing of decimal numbers with leading zeros. the manpage listed this in the BUGS section, so we'r going to fix it as this just causes confusion as most callers of atoi() do not expect it.
2015-08-03crop: use strtol() instead of atoi()cinap_lenrek
2015-08-03bitsy: replace atoi() calls with strtol() when hex can be expctedcinap_lenrek
2015-08-03pc, pc64: replace atoi() calls with strtol() when hex can be expctecinap_lenrek
2015-08-03kernel: dont rely on atoi() parsing hex for netif/devbridgecinap_lenrek
2015-08-03webcookies: fix typocinap_lenrek
2015-08-039pcon: use strtol() to parse integerscinap_lenrek
2015-08-03libcontrol: use strtol() to parse integer argumentscinap_lenrek
2015-08-03libhttpd: use strtol to parse decimal character references in httpunesc()cinap_lenrek
2015-08-03snoopy: dont rely on atoi() being able to parse hexcinap_lenrek
2015-08-03bitsy/keyboard: do not rely on atoi() being able to parse hexcinap_lenrek
2015-08-03libauthsrv: readnvram() use vlong for nvroff, parse $nvlen/$nvoff with ↵cinap_lenrek
strtol() instead of atoi()
2015-08-03webcookies: use strtol() to parse HH:MM:SScinap_lenrek
atoi() currently interprets leading zeros as octal (BUG!), so use strtol with explicit base 10 avoiding the issue.
2015-08-03aux/vga: dont rely on atoi() being able to parse hexcinap_lenrek
2015-08-03devenv: simplify envremove(), cleanupcinap_lenrek
2015-08-02devenv: avoid indirection, keep Evalue's allocated in an arraycinap_lenrek
avoid the indirection for envlookup() by allocating Evalue structs together in an array. remove unused link field in Evalue.
2015-08-021c,2c,7c,kc,vc: honor suppress condition for outstring() in swt.ccinap_lenrek
2015-08-02ipv6on: fix search for ip attribute (thanks kenji arisawa)cinap_lenrek
2015-08-02pc, pc64: set *bootscreen= when framebuffer changescinap_lenrek
add bootscreenconf(VGAscr *) function, that is called whenever the framebuffer configuration is changed by devvga. that way, we can pass the current setting of the framebuffer to the new kernel when using /dev/reboot.
2015-08-02kernel: cleanup qlock.c to use nil instead of 0 for pointerscinap_lenrek
2015-08-01mothra: show <source> tag within <video>/<audio> tagscinap_lenrek
2015-08-01mothra: fix nil crash on missing name/src attributes for ↵cinap_lenrek
source/video/audio/embed/frame/iframe
2015-08-01mothra: enable compiler warnings and type checking, cleanupcinap_lenrek
2015-08-01mothra: fix double button hitcinap_lenrek
dolink() was hitting the button a second time!
2015-08-01mothra: cleanup url handlingcinap_lenrek
2015-08-01mothra: fix selurl()cinap_lenrek
2015-08-01jpg/ico: fix mkfilecinap_lenrek
2015-08-01mothra: support for inline images and <image> tagcinap_lenrek
2015-08-01webcookies: create lockfile with 0600 permission, always use create() with ↵cinap_lenrek
perm 0600 for rewriting jar
2015-08-01bio(2): Bterm() closes filedescriptor for Bfdopen() allocated buffercinap_lenrek
2015-07-31jpg/ico: support for embedded png iconscinap_lenrek
2015-07-31webcookies: fix implicit path cookie handlingcinap_lenrek
parsecookie() used to inplace modify the request path for implicit path (to get the directory from path) and also did it wrong. now have a static copy and do not remove the last slash.
2015-07-31aux/vga: sandybridge support for igfx (unfinished)cinap_lenrek
as usual, the dude with the hardware vanished so i cannot develop this further. setting mode worked the last time but only when using vesa before, so some bits are still missing. commiting this as it is so i dont have to start from scratch once we have hardware again.
2015-07-31iostats: add -C to usagecinap_lenrek
2015-07-30devmnt: fix mntcache()cinap_lenrek
make sure mntcache() wont cache data beyond what was read from the block list.
2015-07-30games/doom: fix config file never being loaded or saved (thanks qu7uux)cinap_lenrek
basedefault[], the default path to the config file, is never set and remains blank, unless -config %s is used (cd d_main.c). when games/doom attempts to open the file, it silently fails and no config file is ever read or written. this patch sets basedefault to a file in whatever directory a valid wad is found in I_IdentifyWAD().