summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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().
2015-07-30games/doom: display correct message on medkit pickup when health low (thanks ↵cinap_lenrek
qu7uux) due to a typo in p_inter.c:P_TouchSpecialThing(), a message that is supposed to show up when the player picks up a medikit while low on health (< 25), is never displayed. the check for low health is done after the health is already increased, so the condition is never true. a cosmetic bug in all old doom executables that also seems interesting to fix. to test: compare message displayed when picking up a medikit with and without the patch
2015-07-30games/doom: fix ouchface not being shown when it should be (thanks qu7uux)cinap_lenrek
due to a typo in st_stuff.c:ST_updateFaceWidget(), doomguy mistakenly never looks shocked when taking more than 20 damage, but rather when he gains more than 20 health while being hit. this is a cosmetic bug in all old versions of doom's executables, but it seems appropriate to fix. simple test: fire a rocket at a nearby wall, taking enough damage.
2015-07-30games/doom: add bug compatibility switches (thanks qu7uux)cinap_lenrek
these emulate bugs present in select versions of the released doom executables. they are required to correctly play demos recorded with these but affect the gameplay, so should be otherwise disabled. -nobounce: lost souls don't bounce off floors and ceilings like intended due to a misplaced check; this is fixed from ultimate doom on, but doom and doom2 are still affected. -noztele: in final doom 1.9, things' altitude was erroneously not set to the floor's height after teleporting. this was fixed in later versions of the executables. examples of desyncing demos: (plutonia.wad, without -noztele) http://doomedsda.us/lmps/946/2/30pl2646.zip (doom2.wad, without -nobounce) http://doomedsda.us/lmps/945/3/30nm2939.zip
2015-07-30games/doom: fix switch textures swapping in ultimate doom (thansk qu7uux)cinap_lenrek
gamemode is set according to the name of the main wad (cf. d_main.c), i.e.: - doom1.wad: (shareware doom1, ep1 only) gamemode == shareware - doom.wad: (registered doom1, ep1-3) gamemode == registered - doomu.wad: (ultimate doom, ep1-4) gamemode == retail - doom2.wad, plutonia.wad, tnt.wad: gamemode == commercial most doom.wad's distributed online are, in fact, ultimate doom. if your ultimate doom wad is correctly named doomu.wad, some switches in episodes 2-4 won't swap their texture when toggled, because p_switch.c:P_InitSwitchList() is only checking for registered doom1. easy way to test: demo2 in either registered or ultimate doom: the player flips a switch right at the beginning of the demo; if the main wad is called doomu.wad, the switch won't change its texture. % games/doom -playdemo demo2 if you rename the wad to doom.wad or alter d_main.c:IdentifyVersion, the switch will swap its texture like it should.
2015-07-29games/doom: implement filelength() (thanks quux)cinap_lenrek
this function is used when playing demos from external lumps. the game just exits without this patch. to test this, download a demo lump from somewhere, and play it with -playdemo %s where %s is the file's name, without the .lmp extension: (note that this one is a doom 2 demo, so it requires doom2.wad) % hget http://doomedsda.us/lmps/945/3/30nm2939.zip | unzip -sv extracting 30nm2939.LMP extracting 30nm2939.txt % mv 30nm2939.LMP 30nm2939.lmp # checking for a lump filename is case sensitive % games/doom -playdemo 30nm2939 the game exits when the demo ends. also, note that this demo will desync on map06 (the crusher), because of an unrelated bug (that's another patch :>) note: filelength() returns vlong, but file lengths for doom lumps are ints. however, this might be used elsewhere (networking), so i'd leave it this way.
2015-07-29etheriwl: add pciid for Centrino Wireless-N 1000 (thanks qu7uux)cinap_lenrek
card seems to work fine with just this. http://sysinfo.9front.org/src/125/body
2015-07-29webcookies: fix isdomainmatch() (fixes livejournal.com login)cinap_lenrek
when cookie is domain=example.com, then we implicitely add dot to the domain name, which made us reject the cookie as the request domain "example.com" != ".example.com". fix by making isdomainmatch() skip the implicit dot in pattern before string comparsion.
2015-07-29ratrace: avoid blank line prints, make writer the parentcinap_lenrek
when there where multiple syscalls returning out of order, it would print blank lines between the exits. avoid this by remembering if the last char written was a newline and conditionally insert newline on out of order return. sometimes, ratrace would return before all messages have been printed. make the writer process the parent so ratrace wont exit until all readers are finished avoiding the problem.
2015-07-29ratrace: various improvementscinap_lenrek
error handling, serialize exits, close reader filedescriptors, fix channel types, embedd the string buffer in the Msg struct.
2015-07-28cc: provide fake realloc() for getenv()cinap_lenrek
2015-07-28kernel: remove obsolete comment from namec()cinap_lenrek
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-28ether79c970: set mbps for proper queue sizes, assume gigabit ethernet for vmwarecinap_lenrek