Commit Graph

5270 Commits

Author SHA1 Message Date
mrg bad97058ff s/sparc64/native 64 bit/ in a comment... 2015-06-21 14:03:38 +00:00
martin de7fce508e Implement trivial conversion for pset_* 2015-06-21 12:54:33 +00:00
martin 44c9bcba16 Regen (pset_*) 2015-06-21 12:52:40 +00:00
martin dd2a19c8fb Add pset_* calls 2015-06-21 12:51:33 +00:00
martin 562fee01d0 Cosmetics: fill in details about some currently unimplemented syscalls. 2015-06-21 12:29:48 +00:00
martin bcae189392 Move compat calls, requested by mrg@ 2015-06-21 08:47:15 +00:00
martin 4a59e4a66e Fix compat/versioning confusion and add the missing new versioned ones. 2015-06-21 08:32:36 +00:00
martin b56ceb540f regen (versioned mq_* calls) 2015-06-21 08:29:52 +00:00
martin d86daecc04 Add the two versioned mq_* calls I missed in the last round 2015-06-21 08:28:36 +00:00
msaitoh 34476fc305 Add missing sys/kauth.h 2015-06-21 06:51:05 +00:00
martin 021a80b600 Implement modctl, sigqueinfo and mq_* 2015-06-20 19:58:40 +00:00
martin 95e5bbaeef Regen (sigqueinfo, modctl, mq_*) 2015-06-20 19:56:24 +00:00
martin 2cfad306cd Add sigqueuinfo, modctl and mq_*. 2015-06-20 19:55:07 +00:00
martin 59c35335bf Implement posix_fallocate and fdiscard compat 2015-06-16 10:42:38 +00:00
martin 681b650f7f Regen for posix_fallocate and fdiscard 2015-06-16 10:42:13 +00:00
martin 74085ed4a7 Add posix_fallocate and fdiscard 2015-06-16 10:41:34 +00:00
matt 93b5ceb986 Fix a comment. 2015-06-16 07:29:46 +00:00
christos 9198a032e7 we need compat_sysv now. 2015-06-13 22:17:04 +00:00
matt d99aa73f39 Force *stackp to (uintptr_t) before possibly moving to a smaller pointer size. 2015-06-11 02:54:00 +00:00
roy cb53724789 Add support for NPF ioctls. 2015-06-01 16:07:27 +00:00
roy 555a592508 Back out prior
gimpy1@ we don't #include driver .h in netbsd32
2015-06-01 00:15:07 +00:00
roy 643289594b Revert prior change, optionally include PPPOE and SPPP support again.
Fix compat_netbsd32 module building by enforcing both.
2015-05-31 23:40:19 +00:00
roy cf18a8ed2e It seems we cannot depend on kernel config in modules, so always compile
in PPP(,oE) support.
2015-05-31 22:58:50 +00:00
roy fc67b5dc14 Add support for PPPOEGETPARMS and PPPOESETPARMS. 2015-05-31 22:19:41 +00:00
roy 27cf308b62 Support SPPPGETAUTHCFG and SPPPSETAUTHCFG. 2015-05-31 22:16:16 +00:00
roy c4fd6408ee Fixup ifdrv parameter order. 2015-05-31 15:08:14 +00:00
njoly dc12bdee6f Regen for write(2) size argument fix. 2015-05-31 10:50:04 +00:00
njoly e72b8ff8b4 Fix write(2) size argument (int -> size_t). 2015-05-31 10:49:27 +00:00
matt aeae3560b3 Fix netbsd32 ifdrv copy routines to not use memcpy. 2015-05-27 21:56:43 +00:00
matt 0d007d00e3 Add missing SIOCGDRVSPEC32
Fix SIOCGETSGCNT32
2015-05-27 21:42:43 +00:00
rtr d3607ec6c2 convert remaining linux_get_sa() users to use linux_get_sa_sb() and
pass the pointer to the sockaddr in msghdr.msg_name, while removing
the MSG_NAMEMBUF flag.

