]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
8 years ago9660srv: keep data and metadata separate in the cache with a tag
cinap_lenrek [Tue, 14 Jul 2015 20:23:16 +0000 (22:23 +0200)]
9660srv: keep data and metadata separate in the cache with a tag

data on the disk is layed out sequentially and directory information
is at the end of the disk. we want to keep data and metadata separated
so that reading large sequential files will not evict the directory
information from the cache causing long seeks.

for that, we tag the clusters (an 8th for metadata, and the rest
for data) and getbuf() will only evict clusters of the same tag.

8 years ago9660srv: go back to 128k clusters
cinap_lenrek [Mon, 13 Jul 2015 16:37:56 +0000 (18:37 +0200)]
9660srv: go back to 128k clusters

doing tests taring up 9front.iso shows the following:

lowering the cluster size back to 128k avoids over half the
reads. 837888 sectors read for 512k vs. 347712 sectors with
128k cluster size.

8 years agoinst: fix download task using ip/httpfile to mount a iso over http and prompt for...
cinap_lenrek [Mon, 13 Jul 2015 04:28:46 +0000 (06:28 +0200)]
inst: fix download task using ip/httpfile to mount a iso over http and prompt for installurl

8 years agohttpfile: fix evictblock() so we wont consume all the memory
cinap_lenrek [Mon, 13 Jul 2015 03:51:04 +0000 (05:51 +0200)]
httpfile: fix evictblock() so we wont consume all the memory

8 years agolibFLAC: fix compiler warnings by properly declaring void function arguments
cinap_lenrek [Mon, 13 Jul 2015 00:56:51 +0000 (02:56 +0200)]
libFLAC: fix compiler warnings by properly declaring void function arguments

8 years agopython: HAVE_STDINT_H 1
cinap_lenrek [Mon, 13 Jul 2015 00:38:05 +0000 (02:38 +0200)]
python: HAVE_STDINT_H 1

8 years agoape: add stdint.h, fix SSIZE_MAX and add SIZE_MAX to limits.h
cinap_lenrek [Mon, 13 Jul 2015 00:36:48 +0000 (02:36 +0200)]
ape: add stdint.h, fix SSIZE_MAX and add SIZE_MAX to limits.h

8 years agocpp: search source file directory first for quoted #include (thanks Ori_B)
cinap_lenrek [Sun, 12 Jul 2015 22:54:56 +0000 (00:54 +0200)]
cpp: search source file directory first for quoted #include (thanks Ori_B)

foo.c includes bar/bar.h, which includes "baz.h"; it wants bar/baz.h
meanwhile, it also includes meh/quux.h, which includes "baz.h"; it wants meh/baz.h

8 years agoether82563: fix multicast filter (based on openbsd em(4) driver)
cinap_lenrek [Sun, 12 Jul 2015 17:21:53 +0000 (19:21 +0200)]
ether82563: fix multicast filter (based on openbsd em(4) driver)

8 years agopage: make lookahead fetch work in backwards direction
cinap_lenrek [Sat, 11 Jul 2015 00:42:14 +0000 (02:42 +0200)]
page: make lookahead fetch work in backwards direction

8 years agotftpd: count only options we understand so we wont send empty oack message
cinap_lenrek [Sat, 11 Jul 2015 00:35:49 +0000 (02:35 +0200)]
tftpd: count only options we understand so we wont send empty oack message

8 years agoetherrt2860: add multicast stub
cinap_lenrek [Sat, 11 Jul 2015 00:34:28 +0000 (02:34 +0200)]
etherrt2860: add multicast stub

8 years agoetheriwl: add multicast stub
cinap_lenrek [Sat, 11 Jul 2015 00:33:57 +0000 (02:33 +0200)]
etheriwl: add multicast stub

8 years agoetherwpi: dont enable transmit power for invalid channels, add multicast stub
cinap_lenrek [Sat, 11 Jul 2015 00:33:16 +0000 (02:33 +0200)]
etherwpi: dont enable transmit power for invalid channels, add multicast stub

