Commit Graph

227142 Commits

Author SHA1 Message Date
rmind
19429f513e l2cap_detach1: fix gcc warning for non-DIAGNOSTIC case. 2014-05-19 03:18:57 +00:00
rmind
4ae03c1815 - Split off PRU_ATTACH and PRU_DETACH logic into separate functions.
- Replace malloc with kmem and eliminate M_PCB while here.
- Sprinkle more asserts.
2014-05-19 02:51:24 +00:00
justin
c922b676b6 Fix prototype of last arg of rump_sys_mknod to dev_t not uint32_t
Discussed with pooka@
See also https://github.com/rumpkernel/buildrump.sh/issues/53
2014-05-18 21:25:44 +00:00
christos
12c7860cd6 remove stray line accidentally committed. 2014-05-18 18:43:46 +00:00
jakllsch
68fd71584a add hythygtemp module to set lists 2014-05-18 18:28:48 +00:00
jakllsch
7236048644 add hythygtemp man page files to setlist 2014-05-18 18:24:16 +00:00
rmind
37af0cc75d Fix RUMP build. 2014-05-18 17:57:44 +00:00
apb
1e91429bfd Many changes to tzdata2netbsd.
This has been tested in a private repository.

* Use set -e
* Pass -d ${CVSROOT} to all cvs invocations.  cvs import needs it.
* cvs import needs to be done in the directory where the tarball
  was extracted.
* cvs import does not take a "-F messagefile" option (as cvs commit does);
  it needs "-m messagestring".
* The DOIT function now prompts for a yes/no/quit response, and quotes
  complex arguments when printing the command.
* When checking the PGP signature, require the correct key to have been used.
* Usability improvements when editing the cvs log message.
* More error checking.
2014-05-18 16:53:56 +00:00
wiz
f21550261f Whitespace and punctuation. 2014-05-18 15:45:08 +00:00
rmind
39bd8dee77 Add struct pr_usrreqs with a pr_generic function and prepare for the
dismantling of pr_usrreq in the protocols; no functional change intended.
PRU_ATTACH/PRU_DETACH changes will follow soon.

Bump for struct protosw.  Welcome to 6.99.62!
2014-05-18 14:46:15 +00:00
rmind
9cf83d0317 Fix RUMP build. 2014-05-18 14:03:26 +00:00
martin
483126c11b PR install/48818: put vi on install CDs 2014-05-18 13:06:12 +00:00
wiz
331e85e813 New sentence, new line. Sort SEE ALSO. Whitespace. 2014-05-18 12:45:03 +00:00
kardel
54c2251d60 add HYT-221/271/939 humidity/temperature I2C sensor
extend envsys(4) framework by %rH (relative humidity)
2014-05-18 11:46:23 +00:00
martin
13bd467664 No need to re-set MDLWP_FPACTIVE in the REENABLE case - it should be
set already.
2014-05-18 11:04:51 +00:00
martin
3313ae3d61 Re-enable alpha IEEE compiler options 2014-05-18 10:47:03 +00:00
martin
e16f12d468 Properly handle PCU_REENABLE in fpu_state_load. Hint from Nick Hudson.
This seems to help PR port-alpha/48782 a lot.
2014-05-18 10:43:54 +00:00
nat
dc2ecd830b libossaudio minor version bump to signify new ioctls. 2014-05-18 10:36:34 +00:00
njoly
9676d5d738 Simplify dup3 emulation to call dodup() directly instead of
sys_dup2()+fd_set_exclose(). While here, add some error conditions.
2014-05-18 09:30:00 +00:00
rmind
af0c2e41d7 - Move ifnet_list (and lo0ifp while here) under #ifdef _KERNEL.
- Make ifindex2ifnet, if_indexlim and some other variables static.
- Move if_index generation into its own function.
- if_alloc/if_free: replace malloc with kmem.
2014-05-18 00:33:20 +00:00
rmind
94eca5faba Use IFNET_FIRST() rather than open coding ifnet access. 2014-05-18 00:10:11 +00:00
rmind
c3f8d27787 sonewconn: insert the socket into the queue *after* the protocol attach.
This potentially avoids unnecessary race conditions when handling partial
connections.
2014-05-17 23:55:24 +00:00
joerg
767787d382 Use compiler-rt in libc for Clang on NetBSD/ARM as well. 2014-05-17 23:32:32 +00:00
joerg
38febcf304 Structure HAVE_LIBGCC condition similar to HAVE_LIBGCC_EH. 2014-05-17 23:31:57 +00:00
rmind
004d195aec fifo_open: assign v_fifoinfo once initialised; add an assert while here. 2014-05-17 23:30:24 +00:00
rmind
26e5a75962 - fsocreate: set SS_NBIO before the file descriptor is affixed as there is
a theoretical race condition (hard to trigger, though); remove the LWP
  parameter and clean up the code a little.
- Sprinkle few comments.
- Remove M_SOOPTS while here.
2014-05-17 23:27:59 +00:00
rmind
250d3c701d - sonewconn: improve the initialisation order and add some asserts.
- Add various comments describing primitive routines operating on sockets,
  clarify connection life-cycle and improve the description of socket queues.
