]> git.lizzy.rs Git - plan9front.git/log
plan9front.git
10 years agogs: fix /undefined in --setcolor-- errors on amd64
cinap_lenrek [Sun, 4 May 2014 22:49:26 +0000 (00:49 +0200)]
gs: fix /undefined in --setcolor-- errors on amd64

10 years agomerge
ftrvxmtrx [Sun, 4 May 2014 01:16:37 +0000 (03:16 +0200)]
merge

10 years agovga font: hammer and sickle
ftrvxmtrx [Sun, 4 May 2014 01:16:11 +0000 (03:16 +0200)]
vga font: hammer and sickle

10 years agofonts: add swastika to naga10. fixes swastika in default font
ftrvxmtrx [Sun, 4 May 2014 20:14:45 +0000 (22:14 +0200)]
fonts: add swastika to naga10. fixes swastika in default font

10 years agogs: remove PStorage data type from ttf interpreter
cinap_lenrek [Sat, 3 May 2014 22:17:27 +0000 (00:17 +0200)]
gs: remove PStorage data type from ttf interpreter

i dont see that pointers are stored in PStorage at all,
so just use PLong directly avoding all this confusion.

10 years agogs: fix truetype interpreter for amd64
cinap_lenrek [Sun, 4 May 2014 21:31:59 +0000 (23:31 +0200)]
gs: fix truetype interpreter for amd64

10 years agofix threadsetname usage in few places
ftrvxmtrx [Sat, 3 May 2014 11:07:52 +0000 (13:07 +0200)]
fix threadsetname usage in few places

10 years agothread.h: varargck argpos for threadsetname
ftrvxmtrx [Sat, 3 May 2014 10:09:53 +0000 (12:09 +0200)]
thread.h: varargck argpos for threadsetname

10 years agobio.h: add varargck argpos pragma for Berror
ftrvxmtrx [Sat, 3 May 2014 09:46:01 +0000 (11:46 +0200)]
bio.h: add varargck argpos pragma for Berror

10 years agouniq: document -s option (thanks heaumer)
ftrvxmtrx [Sat, 3 May 2014 09:38:36 +0000 (11:38 +0200)]
uniq: document -s option (thanks heaumer)

10 years agouniq: use Bsize for buffers
ftrvxmtrx [Sat, 3 May 2014 08:48:13 +0000 (10:48 +0200)]
uniq: use Bsize for buffers

10 years agocwfs: fix 1GB memsize limitation
cinap_lenrek [Fri, 2 May 2014 22:51:45 +0000 (00:51 +0200)]
cwfs: fix 1GB memsize limitation

the malloc pool allocator is limited in its allocation
size. as almost all data structures in cwfs are never
freed, use brk() in ialloc() instead of mallocalign().
this means memory returned by ialloc() cannot be freed!

to make sure we do not call free by accident, remove
the #define malloc(n) ialloc(n, 0) macro and use ialloc()
directly as in the original code to show the intend
of permanent allocations.

10 years agowc: simplify and avoid buffer overflow on long filenames
ftrvxmtrx [Sat, 3 May 2014 21:38:17 +0000 (23:38 +0200)]
wc: simplify and avoid buffer overflow on long filenames

10 years ago1l, 2l, 7l, kl, vl: add missing setmalloctag() dummy in compat.c
cinap_lenrek [Fri, 2 May 2014 03:17:40 +0000 (05:17 +0200)]
1l, 2l, 7l, kl, vl: add missing setmalloctag() dummy in compat.c

10 years agobio: Brdstr, Bopen: set malloc tag to the caller
ftrvxmtrx [Fri, 2 May 2014 02:27:29 +0000 (04:27 +0200)]
bio: Brdstr, Bopen: set malloc tag to the caller

10 years agosdide: never timeout or retry scsi commands from the controller driver
cinap_lenrek [Fri, 2 May 2014 02:23:21 +0000 (04:23 +0200)]
sdide: never timeout or retry scsi commands from the controller driver

this was a big mistake. we should never attempt to
timeout or retry a scsi command from the controller
driver because theres no way to tell how long a
command would take or if a command has side effects
when being retried.

