summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Support the SUSv3 -n option and the "--" end of options marker.Tim J. Robbins2002-05-122-51/+61
| | | | | | | | | | | | Replace "command" with "utility" in the manual page & source to be more consistent with the terminology used in the standard, and to hint that shell builtin commands won't work. Submitted by: Peter Avalos <pavalos@theshell.com> (partially) Approved by: mike Notes: svn path=/head/; revision=96481
* Sigh... Yet a BBSIZE breakage.Poul-Henning Kamp2002-05-121-0/+1
| | | | Notes: svn path=/head/; revision=96479
* Sigh, more BBSIZE related breakage.Poul-Henning Kamp2002-05-126-0/+6
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96478
* #include <sys/disklabel.h> to get BBSIZE.Poul-Henning Kamp2002-05-121-0/+1
| | | | Notes: svn path=/head/; revision=96477
* Main functional change is the implementation of matching of MAC headerLuigi Rizzo2002-05-121-745/+706
| | | | | | | | | | | | | | | | | | | | | | fields as discussed in the commit to ip_fw.c:1.186 On top of this, a ton of non functional changes to clean up the code, write functions to replace sections of code that were replicated multiple times (e.g. the printing or matching of flags and options), splitting long sections of inlined code into separate functions, and the like. I have tested the code quite a bit, but some typos (using one variable in place of another) might have escaped. The "embedded manpage" is a bit inconsistent, but i am leaving fixing it for later. The current format makes no sense, it is over 40 lines long and practically unreadable. We can either split it into sections ( ipfw -h options , ipfw -h pipe , ipfw -h queue ...) or remove it altogether and refer to the manpage. Notes: svn path=/head/; revision=96476
* Retire the bogus uses of the disklabel field d_sbsize and begin toPoul-Henning Kamp2002-05-1213-35/+10
| | | | | | | | | | initialize it to zero so we don't have to have everbody and their aunt including FFS specific header files. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96475
* Add code to match MAC header fields (at the moment supported onLuigi Rizzo2002-05-121-62/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bridged packets only, soon to come also for packets on ordinary ether_input() and ether_output() paths. The syntax is ipfw add <action> MAC dst src type where dst and src can be "any" or a MAC address optionallyfollowed by a mask, e.g. 10:20:30:40:50 10:20:30:40:50/32 10:20:30:40:50&ff:ff:ff:f0:ff:0f and type can be a single ethernet type, a range, or a type followed by a mask (values are always in hexadecimal) e.g. 0800 0800-0806 0800/8 0800&03ff Note, I am still uncertain on what is the best format for inputting these values, having the values in hexadecimal is convenient in most cases but can be confusing sometimes. Suggestions welcome. Implement suggestion from PR 37778 to allow "not me" on destination and source IP. The code in the PR was slightly wrong and interfered with the normal handling of IP addresses. This version hopefully is correct. Minor cleanup of the code, in some places moving the indentation to 4 spaces because the code was becoming too deep. Eventually, in a separate commit, I will move the whole file to 4 space indent. Notes: svn path=/head/; revision=96474
* ARGH! SBLOCK is not unused. Try to get this right.Poul-Henning Kamp2002-05-127-7/+14
| | | | | | | | | | | BBSIZE belongs in <sys/disklabel.h> (but shouldn't be a constant). Define SBLOCK again, using the right math. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96473
* Remove #define for BBOFF, it is assumed == 0 so many places that we mightPoul-Henning Kamp2002-05-123-6/+3
| | | | | | | | | | as well forget about it. In fact the only thing which used it was the SBOFF macro. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96472
* Remove unused BBLOCK and SBLOCK #defines.Poul-Henning Kamp2002-05-123-6/+0
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96471
* Remove the private code for reading UFS superblocks, this does not belongPoul-Henning Kamp2002-05-122-110/+36
| | | | | | | | | | | | | | | | | | | in df(1) when we have multiple filesystem types, and the complications of handling UFS2 pushes this over the edge. Use the .../mount/extern.h to get prototypes of the functions we borrow from there. Constify things to match. (why aren't these functions in a lib anyway ?) Make everything static and set WARNS?=5. The way the "df diskdevice" thing works for unmounted diskdevices is not very general. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96470
* o Remove GIANT_REQUIRED and an excessive number of blank linesAlan Cox2002-05-121-10/+0
| | | | | | | | from vm_map_inherit(). (minherit() need not acquire Giant anymore.) Notes: svn path=/head/; revision=96469
* Fix alpha build. The alpha has dumpsys implemented.Marcel Moolenaar2002-05-121-1/+1
| | | | | | | | | | While here, revert the condition to list the machines for which dumpsys has not been implemented. Reported by: wilko Notes: svn path=/head/; revision=96468
* Enable KTR_TRAP by default.Jake Burkholder2002-05-121-1/+1
| | | | Notes: svn path=/head/; revision=96467
* do-while ASM_OUTPUT_ALIGN to enable its use in more places.David E. O'Brien2002-05-121-3/+5
| | | | Notes: svn path=/head/; revision=96466
* Hide the fd autoselection messages behind the bootverbose case so theyJoerg Wunsch2002-05-122-6/+10
| | | | | | | stop bothering people on their consoles. Notes: svn path=/head/; revision=96465
* NOLIB is gone; put INTERNALLIB back for now.Ruslan Ermilov2002-05-121-0/+2
| | | | Notes: svn path=/head/; revision=96464
* Revert the last change. The corresponding bsd.lib.mk changes wereRuslan Ermilov2002-05-126-6/+25
| | | | | | | already backed out. Notes: svn path=/head/; revision=96463
* Added new bsd.incs.mk which handles installing of header filesRuslan Ermilov2002-05-1251-374/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow. Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1): kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile Replaced all `beforeinstall' targets for installing includes with the INCS stuff. Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE. Consistently use INCLUDEDIR instead of /usr/include. gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff. These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release". Notes: svn path=/head/; revision=96462
* Translated -malign-functions=4 to -falign-functions=16 for the new gcc.Bruce Evans2002-05-121-1/+1
| | | | Notes: svn path=/head/; revision=96461
* Saved 176 bytes by compiling with -fno-guess-branch-probability. TheBruce Evans2002-05-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | default of -fguess-branch-probablility causes time optimizations (?) like rewriting `if (foo) x++;' as `if (!foo) goto forth; back: ; ...; forth: x++; goto back;". This is pessimizes space especially well on i386's because one short branch gets converted to 2 long ones. Removed -fno-align-foo since it is implied by -Os. Previous commit messages seem to have overstated the new alignment bugs in gcc. The only case that affects boot2 is that -fno-align-functions (or equivalently -falign-functions=1) actually gives -falign-functions=2. This is caused by FUNCTION_BOUNDARY being 2 (bytes) instead of 1. The default case where the optimization level is 1 and no alignment options are given is more broken. All alignments are minimal, modulo the bug in FUNCTION_BOUNDARY. This is caused by toplev.c setting defaults too early. Some hacks in previous commits ar not needed now, but may as well be kept until gcc is fixed. The previous on in the Makefile saved 96 bytes of text due to the wrong FUNCTION_BOUNDARY and 32 bytes of data due to unrelated bloat in the alignment of large objects. There aren't even any options to control alignment of data. Notes: svn path=/head/; revision=96460
* Increase the PIO timeout to approximately the value it used to haveJoerg Wunsch2002-05-124-30/+76
| | | | | | | | | | | | | | | before rev 1.229 (~ 100 ms). According to bde, some (old) broken hardware could require it. In order to make timing more accurate than what could be achieved with a loop around DELAY(1), increase loop timing after the initial ~ 1 ms. Also, move the declaration of FDSTS_TIMEOUT out from fdreg.h into fd.c where it actually belongs to. MFC after: 2 days Notes: svn path=/head/; revision=96459
* Add a man page for the devinfo command; I'd argue devinfo is the singleRobert Watson2002-05-122-1/+73
| | | | | | | | | | most useful new command added to FreeBSD 5.0, but maybe that's just me :-). Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org> Notes: svn path=/head/; revision=96458
* Recent zlib does not like Z_FLUSH at the end of inflate().Hajimu UMEMOTO2002-05-121-4/+7
| | | | | | | | | | Reported by: quak@mydiax.ch Obtained from: KAME MFC after: 2 days and approved by re Notes: svn path=/head/; revision=96457
* Properly build lb1spc.asm on Sparc64.David E. O'Brien2002-05-121-3/+28
| | | | Notes: svn path=/head/; revision=96456
* Back out last commit. I expect our bsd.*.mk gods to remove the need forDavid E. O'Brien2002-05-1210-0/+27
| | | | | | | | defining so many extra things in addition to INTERNALLIB. We don't like repetitive C code and we shouldn't for make code either. Notes: svn path=/head/; revision=96455
* There is no more NOLIB.David E. O'Brien2002-05-121-1/+0
| | | | Notes: svn path=/head/; revision=96454
* Back out rev 1.118.David E. O'Brien2002-05-121-12/+5
| | | | Notes: svn path=/head/; revision=96453
* More locking fixes.Benno Rice2002-05-122-6/+26
| | | | Notes: svn path=/head/; revision=96452
* Document my willingness in maintaining share/mk infrastructure.Ruslan Ermilov2002-05-121-0/+1
| | | | Notes: svn path=/head/; revision=96451
* Quiet the peanut gallary and back out magical "breakage".David E. O'Brien2002-05-121-4/+4
| | | | Notes: svn path=/head/; revision=96450
* I was not strict enough with my ordering of things to satisfy make(1) nieveDavid E. O'Brien2002-05-121-28/+26
| | | | | | | symbol evaluation which causes it to be very sensitive to macro ordering. Notes: svn path=/head/; revision=96449
* Tidy up the cleanfiles.David E. O'Brien2002-05-128-6/+10
| | | | Notes: svn path=/head/; revision=96448
* Fixes for building a.out bits.David E. O'Brien2002-05-122-6/+31
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=96447
* Do as you want with GCC.David E. O'Brien2002-05-121-1/+0
| | | | Notes: svn path=/head/; revision=96446
* Add a prototype for rad_get_vendor_attr().Brian Somers2002-05-121-8/+6
| | | | | | | Forgotten by: brian Notes: svn path=/head/; revision=96445
* Don't declare krb5_mcc_ops, it's already declared in <krb5.h>Dag-Erling Smørgrav2002-05-121-2/+0
| | | | Notes: svn path=/head/; revision=96444
* Do the correct locking on processes for DSI and ISI traps.Benno Rice2002-05-122-0/+20
| | | | | | | Copied from: sparc64 Notes: svn path=/head/; revision=96443
* o Rename ia64_count_aps to ia64_count_cpus and reimplement theMarcel Moolenaar2002-05-126-56/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function to return the total number of CPUs and not the highest CPU id. o Define mp_maxid based on the minimum of the actual number of CPUs in the system and MAXCPU. o In cpu_mp_add, when the CPU id of the CPU we're trying to add is larger than mp_maxid, don't add the CPU. Formerly this was based on MAXCPU. Don't count CPUs when we add them. We already know how many CPUs exist. o Replace MAXCPU with mp_maxid when used in loops that iterate over the id space. This avoids a couple of useless iterations. o In cpu_mp_unleash, use the number of CPUs to determine if we need to launch the CPUs. o Remove mp_hardware as it's not used anymore. o Move the IPI vector array from mp_machdep.c to sal.c. We use the array as a centralized place to collect vector assignments. Note that we still assign vectors to SMP specific IPIs in non-SMP configurations. Rename the array from mp_ipi_vector to ipi_vector. o Add IPI_MCA_RENDEZ and IPI_MCA_CMCV. These are used by MCA. Note that IPI_MCA_CMCV is not SMP specific. o Initialize the ipi_vector array so that we place the IPIs in sensible priority classes. The classes are relative to where the AP wake-up vector is located to guarantee that it's the highest priority (external) interrupt. Class assignment is as follows: class IPI notes x AP wake-up (normally x=15) x-1 MCA rendezvous x-2 AST, Rendezvous, stop x-3 CMCV, test Notes: svn path=/head/; revision=96442
* o Acquire and release Giant in vm_object_reference() andAlan Cox2002-05-122-11/+9
| | | | | | | | | | | | vm_object_deallocate(), replacing the assertion GIANT_REQUIRED. o Remove GIANT_REQUIRED from vm_map_protect() and vm_map_simplify_entry(). o Acquire and release Giant around vm_map_protect()'s call to pmap_protect(). Altogether, these changes eliminate the need for mprotect() to acquire and release Giant. Notes: svn path=/head/; revision=96441
* Update the PCI table as per Dell's fickleness.Scott Long2002-05-121-2/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=96440
* Fixed 5 style bugs in VCS ids.Bruce Evans2002-05-121-5/+7
| | | | Notes: svn path=/head/; revision=96439
* Finish converting the rest of the function declaration and prototypesMike Barcroft2002-05-122-17/+17
| | | | | | | to ANSI C. Use new source ID scheme. Notes: svn path=/head/; revision=96438
* Fixed printing the the strip binary's name in error messages.Bruce Evans2002-05-121-1/+1
| | | | Notes: svn path=/head/; revision=96437
* Turn on the set-user-ID bit for k5su if ENABLE_SUID_K5SU is defined.Jacques Vidrine2002-05-125-2/+21
| | | | Notes: svn path=/head/; revision=96436
* CVS_RSH defaults to 'ssh' these days, and not 'rsh'.Giorgos Keramidas2002-05-121-1/+1
| | | | | | | | | PR: docs/37429 Submitted by: Martin v. Löwis <martin@v.loewis.de> Reviewed by: peter Notes: svn path=/head/; revision=96435
* Remove _PATH_CP now that it is defined in paths.hChris D. Faulhaber2002-05-121-3/+0
| | | | | | | Reviewed by: des Notes: svn path=/head/; revision=96434
* To perform even basic error checking, one must have an exit code thatBrian S. Dean2002-05-122-4/+8
| | | | | | | | | | | indicates that not everything worked as expected. Exit non-zero if we timed out while transmitting or receiving a file or if the file did not exist, etc. MFC After: 3 days (re@ willing) Notes: svn path=/head/; revision=96433
* s/demon/daemon/Dima Dorfman2002-05-124-5/+5
| | | | Notes: svn path=/head/; revision=96432
* Remove some duplicate types that should have been removed as part ofMike Barcroft2002-05-111-40/+0
| | | | | | | | | the rearranging in the previous revision. Pointy hat to: cvs update (merging), mike (for not noticing) Notes: svn path=/head/; revision=96431