- Sprinkle more asserts.
2014-05-17 22:52:36 +00:00
rmind
e16e8aee89 makesocket: set SS_NBIO slightly earlier. 2014-05-17 21:48:48 +00:00
rmind
3e8fbba831 Remove trailing whitespaces, wrap long lines, minor KNF; no functional changes. 2014-05-17 21:45:02 +00:00
rmind
bc9504c95e Replace open-coded access (and boundary checking) of ifindex2ifnet with
if_byindex() function.
2014-05-17 21:26:20 +00:00
rmind
169afaf534 Rename LIST_CONCAT() to LIST_MOVE() as that is what it actually does (and
there is no point to implement LIST_CONCAT() which would iterate).  Update
the queue(3) manpage.
2014-05-17 21:22:56 +00:00
rmind
44b8265175 Fix previous. 2014-05-17 21:00:33 +00:00
rmind
f7741dab17 - Move IFNET_*() macros under #ifdef _KERNEL.
- Replace TAILQ_FOREACH on ifnet with IFNET_FOREACH().
2014-05-17 20:44:24 +00:00
mrg
25bb3b0e82 split crime_bus_reset() into crime_{cpu,mem}_reset() and only reset
the cpu or the memory upon either error, not both.

seems to make my O2 slightly less likely to hang, and matches what
the linux crime driver does.
2014-05-17 20:44:08 +00:00
rmind
1bb3adb02d Add LIST_CONCAT(). 2014-05-17 20:34:49 +00:00
apb
f8398fbdeb Add tzdata2netbsd, a script to help import new versions of tzdata. 2014-05-17 19:53:22 +00:00
martin
9cab609bc8 Reorder struct ufid members to avoid padding (and save 4 bytes) on some
architectures.
2014-05-17 19:11:40 +00:00
rmind
2955673918 ppp_inproc: handle non-IP protocols correctly (hi msaitoh); PR/48813. 2014-05-17 14:51:09 +00:00
nat
a8ba8ad76b Adds ioctls and defines for OSSv4 compatibility.
The ioctl definitions and accompanying structures were
taken from FreeBSD's soundcard.h, hopefully providing
some binary compatibility.

The ioctls are as follows:
	SNDCTL_SYSINFO: Returns a structure containing
		details about the audio device.
	SNDCTL_ENGINEINFO - SNDCTL_AUDIOINFO: Returns a
		structure with playback/recording
		characteristics.
	SNDCTL_DSP_GETPLAYVOL, SNDCTL_DSP_SETPLAYVOL,
	SNDCTL_DSP_GETRECVOL, SNDCTL_DSP_SETRECVOL:
		Retrieves/Sets Playback/Recording volume.
	SNDCTL_DSP_SKIP - SNDCTL_DSP_SILENCE: These ioctls
		were intended to manipulate the underlying
		audio buffer skip or insert silence.  These
		return EINVAL.

SOUND_VERSION is unchanged, but is definable,  It will be
changed when the mixer OSSv4 ioctls are written.

Addresses PR 46611
This commit was approved by wiz@.
2014-05-17 12:38:42 +00:00
apb
ba94e92b25 Add an example with find ... -exec sh -c .... 2014-05-17 11:31:40 +00:00
njoly
3b443c792e Fix fadvise64 syscalls. Unlike our, linux fadvise syscall do not
return error code; call do_posix_fadvise().
2014-05-17 09:30:07 +00:00
njoly
00939bcb8e Regen for fadvise64 offset types changes. 2014-05-17 09:25:06 +00:00
njoly
e9bb8eca6d Fix fadvise64 syscalls to use 64bit offset types. 2014-05-17 09:23:51 +00:00
dholland
2b882222c7 Merge ulfs_create into lfs_create. 2014-05-17 07:10:27 +00:00
dholland
74f08410af Merge ulfs_mkdir into lfs_mkdir. 2014-05-17 07:09:59 +00:00
dholland
4746515192 Merge ulfs_symlink into lfs_symlink. 2014-05-17 07:09:36 +00:00
dholland
4e7cdb7dda Move the ulfs-level (copy of ufs) vnops for symlink, create, and mkdir
into lfs_vnops.c preparatory to folding them into the lfs entry points.

(lfs_vnops.c now has four licenses. sigh.)
2014-05-17 07:09:09 +00:00
dholland
06a6ff8cf2 Remove the DIROP macros. They are evil, especially the CREATE ones.
This results in some duplicate logic in the creation vnops (symlink,
mknod, create, mkdir) but we will probably be able to factor it out in
a more sensible way later.

Now the creation vnops call getnewvnode explicitly instead of under
multiple layers of obscure gunk. Then we explicitly do lfs_set_dirop,
and afterwards lfs_unset_dirop.
2014-05-17 07:08:35 +00:00
mrg
5893f1db8f bump version, note .svg support. 2014-05-17 05:50:46 +00:00
mrg
f434e335cc enable .svg. as prompted by agc@. 2014-05-17 05:50:01 +00:00