10 years agobio: on a second thought, make it one line less
ftrvxmtrx [Fri, 2 May 2014 02:03:35 +0000 (04:03 +0200)]
bio: on a second thought, make it one line less

10 years agobio: do not leak memory if realloc fails
ftrvxmtrx [Fri, 2 May 2014 01:58:38 +0000 (03:58 +0200)]
bio: do not leak memory if realloc fails

10 years agosamterm: free() after getenv()
ftrvxmtrx [Fri, 2 May 2014 01:47:18 +0000 (03:47 +0200)]
samterm: free() after getenv()

10 years agopc64: increase sizes of physical memory bank maps
cinap_lenrek [Thu, 1 May 2014 15:24:50 +0000 (17:24 +0200)]
pc64: increase sizes of physical memory bank maps

number of bank slots in Conf.mem[4] was too small
for kenjis machine, set it to maximum 16 (the
size of the RAM map in pc64/memory.c).

also increasing the UPA memory map to 64. the
e820 map on my x200s has 31 entries and many
holes. this gets rid of the "mapfree: ... losing"
messages on boot.

10 years agoleak(1): typo
ftrvxmtrx [Thu, 1 May 2014 11:08:43 +0000 (13:08 +0200)]
leak(1): typo

10 years agokernel: always reset notepending in eqlock, handle forceclosefgrp in eqlocks
cinap_lenrek [Tue, 29 Apr 2014 19:17:07 +0000 (21:17 +0200)]
kernel: always reset notepending in eqlock, handle forceclosefgrp in eqlocks

10 years agokernel: stop queue bloat before allocating blocks
cinap_lenrek [Tue, 29 Apr 2014 19:15:09 +0000 (21:15 +0200)]
kernel: stop queue bloat before allocating blocks

10 years agoaan(8): fix aanuke synopsis
ftrvxmtrx [Tue, 29 Apr 2014 21:17:06 +0000 (23:17 +0200)]
aan(8): fix aanuke synopsis

10 years agodevmnt: make abandoning fid on botched clunk handle flushes
cinap_lenrek [Mon, 28 Apr 2014 04:55:06 +0000 (06:55 +0200)]
devmnt: make abandoning fid on botched clunk handle flushes

make mntflushfree() return the original rpc and do the
botched clunk check on the original instead of the
current rpc.

so if we get a botched flush of a clunk, we abandon the
fid of the channel as well.

10 years agodevmnt: abandon fid on botched Tclunk or Tremove
cinap_lenrek [Mon, 28 Apr 2014 03:59:10 +0000 (05:59 +0200)]
devmnt: abandon fid on botched Tclunk or Tremove

if theres an error transmitting a Tclunk or Tremove request,
we cannot assume the fid to be clunked. in case this was
a transient error, reusing the fid on further requests
will fail.

as a work arround, we zero the channels fid and allocate
a new fid before the chan is reused.

this is not correct as we essentially leak the fid
on the fileserver, but we will still be able to use
the mount.

10 years agolibip: use snprint() in myetheraddr() to prevent accidents
cinap_lenrek [Mon, 28 Apr 2014 00:32:06 +0000 (02:32 +0200)]
libip: use snprint() in myetheraddr() to prevent accidents

10 years ago8c, 6c: fix peephole bug for eleminating CMPL $0,R after shift
cinap_lenrek [Mon, 28 Apr 2014 20:53:50 +0000 (22:53 +0200)]
8c, 6c: fix peephole bug for eleminating CMPL $0,R after shift

the shift instructions does not change the zero flag
when the shift count is 0, so we cannot remove the
compare instruction in this case.

this fixes oggdec under 386.

10 years agobtc mkfile: mkdir -p
ftrvxmtrx [Mon, 28 Apr 2014 20:39:12 +0000 (22:39 +0200)]
btc mkfile: mkdir -p

10 years agoiwl: support another (broken) variant of centrino ultimate-n 6300
ftrvxmtrx [Sun, 27 Apr 2014 13:12:15 +0000 (15:12 +0200)]
iwl: support another (broken) variant of centrino ultimate-n 6300

10 years agomerge
ftrvxmtrx [Sat, 26 Apr 2014 16:24:39 +0000 (18:24 +0200)]
merge

