Commit Graph

155786 Commits

Author SHA1 Message Date
rpaulo
789717052b Add /etc/login.conf. 2007-02-04 14:45:34 +00:00
rpaulo
ea9a233098 Add login.conf. 2007-02-04 14:44:34 +00:00
rpaulo
0231f1b5fe Add an commented out login.conf with a simple example based on OpenBSD.
Requested by Elad.
2007-02-04 14:43:03 +00:00
elad
5e2e282f9c Add support for per-user /tmp.
Enabled via per_user_tmp in /etc/rc.conf (default off).

See security(8) and rc.conf(5) for more details.

Lots of input from thorpej@ & christos@, thanks!
2007-02-04 08:19:26 +00:00
elad
3044852cc5 The hashing routines (MD5File() and co.) can do dynamic allocation, so
take advantage of that instead of an ugly hard-coded MAXHASHLEN limit
that needs updating.

I think this was suggested by cube@ years ago.
2007-02-04 08:03:18 +00:00
tsutsui
5a003ebca0 Accept RX packets which are larger than ETHER_MAX_LEN but can be stored
into RX mbufs.

(BTW, is there any way to allocate RX mbufs aligned at PAGE_SIZE?)
2007-02-04 06:16:12 +00:00
tsutsui
f4797e0850 Accept RX packets which are larger than ETHER_MAX_LEN but can be stored
into RX mbufs. Inspired by OpenBSD.
2007-02-04 06:01:30 +00:00
dyoung
954e7e37ab Cosmetic: KNF indentation, curly braces, and argument declarations. 2007-02-04 05:34:38 +00:00
dyoung
441215d99b Convert the rather long and backslash-ridden DELAY_MS macro to a
much shorter static subroutine, delay_ms().
2007-02-04 05:08:18 +00:00
dyoung
b39ec50ca6 Use the right subroutine name for the debug message. 2007-02-04 04:59:39 +00:00
tsutsui
59ea1d1768 - check more hwrev and use HWREV_* macro. From Realtek driver
via Darrin B.Jewell.
  XXX: maybe we should check this sc_rev on more place
- use RTK_TXCFG_HWREV (0x7cc00000) rather than 0x7c800000
  to mask the hwrev value since bit 0x00400000 is used only by 8139D
  which is not supported by this driver
- fix a tyop
2007-02-04 04:49:58 +00:00
tsutsui
15a85916ca Add another 8100E HWREV number. From Realtek driver and Plan9 driver. 2007-02-04 04:41:43 +00:00
tsutsui
2f113b8e35 Add an 8169SC variant to re_devs. From Darrin B.Jewell. 2007-02-04 04:39:38 +00:00
tsutsui
befdfe9762 Try to map both PCI I/O and memory space. 2007-02-04 03:20:23 +00:00
uwe
3bc8e00664 Fix previous, add forgotten pointer dereference in the call to dtoa(). 2007-02-04 03:20:22 +00:00
christos
971e3bb846 use dtoa() instead of returning empty when we don't have extended precision
information.
2007-02-04 03:05:01 +00:00
tsutsui
6e3b5f512c Remove unused dh_addr member from struct si_dma_handle. 2007-02-04 01:38:34 +00:00
tsutsui
e32f083d80 Remove leftover debug stuff which could break si_obio DMA. 2007-02-04 01:37:09 +00:00
christos
deecbf494d remove dup definition 2007-02-04 00:39:43 +00:00
christos
5058960df7 make this gdtoa friendly. 2007-02-04 00:39:19 +00:00
christos
fc500ab7fb Add macros for overflow detection 2007-02-03 23:48:21 +00:00
christos
016db3548e make this compile with -DSTATISTICS 2007-02-03 23:46:40 +00:00
christos
cb9daf8f10 cleanup:
- remove __P
	- remove unneeded casts
	- add _DIAGASSERT
	- add more diagnostics for integer overflow
	- fix size_t/int confusion
	- make debugging and statistics code compile
