dragonfly.git
4 years agoDEVFS - change /dev/pci0 to just /dev/pci (fixes X)
Matthew Dillon [Tue, 4 Aug 2009 17:08:10 +0000 (10:08 -0700)]
DEVFS - change /dev/pci0 to just /dev/pci (fixes X)

4 years agoDEVFS - rollup - Userland, nrelease, and installer
Matthew Dillon [Tue, 4 Aug 2009 04:44:57 +0000 (21:44 -0700)]
DEVFS - rollup - Userland, nrelease, and installer

* Remove MAKEDEV and MAKEDEV use in the build system.

* Add a new libc function fdevname() taking a file descriptor and
  returning the device name.

* Remove the MFS /dev for the CD and adjust the nrelease build system
  to use devfs.

* Installer adjustments:  PFI search path, remove device node maker
  (it is non-applicable with devfs).

* Add mount_devfs to the build Makefile.

* Change dhclient to use an auto-cloning bpf.

* The VN device now uses labels by default, and no longer supports
  non-label configurations (though you can of course ignore the label
  area and just r/w the raw device anyway).

Submitted-by: Alex Hornung <ahornung@gmail.com>, and Matthew Dillon
4 years agoDEVFS - rollup - all kernel devices
Matthew Dillon [Tue, 4 Aug 2009 04:42:54 +0000 (21:42 -0700)]
DEVFS - rollup - all kernel devices

* Make changes needed to kernel devices to use devfs.

* Also pre-generate some devices (usually 4) to support system utilities
  which do not yet deal with the auto-cloning device support.

* Adjust the spec_vnops for various filesystems to vector to dummy
  code for read and write, for VBLK/VCHR nodes in old filesystems
  which are no longer supported.

Submitted-by: Alex Hornung <ahornung@gmail.com>
4 years agoDEVS - rollup - kernel core
Matthew Dillon [Tue, 4 Aug 2009 04:38:47 +0000 (21:38 -0700)]
DEVS - rollup - kernel core

* Remove dead code.

* Reference count adjustments for devfs.

* DEVFS integration into kernel core, including automatic probe/reprobe.

* Dummy vnops support for deprecated VCHR and VBLK devices in filesystems.

* Silence MBR warnings for VN with DSO_MBRQUIET flag.

* Change rootdevnames for CD boot.  DEVFS provides e.g. "cd0", "cd0s0".
  The old compatibility-slice partition "c" names are no longer generated
  and have been removed.

Submitted-by: Alex Hornung <ahornung@gmail.com>, and Matthew Dillon
4 years agoDEVFS - rollup, namecache invalidation
Matthew Dillon [Tue, 4 Aug 2009 04:34:12 +0000 (21:34 -0700)]
DEVFS - rollup, namecache invalidation

* Add convenient way to clean out negative namecache entries by simply
  incrementing a generation number in the mount structure.  Used by DEVFS.

4 years agoDEVFS - Remove specfs from the build proper.
Matthew Dillon [Tue, 4 Aug 2009 04:31:17 +0000 (21:31 -0700)]
DEVFS - Remove specfs from the build proper.

4 years agoDEVFS - Rollup
Matthew Dillon [Tue, 4 Aug 2009 04:23:30 +0000 (21:23 -0700)]
DEVFS - Rollup

* Use a dynamically sized dirent structure for devfs_nodes, saving a lot
  of memory.

* Fix m_* lexical space overloading issues.

* Fix issues with numerous uninitialized fields.

* Completely initialize the devfs_node before making it visible to
  userland.

* Properly invalidate negative entries in the namecache when adding new
  devfs nodes.  Also properly recycle disconnected vnodes.

* Properly disassociate a devfs node from its vnode when freeing the
  devfs node.

* Clarify device reference counts and fix a bug or two.

* Get reprobes working.  Sniff writes and automatically reprobe the
  whole disk or a particular slice on close() if the MBR or label area
  is modified.

* Fix memory leak when mounting/umounting devfs.