10 years agoiwl: add Wifi Link 5150 did
ftrvxmtrx [Sat, 26 Apr 2014 16:22:50 +0000 (18:22 +0200)]
iwl: add Wifi Link 5150 did

10 years agopmmc: recognize generic mmc controllers (untested)
cinap_lenrek [Sat, 26 Apr 2014 16:22:17 +0000 (18:22 +0200)]
pmmc: recognize generic mmc controllers (untested)

10 years agotlshand: cleanup 36 -> MD5dlen+SHA1dlen
cinap_lenrek [Sat, 26 Apr 2014 16:09:26 +0000 (18:09 +0200)]
tlshand: cleanup 36 -> MD5dlen+SHA1dlen

10 years agotlshand: fix memory leaks, fix alloc element size for certs pointer array, error...
cinap_lenrek [Sat, 26 Apr 2014 16:04:04 +0000 (18:04 +0200)]
tlshand: fix memory leaks, fix alloc element size for certs pointer array, error handling

10 years agogames/geigerstats: fix usage() to exit; games(1): geigerstats args
glenda [Sat, 26 Apr 2014 14:08:28 +0000 (15:08 +0100)]
games/geigerstats: fix usage() to exit; games(1): geigerstats args

10 years agotr: fix 4-byte runes fix (thanks rsc)
ftrvxmtrx [Sat, 26 Apr 2014 12:26:40 +0000 (14:26 +0200)]
tr: fix 4-byte runes fix (thanks rsc)

10 years agomerge
ftrvxmtrx [Sat, 26 Apr 2014 11:22:48 +0000 (13:22 +0200)]
merge

10 years agoman pages: fix duplicate words
ftrvxmtrx [Sat, 26 Apr 2014 11:22:15 +0000 (13:22 +0200)]
man pages: fix duplicate words

10 years agodraw(2): fix missing arg of bezspline on page 5
glenda [Sat, 26 Apr 2014 02:38:07 +0000 (03:38 +0100)]
draw(2): fix missing arg of bezspline on page 5

10 years agoman pages: the the wich
ftrvxmtrx [Fri, 25 Apr 2014 23:47:36 +0000 (01:47 +0200)]
man pages: the the wich

10 years agonewt: write message header and body to virtual file before printing, to avoid stutter
stanley lieber [Fri, 25 Apr 2014 13:25:08 +0000 (09:25 -0400)]
newt: write message header and body to virtual file before printing, to avoid stutter

10 years agonusb(4): fix spelling
mischief [Fri, 25 Apr 2014 03:05:09 +0000 (20:05 -0700)]
nusb(4): fix spelling

10 years agogames/snes: mode 5/6; overscan fix
aiju [Thu, 24 Apr 2014 17:22:50 +0000 (19:22 +0200)]
games/snes: mode 5/6; overscan fix

10 years agorevert previous change, i was confused.
cinap_lenrek [Thu, 24 Apr 2014 20:02:47 +0000 (22:02 +0200)]
revert previous change, i was confused.

10 years agonusb: use ep->addr instead of ep->id in unstall() library function
cinap_lenrek [Thu, 24 Apr 2014 20:00:31 +0000 (22:00 +0200)]
nusb: use ep->addr instead of ep->id in unstall() library function

this is not a bug, but using ep->addr makes the intend more clear.

10 years agonusb/rndis: avoid allocation on each transmission
ftrvxmtrx [Wed, 23 Apr 2014 19:20:11 +0000 (21:20 +0200)]
nusb/rndis: avoid allocation on each transmission

The slack space for outgoing packets set to 44+16 bytes.

10 years agonusb: resolve endpoint id conflict with different input and output types
cinap_lenrek [Wed, 23 Apr 2014 18:03:01 +0000 (20:03 +0200)]
nusb: resolve endpoint id conflict with different input and output types

ftrvxmtrx repots devices that use the endpoint number for
input and output of different types like:

 nusb/ether:             parsedesc endpoint 5[7]  07 05 81 03 08 00 09 # ep1 in intr
 nusb/ether:             parsedesc endpoint 5[7]  07 05 82 02 00 02 00
 nusb/ether:             parsedesc endpoint 5[7]  07 05 01 02 00 02 00 # ep1 out bulk