2007-02-03 23:46:09 +00:00
christos
980e6dca8f - knf, ansi, lint etc. 2007-02-03 23:04:04 +00:00
christos
72e430635f chech the correct fmt in the assertion. 2007-02-03 22:26:55 +00:00
christos
ecb577caf1 - errors to stderr
- improve some shell syntax: $() instead of `` and ! prog instead of else
  kludge
- use getopts.
- add usage
2007-02-03 20:59:34 +00:00
christos
fff7c9f19d misc cleanups. 2007-02-03 20:39:05 +00:00
christos
32b2149aa4 we need wcrtomb now too. 2007-02-03 19:55:51 +00:00
christos
288e2b48f6 add prototypes for the _ss functions. 2007-02-03 19:49:21 +00:00
christos
c8e7c68742 int/size_t changes 2007-02-03 18:09:20 +00:00
tsutsui
f7397aaa8c Make si at obio and si at vme on sun3 use bus_dma(9) for data xfer.
XXX1: Only si at vme on TME is tested.
XXX2: No info about DMA on si at sebuf. (bounce buffer required?)
2007-02-03 18:02:57 +00:00
tsutsui
277e6a5263 Prepare bus_dma(9) structures for sun3 obio devices. 2007-02-03 17:00:37 +00:00
tsutsui
5ec98f218f Add bus_space(9) and bus_dma(9) glue to sun3 MD VME attachment
to test these APIs on TME.

XXX I hope these sun3 MD VME stuff will be replaced by MI VME driver soon.
2007-02-03 16:58:08 +00:00
tsutsui
39bbf3e6c5 Implement bus_dmamap_load(9) and bus_dmamap_unload(9) for sun3. 2007-02-03 16:51:13 +00:00
ad
26d6ccf325 Document cv_has_waiters(). 2007-02-03 16:49:11 +00:00
christos
20b56f03ed make extended precision gdtoa friendly. 2007-02-03 16:44:45 +00:00
christos
818764fc7c some int -> size_t
deal with sparc64 that has 112 bits of mantissa.
2007-02-03 16:44:02 +00:00
ad
00b8f6d201 - Require that cv_signal/cv_broadcast be called with the interlock held.
- Provide 'async' versions that don't need the interlock.
2007-02-03 16:39:53 +00:00
pooka
3f280a11a4 fstrans owner automatically gets a normal lock, don't need to lazy lock
pointed out by hannken
2007-02-03 16:29:05 +00:00
christos
3ab861054c make this compile with DIAGNOSTIC 2007-02-03 16:22:48 +00:00
christos
0e61db23eb Compile with DIAGNOSTIC 2007-02-03 16:17:15 +00:00
christos
b513fb7c0a make this compile with DIAGNOSTIC 2007-02-03 16:12:47 +00:00
tsutsui
3c39b23802 Fix botch in #ifdef DIAGNOSTIC. 2007-02-03 05:20:31 +00:00
tsutsui
b19c5b0bc7 Make esp and its dma on 3/80 use bus_dma(9).
XXX: Maybe we should consider to use MI sys/dev/ic/lsi64854.c.
2007-02-03 05:17:30 +00:00
tsutsui
8763f0bf0e Prepare bus_dma(9) structures for sun3x obio devices. 2007-02-03 05:14:38 +00:00
tsutsui
2fce94aa7d Implement bus_dmamap_load(9) and bus_dmamap_unload(9) for sun3x. 2007-02-03 05:13:58 +00:00
elad
d60f1f435f If Veriexec prevents indirect execution of the binary, in addition to just
blocking the mmap() if exec bit is requested, also strip exec bit from
maxprot for further mprotect() calls.

Okay joerg@.
2007-02-03 01:11:50 +00:00
christos
d228a772b3 enable wide doubles. 2007-02-03 00:28:56 +00:00
christos
f38f949967 use vfwprintf.c 2007-02-03 00:28:43 +00:00
christos
093145397b - merge change from freebsd
- add support for building as vfprintf.c
- XXX: we strdup to simplify the freeing logic. This should be fixed for
  efficiency in the vfprintf case.
2007-02-03 00:28:33 +00:00