8 years agowifi: reflect current transmit rate in mbps
cinap_lenrek [Fri, 10 Jul 2015 17:13:15 +0000 (19:13 +0200)]
wifi: reflect current transmit rate in mbps

8 years agoetherwpi: afra support
cinap_lenrek [Fri, 10 Jul 2015 16:59:57 +0000 (18:59 +0200)]
etherwpi: afra support

8 years agoetheriwl: dont clear descriptors after completion
cinap_lenrek [Fri, 10 Jul 2015 16:50:37 +0000 (18:50 +0200)]
etheriwl: dont clear descriptors after completion

8 years agowifi: adjust transmit rate on error (for etheriwl), small mkfile changes
cinap_lenrek [Fri, 10 Jul 2015 07:04:05 +0000 (09:04 +0200)]
wifi: adjust transmit rate on error (for etheriwl), small mkfile changes

Wnode gets two new counters: txcount and txerror
and actrate pointer that will be between minrate
and maxrate.

driver should use actrate instead of maxrate for
transmission when it can provide error feedback.

when a driver detects a transmission failed, it calls
wifitxfail() with the original packet. wifitxfail() then
reduces wn->actrate.

every 256th packet, we optimistically increase wn->actrate
before transmitting.

8 years agokernel: use HDR_MAGIC constant to handle Exec header extension, make rebootcmd()...
cinap_lenrek [Fri, 10 Jul 2015 21:56:39 +0000 (23:56 +0200)]
kernel: use HDR_MAGIC constant to handle Exec header extension, make rebootcmd() handle AOUT_MAGIC macro

8 years agosysexec(): need () arround AOUT_MAGIC comparsion to handle #define hack on mips
cinap_lenrek [Thu, 9 Jul 2015 06:51:38 +0000 (08:51 +0200)]
sysexec(): need () arround AOUT_MAGIC comparsion to handle #define hack on mips

8 years agosysexec(): make the mips compiler happy
cinap_lenrek [Thu, 9 Jul 2015 06:34:20 +0000 (08:34 +0200)]
sysexec(): make the mips compiler happy

8 years agokernel: reject bogus two byte "#!" shell scripts in sysexec()
cinap_lenrek [Thu, 9 Jul 2015 06:03:18 +0000 (08:03 +0200)]
kernel: reject bogus two byte "#!" shell scripts in sysexec()

- reject files smaller or equal to two bytes, they are bogus
- fix out of bounds access in shargs() when n <= 2
- only copy the bytes read into line buffer
- use nil for pointers instead of 0

8 years agokernel: various cleanups of imagereclaim(), pagereclaim(), freepages(), putimage()
cinap_lenrek [Wed, 8 Jul 2015 22:01:50 +0000 (00:01 +0200)]
kernel: various cleanups of imagereclaim(), pagereclaim(), freepages(), putimage()

imagereclaim(), pagereclaim():
- move imagereclaim() and pagereclaim() declarations to portfns.h
- consistently use ulong type for page counts
- name number of pages to free "pages" instead of "min"
- check for pages == 0 on entry

freepages():
- move pagechaindone() call to wakeup newpage() consumers inside
  palloc critical section.

putimage():
- use long type for refcount

8 years ago5e: enable VFP emulation by default, doubles only need to be 4 byte aligned
cinap_lenrek [Wed, 8 Jul 2015 00:13:16 +0000 (02:13 +0200)]
5e: enable VFP emulation by default, doubles only need to be 4 byte aligned

this adds -F flag to 5e (same as 5l) to disable VFP emulation
and makes VFP emulation the default.

9 years agopc64: use unsigned long for kmapindex and mmu counts avoiding signed integer division
cinap_lenrek [Tue, 7 Jul 2015 19:13:36 +0000 (21:13 +0200)]
pc64: use unsigned long for kmapindex and mmu counts avoiding signed integer division

9 years agoape: port libc smp tas() for arm
cinap_lenrek [Tue, 7 Jul 2015 17:53:26 +0000 (19:53 +0200)]
ape: port libc smp tas() for arm

