summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-07-06fix that fscking "fgetln(): bad file descriptor" bug experienced by many.Gilles Chehade
long story short: datafp is reused by the possibly multiple client sessions of a MTA session. fclosing it in client_close() will cause the file pointer to be invalidated as soon as we fail the primary MX and attempt the second. bug introduced while trying to fix a leak causing a crash for a user, now smtpd will unconditionnally fclose() in MTA_DONE and if a leak still exists then we should track why the mta session doesnt reach MTA_DONE.
2011-07-06Add RADIUS accounting support and some authentication related changes:YASUOKA Masahiko
- Add functions to radius+.c that are required to implement RADIUS accounting. - Send RADIUS Account-Start and Account-Stop messages with attributes that are defined by RFC 2866, 2868, 2869. - If any authentication realm is deleted from the configuration, npppd may exit by segmentation fault. - Delete radius_common.c, radius_common.h and eap.c because they are not used. - Retransmission and failover are reimplemented. - Cleanup
2011-07-06the rest of the uvm commit - I commited from uvm instead of sysBob Beck
(part missed from previous commit)
2011-07-06Make this compile with gcc2.Miod Vallat
2011-07-06Renumber root busses symbolic values, and drop more fields from struct bp_conf,Miod Vallat
soon to become struct generic_attach_args.
2011-07-06These files no longer need to include <machine/nexus.h>Miod Vallat
2011-07-06Drop cpu_dep.cpu_subconf routine, which is no longer used after KA820 supportMiod Vallat
removal.
2011-07-06Make sure typing "make install" twice in a rowIngo Schwarze
installs manuals twice, not only the first time. Admittedly, marking real target files as .PHONY is ugly, but this is the least complex fix found so far. If somebody comes up with something better, i will gladly improve this. Problem originally reported and some prodding by deraadt@.
2011-07-06As non-mp install.md's neither set NCPU, nor will have a bsd.mp,Alexander Hall
we could as well pull the 'mv bsd.mp bsd' and the associated checks out of there. ok deraadt@ "makes sense" todd@
2011-07-06Add support for C99 %ls and %lc format directives, as been documented inStefan Sperling
the vfprintf(3) man page for ages. Based on code from NetBSD/FreeBSD. Prevent ramdisk growth with a maze of #ifdefs. ok robert, no objections deraadt, espie, millert
2011-07-06uvm changes for buffer cache improvements.Bob Beck
1) Make the pagedaemon aware of the memory ranges and size of allocations where memory is being requested, and pass this information on to bufbackoff(), which will later (not yet) be used to ensure that the buffer cache gets out of the way in the right area of memory. Note that this commit does not yet make it *do* that - as currently the buffer cache is all in dma-able memory and it will simply back off. 2) Add uvm_pagerealloc_multi - to be used by the buffer cache code for reallocating pages to particular regions. much of this work by ariane, with smatterings of me, art,and oga ok oga@, thib@, ariane@, deraadt@
2011-07-06Add a regression test for file descriptor passing with UNIX sockets.Matthew Dempsky
ok claudio@
2011-07-06correct $OpenBSD tag may helpAriane van der Steldt
2011-07-06forgot OpenBSD tagAriane van der Steldt
2011-07-06Cleanup presto(4) like other disk drivers.Matthew Dempsky
meh deraadt@, miod@; "haha, you're fixing presto!?" tedu@
2011-07-06Add rc.d(8) script for the system daemons that are restartable.Robert Nagy
From now on rc(8) is going to call these scripts to start them up on boot in the same order than before. In addition the inetd and rwhod variables in rc.conf are deprecated so that inetd_flags and rwhod_flags should be used. The old flags are still going to be used for some time to allow users to switch. There are more rc modifications to come later so let's put this in so we can base more work on this. It is important to mention that you can still keep using rc.local just like the way you did before, and we have no intention to remove that either. I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working on this with me.
2011-07-06Remove old warning about upgrading tic and just exit.Nicholas Marriott
ok millert
2011-07-06Speed up cgetnext() by passing the record we want to parse in toTodd C. Miller
getent() as toprec. Make cap_mkdb faster when building termcap.db. OK nicm@
2011-07-06No need to change tabset path in termtypes.master, they've all beenTodd C. Miller
normalized to be /usr/share/tabset (except one that was missed). OK nicm@
2011-07-06Do not use wildcards in GCC4_ARCH, they do not play well with make's :MMiod Vallat
modifier. Found the hard way...
2011-07-06RegenMiod Vallat
2011-07-06Remove obsolete drivers descriptions; no change in generated files on allMiod Vallat
plotfarms.
2011-07-06Remove support for non-microVAX, non-VAXstation, non-VXT hardware in theMiod Vallat
VAX port. This means, 11/7xx, VAX6000 and VAX8x00 systems, as well as SBI, CMI, BI, XMI and MASSBUS drivers. Most of these files were not being compiled or kept in compilable state over the years anyway.
2011-07-06bzero the agent address. the kernel was for a while very cranky aboutTed Unangst
these things. evne though that's fixed, always good to initialize memory. ok deraadt djm
2011-07-06sigset_t is unsigned, so eliminate a warning by shifting a 1U insteadPhilip Guenthe
of a 1 when creating signal masks. ok millert@
2011-07-06Consistency in stdout redirections.Antoine Jacoutot
2011-07-06When checking if a chunk is in use, do not match on NODEV.Joel Sing
2011-07-06Use a single shutdown hook for the softraid controller instead ofJoel Sing
having one per volume. ok marco@
2011-07-06vndsize() can just return -1; we don't support swapping to vndMatthew Dempsky
anymore.
2011-07-06Compact the vnd sc_flags bits.Matthew Dempsky
ok krw@
2011-07-06Indent, no change.Antoine Jacoutot
2011-07-06On several archs (e.g. hppa, sgi, macppc) readdoslabel() is called after an ↵Kenneth R Westerback
attempt to read a native label fails. Reset B_ERROR/b_error on buf to ensure any i/o failure on that first attempt is forgiven. A la the dkcsum() fix to recover from a disk error.
2011-07-06Remove a trailing \ from a comment which was hiding the altos3 entryNicholas Marriott
(line continuation applies to comments). This doesn't matter now since we strip comments but still isn't right. Spotted by millert@.
2011-07-06Ooops. Missed one 'readdoslabel() only' arch. Do the block <-> sector dance forKenneth R Westerback
write label location here too.
2011-07-06Actually make sr_detach() work. At this stage we never detach softraid(4),Joel Sing
however since this code exists it still should work correctly.
2011-07-06Retain a reference to the registered sensor task so that we can unregisterJoel Sing
it again.
2011-07-06Replace the keyword expansion code with a faster, more readable versionNicholas Marriott
which additionally also supports $Log$ and $Locker. Written by Joerg Sonnenberger and tweaked by me. ok ray
2011-07-06Add a new question to run sysmerge(8) at the end of an upgrade; defaultsAntoine Jacoutot
to no. The way it works is as follow: - if baseXX was selected during the upgrade, etcXX will be added to the args to pass to sysmerge(8) - if xbaseXX was selected during the upgrade, xetcXX will be added to the args to pass to sysmerge(8) Note that etcXX and xetcXX will always be fetched from the first installation source that was configured during the upgrade (it is most likely that other sources contain site specific sets rather than the base ones). This option will not be available when using tape. "read good" krw@ prodded by and ok (with love) pirofti@, ok deraadt@
2011-07-06Move all volume shutdown code into sr_shutdown_discipline() and use a flagJoel Sing
to indicate if we should force a metadata write. ok marco@
2011-07-06On those archs that read their disk (vs iso/udf) disklabels exclusivelyKenneth R Westerback
via readdoslabel(), tweak writedisklabel() to write disklabels at the same place readdoslabel() reads them from. Irregardless of the physical disk sector size. As is done in i386/amd64 already. No change in behaviour for the 'normal' 512-byte sector case. ok deraadt@
2011-07-06Add a new kqfilter for random which returns ARC4_MAIN_MAX_BYTES for readNicholas Marriott
and POOLBYTES for write. looks right to deraadt
2011-07-06future code to handle HTTP 1.1 connection: need to establish a somewhatMarc Espie
persistant connection, will use the same client code for scp and http.
2011-07-06Woops, forgot the copyright!Ariane van der Steldt
2011-07-06Hibernate memory allocator.Ariane van der Steldt
A simple first-fit allocator, intended to manage small ranges of memory. This is currently not called. tested and ok mlarkin@, prodded by deraadt@
2011-07-06Minor turd polishing: hold the vnode lock in vn_rdwr() only whileMatthew Dempsky
necessary. "ok ... wait wait WAIT!! ... oh, yeah, it's fine, ok" guenther@
2011-07-06Document that UNIX sockets support SOCK_SEQPACKET.Matthew Dempsky
2011-07-06Implement SOCK_SEQPACKET for UNIX sockets.Matthew Dempsky
ok claudio@
2011-07-06Correct the check for a sun_path that lacks NUL termination to just requirePhilip Guenthe
that *some* char in sun_path is NUL, not necessarily the last. ok claudio@ tedu@
2011-07-06Test handling of non-NUL terminated sun_path values as well as garbagePhilip Guenthe
in the end of the sockaddr_un. Done with claudio@
2011-07-06remove the predict_whatever stuffs. ok deraadt dlg henningTed Unangst