now that the original linux_get_sa() is unused remove it and to make
function names consistent again rename linux_get_sa_sb() to linux_get_sa().
2015-05-24 17:07:26 +00:00
rtr 04ca548b64 get rid of unnecessary use of mbuf to hold sockaddr, which was leaked...
while here change use to typed pointer sockaddr * instead of void * which
also lets us get rid of sasize variable used to track length (since we
can now use sa_len easily)
2015-05-23 15:27:55 +00:00
matt 95b88ec007 Use Elf_Sym 2015-05-20 07:24:49 +00:00
matt 0828cd07d4 Rework ksym defines and includes. 2015-05-20 04:37:45 +00:00
matt cdbc8d4e56 Only define the KIOC netbsd32 stuff if the KIOC ioctls have been defined. 2015-05-20 04:09:37 +00:00
matt d0c9fc59d2 Change the ksyms ioctls to more compat_netbsd32 friendly. Use _IOWR ioctls
to avoid extra copyouts.  With these changes, netstat and vmstat work on
mips64eb with the normal N32 userland and a N64 kernel.
2015-05-20 02:45:20 +00:00
martin c5617ba863 Implement SIOCIFGCLONERS for netbsd32, so ifconfig -C works. 2015-05-18 06:38:59 +00:00
matt b2ae998f66 machine_arch on mips depends on the ABI so we need a routine to return
the right value.
2015-05-17 18:52:37 +00:00
matt fd223cea42 Simplify a tiny bit. 2015-05-15 07:56:25 +00:00
matt c3824aa5ce In lwp_ctl, convert ptr to 32 bits before copyout. 2015-05-15 07:52:51 +00:00
matt 397eb68d6f Fix _lwp_ctl for big endian 64-bit platforms. (little-endian too but not
as noticable).
2015-05-15 07:45:15 +00:00
pgoyette 9681555f60 The compat_sysv module now depends on sysv_ipc module. 2015-05-13 02:08:20 +00:00
christos 6ebc227033 rump is compiled with COMPAT_OSOCK not COMPAT_OIFREQ and the code in if.c
is not handling this case properly. Make this work by checking again if
we need to convert struct ifreq here, and if we do, we do it ourselves.
2015-05-12 20:42:46 +00:00
pgoyette 0caf2564d1 Fix the #ifdef _MODULE stuff so that the syscall packages and sysctl stuff
gets handled properly even in built-in module case.

XXX
Whatever was I thinking when I put those conditionals in?  And wouldn't it
be a wonderful thing to have some atf regression tests to actually catch
errors in the compat{,_sysv} modules?   :)
2015-05-11 10:32:13 +00:00
pgoyette ff00f0b594 Split the SYSV* compat code out into a separate compat_sysv module.
For monolithic kernels, both modules will be compiled as "built-ins",
while modular environments will be able to load the SYSVSEM, SYSVSHM,
and SYSVMSG code independant from the rest of compat.

This is a necessary precursor step to making the "STD" SYSV* code
into a separate module.

Tested in both monolithic and modular environments with no errors
seen.
2015-05-10 07:41:15 +00:00
rtr fd12cf39ee make connect syscall use sockaddr_big and modify pr_{send,connect}
nam parameter type from buf * to sockaddr *.

final commit for parameter type changes to protocol user requests

* bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}
2015-05-02 17:18:03 +00:00
rtr eddf3af3c6 make accept, getsockname and getpeername syscalls use sockaddr_big and modify
pr_{accept,sockname,peername} nam parameter type from mbuf * to sockaddr *.

* retained use of mbuftypes[MT_SONAME] for now.
* bump to netbsd version 7.99.12 for parameter type change.

patch posted to tech-net@ 2015/04/19
2015-04-24 22:32:37 +00:00
rtr c40869fd3c clean up the way ti_bind() was converted to use sockaddr_big.
instead of using the original sockaddr_{in,un} structures for storage
use the single sockaddr_big structure instead.

while here ditch superfluous assignment of sockaddr sb_len since the
assignment is already performed in netaddr_to_sockaddr_{in,un}
2015-04-19 19:17:37 +00:00
riastradh 37553abcc1 No need for <sys/rnd.h> here either. Missed this one yesterday too. 2015-04-14 12:19:57 +00:00
nat ca58739ce4 Include rndio.h for missing defines. 2015-04-14 06:11:15 +00:00