the previous change tried to work arround this but had the
concequence that only the lastly defined endpoint was
usable.

this change addresses the issue by allowing up to 32 endpoints
per device (16 output + 16 input endpoints) in devusb. the
hci driver will ignore the 4th bit and will only use the
lower 4 bits as endpoint address when talking to the usb
device.

when we encounter a conflict, we map the input endpoint
to the upper id range 16..31 and the output endpoint
to id 0..15 so two distinct endpoints are created.

10 years agomerge
ftrvxmtrx [Wed, 23 Apr 2014 21:47:49 +0000 (23:47 +0200)]
merge

10 years agoboot/nusbrc: add another rndis device
ftrvxmtrx [Wed, 23 Apr 2014 21:46:00 +0000 (23:46 +0200)]
boot/nusbrc: add another rndis device

10 years agonusb: workaround for endpoints with same index but different types
ftrvxmtrx [Wed, 23 Apr 2014 21:45:00 +0000 (23:45 +0200)]
nusb: workaround for endpoints with same index but different types

nusb code assumes endpoint numbers are unique.  It's true in general
case, but it becomes false once the direction bit is ignored.  The
commit adds a check so that two endpoints of different types are not
merged into one with Eboth direction.  It does overwrite endpoint
though, so it shouldn't be considered as a full fix.

10 years agonusb/ether: add RNDIS support (tested on Nexus 5)
ftrvxmtrx [Tue, 22 Apr 2014 21:34:52 +0000 (23:34 +0200)]
nusb/ether: add RNDIS support (tested on Nexus 5)

10 years agofortunes: i was up at 9am, climbed a mountain, hiked 6 km through 4ft deep slush...
stanley lieber [Tue, 22 Apr 2014 15:49:32 +0000 (11:49 -0400)]
fortunes: i was up at 9am, climbed a mountain, hiked 6 km through 4ft deep slush (the image you are supposed to get is of 12 million overturned slurpee cups, and of geting your groin wet in slurpee), nearly died eating beef vindaloo, wrote some code, talked on the phone, wrote mail, and now it's almost 4am and this is absolutely beyond ridiculous.

10 years agotermrc, cpurc: exclude wpa from oom kill and swap
cinap_lenrek [Tue, 22 Apr 2014 02:26:17 +0000 (04:26 +0200)]
termrc, cpurc: exclude wpa from oom kill and swap

10 years agowifi: set ether->mbps to highest supported rate of the associated ap
cinap_lenrek [Mon, 21 Apr 2014 14:44:38 +0000 (16:44 +0200)]
wifi: set ether->mbps to highest supported rate of the associated ap

10 years agoetheriwl: set msb for all rates
cinap_lenrek [Mon, 21 Apr 2014 03:22:17 +0000 (05:22 +0200)]
etheriwl: set msb for all rates

the 802.11 spec only specifies the msb of the rate for
Beacon, Probe Response, Association Response, Reassociation Response,
Mesh Peering Open, and Mesh Peering Confirm management frames
...
The MSB of each Supported Rate octet in other
management frame types is ignored by receiving STAs.

this should make no difference but on some netgear ap's not
setting this bit seems to ignore these data rates.

10 years agowifi: first attempt on negotiating data rates
cinap_lenrek [Mon, 21 Apr 2014 01:43:51 +0000 (03:43 +0200)]
wifi: first attempt on negotiating data rates

driver sets wifi->rates array to tell wifi layer what
rates it supports. when we receive beacon, we determine
the minimum and maximum data rates and set wn->minrate
and wn->maxrate to point to the entries in wifi->rates.

it is the responsibility of the driver to use this
information on transmit.

10 years agonusb: dont include <bio.h>, we'r not using it (thanks erik)
cinap_lenrek [Sat, 19 Apr 2014 14:18:39 +0000 (16:18 +0200)]
nusb: dont include <bio.h>, we'r not using it (thanks erik)

10 years agowpa support for tcp boot, remove duplicate secstore code from factotum
cinap_lenrek [Fri, 18 Apr 2014 18:55:41 +0000 (20:55 +0200)]
wpa support for tcp boot, remove duplicate secstore code from factotum

