summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Mute some warnings on uninitialized variables.Ed Schouten2010-01-022-3/+3
| | | | | | | | The code does the right thing, but the compiler is unable to figure it out. All paths that use that variable use the same invariant. Notes: svn path=/head/; revision=201385
* Remove a warning by adding extra parentheses.Ed Schouten2010-01-021-1/+1
| | | | | | | | GCC generates warnings when using "if (foo = bar)". In this case its use is valid. Notes: svn path=/head/; revision=201384
* Add missing #include for string routines.Ed Schouten2010-01-021-0/+1
| | | | Notes: svn path=/head/; revision=201383
* ANSIfy various tools in usr.bin/.Ed Schouten2010-01-0213-61/+35
| | | | | | | | Most of these tools properly build at WARNS=6, except for their K&R function declarations. Fix this, so we can bump WARNS as well. Notes: svn path=/head/; revision=201382
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-0266-37/+83
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Make WARNS=6 the default for libexec/.Ed Schouten2010-01-0226-10/+41
| | | | | | | | | | | | | | | | | | Just like bin/ and sbin/, I think setting WARNS to the highest value possible will make it more attractive for people to fix warnings. - The WARNS variable is set in the Makefile in the directory of the application itself, making it more likely that it will be removed out of curiosity to see what happens. - New applications will most likely build with WARNS=6 out of the box, because the author would more likely fix the warnings during development than lower WARNS. Unfortunately almost all apps in libexec require a lowered value of WARNS. Notes: svn path=/head/; revision=201380
* Fix several warnings.Ed Schouten2010-01-021-10/+10
| | | | | | | | | - Add __unused keywords. - Don't shadow a global variable called cr. - Make the global cr variable const. Notes: svn path=/head/; revision=201379
* Welcome to 2010.Warner Losh2010-01-021-2/+2
| | | | Notes: svn path=/head/; revision=201375
* Properly return the UUID represented by the alias.Marcel Moolenaar2010-01-021-1/+1
| | | | | | | | | PR: 142174 Submitted by: Przemyslaw Laczynski <torindel@gmail.com> Pointy hat to: rpaulo Notes: svn path=/head/; revision=201374
* Change BUS_SPACE_MAXADDR from 2^32-1 to 2^64-1. 2^32-1 is representativeMarcel Moolenaar2010-01-021-1/+1
| | | | | | | | | for its origin, more than for its accuracy. MFC after: 1 week Notes: svn path=/head/; revision=201373
* Fix botches in r201005:Marius Strobl2010-01-012-5/+5
| | | | | | | | - Actually use the newly introduced sc_res in the front-end. - Remove a whitespace glitch in mk48txx_gettime(). Notes: svn path=/head/; revision=201371
* s/named_confidr/named_confdir/ in the rndc.key check. The line inDoug Barton2010-01-011-2/+2
| | | | | | | | | | the command to create it was right, but the check was wrong, so it was getting created every time. Mea culpa. Submitted by: oliver Notes: svn path=/head/; revision=201370
* Quiet variable "shadows" warning:David E. O'Brien2010-01-012-36/+36
| | | | | | | | | | sys/vmmeter.h: warning: shadowed declaration is here machine/cpufunc.h: In function 'insw': machine/cpufunc.h: warning: declaration of 'cnt' shadows a global declaration ..snip.. Notes: svn path=/head/; revision=201369
* With the introduction of named_conf the -c example in named_flagsDoug Barton2010-01-011-1/+1
| | | | | | | | is no longer necessary or desirable. Update the comment to indicate that _flags should be used for options other than -u and -c. Notes: svn path=/head/; revision=201368
* The script hard-coded the assumption that the "configuration directory"Doug Barton2010-01-011-20/+21
| | | | | | | | | | | | | | would be "/etc/namedb" in a number of places. Since the user may make a different choice, introduce a new internal variable, named_confdir that is generated relative to the location of $named_conf. While this will work for some things (especially a highly customized build from ISC source) there are still a number of places where /etc/namedb is assumed that it is not easily virtualized (E.g., mtree). If you deviate from the defaults you'd better know what you're doing. :) Notes: svn path=/head/; revision=201367
* sh: Fix some bugs with backquoted builtins:Jilles Tjoelker2010-01-017-21/+71
| | | | | | | | | | | | | | | - correctly handle error output in $(builtin 2>&1), clarify out1/out2 vs output/errout in the code - treat all builtins as regular builtins so errors do not abort the shell and variable assignments do not persist - respect the caller's INTOFF Some bugs still exist: - expansion errors may still abort the shell - some side effects of expansions and builtins persist Notes: svn path=/head/; revision=201366
* sh(1): document ulimit -w (swapuse rlimit).Jilles Tjoelker2009-12-311-2/+5
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=201355
* sh(1): Correct two places where "$@" lacked necessary quotes.Jilles Tjoelker2009-12-311-2/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=201354
* If a filter has already been added, actually return EEXIST when tryingBrooks Davis2009-12-311-1/+2
| | | | | | | | | at add it again. MFC after: 1 week Notes: svn path=/head/; revision=201352
* Use stricter checking to match possible vlan clones by not allowing extraJohn Baldwin2009-12-311-6/+8
| | | | | | | | | | garbage characters around or within the tag. Reviewed by: brooks MFC after: 3 days Notes: svn path=/head/; revision=201351
* The devices that supported EVFILT_NETDEV kqueue filters were removed inBrooks Davis2009-12-317-151/+8
| | | | | | | | | | | | | | | r195175. Remove all definitions, documentation, and usage. fifo_misc.c: Remove all kqueue tests as fifo_io.c performs all those that would have remained. Reviewed by: rwatson MFC after: 3 weeks X-MFC note: don't change vlan_link_state() function signature Notes: svn path=/head/; revision=201350
* o Correct URL to announcements collection.Maxim Konovalov2009-12-311-1/+1
| | | | | | | | | PR: docs/142204 Submitted by: Jason Helfman MFC after: 1 week Notes: svn path=/head/; revision=201348
* Allow swap out of the kernel stack for the thread with priority greaterKonstantin Belousov2009-12-312-2/+2
| | | | | | | | | | | | | | | | or equial then PSOCK, not less or equial. Higher priority has lesser numerical value. Existing test does not allow for swapout of the thread waiting for advisory lock, for exiting child or sleeping for timeout. On the other hand, high-priority waiters of VFS/VM events can be swapped out. Tested by: pho Reviewed by: jhb MFC after: 1 week Notes: svn path=/head/; revision=201347
* Fix the experimental NFS client so that it can create UnixRick Macklem2009-12-311-4/+9
| | | | | | | | | | | domain sockets on an NFSv4 mount point. It was generating incorrect XDR in the request for this case. Tested by: infofarmer MFC after: 2 weeks Notes: svn path=/head/; revision=201345
* sh: Use PATH= assignment in type.Jilles Tjoelker2009-12-312-1/+27
| | | | | | | | Example: PATH=/var/empty; PATH=/bin type ls Notes: svn path=/head/; revision=201344
* sh: Allow command -pv and command -pV (lookup using _PATH_STDPATH).Jilles Tjoelker2009-12-316-7/+66
| | | | Notes: svn path=/head/; revision=201343
* Reimplement the boot2 for pc98 completely.Yoshihiro Takahashi2009-12-3122-4590/+1335
| | | | | | | | | | | | | | | | | | | It's based on the newest i386's one and has the advantage of: - ELF binary support. - UFS2 filesystem support. - Many FreeBSD slices support on a disk. Tested by: SATOU Tomokazu ( tomo1770 _ maple _ ocn _ ne _ jp ), WATANABE Kazuhiro ( CQG00620 _ nifty _ ne _ jp ) and nyan MFC after: 2 week Happy New Year in Japan!! Notes: svn path=/head/; revision=201342
* Don't use 15M-16M area on pc98. It's reserved for some devices.Yoshihiro Takahashi2009-12-312-1/+20
| | | | | | | MFC after: 2 week Notes: svn path=/head/; revision=201340
* Add setting machine type support to the loader.Yoshihiro Takahashi2009-12-314-1/+112
| | | | | | | MFC after: 2 week Notes: svn path=/head/; revision=201339
* Happy New Year 2010! :-)David E. O'Brien2009-12-311-1/+1
| | | | Notes: svn path=/head/; revision=201334
* Delete the svn:mime-type property from these text files.David E. O'Brien2009-12-310-0/+0
| | | | Notes: svn path=/head/; revision=201333
* Create a Node WWN from the *Port* WWN, not vice versa, for 2400s.Matt Jacob2009-12-311-5/+4
| | | | | | | | | | If the NAA is type 2, the Node WWN is the Port WWN with the 12 bits of port (48..60) cleared. This iff a wwn fetched from NVRAM is zero. MFC after: 1 week Notes: svn path=/head/; revision=201325
* If we are using -p it does not make any sense to even create theDoug Barton2009-12-311-2/+2
| | | | | | | MTREENEW file since it will never be used. Notes: svn path=/head/; revision=201323
* Remove an unused variable.Ed Schouten2009-12-311-1/+0
| | | | Notes: svn path=/head/; revision=201321
* Add missing `void' keyword.Ed Schouten2009-12-311-1/+1
| | | | Notes: svn path=/head/; revision=201320
* Remove a deleted comment line that was brought back byQing Li2009-12-311-1/+0
| | | | | | | | | my previous commit. MFC after: 5 days Notes: svn path=/head/; revision=201319
* Add new device ID to uipaq driverAndrew Thompson2009-12-312-0/+3
| | | | | | | | PR: usb/141936 Submitted by: HASHI Hiroaki Notes: svn path=/head/; revision=201318
* Disable K&R style function definitions for WARNS=6.Ed Schouten2009-12-313-2/+10
| | | | | | | | | | | | | | | | | Unfortunately there are two slight problems with that: - Yacc and lex might generate code that generates warnings because of this. Require yacc and lex to be rebuilt during bootstrap. I'm not incrementing __FreeBSD_version here, because I assume someone else will do this eventually. - When running `make buildkernel', it uses share/mk from the source treeo to build aicasm. Because aicasm also depends on lex, this would break. Lower WARNS to 5 for now. We should just increment it to 6 again somewhere in the very far future. Notes: svn path=/head/; revision=201300
* It's not necessary to include both Op and Fl for command line optionsDoug Barton2009-12-301-9/+11
| | | | | | | | | included in the text, so use only the latter. Clarify that using -U doesn't make sense in combination with -a Notes: svn path=/head/; revision=201293
* Document the DELETE_STALE_RC_FILES option introduced in r201291. This isDoug Barton2009-12-301-16/+19
| | | | | | | | | | | an "rc file only" option by design. While I'm here, update the comments in the example rc file to indicate which command line options they relate to, and correct the defaults for a couple of options. Notes: svn path=/head/; revision=201292
* Add some patches contributed by jhb:Doug Barton2009-12-301-23/+34
| | | | | | | | | | | | | | | | | | 1. Don't prompt the user for "-U but no db" error if we're using -a 2. Add an option to delete stale rc.d files automatically if the user has DELETE_STALE_RC_FILES in their rc file. Lack of command line option for this is not an oversight. 3. Add []'s around the terminal $ for the $FreeBSD$ test for -F For one bug raised by jhb I did a more thorough solution: There were a lot of things that "snuck in" between the end of the test for -r and the start of the comparison. One of them is the creation of the mtree db, as pointed out by jhb. Fix this problem more thoroughly by moving the end of the test down to where it should/used to be, right before the comparison. As a result, indent the interloping code to match. Notes: svn path=/head/; revision=201291
* Treat an empty argument as an error, instead of fetching theRuslan Ermilov2009-12-301-0/+5
| | | | | | | | | contents of the root directory. MFC after: 1 week Notes: svn path=/head/; revision=201290
* Let both yacc and lex generate code that passes -Wold-style-definition.Ed Schouten2009-12-303-6/+10
| | | | | | | | Both these tools emit code where several functions have no `void' keyword placed in the arugment list when the function has no arguments. Notes: svn path=/head/; revision=201289
* Actually set RLE_ALLOCATED when allocating a reserved resource so thatJohn Baldwin2009-12-301-3/+3
| | | | | | | resource_list_release() will later release the resource instead of failing. Notes: svn path=/head/; revision=201287
* Fix an error case I missed in the previous change so that the CIS resourceJohn Baldwin2009-12-301-2/+2
| | | | | | | is fully cleaned up if we fail to find the CIS in the devices ROM. Notes: svn path=/head/; revision=201286
* Consolidate the route message generation code for when addressQing Li2009-12-301-48/+49
| | | | | | | | | | | aliases were added or deleted. The announced route entry for an address alias is no longer empty because this empty route entry was causing some route daemon to fail and exit abnormally. MFC after: 5 days Notes: svn path=/head/; revision=201285
* Multiple IPv6 addresses of the same prefix can be installed on theQing Li2009-12-301-2/+22
| | | | | | | | | | | | | | | | | same interface. The first address will install the prefix route into the kernel routing table and that prefix will be marked as on-link. Without RADIX_MPATH enabled, the other address aliases of the same prefix will update the prefix reference count but no other routes will be installed. Consequently the prefixes associated with these addresses would not be marked as on-link. As such, incoming packets destined to these address aliases will fail the ND6 on-link check on input. This patch fixes the above problem by searching the kernel routing table and try to find an on-link prefix on the given interface. MFC after: 5 days Notes: svn path=/head/; revision=201284
* sh: Ensure funcnest is decremented if there was an error in the function.Jilles Tjoelker2009-12-301-2/+3
| | | | | | | | | This will be important when things like 'command eval f' will be possible. Currently, the funcnest = 0 assignment in RESET (called when returning to the top level after an error in interactive mode) is really sufficient. Notes: svn path=/head/; revision=201283
* The proxy arp entries could not be added into the system over theQing Li2009-12-309-46/+121
| | | | | | | | | | | | | | | | | | | | | IFF_POINTOPOINT link types. The reason was due to the routing entry returned from the kernel covering the remote end is of an interface type that does not support ARP. This patch fixes this problem by providing a hint to the kernel routing code, which indicates the prefix route instead of the PPP host route should be returned to the caller. Since a host route to the local end point is also added into the routing table, and there could be multiple such instantiations due to multiple PPP links can be created with the same local end IP address, this patch also fixes the loopback route installation failure problem observed prior to this patch. The reference count of loopback route to local end would be either incremented or decremented. The first instantiation would create the entry and the last removal would delete the route entry. MFC after: 5 days Notes: svn path=/head/; revision=201282
* Delete the CIS resource after releasing it. This is needed when the CIS isJohn Baldwin2009-12-301-2/+3
| | | | | | | | | stored in a BAR since the CIS BAR is mapped before the PCI bus driver enumerates all the BARs. Without this change, the PCI bus driver would attempt to initialize a BAR that was already allocated resulting in a panic. Notes: svn path=/head/; revision=201280