Commit Graph

207955 Commits

Author SHA1 Message Date
christos 5ad9380e95 Adjust prototypes. 2011-12-31 21:31:15 +00:00
christos 9df65c7736 - fix syscall error returns
- fix clobbered errno
- use warn instead of perror
- use ssize_t consistently
- retry on EINTR and EAGAIN
2011-12-31 21:29:12 +00:00
christos 5ad8aadb1b pass ${COPTS} to the build of thunk.c so that it builds on amd64. 2011-12-31 21:24:07 +00:00
riz a2c9f31b16 Belatedly note hannken's addition of sparse file support to vnd(4) from
June.
2011-12-31 20:56:05 +00:00
christos 42c420856f - fix offsetof usage, and redundant defines
- kill pointer casts to 0
2011-12-31 20:41:58 +00:00
riz df7c01333c Fix typos and style glitches. Remove outdated info about only
Ethernet, SLIP, and PPP being supported, and no network types with
variable-length headers (such as 802.11).
Document BIOCSRSIG and BIOCGRSIG.

From Guy Harris in PR#40703.
2011-12-31 20:16:41 +00:00
jakllsch cf050eee1a +uipad 2011-12-31 15:01:06 +00:00
reinoud 704c3d0ee6 Move the thunk_rfb_send_pending() up to where it belonged. It could disconnect
AND event could be NULL while it still would need to send... i.e. the barrier
in vncfbcopyrows()
2011-12-31 12:57:12 +00:00
reinoud a2f3919615 Implement safe_recv() in analog to save_send() to make sure we don't miss
bytes along and mess up the protocol.
2011-12-31 12:38:56 +00:00
skrll 7093284c3d Fix the usage/help for mach frame. 2011-12-31 08:34:49 +00:00
rkujawa 3bfeb95c96 Fix panic triggered by pressing the caps lock key:
http://c0ff33.net/drop/bt_caps_panic.jpg

OK'd mrg.
2011-12-31 01:16:09 +00:00
christos afd29d767a add uipad 2011-12-31 00:11:20 +00:00
christos b5fe2e70e9 Add an ipad 2011-12-31 00:10:06 +00:00
christos bc2683d5b7 Regen 2011-12-31 00:09:11 +00:00
christos 7d7fcac760 Add a tiny driver that sends the magic command to an ipad instructing it
to charge.
2011-12-31 00:08:48 +00:00
reinoud 39df809ed3 Add template code for a client driven display update request. This is
currently not possible since its event parameter is not allways passed.
2011-12-30 21:14:58 +00:00
christos 8e0d3d5d89 Avoid panic on DIAGNOSTIC kernels with ktrace -p <not-existing-process>
The old logic was:

	error = ktrace_common(, fp);
	if (fp)
		if (error)
			fd_abort(, fp, );
		else
			fd_abort(, NULL, );

The 'if (fp)' portion really means if the op is not KTROP_CLEAR,
since the logic above always sets up fp otherwise, so change the
code to test this directly.

ktrace_common() can return an error both on the kernel thread
creation failure, which means that we should be calling fd_abort()
with fp, since nobody used the file yet and we should clear it now.
But it can also return an error because later, after the thread
creation if the process or process group was not found. In this
second case, we should be calling fd_abort with NULL, since the fp
is now used by the thread and it is going to clean it later. So
instead of checking the error from ktrace_common() to decide if we
are going to call fd_abort() with a NULL fp or not, let krace_common()
decide for us.  So the new logic becomes:

	error = ktrace_common(, &fp);
	if (op != KTROP_CLEAR)
		fd_abort(, fp, );