9 years agolibc/arm: implement _tas() with LDREX/STREX, execute memory barrier on smp systems...
cinap_lenrek [Tue, 7 Jul 2015 17:24:10 +0000 (19:24 +0200)]
libc/arm: implement _tas() with LDREX/STREX, execute memory barrier on smp systems (zynq)

9 years agoall kernels: declare _tas() to prevent pulling in libc version (for libmemdraw)
cinap_lenrek [Tue, 7 Jul 2015 17:17:55 +0000 (19:17 +0200)]
all kernels: declare _tas() to prevent pulling in libc version (for libmemdraw)

9 years ago5e: approximate LL/SC with cas()
cinap_lenrek [Tue, 7 Jul 2015 04:30:34 +0000 (06:30 +0200)]
5e: approximate LL/SC with cas()

9 years ago5e: make sure stack base is aligned to avoid unaligned memory trap on arm
cinap_lenrek [Tue, 7 Jul 2015 04:26:56 +0000 (06:26 +0200)]
5e: make sure stack base is aligned to avoid unaligned memory trap on arm

9 years agoopen(2): fix typo
stanley lieber [Thu, 2 Jul 2015 01:46:47 +0000 (21:46 -0400)]
open(2): fix typo

9 years agonusb/audio: dont sysfatal on bad endpoint (no altc)
cinap_lenrek [Mon, 29 Jun 2015 20:28:23 +0000 (22:28 +0200)]
nusb/audio: dont sysfatal on bad endpoint (no altc)

9 years agonusbrc: handle fat formated usb drives without partition table
cinap_lenrek [Sun, 28 Jun 2015 19:50:30 +0000 (21:50 +0200)]
nusbrc: handle fat formated usb drives without partition table

on some usb drives, there is no dos partition table, so check
the filesystem type and consider the whole drive.

9 years agoetherwpi: remove debug prints, use iprint() in interrupt
cinap_lenrek [Sun, 28 Jun 2015 19:13:34 +0000 (21:13 +0200)]
etherwpi: remove debug prints, use iprint() in interrupt

9 years agowpa: do not prompt for key when there is already one in factotum
cinap_lenrek [Sun, 28 Jun 2015 18:40:19 +0000 (20:40 +0200)]
wpa: do not prompt for key when there is already one in factotum

9 years agoetherwpi: Intel PRO Wireless 3945abg driver based on openbsd's if_wpi (thanks aap)
cinap_lenrek [Sun, 28 Jun 2015 16:32:54 +0000 (18:32 +0200)]
etherwpi: Intel PRO Wireless 3945abg driver based on openbsd's if_wpi (thanks aap)

9 years agopc, pc64: toggle bit 2 in port 0x61 to reset and enable PCI SERR# nmi's, print nmi...
cinap_lenrek [Sun, 28 Jun 2015 16:22:36 +0000 (18:22 +0200)]
pc, pc64: toggle bit 2 in port 0x61 to reset and enable PCI SERR# nmi's, print nmi status

9 years agoapprox: chmod 775
stanley lieber [Sat, 27 Jun 2015 23:45:24 +0000 (19:45 -0400)]
approx: chmod 775

9 years agoadded approx(1)
aiju [Sat, 27 Jun 2015 20:00:33 +0000 (22:00 +0200)]
added approx(1)

9 years agofortunes: No we can't.
stanley lieber [Fri, 26 Jun 2015 18:10:01 +0000 (14:10 -0400)]
fortunes: No we can't.

9 years agowifi: berlin prime bunny hopping
cinap_lenrek [Sun, 21 Jun 2015 17:35:08 +0000 (19:35 +0200)]
wifi: berlin prime bunny hopping

- reduce delay for channel hop to 200ms
- use 1000ms timeout for auth response (dont hop channels while we wait)
- bunny hop sequence is mathematically prooven

9 years ago5e: implement DSB,DMB,ISB and CLREX instructions
cinap_lenrek [Fri, 19 Jun 2015 12:43:32 +0000 (14:43 +0200)]
5e: implement DSB,DMB,ISB and CLREX instructions

