Commit Graph

152942 Commits

Author SHA1 Message Date
christos 25dc0b1687 add tests for zero sized arrays. 2006-10-23 00:09:37 +00:00
christos d9b2ba3ddf use HOST_SH since make might not fork a shell for a simple command. 2006-10-23 00:08:54 +00:00
bjh21 8bb452f337 sec(4). 2006-10-22 23:52:19 +00:00
dogcow 8f7efdd62a add the .include <bsd.own.mk>, so .d and .o files don't end up in the CWD.
remove INCDIR=/usr/include, as my leenooks system doesn't have puffs .h files.
2006-10-22 23:51:37 +00:00
bjh21 c0f3f368d9 Document a couple of significant changes in 4.0. This should perhaps go
in "upgrade" rather than "whatis", but I'm not sure.
2006-10-22 23:49:37 +00:00
mrg 8d4305f309 regenerate mknative-gcc fies for GCC 4.1-20061021.
(some of these are not 100% tested yet, but they are have the
right changes as the tested platforms.)
2006-10-22 23:27:23 +00:00
pooka de328e13dc regen for puffs
(and a few others.  seems like plenty of people remember to do this)
2006-10-22 23:03:48 +00:00
pooka c1b5a38fea add puffs device, but I didn't add it to MAKEDEV all on purpose
just quite yet, too experimental
2006-10-22 23:02:08 +00:00
pooka 298096d245 puffs headers & libs 2006-10-22 22:57:36 +00:00
pooka 9d92bd9b4c "teach" about VT_PUFFS 2006-10-22 22:56:26 +00:00
pooka bcb1fccca0 libpuffs 2006-10-22 22:53:41 +00:00
pooka 1635cf06bc add libpuffs - the userspace programming interface for puffs
This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks.  While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace.  Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.
2006-10-22 22:52:21 +00:00
pooka 17015342cb * add MOUNT_PUFFS
* add macro VFS_PROTOS(fsname), which generates file system vfs prototypes
2006-10-22 22:50:10 +00:00
pooka 7ad65999e3 add VT_PUFFS 2006-10-22 22:49:38 +00:00
pooka bbceff78e8 add fs/puffs 2006-10-22 22:44:44 +00:00
pooka ce9afaf2f9 grab device number for puffs 2006-10-22 22:44:32 +00:00
pooka 8640fbb580 kernel portion of puffs - the Pass-to-Userspace Framework File System.
It contains the VFS attachment and userspace message-passing interface.

This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks.  While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace.  Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.
2006-10-22 22:43:23 +00:00
christos f0762ecc01 Include bsd.sys.mk so that HOST_SH is defined. (Hi apb) 2006-10-22 22:22:39 +00:00
christos e9a36b93da Add -Wextra -Wno-unused-parameter to WARNS > 2 2006-10-22 22:17:30 +00:00
christos 896545c86a shave 32 bytes. 2006-10-22 21:57:55 +00:00
christos f9c9a8e383 it is not called kcore anymore. 2006-10-22 21:34:42 +00:00
tls 9e6fbdecd0 For GDB, note the necessity of testing target kcore and options KGDB. 2006-10-22 21:26:54 +00:00
christos 9881dfaad3 c99 initializer 2006-10-22 21:24:44 +00:00
christos f6a7372b60 use c99 initializers 2006-10-22 21:09:47 +00:00
jmmv f584c9cef6 Forgot to remove non-applicable *VERBOSE options. 2006-10-22 21:08:48 +00:00
hauke 09aee34e95 Add Hauke Fath 2006-10-22 21:08:27 +00:00
christos f80d108fb1 fix initializers 2006-10-22 21:06:19 +00:00
christos 6846f1da94 remove dead code. 2006-10-22 21:05:28 +00:00
christos dae6a9eb32 sprinkle volatile. 2006-10-22 21:00:21 +00:00
christos a4b205c85a don't leak kernel variable declarations to userland. 2006-10-22 20:55:09 +00:00
christos 6fef5d355e WARNS=4.
- pass lint
- don't use sscanf fgets and fixed length buffers
- always use warnx to report errors.
2006-10-22 20:54:38 +00:00
he 2c2b5873de If we're not using pthreads, claim also that we don't have sigwait.
This works around the problems observed on sparc and sparc64 (where
we've disabled use of pthreads) where the BIND applications end up
being killed with SIGTERM instead of exiting gracefully.
2006-10-22 20:53:51 +00:00
mrg a37172bb09 avoid a problem in kpsignal2() holding sched_lock while wanting to call
pool_get().  pre-allocate the ksiginfo_t before taking sched_lock and
use it if necessary, or freeing it if it is unused.

rename ksiginfo_{get,put}() to ksiginfo_{dequeue,queue}() (idea from chuq.)


this fixes PR#32962.  thanks to christos, chuq and go for help/ideas.
2006-10-22 20:48:45 +00:00
mrg d7bc6234aa regenerate powerpc and sparc64 mknative files for GCC 4.1-20061021. 2006-10-22 20:01:41 +00:00
christos 27ae1373d5 Mention include proper file for keyboard defines; from Zafer. 2006-10-22 19:39:32 +00:00
christos 1536848b53 fix typo. 2006-10-22 19:21:26 +00:00
jmmv 2bce77b498 Kernel configuration file for the QEMU virtual machine. This is based on
GENERIC and keeps all MI stuff untouched but removes all MD devices that
are not supported by QEMU.  Inspired by the recently added PARALLELS file.
2006-10-22 18:49:24 +00:00
christos f6c67772ca use strlcpy instead of strncpy or bcopy to copy the interface name. 2006-10-22 18:24:02 +00:00
christos 8c71201d08 make ktruser enforce the maximum buffer length, and return an error. 2006-10-22 18:19:49 +00:00
christos 9e34b4bbee ktruser checks for length now. 2006-10-22 18:18:49 +00:00
christos 0838967c65 ktruser now returns an error if the buffer length is too big. 2006-10-22 18:18:08 +00:00
christos 97e81e479c sprinkle volatile. 2006-10-22 16:48:34 +00:00
christos c3c65c3c0c use c99 initializer. 2006-10-22 16:47:50 +00:00
christos 528614c11b sprinkle volatile. 2006-10-22 16:45:35 +00:00
christos 88bb03c92e use c99 initializer. 2006-10-22 16:44:46 +00:00
christos 8a3920f2c8 use c99 initializers
consistently terminate nlist arrays with NULL not ""
2006-10-22 16:43:24 +00:00
christos 7284ae463f use c99 initializers. 2006-10-22 16:36:44 +00:00
bouyer 146b18fc4b Don't add ikphy twice; pointed out by Patrick Welche 2006-10-22 16:26:27 +00:00
christos b9cc3c0e19 - add volatile
- fix an missing initializer.
2006-10-22 16:25:19 +00:00
christos 088aec4701 sprinkle volatile. 2006-10-22 16:23:20 +00:00