Submitted-by: Alex Hornung <ahornung@gmail.com>
4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Tue, 4 Aug 2009 04:18:44 +0000 (21:18 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoGCC-4.4: Fix improper object placement in (potentially read-only) src.
Matthew Dillon [Tue, 4 Aug 2009 01:14:10 +0000 (18:14 -0700)]
GCC-4.4: Fix improper object placement in (potentially read-only) src.

4 years agoCorrect RETURN VALUES in mountctl(2)
Antonio Huete [Tue, 21 Jul 2009 20:16:42 +0000 (22:16 +0200)]
Correct RETURN VALUES in mountctl(2)

4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Mon, 3 Aug 2009 16:34:20 +0000 (09:34 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoAHCI - fix hint.ahci_* -> hint.ahci.*
Matthew Dillon [Mon, 3 Aug 2009 16:33:48 +0000 (09:33 -0700)]
AHCI - fix hint.ahci_* -> hint.ahci.*

The hint variable name was described incorrectly.

4 years agogcc44: properly pass and report target machine and version
Simon Schubert [Mon, 3 Aug 2009 13:00:56 +0000 (15:00 +0200)]
gcc44: properly pass and report target machine and version

Reported-by: hasso@
4 years agogcc34/gcc41: always set library search path
Simon Schubert [Mon, 3 Aug 2009 08:31:22 +0000 (10:31 +0200)]
gcc34/gcc41: always set library search path

Even if -nostdlib or -nodefaultlibs is specified we should pass the
correct library search to ld, so that the user can then properly link
against the right libs, like libc or libgcc.

4 years agogcc44: add patch files necessary for build
Simon Schubert [Mon, 3 Aug 2009 00:43:17 +0000 (02:43 +0200)]
gcc44: add patch files necessary for build

These files were not added because .gitignore contains an entry for
*.patch...

4 years agogcc44: add missing Makefile
Simon Schubert [Mon, 3 Aug 2009 00:14:28 +0000 (02:14 +0200)]
gcc44: add missing Makefile

Reported-by: swildner@
4 years agoMerge branch 'gcc441'
Simon Schubert [Sun, 2 Aug 2009 23:40:04 +0000 (01:40 +0200)]
Merge branch 'gcc441'

4 years agogcc44: hook to the build
Simon Schubert [Sun, 2 Aug 2009 17:16:14 +0000 (19:16 +0200)]
gcc44: hook to the build

4 years agogcc44: import build infrastructure
Simon Schubert [Sun, 2 Aug 2009 17:13:55 +0000 (19:13 +0200)]
gcc44: import build infrastructure

This is based on the gcc41 infrastructure, but heavily modified and
streamlined.  Where possible, whole chunks of the original gcc Makefiles
were copied.

gcc44 now needs gmp and mpfr, so add their infrastructure as well. They
are built as internal (static) libs.

4 years agogcc44: add local changes
Simon Schubert [Sun, 2 Aug 2009 23:35:32 +0000 (01:35 +0200)]
gcc44: add local changes

Changes ported from gcc-4.1.

4 years agompfr: add our READMEs
Simon Schubert [Sun, 2 Aug 2009 18:21:29 +0000 (20:21 +0200)]
mpfr: add our READMEs

4 years agoMerge branch 'vendor/MPFR' into gcc441
Simon Schubert [Sun, 2 Aug 2009 18:21:22 +0000 (20:21 +0200)]
Merge branch 'vendor/MPFR' into gcc441

4 years agogmp: add our READMEs
Simon Schubert [Sun, 2 Aug 2009 18:21:00 +0000 (20:21 +0200)]
gmp: add our READMEs

4 years agoMerge branch 'vendor/GMP' into gcc441
Simon Schubert [Sun, 2 Aug 2009 18:20:50 +0000 (20:20 +0200)]
Merge branch 'vendor/GMP' into gcc441

4 years agogcc44: add our READMEs
Simon Schubert [Sun, 2 Aug 2009 18:20:36 +0000 (20:20 +0200)]
gcc44: add our READMEs

4 years agoMerge branch 'vendor/GCC44' into gcc441
Simon Schubert [Sun, 2 Aug 2009 18:05:15 +0000 (20:05 +0200)]
Merge branch 'vendor/GCC44' into gcc441

4 years agoImport mpfr-2.4.1
Simon Schubert [Sun, 2 Aug 2009 18:03:10 +0000 (20:03 +0200)]
Import mpfr-2.4.1

4 years agoImport gcc-4.4.1
Simon Schubert [Sun, 2 Aug 2009 17:50:58 +0000 (19:50 +0200)]
Import gcc-4.4.1

4 years agoImport gmp-4.3.1
Simon Schubert [Sun, 2 Aug 2009 17:53:02 +0000 (19:53 +0200)]
Import gmp-4.3.1

4 years agoranlib: specify .c instead of .o as SRCS
Simon Schubert [Sat, 1 Aug 2009 16:27:28 +0000 (18:27 +0200)]
ranlib: specify .c instead of .o as SRCS

4 years agolibc: link with -nodefaultlibs -lgcc instead of -nolibc
Simon Schubert [Thu, 30 Jul 2009 08:58:55 +0000 (10:58 +0200)]
libc: link with -nodefaultlibs -lgcc instead of -nolibc

The -nolibc flag is a proprietary DragonFly construct, which is only
used by libc.  It is unnecessary, because the same behavior can be
achieved by specifying -nodefaultslibs -lgcc for linking.

4 years agobsd.cpu.gcc41.mk: don't set CFLAGS directly
Simon Schubert [Sat, 1 Aug 2009 16:24:53 +0000 (18:24 +0200)]
bsd.cpu.gcc41.mk: don't set CFLAGS directly

bsd.cpu.mk already sets CFLAGS from _CPUFLAGS, so don't do it from
bsd.cpu.gcc41.mk.

4 years agobsd.*.mk: allow the setting of separate compile flags for files
Simon Schubert [Sun, 2 Aug 2009 17:13:08 +0000 (19:13 +0200)]
bsd.*.mk: allow the setting of separate compile flags for files

Our makefile infrastructure assumed that all compile flags for all files
are the same.  Now you can specify compile flags for file groups, much
like for FILES and INCS.

This does not support files with pathname components yet.  For this to
work, we'd need support in make to retrieve the full seached path of a
file.

4 years agoDEVFS - remove dev_ops_add(), dev_ops_get(), and get_dev()
Matthew Dillon [Sat, 1 Aug 2009 18:26:48 +0000 (11:26 -0700)]
DEVFS - remove dev_ops_add(), dev_ops_get(), and get_dev()

4 years agofdopendir(3): remove file offset limitation
Nicolas Thery [Sat, 1 Aug 2009 17:46:30 +0000 (19:46 +0200)]
fdopendir(3): remove file offset limitation

It is now possible to pass to fdopendir() a fd with a non-zero file
offset.  This offset determines the initial entry returned by
readdir(3).

4 years agonrelease: Read the # of CPUs when it is actually needed and not generally.
Sascha Wildner [Sat, 1 Aug 2009 20:48:12 +0000 (22:48 +0200)]
nrelease: Read the # of CPUs when it is actually needed and not generally.

This silences some warnings when nrelease/ was entered by {build,quick}world
where it hasn't sysctl(8) in the path.

Suggested-by: corecode
4 years agoDEVFS - Bring in Alex's GSOC kernel adjustments.
Matthew Dillon [Sat, 1 Aug 2009 17:12:57 +0000 (10:12 -0700)]
DEVFS - Bring in Alex's GSOC kernel adjustments.

This is a rollup commit bringing in Alex Hornung's GSOC adjustments
to the main kernel codebase for DEVFS.

Submitted-by: Alex Hornung <ahornung@gmail.com>
4 years agoDEVFS - Bring Alex's GSOC mount_devfs.
Matthew Dillon [Sat, 1 Aug 2009 17:00:18 +0000 (10:00 -0700)]
DEVFS - Bring Alex's GSOC mount_devfs.

This is a rollup commit bringing in Alex Hornung's GSOC mount_devfs
in for DEVFS.

Submitted-by: Alex Hornung <ahornung@gmail.com>
4 years agoDEVFS - Bring Alex's GSOC libc tty/dev adjustments in.
Matthew Dillon [Sat, 1 Aug 2009 16:58:16 +0000 (09:58 -0700)]
DEVFS - Bring Alex's GSOC libc tty/dev adjustments in.

This is a rollup commit bringing in Alex Hornung's GSOC libc tty/dev
adjustments in for DEVFS.

Submitted-by: Alex Hornung <ahornung@gmail.com>
4 years agoDEVFS - Bring Alex's devfsctl into the main tree
Matthew Dillon [Sat, 1 Aug 2009 16:53:21 +0000 (09:53 -0700)]
DEVFS - Bring Alex's devfsctl into the main tree

This is a rollup commit bringing in Alex Hornung's devfsctl into the
main tree.

Submitted-by: Alex Hornung <ahornung@gmail.com>
4 years agoDEVFS - Bring Alex's GSOC DEVFS core into the main tree
Matthew Dillon [Sat, 1 Aug 2009 16:43:36 +0000 (09:43 -0700)]
DEVFS - Bring Alex's GSOC DEVFS core into the main tree

This is a rollup commit bringing in Alex Hornung's GSOC DEVFS project
core in.  This is the VFS portion of the project.

Author: Alex Hornung <ahornung@gmail.com>
Submitted-by: Alex Hornung <ahornung@gmail.com>
5 years agoBring back sys/bus/pci/pcidevs which was deleted accidentally.
Sascha Wildner [Sat, 1 Aug 2009 15:32:29 +0000 (17:32 +0200)]
Bring back sys/bus/pci/pcidevs which was deleted accidentally.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 31 Jul 2009 19:40:50 +0000 (12:40 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoAHCI - Add a description for the loader variables to the AHCI(4) man page.
Matthew Dillon [Fri, 31 Jul 2009 19:40:27 +0000 (12:40 -0700)]
AHCI - Add a description for the loader variables to the AHCI(4) man page.

5 years agodrm/radeon: add RV740 support
Hasso Tepper [Fri, 31 Jul 2009 18:55:52 +0000 (21:55 +0300)]
drm/radeon: add RV740 support

Obtained-from: FreeBSD

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Thu, 30 Jul 2009 18:41:08 +0000 (11:41 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoFix nasty bug in exec*() code that can crash the machine.
Matthew Dillon [Thu, 30 Jul 2009 18:33:36 +0000 (11:33 -0700)]
Fix nasty bug in exec*() code that can crash the machine.

Fix a case where the exec() would sometimes attempt to free a wild pointer,
placing it in the objcache and creating nasty kernel memory corruption.

Reported-by: Borislav Nikolov <none@venom.interbgc.com>
5 years agonlookup.h: Include <sys/file.h> for struct file.
Sascha Wildner [Wed, 29 Jul 2009 18:21:25 +0000 (20:21 +0200)]
nlookup.h: Include <sys/file.h> for struct file.

5 years agoBump __DragonFly_version after removing suser() and suser_cred().
Sascha Wildner [Tue, 28 Jul 2009 21:04:44 +0000 (23:04 +0200)]
Bump __DragonFly_version after removing suser() and suser_cred().

Requested-by: corecode
5 years agogzip.1: Mention that our gzip(1) can now unpack, too.
Sascha Wildner [Tue, 28 Jul 2009 18:33:25 +0000 (20:33 +0200)]
gzip.1: Mention that our gzip(1) can now unpack, too.

5 years agomail.local(8): Raise WARNS to 2.
Sascha Wildner [Tue, 28 Jul 2009 18:28:46 +0000 (20:28 +0200)]
mail.local(8): Raise WARNS to 2.

5 years agogetty(8): Raise WARNS to 2 and fix a warning.
Sascha Wildner [Tue, 28 Jul 2009 17:54:15 +0000 (19:54 +0200)]
getty(8): Raise WARNS to 2 and fix a warning.

5 years agoadd fstatat(2) syscall
Nicolas Thery [Sun, 26 Jul 2009 20:21:23 +0000 (22:21 +0200)]
add fstatat(2) syscall

5 years agonew nlookup functions for "at" syscalls
Nicolas Thery [Tue, 28 Jul 2009 16:32:50 +0000 (18:32 +0200)]
new nlookup functions for "at" syscalls

Factor out common code for handling "at" family of syscalls into
 nlookup_init_at() and nlookup_done_at().

Refactor sys_openat() to use these functions.

5 years agomountd(8): Raise WARNS to 2.
Sascha Wildner [Tue, 28 Jul 2009 16:01:00 +0000 (18:01 +0200)]
mountd(8): Raise WARNS to 2.

5 years agokdump(1): Fix amd64 warning.
Sascha Wildner [Tue, 28 Jul 2009 16:00:40 +0000 (18:00 +0200)]
kdump(1): Fix amd64 warning.

5 years agotruss(1): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Tue, 28 Jul 2009 15:11:31 +0000 (17:11 +0200)]
truss(1): Raise WARNS to 6 and fix warnings.

5 years agokdump(1): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Tue, 28 Jul 2009 12:37:14 +0000 (14:37 +0200)]
kdump(1): Raise WARNS to 6 and fix warnings.

5 years agoRegenerate syscalls.c
Sascha Wildner [Tue, 28 Jul 2009 12:36:25 +0000 (14:36 +0200)]
Regenerate syscalls.c

5 years agomakesyscalls.sh: Constify syscall names array.
Sascha Wildner [Tue, 28 Jul 2009 12:36:03 +0000 (14:36 +0200)]
makesyscalls.sh: Constify syscall names array.

5 years agonrelease: Read the # of CPUs and build with -j / MAKE_JOBS.
Sascha Wildner [Fri, 24 Jul 2009 11:36:13 +0000 (13:36 +0200)]
nrelease: Read the # of CPUs and build with -j / MAKE_JOBS.

While here, do clean up a bit.

5 years agoatomic.[ch]: Clean up some warnings that crept up in the recent weeks.
Sascha Wildner [Tue, 28 Jul 2009 11:58:37 +0000 (13:58 +0200)]
atomic.[ch]: Clean up some warnings that crept up in the recent weeks.

5 years agotelnetd.8: Some more mdoc cleanup.
Sascha Wildner [Tue, 28 Jul 2009 11:53:58 +0000 (13:53 +0200)]
telnetd.8: Some more mdoc cleanup.

5 years agoTCP - Fix re-establishment issues if a client reboots
Matthew Dillon [Tue, 28 Jul 2009 04:22:10 +0000 (21:22 -0700)]
TCP - Fix re-establishment issues if a client reboots

When the machine hosting the client side of a TCP connection
reboots without clearing the connection, the server side will
continue to believe that the connection is in an established
state.  If the client attempts to reconnect using the same
port pair (after rebooting, typically), the sequence space checks
against DOS attacks on the server side will cause the SYN
packets to be dropped.

A dandy solution to this problem is to force a keep-alive within
half a second of receiving a SYN on an ESTABLISHED socket.  The
server will revalidate the connection and, since the client is
actually alive, will get an immediately Reset.  The the next
SYN attempt from the client will then succeed.

A SYN sent as part of a DOS attack has little effect other then
to cause the server to probe the established connection within
half a second of receiving the bogus SYN.

In particular, this fixes issues with TCP NFS connections.  NFS
clients are often unable to umount the NFS mounts and the TCP
connection is left established through the reboot.  Instead of
hanging on SYNs being simply dropped by the server, the server
now properly detects that the connection is in fact dead after
the first SYN and properly reestablishes it on the next one.

5 years agoTCP - Remove net.inet.tcp.minmssoverload
Matthew Dillon [Tue, 28 Jul 2009 00:44:49 +0000 (17:44 -0700)]
TCP - Remove net.inet.tcp.minmssoverload

This feature is horribly broken and has been removed.  It immediately breaks
NFS over TCP, it makes major assumptions about how TCP connections are used
which break standards, particular with regards to imposing a minimum data
size for synchronous communications, and the algorithm does not scale to
network speed AT ALL.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Mon, 27 Jul 2009 23:22:29 +0000 (16:22 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoGZIP - Add SCM ident and commit missed changes to gzip.c
Matthew Dillon [Mon, 27 Jul 2009 23:19:10 +0000 (16:19 -0700)]
GZIP - Add SCM ident and commit missed changes to gzip.c

* Add SCM ident so Xin Li can track the file, and add missed changes
  to gzip.c

5 years agobsd.dep.mk: pass -std= flags to mkdep
Simon Schubert [Mon, 27 Jul 2009 18:35:38 +0000 (20:35 +0200)]
bsd.dep.mk: pass -std= flags to mkdep

5 years agomake: expand .EXPORT/.makeenv variables
Simon Schubert [Mon, 27 Jul 2009 09:43:58 +0000 (11:43 +0200)]
make: expand .EXPORT/.makeenv variables

We need to expand the value of a variable we want to put into the
environment, otherwise they might appear as FOO=bar_${baz}.

5 years agoobjformat: don't hardcode compiler versions
Simon Schubert [Mon, 27 Jul 2009 08:53:36 +0000 (10:53 +0200)]
objformat: don't hardcode compiler versions

In the previous commit a fallback to the "custom" compiler driver was
introduced for unknown compilers.  The previous approach hard-coded
known compiler versions, making it more complicated to add new compilers
to base.

This commit changes slightly the behavior for the "custom" compiler
fallback:  The compiler is searched for like before the "custom" change,
and in addition, in case no compiler could be found, the search is
retried for the "custom" compiler driver.  This way we don't have to
hard-code known compiler versions, while a truely non-existing CCVER
will still be handled by the "custom" compiler driver.

5 years agogzip.1 & co.: Please keep DragonFly timeline for .Dd, not FreeBSD's.
Sascha Wildner [Mon, 27 Jul 2009 14:04:38 +0000 (16:04 +0200)]
gzip.1 & co.: Please keep DragonFly timeline for .Dd, not FreeBSD's.

5 years agomxge.4: Comment out incomplete sentence, use .Fx and add ifmedia(4) xref.
Sascha Wildner [Mon, 27 Jul 2009 14:03:21 +0000 (16:03 +0200)]
mxge.4: Comment out incomplete sentence, use .Fx and add ifmedia(4) xref.

5 years agotelnetd.8: Clean up a bit.
Sascha Wildner [Mon, 27 Jul 2009 14:01:47 +0000 (16:01 +0200)]
telnetd.8: Clean up a bit.

* We do not compile -DBFTPDAEMON so comment out bftp related parts.

* It's 'RFC xxxx', not "RFC-xxxx'.

* Start sentences on a new line.

5 years agoopen.2: Remove trailing whitespace.
Sascha Wildner [Mon, 27 Jul 2009 13:59:13 +0000 (15:59 +0200)]
open.2: Remove trailing whitespace.

5 years agoRemove suser*() functions, manpage and assorted remains.
Sascha Wildner [Sun, 26 Jul 2009 18:50:13 +0000 (20:50 +0200)]
Remove suser*() functions, manpage and assorted remains.

5 years agoImplement autosizing TCP socket buffers.
Peter Avalos [Mon, 20 Jul 2009 01:50:00 +0000 (15:50 -1000)]
Implement autosizing TCP socket buffers.

Normally the socket buffers are static (either derived from global
defaults or set with setsockopt) and do not adapt to real network
conditions. Two things happen: a) your socket buffers are too small
and you can't reach the full potential of the network between both
hosts; b) your socket buffers are too big and you waste a lot of
kernel memory for data just sitting around.

With automatic TCP send and receive socket buffers we can start with a
small buffer and quickly grow it in parallel with the TCP congestion
window to match real network conditions.

New sysctls are:
  net.inet.tcp.sendbuf_auto=1 (enabled)
  net.inet.tcp.sendbuf_inc=8192 (8K, step size)
  net.inet.tcp.sendbuf_max=16777216 (16M, growth limit)
  net.inet.tcp.recvbuf_auto=1 (enabled)
  net.inet.tcp.recvbuf_inc=16384 (16K, step size)
  net.inet.tcp.recvbuf_max=16777216 (16M, growth limit)

Additionally, add limiters and sanity checks for TCP MSS (maximum segment
size) resource exhaustion attacks.

Obtained-from: FreeBSD

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 26 Jul 2009 21:53:05 +0000 (14:53 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoRepair rcenable(8) and rcdisable(8).
Sascha Wildner [Sun, 26 Jul 2009 21:39:27 +0000 (23:39 +0200)]
Repair rcenable(8) and rcdisable(8).

* rcenable(8) was not playing nicely with our three year old change to
  no longer depend on _enable being appended to rc variables for starting
  daemons etc. (i.e., foo_enable=yes and foo=yes both work).

* rcdisable(8) did not properly run rcstop(8) because that needs to be
  run when the variable is still set to 'yes' and not after it's been
  set to 'no'.

Noticed-by: phma on #dragonflybsd
5 years agolibc_r: fix bugs in openat()
Nicolas Thery [Sun, 26 Jul 2009 18:40:46 +0000 (20:40 +0200)]
libc_r: fix bugs in openat()

The openat() wrapper was not locking its file descriptor argument.

Special case the magic AT_FDCWD descriptor in the file descriptor
locking code (_FD_LOCK() / _FD_UNLOCK()) to avoid EINVAL on locking.

5 years agomake openat(2) a POSIX syscall instead of BSD one.
Nicolas Thery [Sun, 26 Jul 2009 16:45:10 +0000 (18:45 +0200)]
make openat(2) a POSIX syscall instead of BSD one.

5 years agoNFS - Increase server-side listen queue for TCP connections from 5 to 64
Matthew Dillon [Sun, 26 Jul 2009 18:56:13 +0000 (11:56 -0700)]
NFS - Increase server-side listen queue for TCP connections from 5 to 64

* The listen queue was not big enough, sometimes when clients boot up
  they get stuck for a short period of time due to their NFS connections
  getting thrown away by the server.

5 years agopriv.9: Mention that NULL_CRED_OKAY is used by priv_check_cred().
Sascha Wildner [Sun, 26 Jul 2009 18:49:02 +0000 (20:49 +0200)]
priv.9: Mention that NULL_CRED_OKAY is used by priv_check_cred().

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 26 Jul 2009 18:35:57 +0000 (11:35 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoGZIP - Add unpack support to gzip
Matthew Dillon [Sun, 26 Jul 2009 18:35:22 +0000 (11:35 -0700)]
GZIP - Add unpack support to gzip

Submitted-by: Xin LI <delphij@delphij.net>
Ported-from: FreeBSD

5 years agoadd fdopendir(3) implementation (1/?)
Nicolas Thery [Sun, 26 Jul 2009 05:45:47 +0000 (07:45 +0200)]
add fdopendir(3) implementation (1/?)

POSIX states that the file offset of the passed descriptor determines the
directory entry read but this commit supports only descriptors with null
offsets.

Also add __fdopendir2() for symmetry with opendir/__opendir2().

5 years agodirent.h: fix typo in comment
Nicolas Thery [Sun, 26 Jul 2009 03:35:22 +0000 (05:35 +0200)]
dirent.h: fix typo in comment

5 years agoopen.2: Fix typo and reword an awkward sounding sentence.
Sascha Wildner [Sat, 25 Jul 2009 22:20:49 +0000 (00:20 +0200)]
open.2: Fix typo and reword an awkward sounding sentence.

5 years agoMerge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Sat, 25 Jul 2009 21:41:31 +0000 (23:41 +0200)]
Merge branch 'master' of ssh://swildner@crater.dragonflybsd.org/repository/git/dragonfly

5 years agotcsetpgrp(3): Return EINVAL upon invalid process group id.
Stathis Kamperis [Sat, 25 Jul 2009 20:03:40 +0000 (23:03 +0300)]
tcsetpgrp(3): Return EINVAL upon invalid process group id.

POSIX mandates it and our man page advertises that we do it already.

DragonFly-bug: <http://bugs.dragonflybsd.org/issue1421>
Partially reviewed-by: dillon@

5 years agoat(1): Print datetime upon job submission as POSIX mandates.
Stathis Kamperis [Sat, 25 Jul 2009 17:21:40 +0000 (20:21 +0300)]
at(1): Print datetime upon job submission as POSIX mandates.

Before:
$ at 20:39
ls
Job 19 will be executed using /bin/sh
$

After:
$ at 20:39
ls
Job 21 will be executed using /bin/sh
Job 21 at Mon Jul 20 20:39:00 2009
$

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1432>

5 years agoadd openat(2) man page
Nicolas Thery [Sat, 25 Jul 2009 07:17:35 +0000 (09:17 +0200)]
add openat(2) man page

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1435>
Obtained-from:   FreeBSD

5 years agoadd openat(2) system call
Nicolas Thery [Sat, 25 Jul 2009 07:12:09 +0000 (09:12 +0200)]
add openat(2) system call

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1435>
Reviewed-by: dillon@
5 years agoman8/Makefile: Fix a small typo and sort alphabetically.
Sascha Wildner [Sat, 25 Jul 2009 07:03:57 +0000 (09:03 +0200)]
man8/Makefile: Fix a small typo and sort alphabetically.

5 years agorc,rc.8,rc.shutdown: Note that rc & rc.shutdown aren't for local modification
Thomas Nikolajsen [Fri, 24 Jul 2009 22:35:31 +0000 (00:35 +0200)]
rc,rc.8,rc.shutdown: Note that rc & rc.shutdown aren't for local modification

Update description of rc.local, rc.shutdown.local &
make alias for latter to rc.8

5 years agoae(4): Reset PHY during resuming
Sepherosa Ziehau [Fri, 24 Jul 2009 11:44:48 +0000 (19:44 +0800)]
ae(4): Reset PHY during resuming

Submitted-by: Alexander Polakov <polachok@gmail.com>
5 years agostty.1: Start sentences on a new line.
Sascha Wildner [Fri, 24 Jul 2009 00:12:25 +0000 (02:12 +0200)]
stty.1: Start sentences on a new line.

5 years agoNFS - Change the mount default from udp to tcp, add "udp" option.
Matthew Dillon [Thu, 23 Jul 2009 22:41:41 +0000 (15:41 -0700)]
NFS - Change the mount default from udp to tcp, add "udp" option.

* Mount_nfs now mounts TCP by default.

* Added "udp" option, and the -U option now works similarly to -T,
  but for udp instead of tcp.

5 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Thu, 23 Jul 2009 20:43:44 +0000 (13:43 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

5 years agoVKE - Move vke_init_addr() to fix panic
Matthew Dillon [Thu, 23 Jul 2009 20:43:11 +0000 (13:43 -0700)]
VKE - Move vke_init_addr() to fix panic

vke_init_addr() requires VKE to be able to send and receive packets, so it
must be called AFTER the cothreads have been created, not before.

5 years agoAdd et_EE.ISO8859-15 locale.
Hasso Tepper [Thu, 23 Jul 2009 19:19:45 +0000 (22:19 +0300)]
Add et_EE.ISO8859-15 locale.