aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Do not leave build droppings in /usr/src for usr.sbin/pcvt/keycap andPeter Wemm2004-12-011-0/+4
| | | | | | | | usr.bin/lex/lib for the 32 bit libraries on amd64. Add an explicit obj for these two directories that are built in for the "libraries" target. Notes: svn path=/head/; revision=138291
* Back when VOP_* was introduced, we did not have new-style structPoul-Henning Kamp2004-12-0168-1742/+1086
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initializations but we did have lofty goals and big ideals. Adjust to more contemporary circumstances and gain type checking. Replace the entire vop_t frobbing thing with properly typed structures. The only casualty is that we can not add a new VOP_ method with a loadable module. History has not given us reason to belive this would ever be feasible in the the first place. Eliminate in toto VOCALL(), vop_t, VNODEOP_SET() etc. Give coda correct prototypes and function definitions for all vop_()s. Generate a bit more data from the vnode_if.src file: a struct vop_vector and protype typedefs for all vop methods. Add a new vop_bypass() and make vop_default be a pointer to another struct vop_vector. Remove a lot of vfs_init since vop_vector is ready to use from the compiler. Cast various vop_mumble() to void * with uppercase name, for instance VOP_PANIC, VOP_NULL etc. Implement VCALL() by making vdesc_offset the offsetof() the relevant function pointer in vop_vector. This is disgusting but since the code is generated by a script comparatively safe. The alternative for nullfs etc. would be much worse. Fix up all vnode method vectors to remove casts so they become typesafe. (The bulk of this is generated by scripts) Notes: svn path=/head/; revision=138290
* This commit was generated by cvs2svn to compensate for changes in r138287,Mark Santcroos2004-12-0185-1658/+3570
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=138288
| * Vendor import of Intel ACPI-CA 20041119Mark Santcroos2004-12-0198-1854/+3896
| | | | | | | | Notes: svn path=/vendor-sys/acpica/dist/; revision=138287
* | Add nfs4 to list of net filesystems.Jim Rees2004-12-011-1/+1
| | | | | | | | | | | | | | Approved by: alfred Notes: svn path=/head/; revision=138286
* | don't confuse NFSMNT_ flags with MNT_ flags in statfsJim Rees2004-12-011-1/+0
| | | | | | | | | | | | | | Approved by: alfred Notes: svn path=/head/; revision=138285
* | Fix unvalidated pointer dereference. This is FreeBSD-SA-04:17.procfs.Colin Percival2004-12-012-2/+26
| | | | | | | | Notes: svn path=/head/; revision=138281
* | - Do a better job of handling any Dependent Functions (aka DPFs) that appearJohn Baldwin2004-12-011-69/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the _PRS or _CRS of link devices. If faced with multiple DPFs in a _PRS, we just use the first one. We assume that if _CRS has DPF tags they only contain a single set since multiple DPFs wouldn't make any sense. In practice, the only DPFs I've seen so far for link devices are that the one IRQ resource is surrounded by a DPF tag pair for no apparent reason, and this should handle that case fine now. - Only allocate link structures for IRQ resources for link devices rather than allocating a link structure for every resource. Reviewed by: njl Tested by: phk Notes: svn path=/head/; revision=138280
* | hpfs_lookup() should have a vop_cachedlookup_t prototype an correspondingPoul-Henning Kamp2004-12-011-2/+2
| | | | | | | | | | | | | | argument. Notes: svn path=/head/; revision=138279
* | Remove redundant functions (repo-copied from nfsclient) for dealing withPoul-Henning Kamp2004-12-012-118/+0
| | | | | | | | | | | | | | fifos. Notes: svn path=/head/; revision=138278
* | Correctly prototype union_write with vop_write_t, not vop_read_t.Poul-Henning Kamp2004-12-011-2/+2
| | | | | | | | Notes: svn path=/head/; revision=138277
* | Scripted modification of vop_* prototypes to use typedefs.Poul-Henning Kamp2004-12-012-50/+50
| | | | | | | | Notes: svn path=/head/; revision=138276
* | Don't allow ISO images to be made that try to use boot.flp to boot as theJohn Baldwin2004-12-011-5/+2
| | | | | | | | | | | | | | | | | | | | boot.flp in 5.3 and later is not self-contained and thus not suitable for CD booting. /boot/cdboot is now the only way to boot the install CDs. MFC after: 2 weeks Notes: svn path=/head/; revision=138275
* | Fix for a bug in nfs_mkdir() that called vrele() instead of vput()Jim Rees2004-12-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | in the error cases, causing panics. Adapted from similar fix to NFSv3 mkdir submitted by Mohan Srinivasan mohans at yahoo-inc dot com Approved by: alfred Notes: svn path=/head/; revision=138274
* | Remove a double test for the same ptr != NULL and use the officialHartmut Brandt2004-12-011-7/+6
| | | | | | | | | | | | | | macro for this; reorder an if. Notes: svn path=/head/; revision=138273
* | If a thread is resumed by thr_wake, it should return 0, especially itDavid Xu2004-12-011-5/+15
| | | | | | | | | | | | | | | | | | should not return ERESTART after it caught a signal, otherwise thr_wake() call will be lost, also a timeout wait should not be restarted. Final, using wakeup not wakeup_one to be safeness. Notes: svn path=/head/; revision=138272
* | Mechanically change prototypes for vnode operations to use the new typedefs.Poul-Henning Kamp2004-12-0120-327/+327
| | | | | | | | Notes: svn path=/head/; revision=138270
* | The following code sets up two connected TCP sockets that send data to eachNik Clayton2004-12-013-0/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | other until the window is closed. Then one of the sockets is closed, which will generate a RST once the TCP at the other socket does a window probe. All versions of FreeBSD prior to 11/26/2004 will ignore this RST into a 0 window, causing the connection (and application) to hang indefinitely. On patched versions of FreeBSD (and other operating systems), the RST will be accepted and the program will exit in a few seconds. Submitted by: Michiel Boland Reviewed by: silby Notes: svn path=/head/; revision=138269
* | Mechanically rename s/ng_timeout/ng_callout/g, s/ng_untimeout/ng_uncallout/g.Gleb Smirnoff2004-12-018-33/+33
| | | | | | | | | | | | | | | | | | | | This is done to keep both versions in RELENG_5 and support both APIs. Reviewed by: scottl Approved by: julian (mentor), implicitly Notes: svn path=/head/; revision=138268
* | emit a "typedef vop_foo_t(struct vop_foo_args *);" which we can usePoul-Henning Kamp2004-12-011-0/+1
| | | | | | | | | | | | | | to prototype VOP functions with. Notes: svn path=/head/; revision=138266
* | Style: remove a lot of unnecessary casts, add some and spell the nullHartmut Brandt2004-12-0117-508/+498
| | | | | | | | | | | | | | | | | | pointer constant as NULL. Checked by: diff -r on the object files before and after Notes: svn path=/head/; revision=138264
* | We already have a lock initialization function, use that for fdesc_mtxPoul-Henning Kamp2004-12-011-57/+28
| | | | | | | | | | | | | | | | | | also. Polish badfo stuff. Notes: svn path=/head/; revision=138263
* | Collect the stuff for the /dev/fd/{%d,std{in,out,err}} pseudo-devicePoul-Henning Kamp2004-12-011-55/+52
| | | | | | | | | | | | | | driver at the bottom of the file. Notes: svn path=/head/; revision=138262
* | "nfiles" is a bad name for a global variable. Call it "openfiles" insteadPoul-Henning Kamp2004-12-013-10/+10
| | | | | | | | | | | | | | as this is more correct and matches the sysctl variable. Notes: svn path=/head/; revision=138261
* | Style: move data to top of file.Poul-Henning Kamp2004-12-011-4/+4
| | | | | | | | Notes: svn path=/head/; revision=138260
* | Add missing #includePoul-Henning Kamp2004-12-011-0/+1
| | | | | | | | Notes: svn path=/head/; revision=138259
* | Fix a bunch of stack leaks. These were theoretically harmless, except thatScott Long2004-12-011-5/+11
| | | | | | | | | | | | | | | | | | | | they would leave enough elements on the stack that if you escaped to the loader prompt and then typed 'setenv', it would pull in all of the leaked junk and cause an exception in the environment. There still seems to be 3 leaked elements, but they don't appear to be coming from this file. Notes: svn path=/head/; revision=138258
* | Fix for a race between lookup and readdirplus, that causesPaul Saab2004-12-011-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | a deadlock (with NFS exclusive vnode locks enabled). Lookup grabs the parent's lock and wants to lock child. Readdirplus locks the child and wants to lock parent (for loading the attrs for ".."). The fix is to not load the attrs for ".." in readdirplus. Submitted by: Mohan Srinivasan mohans at yahoo-inc dot com Reviewed by: rwatson Notes: svn path=/head/; revision=138256
* | Clean all dirty pages (dirtied by mmap'ed writes) in nfs_close().Paul Saab2004-12-011-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | This closes a major hole in close-to-open consistency support. Added a new sysctl so that this can be disabled for single NFS client applications with very large amounts of mmap'ed IO (for performance). Submitted by: Mohan Srinivasan mohans at yahoo-inc dot com Reviewed by: rwatson Notes: svn path=/head/; revision=138255
* | Fix for a (blocks) underrun bug where negative values were beingPaul Saab2004-12-011-3/+4
| | | | | | | | | | | | | | | | | | | | | | returned back to df from a statfs call. Causing df to print negative values. Submitted by: Mohan Srinivasan mohans at yahoo-inc dot com Reviewed by: rwatson Notes: svn path=/head/; revision=138254
* | Change gdb_cpu_setreg() to not take the value to which to set theMarcel Moolenaar2004-12-0111-26/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specified register, but a pointer to the in-memory representation of that value. The reason for this is twofold: 1. Not all registers can be represented by a register_t. In particular FP registers fall in that category. Passing the new register value by reference instead of by value makes this point moot. 2. When we receive a G or P packet, both are for writing a register, the packet will have the register value in target-byte order and in the memory representation (modulo the fact that bytes are sent as 2 printable hexadecimal numbers of course). We only need to decode the packet to have a pointer to the register value. This change fixes the bug of extracting the register value of the P packet as a hexadecimal number instead of as a bit array. The quick (and dirty) fix to bswap the register value in gdb_cpu_setreg() as it has been added on i386 and amd64 can therefore be removed and has in fact been that. Tested on: alpha, amd64, i386, ia64, sparc64 Notes: svn path=/head/; revision=138253
* | Completely back out 1.37. Something else is going on and John wants toNate Lawson2004-12-011-9/+0
| | | | | | | | | | | | | | keep the locking and solve the real problem. Notes: svn path=/head/; revision=138251
* | Remove the last vestiges of the userconfig option. None of this actuallyScott Long2004-12-0115-56/+2
| | | | | | | | | | | | | | did anything, so this commit should be considered a NO-OP. Notes: svn path=/head/; revision=138249
* | Fix "Lock ACPI PCI link not exclusively lockedDavid E. O'Brien2004-12-011-0/+12
| | | | | | | | | | | | | | | | | | @sys/dev/acpica/acpi_pci_link.c:153" panic by backing out rev 1.37 in the SMP case. It appears that on a dual-proc machine the assertions in the rev 1.37 commit log hold true. Notes: svn path=/head/; revision=138248
* | Implement the check I was talking about in the previous message already.Max Laier2004-11-303-4/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce domain_init_status to keep track of the init status of the domains list (surprise). 0 = uninitialized, 1 = initialized/unpopulated, 2 = initialized/done. Higher values can be used to support late addition of domains which right now "works", but is potential dangerous. I choose to only give a warning when doing so. Use domain_init_status with if_attachdomain[1]() to ensure that we have a complete domains list when we init the if_afdata array. Store the current value of domain_init_status in if_afdata_initialized. This way we can update if_afdata after a new protocol has been added (once that is allowed). Submitted by: se (with changes) Reviewed by: julian, glebius, se PR: kern/73321 (partly) Notes: svn path=/head/; revision=138239
* | Move ng_socket and ng_btsocket initialization to SI_SUB_PROTO_DOMAIN as theyMax Laier2004-11-302-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | call net_add_domain(). Calling this function too early (or late) breaks assertations about the global domains list. Actually it should be forbidden to call net_add_domain() outside of SI_SUB_PROTO_DOMAIN completely as there are many places where we traverse the domains list unprotected, but for now we allow late calls (mostly to support netgraph). In order to really fix this we have to lock the domains list in all places or find another way to ensure that we can safely walk the list while another thread might be adding a new domain. Spotted by: se Reviewed by: julian, glebius PR: kern/73321 (partly) Notes: svn path=/head/; revision=138238
* | Remove unused cnt variable for the SMP case. Trim some excessive blankPeter Wemm2004-11-301-5/+1
| | | | | | | | | | | | | | lines while here. Notes: svn path=/head/; revision=138237
* | Remove now unused variable.Nate Lawson2004-11-301-1/+0
| | | | | | | | | | | | | | Pointy hat: njl from nskyline_r35 at yahoo com Notes: svn path=/head/; revision=138236
* | add myself as the contact for the pkg_install toolsOliver Eikemeier2004-11-301-0/+1
| | | | | | | | Notes: svn path=/head/; revision=138235
* | Revert last change. It doesn't break mount(8) reportingRuslan Ermilov2004-11-301-0/+2
| | | | | | | | | | | | | | but allows a "nodev" in /etc/fstab, etc. Notes: svn path=/head/; revision=138234
* | Don't bother locking in attach(). At boot time, we're single-threadedNate Lawson2004-11-301-4/+1
| | | | | | | | | | | | | | | | anyway and for some reason, witness seems confused about what's already locked and triggers a false panic. Notes: svn path=/head/; revision=138233
* | Stylification: missing spaces, extra space after function names, castsHartmut Brandt2004-11-3034-1401/+1452
| | | | | | | | | | | | | | | | | | | | | | and the sizeof operator, missing empty lines, void casts, extra empty lines. Checked by: diff on make *.o lst.lib/*.o Submitted by: Max Okumoto <okumoto@soe.ucsd.edu> (partly) Notes: svn path=/head/; revision=138232
* | Use ?= with WARNS.Garrett Wollman2004-11-301-1/+1
| | | | | | | | | | | | | | Requested by: ru Notes: svn path=/head/; revision=138230
* | MLINK crypto.4 to cryptodev.4Christian Brueffer2004-11-301-0/+1
| | | | | | | | | | | | | | | | Stumbled upon by: markus MFC after: 3 days Notes: svn path=/head/; revision=138229
* | Constify the array of predefined shells. It turns out that we need twoHartmut Brandt2004-11-302-45/+63
| | | | | | | | | | | | | | | | | | | | versions of the structure definition for this: one with const char pointers, because otherwise gcc won't let us initialize the fields with constant strings, and one without the const, because we need to work with the structure. Notes: svn path=/head/; revision=138228
* | Chmod the shell testscript to be executable if it isn't already. AccordingHartmut Brandt2004-11-302-0/+2
| | | | | | | | | | | | | | | | to the CVS-Meisters x-mode just happens to work, but is not guaranteed to do so. Try to be on the safe side. Notes: svn path=/head/; revision=138227
* | Forgot to inline umtxq_unlock.David Xu2004-11-301-1/+1
| | | | | | | | Notes: svn path=/head/; revision=138225
* | 1. use per-chain mutex instead of global mutex to reduceDavid Xu2004-11-301-115/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lock collision. 2. Fix two race conditions. One is between _umtx_unlock and signal, also a thread was marked TDF_UMTXWAKEUP by _umtx_unlock, it is possible a signal delivered to the thread will cause msleep returns EINTR, and the thread breaks out of loop, this causes umtx ownership is not transfered to the thread. Another is in _umtx_unlock itself, when the function sets the umtx to UMTX_UNOWNED state, a new thread can come in and lock the umtx, also the function tries to set contested bit flag, but it will fail. Although the function will wake a blocked thread, if that thread breaks out of loop by signal, no contested bit will be set. Notes: svn path=/head/; revision=138224
* | Instead of just not defining a bunch of words when TESTMAIN is set, provideScott Long2004-11-302-14/+45
| | | | | | | | | | | | | | | | stubs that at least handle the stack correctly. This makes it much easier to experiment with loader scripts from userland. Notes: svn path=/head/; revision=138223
* | Change a couple of the primitve list functions to be macros. This changesHartmut Brandt2004-11-3013-756/+23
| | | | | | | | | | | | | | | | | | the semantic of Lst_Datum which formerly returned NULL when the argument node was NULL. There was only one place in the source that relied on this so change that place. Notes: svn path=/head/; revision=138222