christos
c82b786eb3
simplify bsd_sys_bind()
2003-06-05 19:42:55 +00:00
manu
c5defe555a
Ooops, I deleted a debug printf just before committing and one bit was
...
remaining. While I'm there, fix a typo in a comment.
2003-06-05 18:51:40 +00:00
manu
278cce5ba7
regen
2003-06-05 12:28:01 +00:00
manu
2c3b365958
Search alternate /emul/* path for AF_LOCAL sockets at bind() time.
2003-06-05 12:26:27 +00:00
manu
9c3b5e7aec
Replace strlcpy by strncpy so that it builds again
2003-06-04 19:51:03 +00:00
manu
b5c252e8af
Build again with SA
2003-06-04 19:34:32 +00:00
manu
899161bdbc
Added vm_copy
2003-06-03 20:09:37 +00:00
manu
faba943220
Added IOHIDSystem properties (this is about keyboard mapping)
...
Also added a ssize arg to mach trap args so that trap handler are aware
of the sent packet size.
2003-06-03 06:48:47 +00:00
manu
1ea26aeafe
+ In ioframebuffer driver:
...
We try to map the console framebuffer through wsdisplay. It seems to work,
but we still need to _see_ something.
XXX Framebuffer size discovery is borken.
+ In ioframebuffer and iohidsystem:
More methods and more debug for io_connect_method_*
+ A few new IOKit mach traps.
2003-05-22 22:07:36 +00:00
manu
0d9cf0359a
Added io_connect_add_client
2003-05-22 18:10:19 +00:00
nakayama
10e7db6bab
Avoid strict-ailas warnings in gcc 3.3;
...
refer to change of sys/compat/netbsd32/netbsd32_netbsd.c r1.67 to r1.69.
2003-05-17 01:35:54 +00:00
itojun
51110d0c20
use strlcpy
...
[compat/svr4_32 should have bound check for SVR4_32_AUX_ARGSIZ]
2003-05-16 14:36:30 +00:00
manu
1ab318ff2d
We had ugly magic values in io_connect_method_scalari_scalaro and friends.
...
Peeking at Darwin's header files gives some ideas of what we are doing here.
We know understand most of the stuff called by XDarwin and WindowServer before
mapping the framebuffer.
2003-05-15 23:35:37 +00:00
manu
da05e7b4d3
Added io_service_close and the io_connect_map_memory method for
...
ioframebuffer's shared meory (used to handle the cursor).
XDarwin and WindowServer now fail on framebuffer mapping.
2003-05-14 18:28:04 +00:00
manu
f75cb60078
One more I/O flavor for the ioframebuffer driver. XDarwin now crashes
...
when it comes to map the cursor shared memory (accroding to the source,
next step will be mapping the framebuffer, we are getting closer)
2003-05-14 15:50:38 +00:00
manu
31b52bb7f2
More efforts on the XDarwin front. Introduce io_connect_method_scalari_structo
...
and io_connect_method_structi_structo. We don't know at all how this stuff
works, but at least we can imitate what Darwin does.
2003-05-14 14:41:04 +00:00
manu
962a6c7d59
Fix a bug in io_registry_entry_get_property: one of the field in the
...
return packet was wrong (port descriptor instead of VM area descriptor),
thus leading to SIGSEGV when calling IOKit's IOFBCreateSharedCursor().
Now this is fixed we can move forward again on graphic mode.
2003-05-13 20:48:16 +00:00
christos
7218f10c3c
sort the ioctl's so we can see what we've implemented and what we have not.
2003-05-07 14:21:20 +00:00
manu
4c94241d26
Make io_iterator_reset working for device class itaerators
2003-04-30 18:38:19 +00:00
manu
f8c2ac11e9
typo
2003-04-30 18:05:47 +00:00
manu
9a5720f8f0
Added io_iterator_reset (there is a nundocumented flag argument, no idea
...
of its use yet)
2003-04-30 07:32:16 +00:00
manu
d46d73437c
Added the map_memory method for the IOKit, plus an implementation
...
for the IOHIDSystem driver in Darwin. IOHIDSystem provides access
to user interface devices.
Communication between userspace and kernel is done through a shared
memory page. Our plan is to have a kernel thread waiting on wscons
events (for now it just does nothing), and have it feeding the
shared page.
2003-04-29 22:16:38 +00:00
manu
30bb8c56a7
More debug
2003-04-29 22:12:51 +00:00
manu
cbfe387fcc
swapped the words in lseek offset reassembly (that was was confused-endian)
...
Removed useless include that came from a copy/paste.
2003-04-20 14:36:05 +00:00
christos
962f5ffade
try to get this to work for both endian machines.
2003-04-20 00:32:16 +00:00
manu
1368d826d9
Regen
2003-04-20 00:10:20 +00:00
manu
beca0eff14
Fixed an ABI bug in lseek: NetBSD pads the syscallarg structure because of
...
the off_t argument, Darwin does not. In order to get the off_t argument
going through our syscall machinery, we declare it as two long arguments,
and we reassemble it in darwin_sys_lseek.
2003-04-20 00:09:41 +00:00
manu
aa5f0948ad
Improved bahvior for map_fd. When Darin uses findspace = 0, this seems to
...
request a mapping at fixed address, overlaying previously existing mappings.
The overlay is done by unmapping (sys_munmap) before mapping at fixed
location. This makes XDarwin able to link and run.
2003-04-19 21:41:15 +00:00
dsl
01761b17f4
Remove unnecessary caddr_t casts
2003-04-16 19:20:33 +00:00
christos
c56f7f428b
get rid of the ASYNCMAP ioctls
2003-04-12 05:00:38 +00:00
thorpej
5051d1c544
Use PAGE_SIZE rather than NBPG.
2003-04-09 00:39:38 +00:00
oki
fb4bbe16fc
Regen.
2003-04-08 10:58:55 +00:00
oki
105a3bb543
Added missing syscalls from native syscalls.master.
2003-04-08 10:57:56 +00:00
manu
0479104b05
First attempt with task_suspend/task_resume, but we hit some bugs somewhere
...
else in our code.
2003-04-06 17:58:49 +00:00
jdolecek
1b18fee640
this info is now in doc/RESPONSIBLE
2003-04-06 10:13:07 +00:00
manu
c74de80216
Implement task_info
2003-04-05 21:18:02 +00:00
manu
acab734a9e
Fix a few bugs and get a better notification support (A sample program
...
actually works)
2003-04-05 19:27:51 +00:00
he
0a34406c13
Fill the target st_qspare array with 0, the source field has been reclaimed
...
for other use by the UFS2 merge, and this is just a filler anyway.
2003-04-02 22:14:23 +00:00
thorpej
d071d9a8d0
Use PAGE_SIZE rather than NBPG.
2003-04-01 15:02:05 +00:00
thorpej
d46b766d7d
Use PAGE_SIZE rather than NBPG.
2003-04-01 14:45:09 +00:00
thorpej
24ab4adb9c
Use PAGE_SIZE rather than NBPG.
2003-04-01 01:53:40 +00:00
thorpej
f4a068d5c2
Use PAGE_SIZE rather than NBPG.
2003-04-01 01:43:29 +00:00
manu
fd94bf9486
First work on notifications. Not really working for now.
2003-03-29 11:04:08 +00:00
he
9f8115667b
Adapt to changed signature for ioctl routine (caddr_t -> void*).
2003-03-27 15:54:02 +00:00
nakayama
ac2c6fba75
Make it compile again; follow fo_ioctl change (hi David!).
2003-03-22 07:54:22 +00:00
dsl
bd99e3429d
Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
...
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
2003-03-21 23:11:19 +00:00
dsl
60418b39b7
Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'.
...
Avoids a lot of casting and removes the need for some line breaks.
Removed a load of (caddr_t) casts from calls to copyin/copyout as well.
(approved by christos - he has a plan to remove caddr_t...)
2003-03-21 21:13:50 +00:00
dsl
9be8ac5294
Alternative pid/proc allocater, removes all searches associated with pid
...
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.
2003-03-19 11:36:32 +00:00
manu
523dbf2146
Quick and dirty version of io_registry_entry_get_properties.
2003-03-09 18:33:28 +00:00
he
385f6e3afe
Remove to local declarations of "p" which are no more in use, to make
...
this compile again.
2003-03-08 01:20:21 +00:00