9 years agokernel: do not pull in atom.s from libc for arm kernels
cinap_lenrek [Fri, 19 Jun 2015 08:27:26 +0000 (10:27 +0200)]
kernel: do not pull in atom.s from libc for arm kernels

- provide our own copy of cas() in l.s
- replace use of libc ainc()/adec() with portable incref()/decref()

9 years agoexec(2): return register (R0) contains address of Tos structure.
cinap_lenrek [Fri, 19 Jun 2015 07:02:59 +0000 (09:02 +0200)]
exec(2): return register (R0) contains address of Tos structure.

9 years agokernel: ignore last page at the top of virtual kernel address space for xalloc()
cinap_lenrek [Fri, 19 Jun 2015 00:45:58 +0000 (02:45 +0200)]
kernel: ignore last page at the top of virtual kernel address space for xalloc()

avoding kernel address -BY2PG because of end pointer wrapping to zero.

9 years agondb(6): fix typo (thanks, pena)
stanley lieber [Thu, 18 Jun 2015 19:14:06 +0000 (15:14 -0400)]
ndb(6): fix typo (thanks, pena)

9 years agodhcpd(8): the fs attribute refers to the file server, not the name server (thanks...
stanley lieber [Thu, 18 Jun 2015 18:28:25 +0000 (14:28 -0400)]
dhcpd(8): the fs attribute refers to the file server, not the name server (thanks, pena)

9 years agozynq: use KADDR() for kmap() if we can avoiding the mapping
cinap_lenrek [Thu, 18 Jun 2015 10:16:54 +0000 (12:16 +0200)]
zynq: use KADDR() for kmap() if we can avoiding the mapping

9 years agokernel: ignore memory pages with singular kernel addresses
cinap_lenrek [Thu, 18 Jun 2015 10:15:33 +0000 (12:15 +0200)]
kernel: ignore memory pages with singular kernel addresses

addresses va's of 0 and -BY2PG cause trouble with some memmove()/memset()
implementations and possibly other code because of the nil pointer
and end pointers wrapping to zero.

9 years agozynq: fix barriers
cinap_lenrek [Thu, 18 Jun 2015 02:35:46 +0000 (04:35 +0200)]
zynq: fix barriers

unlock()/iunlock():

we need to place the coherence() *before* "l->key = 0", so that any
stores that where done while holding the lock become observable
*before* other processors see the lock released.

cas()/tas():

place memory barrier before successfull return to prevent reordering.

9 years agokernel: do not inherit Proc.dot (current working directory) in kproc()
cinap_lenrek [Thu, 18 Jun 2015 01:13:50 +0000 (03:13 +0200)]
kernel: do not inherit Proc.dot (current working directory) in kproc()

making sure to close the dot in every kproc appears repetitive,
so instead stop inheriting the dot in kproc() as this is usually
never what you wanted in the first place.

9 years agokernel: do not inherit current directory channel (dot) to pager
cinap_lenrek [Thu, 18 Jun 2015 20:58:56 +0000 (22:58 +0200)]
kernel: do not inherit current directory channel (dot) to pager

kproc() inherits dot and slash, pager needs to drop these
channels, otherwise it will keep the files open preventing
say, ramfs to exit.

9 years agousps: cut the useless part
ftrvxmtrx [Wed, 17 Jun 2015 16:07:32 +0000 (18:07 +0200)]
usps: cut the useless part

9 years agostats: add kernel malloc and kernel draw allocation size graphs
cinap_lenrek [Tue, 16 Jun 2015 06:08:42 +0000 (08:08 +0200)]
stats: add kernel malloc and kernel draw allocation size graphs

9 years agodevcons: add current pool allocations to #c/swap
cinap_lenrek [Tue, 16 Jun 2015 06:05:33 +0000 (08:05 +0200)]
devcons: add current pool allocations to #c/swap

9 years agokernel: remove waserror() arround newpage() in mntcache
cinap_lenrek [Tue, 16 Jun 2015 04:05:12 +0000 (06:05 +0200)]
kernel: remove waserror() arround newpage() in mntcache

newpage() does not raise error().

9 years agokernel: add pagechaindone() to wakeup processes waiting for memory
cinap_lenrek [Mon, 15 Jun 2015 15:40:47 +0000 (17:40 +0200)]
kernel: add pagechaindone() to wakeup processes waiting for memory

we keep the details about palloc in page.c, providing pagechaindone()
for mmu code to be called after a series of pagechainhead() calls.

9 years agodontkill: only use noswap flag to mark processes as not to be terminated on oom
cinap_lenrek [Mon, 15 Jun 2015 15:13:19 +0000 (17:13 +0200)]
dontkill: only use noswap flag to mark processes as not to be terminated on oom

changing procmode has the nasty side effect that notes cannot
be posted to them, prventing sysfatal() and threadexitsall()
to cleanup properly.

recent kernels also check the noswap flag to void killing them
in out of memory condition, so this is really all we need now.

9 years agothere's plenty of room in /lib
aiju [Mon, 15 Jun 2015 14:27:27 +0000 (16:27 +0200)]
there's plenty of room in /lib

9 years agokernel: implement separate wait queues for page allocation
cinap_lenrek [Mon, 15 Jun 2015 14:05:00 +0000 (16:05 +0200)]
kernel: implement separate wait queues for page allocation

give kernel processes and local disk file servers (procs
having noswap flag set) a clear advantage for page allocation
under starved condition by giving them ther own wait queue so
they get readied as soon as pages become available.

9 years agohjfs: defer parent directory permission check for wstat
cinap_lenrek [Mon, 15 Jun 2015 06:28:10 +0000 (08:28 +0200)]
hjfs: defer parent directory permission check for wstat

check parent directory permission *after* we determined
that the new name does not exist in the parent, so that
when the new name is the same as old name then no write
permission is required in the parent directory.

9 years agohjfs: fix wstat
cinap_lenrek [Sun, 14 Jun 2015 23:57:54 +0000 (01:57 +0200)]
hjfs: fix wstat

- rename to same name is ok
- only truncate when file size is different
- check for uid/gid *change*, not if it is specified or not

9 years agonusb/serial: remove unused channel
cinap_lenrek [Sun, 14 Jun 2015 22:30:19 +0000 (00:30 +0200)]
nusb/serial: remove unused channel

9 years agozynq: remove unused PTE typedef
cinap_lenrek [Mon, 15 Jun 2015 20:32:15 +0000 (22:32 +0200)]
zynq: remove unused PTE typedef

all the mmu code uses ulong, so get rid of the typeded.

9 years agozynq: remove unused statistics fields from Mach structure
cinap_lenrek [Mon, 15 Jun 2015 20:13:55 +0000 (22:13 +0200)]
zynq: remove unused statistics fields from Mach structure

9 years agondb/dns: cleanup forwarding code (redistrib())
cinap_lenrek [Sun, 14 Jun 2015 19:31:44 +0000 (21:31 +0200)]
ndb/dns: cleanup forwarding code (redistrib())

instead of copying the whole packet, just save the
udp header and restore it aftwards. dont call redistrib()
when there are no forwards (this should be almost always
the case).

9 years agotheo: You are on your own.
stanley lieber [Sun, 14 Jun 2015 00:34:33 +0000 (20:34 -0400)]
theo: You are on your own.

9 years agoaux/vga: == is not strncmp
ftrvxmtrx [Sat, 13 Jun 2015 19:28:33 +0000 (21:28 +0200)]
aux/vga: == is not strncmp

9 years agohtmlroff: fix wrong newline in \name handling (| -> ||)
cinap_lenrek [Sat, 13 Jun 2015 18:58:56 +0000 (20:58 +0200)]
htmlroff: fix wrong newline in \name handling (| -> ||)

9 years agoqc, 9/ppc, 9/mtx: fix wrong if statements
ftrvxmtrx [Sat, 13 Jun 2015 18:21:26 +0000 (20:21 +0200)]
qc, 9/ppc, 9/mtx: fix wrong if statements

9 years agokernel: dont use smalloc() to allocate pte array in ibrk()
cinap_lenrek [Sat, 13 Jun 2015 15:50:26 +0000 (17:50 +0200)]
kernel: dont use smalloc() to allocate pte array in ibrk()

when we'r out of kernel memory, it is probably better to
let that alloc fail instead of hanging while holding the
segment qlock.

9 years agovblade, cifs, usbuhci: fix parenthesis
cinap_lenrek [Sat, 13 Jun 2015 13:03:56 +0000 (15:03 +0200)]
vblade, cifs, usbuhci: fix parenthesis

9 years agolock: reopen lockfile after changing mode to make lock effective
cinap_lenrek [Sat, 13 Jun 2015 13:01:02 +0000 (15:01 +0200)]
lock: reopen lockfile after changing mode to make lock effective

lock is acquired on open/create when file has DMEXCL set in mode,
so we need to reopen the file after setting the bit with wstat.

9 years agolib9p: fix lib9p wstat qid.type/mode checks (fixes lock(1) for ramfs/hjfs)
cinap_lenrek [Sat, 13 Jun 2015 10:43:15 +0000 (12:43 +0200)]
lib9p: fix lib9p wstat qid.type/mode checks (fixes lock(1) for ramfs/hjfs)

9 years agondb/dns: use same buffer size of udp packet in redistrib() as dnudpserver() (fixes...
cinap_lenrek [Sat, 13 Jun 2015 20:37:26 +0000 (22:37 +0200)]
ndb/dns: use same buffer size of udp packet in redistrib() as dnudpserver() (fixes assert)

9 years agogames/doom: remove Makefile
cinap_lenrek [Fri, 12 Jun 2015 15:50:43 +0000 (17:50 +0200)]
games/doom: remove Makefile

9 years agogames/doom: fix desyncing demo (thanks qwx)
cinap_lenrek [Fri, 12 Jun 2015 15:28:09 +0000 (17:28 +0200)]
games/doom: fix desyncing demo (thanks qwx)

the code used P_Random()-P_Random() in some places which has
undefined evaluation order resulting in the wrong pseudo random
numbers being returned causing demo playback to desync.

this change adds P_Random2() function which returns the right
delta-random number and uses it in place of P_Random()-P_Random()
expression.

9 years agokernel: fix accounttime() for HZ >= 1000
cinap_lenrek [Fri, 12 Jun 2015 12:28:31 +0000 (14:28 +0200)]
kernel: fix accounttime() for HZ >= 1000

"milli-CPU's" is too low resolution for the decaying load average
calculation when HZ >= 1000.

9 years agozynq: increase kernel memory for graphics
cinap_lenrek [Thu, 11 Jun 2015 19:26:26 +0000 (21:26 +0200)]
zynq: increase kernel memory for graphics

9 years agozynq: mouse acceleration
cinap_lenrek [Thu, 11 Jun 2015 14:44:05 +0000 (16:44 +0200)]
zynq: mouse acceleration

9 years agozynq: make screen and cursor kprocs exit properly
cinap_lenrek [Thu, 11 Jun 2015 14:14:11 +0000 (16:14 +0200)]
zynq: make screen and cursor kprocs exit properly

9 years agozynq: add support for hardware cursor
cinap_lenrek [Thu, 11 Jun 2015 14:04:24 +0000 (16:04 +0200)]
zynq: add support for hardware cursor

to enable hardware cursor, write "addr va" to /dev/mousectl where
va is the virtual address of the cursor position register.

9 years agomerge
ftrvxmtrx [Thu, 11 Jun 2015 20:14:24 +0000 (22:14 +0200)]
merge

9 years agofix strncmp/memcmp used with a wrong number
ftrvxmtrx [Thu, 11 Jun 2015 20:13:55 +0000 (22:13 +0200)]
fix strncmp/memcmp used with a wrong number

9 years agocifsd: smbrename is still ok when file is readonly (fixed git)
cinap_lenrek [Wed, 10 Jun 2015 15:18:31 +0000 (17:18 +0200)]
cifsd: smbrename is still ok when file is readonly (fixed git)

9 years agozynq: fix flushmemscreen()
cinap_lenrek [Tue, 9 Jun 2015 23:27:44 +0000 (01:27 +0200)]
zynq: fix flushmemscreen()

9 years agoremove drawlsetrefresh and convM2Tnoenc: undefined functions
ftrvxmtrx [Tue, 9 Jun 2015 16:25:09 +0000 (18:25 +0200)]
remove drawlsetrefresh and convM2Tnoenc: undefined functions

9 years agoaddpt(2): put badrect in .SH NAME so that it gets into the searchindex
ftrvxmtrx [Tue, 9 Jun 2015 10:32:38 +0000 (12:32 +0200)]
addpt(2): put badrect in .SH NAME so that it gets into the searchindex

9 years agoesetcursor(2), alarm(2): fix prototypes
ftrvxmtrx [Tue, 9 Jun 2015 10:29:57 +0000 (12:29 +0200)]
esetcursor(2), alarm(2): fix prototypes

9 years agoevent(2): fix estartfn prototype
ftrvxmtrx [Tue, 9 Jun 2015 09:54:22 +0000 (11:54 +0200)]
event(2): fix estartfn prototype

9 years agoauthsrv.h: remove nonexistent prototypes
ftrvxmtrx [Tue, 9 Jun 2015 09:46:37 +0000 (11:46 +0200)]
authsrv.h: remove nonexistent prototypes

9 years agolibdraw: sync allocimage/allocwindow prototypes with man pages
ftrvxmtrx [Tue, 9 Jun 2015 08:33:30 +0000 (10:33 +0200)]
libdraw: sync allocimage/allocwindow prototypes with man pages

9 years agoip: fix wrong radix for iphash() (thanks yoann padioleau)
cinap_lenrek [Tue, 9 Jun 2015 08:04:04 +0000 (10:04 +0200)]
ip: fix wrong radix for iphash() (thanks yoann padioleau)

yoann padioleaus report on 9fans:

> I think I’ve found a bug in the network stack.
> in 9/ip/ip.h there is
> struct Ipht
> {
>  Lock;
>  Iphash *tab[Nipht];
> };
>
> where Night is 521,
>
> but then in 9/ip/ipaux.c there is
>
> ulong
> iphash(uchar *sa, ushort sp, uchar *da, ushort dp)
> {
>  return ((sa[IPaddrlen-1]<<24) ^ (sp << 16) ^ (da[IPaddrlen-1]<<8) ^ dp ) % Nhash;
> }
>
> where Nhash is just 64,

9 years agozynq: add /dev/fbctl to attach framebuffer to devdraw
cinap_lenrek [Tue, 9 Jun 2015 07:17:55 +0000 (09:17 +0200)]
zynq: add /dev/fbctl to attach framebuffer to devdraw

9 years agodevsegment: fix parsecmd() memory leak
cinap_lenrek [Tue, 9 Jun 2015 01:33:37 +0000 (03:33 +0200)]
devsegment: fix parsecmd() memory leak

9 years agolibdraw: consistent use of nil for pointers, error handling
cinap_lenrek [Mon, 8 Jun 2015 23:42:59 +0000 (01:42 +0200)]
libdraw: consistent use of nil for pointers, error handling

9 years agounix is BUGGERED. remove it
ftrvxmtrx [Mon, 8 Jun 2015 22:15:59 +0000 (00:15 +0200)]
unix is BUGGERED. remove it

9 years agoauthsrv: remove unused opasstokey
ftrvxmtrx [Tue, 9 Jun 2015 21:53:07 +0000 (23:53 +0200)]
authsrv: remove unused opasstokey

9 years agoaddpt(2): document badrect function
ftrvxmtrx [Tue, 9 Jun 2015 21:34:36 +0000 (23:34 +0200)]
addpt(2): document badrect function

9 years agofreeimage(2), readcolmap(2), writecolmap(2): fix prototypes
ftrvxmtrx [Tue, 9 Jun 2015 21:23:00 +0000 (23:23 +0200)]
freeimage(2), readcolmap(2), writecolmap(2): fix prototypes