Commit graph

2256 commits

Author SHA1 Message Date
ppatience0 03d1d83deb toppm: checking for err is useless; it was initialized to nil earlier 2013-05-12 17:52:35 -04:00
ppatience0 df25791b33 toppm: multichan converts to RGB24, not RGBV 2013-05-12 17:46:39 -04:00
ppatience0 eee0141465 writeppm: replace WriteGIF by WritePPM 2013-05-12 17:08:52 -04:00
cinap_lenrek 6bcc1eb399 writeppm: simplify 2013-05-13 23:03:23 +02:00
ppatience0 a3f776a13e writeppm: for bitmaps, 1 is black, 0 is white 2013-05-12 16:36:29 -04:00
ppatience0 a1130d843d toppm: fix style 2013-05-12 16:17:09 -04:00
ppatience0 d5e3e4326c toppm: add -r flag for raw ppm 2013-05-12 16:11:43 -04:00
cinap_lenrek b78e9525cf writeppm: fix tab/spaces 2013-05-12 19:12:21 +02:00
cinap_lenrek 4c4fbdf78c merge 2013-05-12 19:05:51 +02:00
cinap_lenrek 3cccb8fb12 devaoe: avoid panic on malloc() error by using smalloc() instead. 2013-05-12 19:04:07 +02:00
ppatience0 1d760c9b3e file: recognize bitmap and graymap ppm images
writeppm: do not print extra space after each pixel for graymap formats to save space
2013-05-12 12:53:43 -04:00
cinap_lenrek 8020743579 ether8169: do phywakeup magic only for specific mac versions (from openbsd) 2013-05-12 18:25:24 +02:00
cinap_lenrek 29ece7fda4 ether8169: and phy wakeup and reset phy before enabling auto negotiation
this brings up the 8198B on BurnZeZ's ASRock Z68 Professional Gen3 board.
2013-05-12 02:58:02 +02:00
cinap_lenrek 25bc4e84e9 devmnt: fix mount device leak and allocation error handling in mntversion()
the fist problem is that qopen() might return nil and that kstrdup() will
sleep, so we should try to avoid holding the mntalloc lock. so we move
the kstrdup() and qopen() calls before the Mnt allocation, and properly
recover the memory if we fail later.

the second problem was that we error(Eshort) after we already created the Mnt
when returnlen < sizeof(f.version). this check has to happen *before* we
even attempt to allocate the Mnt structures. note that we only copy the
version string once everything is in the clear, so the semantics of the
user buffer not being modified in case of error is not changed.