Since I am here, fix a freed memory access, by setting ktd to FALSE.
2011-12-30 20:33:04 +00:00
macallan d75d9f025e add some register definitions 2011-12-30 20:11:23 +00:00
jmcneill e3b27f0cbb add wsmouse support 2011-12-30 20:08:36 +00:00
jmcneill e89b0052a0 report rfb pointer events 2011-12-30 20:08:00 +00:00
jmcneill 45276cf976 add mmap support 2011-12-30 19:32:32 +00:00
jmcneill 1a7924eb90 provide pmap_phys_address 2011-12-30 19:30:59 +00:00
cherry b83ccb0e45 Never cut-paste code from email!
Use the right count (0 -> 2) of l3 unshared userland entries for per-cpu initialisation.
2011-12-30 19:18:35 +00:00
christos 4df396b653 prevent kernel from writing more than userland passed. 2011-12-30 19:01:07 +00:00
christos ca47c3c4e6 PR/45760: Henning Petersen: Add Adaptec29329LPE to ahd_pci.c 2011-12-30 18:20:46 +00:00
cherry d827fd25ea Force pae l3 page allocation for new vcpus to be < 4G, so they fit in 32bits 2011-12-30 18:01:20 +00:00
cherry 1f285b3396 Move the per-cpu l3 page allocation code to a separate MD function. Avoids code duplication for xen PAE 2011-12-30 17:57:49 +00:00
cherry d12f2f3b2f per-cpu shadow directory pages should be updated locally via cross-calls. Do this. 2011-12-30 16:55:21 +00:00
macallan 386d286bb9 this should have been committed along with the previous changes in
radeonfb.c
2011-12-30 14:32:31 +00:00
jmcneill 869f56b4be no need to poll for pending drawing ops if no client is connected 2011-12-30 14:22:41 +00:00
jmcneill 32f706ab6b add a barrier before copyrows(), and add an RRE based fillrect functino,
use it for eraserows and erasecols
2011-12-30 14:20:33 +00:00
alnsn 209a072285 Document that overflow in P[X+k:n] terminates a filter program.
Based on a discussion with Christos on source-changes-d.
2011-12-30 14:12:15 +00:00
reinoud 4b4a4e64bb Implement VNC's copyrect sending and let the copyrows use the new
vncfb_copyrecs()
2011-12-30 13:08:30 +00:00
jmcneill b5566174ca support wskbd bell 2011-12-30 12:54:41 +00:00
he 47ccc3047b Bump SYMTAB_SPACE so that the contents fits again. 2011-12-30 12:47:37 +00:00
cherry 7603d0cfb3 Remove spurious (debug) printf() 2011-12-30 12:16:19 +00:00
jmcneill 3daf26f92f map Fn keys, make vt switching work 2011-12-30 12:14:44 +00:00
jmcneill 50f426886c add WSDISPLAY_COMPAT_USL to make 'wsconscfg -s' work 2011-12-30 12:14:04 +00:00
jmcneill 8d1ee770a7 print key event info if RFB_DEBUG 2011-12-30 12:13:31 +00:00
reinoud f85280258e Use the encoding values of the VNC spec and add a copyrect (not used yet) 2011-12-30 12:07:33 +00:00
reinoud df167c56cd Add RFB type flag to indicate what kind of request is waiting 2011-12-30 11:32:57 +00:00
jmcneill fc3088ac6d use O_ASYNC + SIGIO instead of polling for input 2011-12-30 11:06:18 +00:00
reinoud 023645c4d8 Rename variable Bpp to bytes_per_pixel 2011-12-30 11:05:07 +00:00
jmcneill 0fcd86a31c double SIGIO_MAX_HANDLERS 2011-12-30 11:04:50 +00:00
reinoud 2ac17419ab Use a wrapper around the send() to make sure it will transmit EVERYTHING and
not just a part of the data
2011-12-30 11:00:01 +00:00
jmcneill ab1f22759d optimize rfb updates by allowing queueing of multiple update messages,
dropping duplicates, and transmitting them in batches
2011-12-30 09:36:01 +00:00
jmcneill e11aac04f7 take nrows into account when calculating the update rectangle in vncfb_copyrows 2011-12-30 09:31:44 +00:00
jmcneill a91f77bb0a send framebuffer updates for cursor changes too 2011-12-30 08:49:53 +00:00
skrll 5bb6a3ba4f Add PA8700. 2011-12-30 08:33:49 +00:00
reinoud 1f33988c72 Add the Usermode vnc framebuffer and (vnc) remote keyboard types. 2011-12-30 08:20:50 +00:00