to run aux/wpa at boot, we need factotum to be running. tho
factotum was started only after the network was configured.

what we do now is start factotum early, not fetching keys
from secstore. once network is available and the auth server
is known, we fetch keys from secstore using auth/secstore in
bootrc.

to pass the authserver for p9 authentication to factotum, we
write it in /net/ndb and the special _authdial() in factotum
will picks it up.

as we are using auth/secstore binary in any case, we remove
the duplicated secstore code from factotum and make it just
exec auth/secstore to fetch the keys on startup (unless -n
or -S is specified).

10 years agokernel: add secstore and wpa to bootfs
cinap_lenrek [Fri, 18 Apr 2014 18:44:40 +0000 (20:44 +0200)]
kernel: add secstore and wpa to bootfs

10 years agosecstore: fix wrong "readnvram %r" error status
cinap_lenrek [Fri, 18 Apr 2014 18:41:43 +0000 (20:41 +0200)]
secstore: fix wrong "readnvram %r" error status

10 years agonusb/kb: fix trackpoint on thinkpad usb keyboard
ftrvxmtrx [Fri, 18 Apr 2014 14:43:43 +0000 (16:43 +0200)]
nusb/kb: fix trackpoint on thinkpad usb keyboard

The trackpoint has no subclass, but it's still a pointer device.
Also close the device while we are here.

10 years agosecstore: fix gfile/pfile/rfile array sizes
cinap_lenrek [Thu, 17 Apr 2014 16:57:58 +0000 (18:57 +0200)]
secstore: fix gfile/pfile/rfile array sizes

need to have one more entry for terminating nil