a little cleanup in muxclose(), getting rid of mntptfree()...
2013-05-11 20:54:50 +02:00
cinap_lenrek fe073f852a sdide: add Intel SERIES 6 SATA controller pci ids 2013-05-11 18:45:46 +02:00
cinap_lenrek 3174ffc971 acme: apply nemos acmediskread patch (from sources)
pread does not guarantee that it would read all the data asked for.
But acme usage of disk assumes that. This issues as many reads as
needed to make acme work when read returns less data than it wanted.
2013-05-11 18:43:03 +02:00
cinap_lenrek 389d6a1054 ape: change types from unsigned long to void* for rendezvous() and segattach()/segbrk() (erik), use uniqueue rendezvous tags for _buf and listen 2013-05-11 18:34:40 +02:00
ppatience0 9af0b2c683 awk: proctab.c is always regenerated from maketab, so it is unnecessary to keep it 2013-05-09 20:48:23 -04:00
cinap_lenrek 9bb703e2cf srv: be nice, close the previously duped pipe filedescriptor 2013-05-10 01:24:11 +02:00
khm 03cf6cae57 fortunes: all the world's a social vax cloud 2013-05-08 21:07:02 -04:00
ppatience0 c24a442ae2 samterm: revert previous changes. 2013-05-08 20:34:50 -04:00
ppatience0 6a2b5055f5 samterm: move cursor to next tabstop or non-space character before backspacing in spaces mode. this makes it less annoying to backspace (it's more like tabs). 2013-05-08 17:47:48 -04:00
jpathy e3883b050e Add RDRAND Support for /dev/random 2013-05-08 23:27:58 +05:30
ppatience0 36287edc88 ape: remove unused variables 2013-05-06 20:51:18 -04:00
ppatience0 517c0feaca ape: fix uninitialized variable bug in getfields() 2013-05-06 20:24:19 -04:00
ppatience0 a1bc7c76ba merge 2013-05-06 19:37:51 -04:00
ppatience0 5ac6088b96 access: unused variable 2013-05-06 19:35:03 -04:00
cinap_lenrek cd66b11f67 pbs: allow 9bootfat start cluster beyond 0xFFFF
pbs failed to load (silently loading garbage) 9BOOTFAT from start
cluster beyond FFFF because we ignored the low word from the
directory entry. now taking the high 16 bit of the directory's
start cluster into account.
2013-05-06 01:15:46 +02:00
cinap_lenrek d3b727db18 devip: dont raise error() out of Fsprotocone()
Fsprotoclone() is not supposed to raise error, but return nil.
ipopen() seemed to assume otherwise as it setup error label
before calling Fsprotoclone(). fix ipopen(), make Fsprotoclone()
return nil instead of raising error.
2013-05-05 04:28:50 +02:00
cinap_lenrek 9500191af6 devip: handle malloc errors, fix queue leaks
Fsprotocone():

qopen() and qbypass() can fail and return nil, so make sure
the connection was not partially created by checking if read
and write queues have been setup by the protocol create hanler.
on error, free any resources of the partial connection and
error out.

netlogopen(): check malloc() error.
2013-05-05 03:56:11 +02:00
cinap_lenrek 30d7276d69 libdraw: fix font f->cacheimage nil dereference
the initial fontresize() might fail but its error code is ignored
potentially leaving f->cacheimage == nil. make sure we call
fontresize() in loadchar() when theres no cacheimage and check the
return value to avoid nil pointer dereference.
2013-05-04 20:36:28 +02:00
cinap_lenrek 3e8a38dfb3 libmach: update mips disassembler (from sources) 2013-05-04 18:40:05 +02:00
cinap_lenrek cf76ca4f32 sort: handle write error in debug mode 2013-05-04 18:33:52 +02:00
cinap_lenrek 18e480ceb2 bio: use UTFmax for Bungetsize and fix libmach to include <libc.h> before <bio.h> (from sources) 2013-05-04 18:30:49 +02:00
cinap_lenrek d359aed939 nedmail: recognize image/jpg mimetype 2013-05-04 07:03:37 +02:00
ftrvxmtrx 9186ae1355 u9fs: fix compilation warnings 2013-05-04 02:53:05 +02:00
ftrvxmtrx f33e22c444 u9fs: make it compile 2013-05-04 02:43:27 +02:00
cinap_lenrek 9de8d61fe6 ape: get rid of fixed MUXADDR for buffered i/o
instead of trying to resize the segment (which will not work when
the kernel picks the address as it will allocate right before
the base of the topmost segment), we create the mux segment with the
maximum size needed (arround 1.4MB) for OPEN_MAX filedescriptors.

buf slots will be reused and slots get demand paged once used.
2013-05-03 19:34:48 +02:00
cinap_lenrek e8efd0a242 mkpaqfs(8): correct maximum block size (from erik quanstros mkpaqfsman patch) 2013-05-03 13:57:00 +02:00
cinap_lenrek d1905d8063 ape: remove unused variables from _buf (from erik qunastros _bufupd patch) 2013-05-03 13:46:27 +02:00
qeed 5dc9c7f443 fixed operand size for ADD SP, n 2013-05-02 10:40:45 -04:00
cinap_lenrek 78794f03dd devsd: initialize unit->sense[0] in sdsetsense() (from erik quanstroms 9atom) 2013-05-02 23:12:37 +02:00
cinap_lenrek d0bb0f7757 chan: fix potential path leak on clone in namec() (from erik quanstroms 9atom) 2013-05-01 21:56:02 +02:00
cinap_lenrek 91818e7081 devpipe: fix channel and queue leaks (from erik quanstroms 9atom) 2013-05-01 19:03:56 +02:00
cinap_lenrek 0124d865a6 aoe: updating aoe driver from erik quanstros 9atom
1  the config string was grabbed Aoehsz too far into the packet due to using the wrong pointer to start.
  2  never accept a response with tag Tmgmt or Tfree.
  3  defend against "malicious" responses; ones with a response Aoehdr.type != request Aoehdr.type. this previously could
 cause the initiator to crash.
  4  vendor commands were improperly filtered out.
2013-05-01 18:50:07 +02:00
cinap_lenrek d4414b3959 devloopback: fix potential channel leak on allocation error (from eriks 9atom) 2013-05-01 18:31:13 +02:00
cinap_lenrek 58533c35fb cc: accept 24 bit numeric runes 2013-05-01 16:55:11 +02:00
cinap_lenrek decade55c6 frexp: handle NaN values (from sources) 2013-05-01 16:44:04 +02:00
cinap_lenrek 27f65a138a uartpci: add detection for StarTech PCI8S9503V (P588UG) (from sources) 2013-05-01 16:29:58 +02:00
stanley lieber b94a33e01c rio: fix highlight text for -b 2013-04-30 21:03:12 -04:00
cinap_lenrek ce62bbb853 5c: dont emit conditional integer division instructions
the integer division instructions are emulated with _div()
function patched in by 5l which does not handle conditional
execution. so do not optimize away the branch in that case.
2013-04-29 20:15:40 +02:00
cinap_lenrek b325475fc8 Fix double-free fault when isaconfig returns nothing for "etherN". (from richard millers devether-doublefree patch) 2013-04-29 18:39:44 +02:00
ppatience0 87785ee897 /sys/lib/rootstub: fix missing /alpha/lib/ape directory 2013-04-29 11:12:47 -04:00
ppatience0 84172fc961 bootrc: fix spacing when asking for fs/auth ip 2013-04-28 18:34:47 -04:00
cinap_lenrek 966a185353 fix missing return compile error for manual book index generator 2013-04-28 16:47:03 +02:00
cinap_lenrek 90036b9991 libdraw: avoid printing error on closemouse() 2013-04-27 04:21:08 +02:00
cinap_lenrek a72a7c1cc2 libdraw: exit mouseproc() on read error instead of spinning 2013-04-27 04:10:39 +02:00
cinap_lenrek e83d5a84f2 nusb/serial: Add support for Amontec JTAGkey devices (from sources) 2013-04-26 15:25:25 +02:00
cinap_lenrek 35b5df0302 fix <mach.h> types in manual (erik quanstros machmantype patch) 2013-04-25 00:13:19 +02:00
cinap_lenrek 667010554b make all the commands agnostic about Rune width. (from sources) 2013-04-24 20:13:18 +02:00
cinap_lenrek 78c7ba36a1 cpu: don't print spurious errstr for bad auth method, fix comment 2013-04-24 02:41:36 +02:00
stanley lieber b699f9664b fortunes: i would not be at all surprised if the nix kernel (with or without the AC stuff) ends up being the basis for continuing evolution of plan9. 2013-04-23 18:53:37 -04:00
cinap_lenrek e9c8ef5e16 ftpd: "opts utf8 on" 2013-04-23 19:37:56 +02:00
cinap_lenrek 8858fdf15f ftpd: fix nil pointer derefernece when ominiting arguments to opts command 2013-04-23 22:47:27 +02:00
cinap_lenrek 922d6d0780 ftpd: implement "OPTS UTF-8 ON", fix uninitialized printing uninitialized memory in HELP command 2013-04-23 22:38:03 +02:00
cinap_lenrek 8ff7d518c6 - use the double-buffer buffer to allow redrawing on resize events.
specifing -d on the command line now only disables synchronous
drawing events.

- use threaded mouse and keyboard to allow for asynchronous
receoption of quit messages.  this allows plot to exit before drawing
is completed.  for programs like mapdemo, this is important.

there were two things that needed to get fixed as a result
- replace fprint(2, ...); exits("bad"); with sysfatal.  also get rid
of stdio.

- dpoint needed a mach-dependentent (sic) version.  otherwise
points on a resized screen will not be properly placed.
2013-04-22 19:10:09 +02:00
cinap_lenrek 05d3cc414d ether8169: fix deadlock in allocation error case for attach. (thanks erik)
typo in error case, should qunlock() instead of qlock().
2013-04-22 18:50:29 +02:00
cinap_lenrek 44c32071dc graphics(2): add newwindow() key reference 2013-04-22 22:14:08 +02:00
cinap_lenrek cbe11fc1c2 aux/listen: do not redirect stderr (fd 2) of the listener to the network connection
Charles Forsyth described the problem below in:

http://9fans.net/archive/2013/04/190

In a few cases, the kernel will use pprint to put a diagnostic on the
standard error (file descriptor 2). One of those is a warning that the
process has used more than 100 file descriptors. That message is possibly
obsolete and could be removed, but there are others, such as notifying an
uncaught trap that are probably helpful to make visible. In any case, as
things stand, a busy exportfs might have many file descriptors open,
provoking the diagnostic. Unfortunately, aux/listen and aux/listen1 connect
file descriptor 2 to the incoming network connection. If the connection's
protocol is not a simple, unstructured, textual one, diagnostics on the
standard error will cause confusion, in particular to devmnt.c if 9p is used.

/rc/bin/service files that start applications that run special protocols
might want to redirect file descriptor 2; alternatively, perhaps aux/listen
shouldn't redirect fd 2 by default: the few commands that do connect the remote
user to shells, or equivalent, including telnetd and sshd could dup 1 to 2
when that was sensible.
2013-04-20 21:42:20 +02:00
cinap_lenrek 4198bb566e merge 2013-04-20 22:51:22 +02:00
cinap_lenrek c04297587c ip/torrent: use NPROC processes in parallel for calculating initial piece hashes 2013-04-20 22:47:39 +02:00
cinap_lenrek 4fcc5efce5 mouse: fix cursor redraw to prevent screen blanking (thanks erik) 2013-04-16 18:52:49 +02:00
cinap_lenrek c31c4ca7b3 devmouse: remove unneeded reference to kerndate 2013-04-14 18:28:55 +02:00
cinap_lenrek e2baea8ddf sdiahci: add pci id for 82801eb/er and c210 2013-04-14 18:13:26 +02:00
cinap_lenrek 3045d63969 reduce software cursor flickering
the software cursor starts flickering and reacts bumby if a process
spends most of its time with drawlock acquired because the timer interrupt
thats supposed to redraw the cursor fails to acquire the lock at the time
the timer fires.

instead of trying to draw the cursor on the screen from a timer interrupt
30 times per second, devmouse now creates a process calling cursoron() and
cursoroff() when the cursor needs to be redrawn. this allows the swcursor
to schedule a redraw while holding the drawlock in swcursoravoid() and
cursoron()/cursoroff() are now able to wait for a qlock (drawlock) because
they get called from process context.

the overall responsiveness is also improved with this change as the cursor
redraw rate isnt limited to 30 times a second anymore.
2013-04-14 16:28:54 +02:00
stanley lieber 58e500f4a7 fortunes: support for non-blocking i/o 2013-04-12 20:51:47 -04:00
ppatience0 8214a7f84f merge 2013-04-12 18:39:12 -04:00
ppatience0 e44eacad8f jpg(1): update bmp and yuv usage 2013-04-12 18:36:22 -04:00
cinap_lenrek 14650e9c25 pci: Add Intel C216 chipset PCI support (from sources) 2013-04-12 23:07:40 +02:00
cinap_lenrek 800670da4e usbehci: align page td buffer for >16K transfers, fix isohsinit()
from ehci spec:

The buffer pointer list in the qTD is long enough to support a maximum
transfer size of 20K bytes. This case occurs when all five buffer pointers
are used and the first offset is zero. A qTD handles a 16Kbyte buffer
with any starting buffer alignment.
2013-04-12 22:14:32 +02:00
cinap_lenrek 1e31b342cd merge 2013-04-11 19:34:43 +02:00
cinap_lenrek 2647aef175 ndb/dns: dont override req->aborttime in udpquery()
overriding aborttime in udpquery() makes no sense. it causes
recursive queries to extend the timeout infinitely. nobody
but the issuer of the request should modify aborttime.
2013-04-11 19:33:07 +02:00
cinap_lenrek b8397a3c2c libauth: auth_chuid empty (from sources)
instead of an "i/o count too small", detect a missing capability (empty, null string)
before the write, and diagnose it as such.
2013-04-11 13:45:11 +02:00
cinap_lenrek 5796736b70 9nfs: apply patch/nfswarnandflags (from sources, thanks nemo)
Remove a warning in 9nfs and make it use the std. CFLAGS
(we detected the warning using -W).
2013-04-10 20:51:39 +02:00
cinap_lenrek 8cc04381d1 postscript: remove private copy of utf8 implementation (from sources) 2013-04-10 20:47:01 +02:00
cinap_lenrek e60f177ad2 etheriwl: add pci id for Centrino Wireless-N 100 (thanks fgudin9) 2013-04-10 22:13:54 +02:00
cinap_lenrek 4ae7954547 ape: inet_ntop() print v4 mapped addresses in v6 as dotted quad 2013-04-05 14:09:41 +02:00
ppatience0 cfadfd97b8 sam(1): document -i flag 2013-04-04 16:44:23 -04:00
ppatience0 02f60df0f3 sam, samterm: add -i flag to make tab insert spaces up to the next tabstop and backspace to delete spaces until the previous tabstop 2013-04-04 16:38:36 -04:00
cinap_lenrek 6bef56f037 intel ethernet: default to 16 byte cache line size when not properly initialized and disable checksum offload for igbe (from sources) 2013-04-03 21:51:42 +02:00
cinap_lenrek 81b394f30a pci: add pci bridge id for Intel 6 Series/C200 (from sources) 2013-04-03 21:47:50 +02:00
cinap_lenrek 432c11c0b4 pushtls: remove unneccesary include <auth.h> (from sources) 2013-04-03 21:46:33 +02:00
cinap_lenrek 182ed8a2b5 add import -z option to skip initial tree negotiation (from mycroftiv) 2013-04-02 04:23:26 +02:00
cinap_lenrek d645d4d81b ape: inet_pton() parse dotted address to IPv4 mapped addresses for AF_INET6 2013-04-02 03:48:10 +02:00
cinap_lenrek 4c2d520eef fix parseip()
addresses like: "1:2:3:4:5:6:7:255.255.255.255" caused parseip
to write beyond the ip buffer.
2013-04-02 03:39:24 +02:00
cinap_lenrek e8c1d0fe7c ape: check *alen before copying in getpeername(), getsockname() and accept()
*alen has to be initialized to the size of the buffer
by the caller, and we are supposed to put the real
size of the address in there, but not copy more than
the original *alen value (truncate).
2013-04-02 01:40:29 +02:00
cinap_lenrek e8a0276090 ape: add inet_aton() 2013-04-01 19:16:18 +02:00
cinap_lenrek bbe95085d4 python: update python build configuration to new ape capabilities like getaddrinfo(), ipv6 and fix EISCON typo in ape 2013-03-31 18:54:45 +02:00
cinap_lenrek b6dc4ba5a4 ape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo() 2013-03-31 18:52:45 +02:00
cinap_lenrek 9c7e1db701 ape: define FD_SETSIZE for select() 2013-03-31 18:46:14 +02:00