summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Build lib/ with WARNS=6 by default.ed2010-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.
* Make WARNS=6 the default for libexec/.ed2010-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.
* Fix several warnings.ed2010-01-021-10/+10
| | | | | | - Add __unused keywords. - Don't shadow a global variable called cr. - Make the global cr variable const.
* Welcome to 2010.imp2010-01-021-2/+2
|
* Properly return the UUID represented by the alias.marcel2010-01-021-1/+1
| | | | | | PR: 142174 Submitted by: Przemyslaw Laczynski <torindel@gmail.com> Pointy hat to: rpaulo
* Change BUS_SPACE_MAXADDR from 2^32-1 to 2^64-1. 2^32-1 is representativemarcel2010-01-021-1/+1
| | | | | | for its origin, more than for its accuracy. MFC after: 1 week
* Fix botches in r201005:marius2010-01-012-5/+5
| | | | | - Actually use the newly introduced sc_res in the front-end. - Remove a whitespace glitch in mk48txx_gettime().
* s/named_confidr/named_confdir/ in the rndc.key check. The line indougb2010-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
* Quiet variable "shadows" warning:obrien2010-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..
* With the introduction of named_conf the -c example in named_flagsdougb2010-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.
* The script hard-coded the assumption that the "configuration directory"dougb2010-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. :)
* sh: Fix some bugs with backquoted builtins:jilles2010-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
* sh(1): document ulimit -w (swapuse rlimit).jilles2009-12-311-2/+5
| | | | MFC after: 1 week
* sh(1): Correct two places where "$@" lacked necessary quotes.jilles2009-12-311-2/+2
| | | | MFC after: 1 week
* If a filter has already been added, actually return EEXIST when tryingbrooks2009-12-311-1/+2
| | | | | | at add it again. MFC after: 1 week
* Use stricter checking to match possible vlan clones by not allowing extrajhb2009-12-311-6/+8
| | | | | | | garbage characters around or within the tag. Reviewed by: brooks MFC after: 3 days
* The devices that supported EVFILT_NETDEV kqueue filters were removed inbrooks2009-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
* o Correct URL to announcements collection.maxim2009-12-311-1/+1
| | | | | | PR: docs/142204 Submitted by: Jason Helfman MFC after: 1 week
* Allow swap out of the kernel stack for the thread with priority greaterkib2009-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
* Fix the experimental NFS client so that it can create Unixrmacklem2009-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
* sh: Use PATH= assignment in type.jilles2009-12-312-1/+27
| | | | | Example: PATH=/var/empty; PATH=/bin type ls
* sh: Allow command -pv and command -pV (lookup using _PATH_STDPATH).jilles2009-12-316-7/+66
|
* Reimplement the boot2 for pc98 completely.nyan2009-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!!
* Don't use 15M-16M area on pc98. It's reserved for some devices.nyan2009-12-312-1/+20
| | | | MFC after: 2 week
* Add setting machine type support to the loader.nyan2009-12-314-1/+112
| | | | MFC after: 2 week
* Happy New Year 2010! :-)obrien2009-12-311-1/+1
|
* Delete the svn:mime-type property from these text files.obrien2009-12-310-0/+0
|
* Create a Node WWN from the *Port* WWN, not vice versa, for 2400s.mjacob2009-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
* If we are using -p it does not make any sense to even create thedougb2009-12-311-2/+2
| | | | MTREENEW file since it will never be used.
* Remove an unused variable.ed2009-12-311-1/+0
|
* Add missing `void' keyword.ed2009-12-311-1/+1
|
* Remove a deleted comment line that was brought back byqingli2009-12-311-1/+0
| | | | | | my previous commit. MFC after: 5 days
* Add new device ID to uipaq driverthompsa2009-12-312-0/+3
| | | | | PR: usb/141936 Submitted by: HASHI Hiroaki
* Disable K&R style function definitions for WARNS=6.ed2009-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.
* It's not necessary to include both Op and Fl for command line optionsdougb2009-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
* Document the DELETE_STALE_RC_FILES option introduced in r201291. This isdougb2009-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.
* Add some patches contributed by jhb:dougb2009-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.
* Treat an empty argument as an error, instead of fetching theru2009-12-301-0/+5
| | | | | | contents of the root directory. MFC after: 1 week
* Let both yacc and lex generate code that passes -Wold-style-definition.ed2009-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.
* Actually set RLE_ALLOCATED when allocating a reserved resource so thatjhb2009-12-301-3/+3
| | | | resource_list_release() will later release the resource instead of failing.
* Fix an error case I missed in the previous change so that the CIS resourcejhb2009-12-301-2/+2
| | | | is fully cleaned up if we fail to find the CIS in the devices ROM.
* Consolidate the route message generation code for when addressqingli2009-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
* Multiple IPv6 addresses of the same prefix can be installed on theqingli2009-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
* sh: Ensure funcnest is decremented if there was an error in the function.jilles2009-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.
* The proxy arp entries could not be added into the system over theqingli2009-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
* Delete the CIS resource after releasing it. This is needed when the CIS isjhb2009-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.
* Teach the PCI bus driver to handle PCIR_BIOS BARs properly and remove specialjhb2009-12-303-10/+81
| | | | | | | | | handling for the PCIR_BIOS decoding enable bit from the cardbus driver. The PCIR_BIOS BAR does include type bits like other BARs. Instead, it is always a 32-bit non-prefetchable memory BAR where the low bit is used as a flag to enable decoding. Reviewed by: imp
* Use bus_*() rather than bus_space_*().jhb2009-12-301-17/+7
|
* Remove no longer used pci_release_resource().jhb2009-12-302-21/+0
|
* - Assert that a reserved resource returned via resource_list_alloc() is notjhb2009-12-301-1/+12
| | | | | | | | | active. - Fix bus_generic_rl_(alloc|release)_resource() to not attempt to fetch a resource list for grandchild devices, but just pass those requests up to the parent directly. This worked by accident previously, but it is better to not let bus drivers try to operate on devices they do not manage.
OpenPOWER on IntegriCloud