10 years agokernel: fix printing wrong memory sizes in pageinit(), overflowed on amd64 (thanks...
cinap_lenrek [Tue, 15 Apr 2014 19:34:41 +0000 (21:34 +0200)]
kernel: fix printing wrong memory sizes in pageinit(), overflowed on amd64 (thanks aram)

10 years agomerge
cinap_lenrek [Tue, 15 Apr 2014 07:43:53 +0000 (09:43 +0200)]
merge

10 years agovgadb: add EIZO Flexscan S2231W (from kenji okamoto)
cinap_lenrek [Tue, 15 Apr 2014 07:42:40 +0000 (09:42 +0200)]
vgadb: add EIZO Flexscan S2231W (from kenji okamoto)

10 years agovga: add support nVidia 7600GS (and possibly 7950) (from kenji okamoto)
cinap_lenrek [Tue, 15 Apr 2014 07:40:41 +0000 (09:40 +0200)]
vga: add support nVidia 7600GS (and possibly 7950) (from kenji okamoto)

10 years agoaanuke: only print commands to kill the current user's aan procs
stanley lieber [Tue, 15 Apr 2014 01:01:55 +0000 (21:01 -0400)]
aanuke: only print commands to kill the current user's aan procs

10 years agoaanuke: check both /net and /net.alt (thanks, mischief)
stanley lieber [Mon, 14 Apr 2014 23:24:27 +0000 (19:24 -0400)]
aanuke: check both /net and /net.alt (thanks, mischief)

10 years agoaan(8): add HISTORY
stanley lieber [Mon, 14 Apr 2014 23:09:33 +0000 (19:09 -0400)]
aan(8): add HISTORY

10 years agoadd /rc/bin/aanuke
stanley lieber [Mon, 14 Apr 2014 23:05:57 +0000 (19:05 -0400)]
add /rc/bin/aanuke

10 years agolibmach: fix printing of amd64 modrm byte register with rex prefix
cinap_lenrek [Mon, 14 Apr 2014 22:37:01 +0000 (00:37 +0200)]
libmach: fix printing of amd64 modrm byte register with rex prefix

10 years agogames/snes: faster scaling
cinap_lenrek [Mon, 14 Apr 2014 18:44:04 +0000 (20:44 +0200)]
games/snes: faster scaling

load x-stretched scanline and use image replication bit to let
devdraw do the y-stretching. this reduces slow RGB15 -> display
conversions as devdraw caches small numbers of converted source
scanlines (one in hour case). setting pixels should also be a
bit faster. (only 3 writes instead of 9 for x3 scaling)

10 years agolibmemdraw: improve readbyte() and writebyte() routines
cinap_lenrek [Sat, 12 Apr 2014 19:59:52 +0000 (21:59 +0200)]
libmemdraw: improve readbyte() and writebyte() routines

remove unused memsetb() routine.

replace foo ? 1 : 0 with foo != 0

avoid double calculation of rgb components in readbyte()

handle byte aligned color components in writebyte()
which lets us avoid the read-modify-write and the shifting.
surprisingly, the branches in the loop are way less important
than avoiding the memory access.

this change makes ganes/snes playable at -3 scaling.

10 years agoicmp: use snprint, add more unreachable error messages (from erik quanstro)
cinap_lenrek [Sat, 12 Apr 2014 16:59:16 +0000 (18:59 +0200)]
icmp: use snprint, add more unreachable error messages (from erik quanstro)

10 years agogames/snes: upsample audio to 44100 hz instead of setting audio device frequency
cinap_lenrek [Sat, 12 Apr 2014 20:25:26 +0000 (22:25 +0200)]
games/snes: upsample audio to 44100 hz instead of setting audio device frequency

used to set audio device frequency thru /dev/volume tho
only ac97 driver supports this. as a quick work arround,
upsample the 32000 hz audio signal to 44100 hz (without
any interpolation).

move the sample buffer room check from audiosample() into
dspstep() so that when the buffer is full (shouldnt happen),
we wont advance dspstate so samples will not get dropped.

10 years agonewt: add 'kf' command to grep $home/lib/newsgroups for group names
stanley lieber [Fri, 11 Apr 2014 17:19:18 +0000 (13:19 -0400)]
newt: add 'kf' command to grep $home/lib/newsgroups for group names

10 years agonewt: improve input filtering
stanley lieber [Wed, 9 Apr 2014 05:57:03 +0000 (01:57 -0400)]
newt: improve input filtering

10 years agonewt: always prefix single digit days with 0 in 'h' view
stanley lieber [Thu, 10 Apr 2014 01:26:43 +0000 (21:26 -0400)]
newt: always prefix single digit days with 0 in 'h' view

10 years agonewt: fix 'h' formatting
stanley lieber [Thu, 10 Apr 2014 01:20:02 +0000 (21:20 -0400)]
newt: fix 'h' formatting

10 years agofortunes: Can somebody please include this in the fortunes database?
stanley lieber [Thu, 10 Apr 2014 01:19:39 +0000 (21:19 -0400)]
fortunes: Can somebody please include this in the fortunes database?

10 years agolibc: allow announce address of the form #I1/tcp!*!564
cinap_lenrek [Wed, 9 Apr 2014 17:41:25 +0000 (19:41 +0200)]
libc: allow announce address of the form #I1/tcp!*!564

we allow protocol path to begin with # for dial, so should
allow this for announce as well. this is primarily usefull
when booting the fileserver to listen on alternate ip stack.

10 years agoprocess acpi interrupt source override entries in a 2nd pass over the madt (APIC...
cinap_lenrek [Tue, 8 Apr 2014 17:35:29 +0000 (19:35 +0200)]
process acpi interrupt source override entries in a 2nd pass over the madt (APIC) table (thanks erik)

according to erik, virtualbox puts the source overrides
before the ioapic entries so the addirq() call fails
as no ioapics have been declared yet. use a second pass
over the table after we processed the apic entries.

10 years agomerge
cinap_lenrek [Thu, 3 Apr 2014 07:46:18 +0000 (09:46 +0200)]
merge

10 years agospin(1): fix typo
ftrvxmtrx [Thu, 3 Apr 2014 21:58:25 +0000 (23:58 +0200)]
spin(1): fix typo

10 years agoeqn: fix parallel build (thanks eekee)
cinap_lenrek [Thu, 3 Apr 2014 21:20:48 +0000 (23:20 +0200)]
eqn: fix parallel build (thanks eekee)

dont just mv y.tab.c, this can cause y.tab.c and y.tab.h to
be accidently regenerated breaking parallel build.

10 years agowebfs: do not unescape escape
cinap_lenrek [Thu, 3 Apr 2014 07:44:48 +0000 (09:44 +0200)]
webfs: do not unescape escape

10 years agonewt: clean up regexp
stanley lieber [Wed, 2 Apr 2014 19:49:24 +0000 (15:49 -0400)]
newt: clean up regexp

10 years agofortunes: No one googles local variable names.
stanley lieber [Wed, 2 Apr 2014 19:49:08 +0000 (15:49 -0400)]
fortunes: No one googles local variable names.

10 years agofortunes: The only document that claims Plan 9 runs in 4 megabytes is the FAQ on...
stanley lieber [Tue, 1 Apr 2014 23:10:49 +0000 (19:10 -0400)]
fortunes: The only document that claims Plan 9 runs in 4 megabytes is the FAQ on our home page.

10 years agoadd newt(1): nntp client for use with nntpfs(4)
stanley lieber [Tue, 1 Apr 2014 18:34:29 +0000 (14:34 -0400)]
add newt(1): nntp client for use with nntpfs(4)

10 years agodevproc: change address format in segment file to %8p (thanks eekee)
cinap_lenrek [Tue, 1 Apr 2014 17:28:10 +0000 (19:28 +0200)]
devproc: change address format in segment file to %8p (thanks eekee)

the original format for addresses was %8lux which was changed
to %p for amd64. this broke linuxemu which assumes fixed format
in the segment file. as a compromize we change it to %8p and
amd64 port of linuxemu will hopefully use a more robust parser :)

10 years agogetfields(2): add missing SOURCE file
BurnZeZ [Tue, 1 Apr 2014 17:12:23 +0000 (13:12 -0400)]
getfields(2): add missing SOURCE file

10 years agosam, acme: fix character classes quoting for 21-bit runes
cinap_lenrek [Tue, 1 Apr 2014 04:04:00 +0000 (06:04 +0200)]
sam, acme: fix character classes quoting for 21-bit runes

quote handling was broken with 21-bit runes. nextrec()
returned quoted rune as long rune | (Runemax+1) to escape
it.

with 16-bit runes, storing that long into 16-bit Rune
would automatically remove the escaping, but with 21-bit
runes, Rune is uint32 so the escaping would remain. we
now use (Runemask+1) instead, and mask the escaping off
explicitely when storing back to Rune.

10 years agomerge
glenda [Sun, 30 Mar 2014 21:20:00 +0000 (22:20 +0100)]
merge

10 years agogames/gb: better video scaler from games/nes
glenda [Sun, 30 Mar 2014 21:18:17 +0000 (22:18 +0100)]
games/gb: better video scaler from games/nes

10 years agogrep: fix tab2, use int instead of Rune to be compatible to 16bit rune system
cinap_lenrek [Sun, 30 Mar 2014 16:11:51 +0000 (18:11 +0200)]
grep: fix tab2, use int instead of Rune to be compatible to 16bit rune system

10 years agogrep: fix wrong rlcass splitting (thanks erik and kenji)
cinap_lenrek [Sun, 30 Mar 2014 02:29:04 +0000 (04:29 +0200)]
grep: fix wrong rlcass splitting (thanks erik and kenji)

add 0xffff to tab1 as range 0xffff-0x10ffff has 4 byte utf-8 sequence.
use Runemax (0x10ffff) instead of Runemask (0x1fffff) to denote
the last valid rune for inverted [^] match as Runemask is out of the
valid rune space.

10 years ago6c, 8c: optimize away CMPL/CMPQ reg, $0 instruction in peephole pass
cinap_lenrek [Sat, 29 Mar 2014 18:44:04 +0000 (19:44 +0100)]
6c, 8c: optimize away CMPL/CMPQ reg, $0 instruction in peephole pass

when the previous instruction sets the zero flag,
we can remove the CMPL/CMPQ instruction.
this removes compares for zero/non zero tests only.
it only looks at the previous non-nop instruction
to see if it sets our compare value register.

10 years agoramfs: fix srvname; postmountsrv() already prepends /srv/
BurnZeZ [Wed, 26 Mar 2014 20:48:40 +0000 (16:48 -0400)]
ramfs: fix srvname; postmountsrv() already prepends /srv/