summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Oops... Add the CS_OWN flag to the trace and where commands so thatmarcel2004-07-211-2/+2
| | | | db_stack_trace() actually has a chance to parse its own arguments.
* Semi-gratuitous change. Move two refcount operations to their own linespeter2004-07-211-2/+4
| | | | | rather than be buried inside an if (expression). And now that the if expression is the same in both exit paths, use the same ordering.
* Unify db_stack_trace_cmd(). All it did was look up the thread givenmarcel2004-07-219-88/+45
| | | | | | | | | | | | | | | the thread ID and call db_trace_thread(). Since arm has all the logic in db_stack_trace_cmd(), rename the new DB_COMMAND function to db_stack_trace to avoid conflicts on arm. While here, have db_stack_trace parse its own arguments so that we can use a more natural radix for IDs. If the ID is not a thread ID, or more precisely when no thread exists with the ID, try if there's a process with that ID and return the first thread in it. This makes it easier to print stack traces from the ps output. requested by: rwatson@ tested on: amd64, i386, ia64
* Add kdb_thr_from_pid(), which given a PID returns the first threadmarcel2004-07-212-2/+17
| | | | in the process. This is useful when working from or with a process.
* Add some additional pmap locking and lock assertions.alc2004-07-211-0/+5
|
* Make this test compile again and remove its dependency on sys/pipe.h.silby2004-07-211-1/+2
|
* An a #error discouraging people from using pipe.h from places outsidesilby2004-07-211-4/+1
| | | | the kernel.
* Slide pipe.h include after the _KERNEL define in preparation for disallowingsilby2004-07-211-1/+1
| | | | non-_KERNEL inclusions of pipe.h
* Move the initialization and teardown of pmaps to the vmspace zone'speter2004-07-211-3/+2
| | | | | | | | | | | | | | | | | init and fini handlers. Our vm system removes all userland mappings at exit prior to calling pmap_release. It just so happens that we might as well reuse the pmap for the next process since the userland slate has already been wiped clean. However. There is a functional benefit to this as well. For platforms that share userland and kernel context in the same pmap, it means that the kernel portion of a pmap remains valid after the vmspace has been freed (process exit) and while it is in uma's cache. This is significant for i386 SMP systems with kernel context borrowing because it avoids a LOT of IPIs from the pmap_lazyfix() cleanup in the usual case. Tested on: amd64, i386, sparc64, alpha Glanced at by: alc
* Implement ptrace_set_pc().cognet2004-07-201-0/+9
| | | | Add a stub for ptrace_clear_single_step().
* Remove astpending, it has not been used for a long time.cognet2004-07-201-1/+0
|
* Uncomment the vector relocation code.cognet2004-07-201-4/+2
|
* Nuke disable_intr() and enable_intr(), as it already exists elsewhere.cognet2004-07-203-10/+3
|
* When removing the last reference to a cloner, do not try to unlock twice -mlaier2004-07-201-2/+3
| | | | | | esp. not since the backing memory was just freed. Reviewed by: rwatson
* M_PREPEND() the IP header on to the front of an outgoing raw IP packetrwatson2004-07-201-1/+1
| | | | | using M_DONTWAIT rather than M_WAITOK to avoid sleeping on memory while holding a mutex.
* *sigh* Fix source code compatibility with 5.2.1-RELEASE _again_.wpaul2004-07-201-0/+6
| | | | (Make kdb stuff conditional.)
* Back out previous commit. Even though statfs(2) can take a regularcsjp2004-07-201-0/+4
| | | | | | | | file as an argument, it may still fail for the same reasons that open(2) can. Pointed out by: Jilles Tjoelker Apporived by: bmilekic (mentor)
* Remove reference to ENOTDIR in the documented errorscsjp2004-07-201-4/+0
| | | | | | | | for statfs(2). This is false, if the pathname specified is a regular file, then the information for the file system that the file lives on will be returned. Approved by: bmilekic (mentor)
* Currently if a mount point is not accessible by the calling user,csjp2004-07-202-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | invalid information will be printed if the -t flag is specified. $ df -t ufs Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 495726 139944 316124 31% / /dev/ad0s1e 253678 6438 226946 3% /tmp /dev/ad0s1f 56206340 13594248 38115586 26% /usr /dev/ad0s1d 694126 19812 618784 3% /var /dev/ad0s1d 694126 19812 618784 3% /var $ Note that the mount point which is not accessible shows up as the previous file system that was printed. The reason for this is that df -t will call statfs(2) on the pathname supplied by getfsstat(2). This is done to refresh the file system statistics in the event that a previous file system had a long delay in providing its stats. This change affects the df utility in the following ways: o Teach df has to deal with statfs(2) failing. If statfs(2) fails, fall back on the possibly stale stats provided by the initial call to getfsstat(2). o Print a warning that the fs stats could possibly be stale o Modify the man page and document this new behavior as a bug. Approved by: bmilekic (mentor) PR: 68165
* Slight cosmetic changes.julian2004-07-2012-47/+64
| | | | | | | | | Also introduce a macro to be called by persistent nodes to signal their persistence during shutdown to hide this mechanism from the node author. Make node flags have a consistent style in naming. Document the change.
* The natm sub-command was missing in the TOC of the helpfile.harti2004-07-201-0/+1
|
* Remove reference to fla driver.phk2004-07-202-2/+0
|
* Forced to commit to add:roberto2004-07-200-0/+0
| | | | | | Tested on: amd64 (sledge), sparc64 (panther), IA-64 (pluto1), alpha (beast) in addition to my own machine running 5.2-CURRENT.
* Remove an extra '}'.roberto2004-07-201-1/+0
|
* Add missing Makefile from previous commit.roberto2004-07-201-0/+15
|
* Update our ntpd to the long awaited 4.2.0 version.roberto2004-07-2014-290/+248
| | | | | | | | | | | | | | | This bring us several things: - updated drivers - IPv6 support at last - ntp-genkeys is replaced by ntp-keygen - ntptrace is now a script (courtesy of John Hay) - lots of renamed files from .htm to .html (while I prefer .html, I find the change a bit gratuitous) - still no manpages :( Please test and report. Commit very much helped by: GNU arch (http://gnuarch.org/)
* Update information on build/import.roberto2004-07-201-11/+14
|
* Merge conflicts.roberto2004-07-20104-23620/+0
| | | | Lots of added files, some removed and quite a large number of renames :(
* Merge conflicts (see also previous commit).roberto2004-07-201-148/+170
| | | | | | | | Reinsert our local changes to ntp_control.c: 1.4: Do not log every potential exploit attempt since a denial-of-service may result 1.5: int -> unsigned char fixes
* Revert this file to the vendor version, we don't need to have our ownroberto2004-07-201-1072/+1489
| | | | version of it. Will help further upgrades.
* This commit was generated by cvs2svn to compensate for changes in r132451,roberto2004-07-20378-16291/+95416
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of ntpd 4.2.0roberto2004-07-20380-17509/+97074
| |
* | In ng_device_newhook():glebius2004-07-201-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Return meaningful return errorcodes. - Free previously allocated connection in error cases. In ng_device_rcvdata(): - Return meaningful return errorcodes. - Detach mbuf from netgraph item, and free the item before doing any other actions that may return from method. - Do not call strange malloc() for buffer. [1] - In case of any error jump to end, where mbuf is freed. In ng_device_disconnect(): - Return meaningful return errorcodes. - Free disconnected connection. style(9) in mentioned above functions: - Remove '/* NGD_DEBUG */', when only one line is ifdef'ed. - Remove extra braces to easier reading. - Add space after comma in function calls. PR: kern/41881 (part) Reviewed by: marks Approved by: julian (mentor)
* | Add ng_device(4) to LINT.glebius2004-07-202-0/+2
| | | | | | | | | | Reviewed by: marks Approved by: julian (mentor)
* | 1. Make ng_device.h system include. This fixes module build.glebius2004-07-201-10/+8
| | | | | | | | | | | | | | | | | | 2. Sort includes, while here. 3. s/NULL/0/ in NG_SEND_MSG_HOOK(), since ng_ID_t is integer. PR: kern/41881 (part) Reviewed by: marks Approved by: julian (mentor)
* | Temporary fix for interoperability with Windows and OS X. A more completedfr2004-07-201-1/+1
| | | | | | | | | | | | fix will follow when its ready. Submitted by: simokawa
* | Fix typos.le2004-07-201-3/+3
| | | | | | | | | | PR: misc/67586 Submitted by: Paul A. Hoadley <paulh@logicsquad.net>
* | Fix whitespace and punctuation.le2004-07-201-20/+16
| | | | | | | | | | PR: misc/49967 Submitted by: Sean C. Farley <sean-freebsd@farley.org>
* | Call __mbrtowc() and __wcrtomb() directly instead of taking detourstjr2004-07-203-3/+6
| | | | | | | | through mbrtowc() and wcrtomb().
* | Remove duplicate fortunes and fix some typos.le2004-07-201-396/+9
| | | | | | | | | | | | PR: misc/45839 Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
* | Improve make's diagnostic of mistmatched .if-.endif. This patch isharti2004-07-203-18/+39
| | | | | | | | | | | | | | | | | | | | slightly different from the patch in the PR. The problem is, that make handles .if clauses inside false .if clauses simply by counting them - it doesn't put them onto the conditional stack, nor even parses them so we need an extra line number stack for these ifs. PR: bin/61257 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
* | Add a simple regression test for the stat st_size bug just fixed insilby2004-07-201-0/+82
| | | | | | | | sys_pipe.c
* | o Support the REL32LSB relocation. It's in the ELF file from whichmarcel2004-07-202-18/+36
| | | | | | | | | | | | | | | | | | we construct the EFI image. It doesn't seem to actually end up in the EFI image, AFAICT. o Replace .quad, .long and .short with data8, data4 and data2 resp. The former are gnuisms. o Redefine _start_plabel as a data16 with @iplt(_start) as its value. This is the preferred way to create user PLT entries.
* | Fix a minor error in pipe_stat - st_size was always reported as 0silby2004-07-201-1/+4
| | | | | | | | | | when direct writes kicked in. Whether this affected any applications is unknown.
* | Fix the creation of EFI images that got broken by the import ofmarcel2004-07-204-6/+6
| | | | | | | | | | | | | | | | | | binutils 2.15. The linker now creates a .rela.dyn section for dynamic relocations, while our script created a .rela section. Likewise, we copied the .rela section to the EFI image, but not the .rela.dyn section. The fix is to rename .rela to .rela.dyn in the linker script so that all relocations end up in the same section again. This we copy into the EFI image.
* | The previous revision introduced a compilation error, i.e., the use of analc2004-07-201-1/+1
| | | | | | | | undefined variable. Correct this error.
* | Use warn() instead of perror().tjr2004-07-202-4/+4
| |
* | Don't output too many debug messages for bootverbose.simokawa2004-07-203-11/+16
| | | | | | | | This driver seems to be fairly stable now.
* | Initialize ifp->if_output for FreeBSD-4.simokawa2004-07-201-0/+3
| |
* | Adjust packet length correctly for FreeBSD-4.simokawa2004-07-201-2/+4
| | | | | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
OpenPOWER on IntegriCloud