aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* setlocale(3) has been fixed to match POSIX standard:Ruslan Ermilov2001-03-0222-42/+30
| | | | | | | LC_ALL takes precedence over other LC_* envariables. Notes: svn path=/head/; revision=73349
* POSIX wrote:Ruslan Ermilov2001-03-023-30/+11
| | | | | | | | | | | | | | | | : LC_TIME This variable shall determine the format and : contents of date and time strings when the -v : option is specified. Developers took this wrong. LC_TIME specifies the locale name, not the ``format'' argument of strftime(). Oops: pax -w -f /tmp/foo /dev/null LC_TIME=de_DE.ISO_8859-1 pax -v -f /tmp/foo Notes: svn path=/head/; revision=73345
* Mismatched MFSNAMELEN and MNAMELEN with fstype / fspath.Adrian Chadd2001-03-022-4/+4
| | | | | | | Submitted by: Naoki Kobayashi <shibata@geo.titech.ac.jp> Notes: svn path=/head/; revision=73342
* Removed duplicate $FreeBSD$.Ruslan Ermilov2001-03-021-2/+0
| | | | Notes: svn path=/head/; revision=73341
* Fix setlocale() to conform to the ISO C and POSIX standards.Ruslan Ermilov2001-03-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The below text is quoted from the latest POSIX draft: : The values of locale categories shall be determined by a precedence : order; the first condition met below determines the value: : : 1. If the LC_ALL environment variable is defined and is not null, : the value of LC_ALL shall be used. : 2. If the LC_* environment variable (LC_COLLATE, LC_CTYPE, LC_MESSAGES, : LC_MONETARY, LC_NUMERIC, LC_TIME) is defined and is not null, the : value of the environment variable shall be used to initialize the : category that corresponds to the environment variable. : 3. If the LANG environment variable is defined and is not null, the : value of the LANG environment variable shall be used. : 4. If the LANG environment variable is not set or is set to the empty : string, the implementation-defined default locale shall be used. The conditions 1 and 2 were interchanged, i.e., LC_* were looked first, then LC_ALL, then LANG (note that LC_ALL and LANG were essentially the same, providing the default, with LC_ALL taking precedence over LANG). Now, LC_ALL and LANG serve the different purposes. LC_ALL overrides any LC_*, and LANG provides the default fallback. Testcase: /usr/bin/env LC_ALL=C LC_TIME=de_DE.ISO_8859-1 /bin/date Should return date in the "C" locale format. Inspired by: date(1) reference page in the Draft Notes: svn path=/head/; revision=73340
* mdoc(7) police: fix markup.Ruslan Ermilov2001-03-026-21/+27
| | | | Notes: svn path=/head/; revision=73339
* mdoc(7) police: in -offset clause, spell the ``indent'' correctly.Ruslan Ermilov2001-03-022-16/+16
| | | | Notes: svn path=/head/; revision=73337
* Change "NO_PROFILE_DATA" to "NO_PROFILE_COUNTERS" to match the commit byDavid E. O'Brien2001-03-021-2/+2
| | | | | | | | the FSF/GCC people in the stock 2.97 source that is like our custom change modulo the conditional compilation symbol. Notes: svn path=/head/; revision=73325
* Merged from sys/i386/include/bus_at386.h revision 1.13.KATO Takenori2001-03-021-1/+0
| | | | Notes: svn path=/head/; revision=73324
* Ack! I finally got annoyed enough to actually kill this. There is noPeter Wemm2001-03-023-11/+0
| | | | | | | | | need to manually force the network_interfaces variable in /etc/rc.conf, and it only ever gets in the way. rc.network and rc.network6 DTRT with the default of 'auto'. This should have died over a year ago. Notes: svn path=/head/; revision=73322
* Fix the rest of formatting.Ruslan Ermilov2001-03-021-27/+27
| | | | Notes: svn path=/head/; revision=73321
* Add -g group to usage message.Warner Losh2001-03-021-2/+4
| | | | | | | | | | Don't treat pointer as a boolean, but instead test it against NULL. Add warning for groups that don't exist Submitted by: ru Notes: svn path=/head/; revision=73320
* Switch to using 16 bit handles instead of 32 bit handles.Matt Jacob2001-03-026-87/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a pretty invasive change, but there are three good reasons to do this: 1. We'll never have > 16 bits of handle. 2. We can (eventually) enable the RIO (Reduced Interrupt Operation) bits which return multiple completing 16 bit handles in mailbox registers. 3. The !)$*)$*~)@$*~)$* Qlogic target mode for parallel SCSI spec changed such that at_reserved (which was 32 bits) was split into two pieces- and one of which was a 16 bit handle id that functions like the at_rxid for Fibre Channel (a tag for the f/w to correlate CTIOs with a particular command). Since we had to muck with that and this changed the whole handler architecture, we might as well... Propagate new at_handle on through int ct_fwhandle. Follow implications of changing to 16 bit handles. These above changes at least get Qlogic 1040 cards working in target mode again. 1080/12160 cards don't work yet. In isp.c: Prepare for doing all loop management in outer layers. Notes: svn path=/head/; revision=73319
* Ok, the kernel will panic in kmem_malloc() if the kernel map is full, soJohn Baldwin2001-03-021-4/+0
| | | | | | | | | | malloc with M_WAITOK can't actually return NULL. I wish I could get two people to give me the same answer about this when I ask... Submitted by: jake Notes: svn path=/head/; revision=73318
* Back out a removal that I was far to quick to apply. The root causeMark Murray2001-03-022-0/+6
| | | | | | | has been fixed. Notes: svn path=/head/; revision=73316
* version 1.7 made some changes to correct problems identifed by compilingMatthew N. Dodd2001-03-026-6/+0
| | | | | | | | | | | | | | with egcs-1.1.1. bus_space_write_multi_2() had an extra operation that should have been removed. Remove it. This fixes the panic when bus_space_write_multi_2() is used. Obtained from: jake Notes: svn path=/head/; revision=73314
* - Check to see if malloc() returned NULL even with M_WAITOK.John Baldwin2001-03-021-1/+6
| | | | | | | | | | - Add a KASSERT() to ensure an ithread has a backing kernel thread when we schedule it. - Don't attempt to preemptively switch to an ithread if p_stat of curproc is not SRUN. Notes: svn path=/head/; revision=73313
* Fix isp_print_qentry to print all four lines- it's been broken for months.Matt Jacob2001-03-021-2/+3
| | | | Notes: svn path=/head/; revision=73311
* Add link for resource_query_unit, now documented in theWarner Losh2001-03-021-0/+1
| | | | | | | resource_query_string man page. Notes: svn path=/head/; revision=73310
* Flesh out this man page a bit more. Add information aboutWarner Losh2001-03-021-20/+58
| | | | | | | | | | | | resource_query_unit and improve the descriptions of the parameters passed to these functions. Plus a couple minor formatting/markup changes: o Quote -1 as \-1. o .Dq hints to match resource_int_value(). Notes: svn path=/head/; revision=73309
* Include `dbxelf.h' via tm.h (the approved FSF/GNU way) vs. in our MI header.David E. O'Brien2001-03-021-1/+2
| | | | Notes: svn path=/head/; revision=73307
* Define "FREEBSD_NATIVE" in the freebsd-native header to reduce the amountDavid E. O'Brien2001-03-022-1/+4
| | | | | | | | | | of stuff (and thus length of error output) we put on the invocation command line. Also follow the new FSF/GNU style of giving the symbol a value so it can be used in `if()' statements in addition to `#if' so seldomly compiled in code (on some platforms) gets compiled always, to help reduce bit-rot. Notes: svn path=/head/; revision=73306
* Move the obvious bits of mixed ELF and a.out support down into this MDDavid E. O'Brien2001-03-021-0/+108
| | | | | | | | | | header to reduce the difference of our sources to the stock GNU/FSF ones. While the mix binary format support was nice to have in the FreeBSD MI header as a frame work, it just clutters up too much and makes the FreeBSD MI header more different from the FSF/GNU stock one than it needs to be. Notes: svn path=/head/; revision=73305
* Push as much as was easy of the mixed ELF & a.out support for the i386David E. O'Brien2001-03-021-130/+21
| | | | | | | | | into the i386 MD FreeBSD header. Also comment tweaking, continuation line style changes, and other minor changes to make this closer to the latest FSF/GNU 3.0 sources (to reduce my headache when 3.0 is imported). Notes: svn path=/head/; revision=73304
* Add comments regarding enabling IPv6Gregory Neil Shapiro2001-03-021-0/+4
| | | | | | | Submitted by: ume Notes: svn path=/head/; revision=73303
* There were a few changes missed when this file was converted toIan Dowse2001-03-021-3/+9
| | | | | | | | | | | | | | | | newbus in revision 1.19. As a result, lnc was, I believe, broken for all PCI cards. The softc fields `lnc_btag' and `lnc_bhandle' were not initialised, `rap', `rdp' and `bdp' were initialised to the wrong values, and the size of the DMA ring memory was calculated incorrectly. Paul Richards has further cleanups in the pipeline, but this at least is enough to make the driver usable with VMware. Approved by: paul Notes: svn path=/head/; revision=73302
* Spell deprecated correctly (dufault)Warner Losh2001-03-021-2/+3
| | | | | | | | | | Suggest mergemaster in the 4.x-stable -> current upgrade (fenner) correct path to hints file (fenner) Submitted by: dufault, fenner. Notes: svn path=/head/; revision=73300
* Add the LINPROCFS option.Dag-Erling Smørgrav2001-03-011-0/+1
| | | | | | | Forgotten by: peter Notes: svn path=/head/; revision=73298
* Do not need to define "VERSION" here -- we do it on the command line.David E. O'Brien2001-03-011-3/+0
| | | | Notes: svn path=/head/; revision=73297
* New release notes: CMI8338/8738, CS4281 sound driver, ISO-9660 Unicode,Bruce A. Mah2001-03-012-21/+73
| | | | | | | | | | | | ida crashdumps, login exports PAM environment variables, wall -g, make.conf CPUTYPE, CVS_RSH default now ssh. Updated release notes: ahc(4) updates, ICMP and TCP RSTs, random(4), MFCs noted: rc.syscons. Notes: svn path=/head/; revision=73291
* Correctly emulate linux_connect. For nonblocking sockets, the behaviorJonathan Lemon2001-03-011-51/+21
| | | | | | | | | | | is to return EINPROGRESS, EALREADY, (so_error ONCE), EISCONN. Certain linux applications rely on the so_error (normally 0) being returned in order to operate properly. Tested by: Thomas Moestl <tmoestl@gmx.net> Notes: svn path=/head/; revision=73288
* Free lock before returning from process_worklist_item.Kirk McKusick2001-03-011-1/+3
| | | | | | | Obtained from: Constantine Sapuntzakis <csapuntz@stanford.edu> Notes: svn path=/head/; revision=73287
* Reviewed by: jlemonAdrian Chadd2001-03-0132-175/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An initial tidyup of the mount() syscall and VFS mount code. This code replaces the earlier work done by jlemon in an attempt to make linux_mount() work. * the guts of the mount work has been moved into vfs_mount(). * move `type', `path' and `flags' from being userland variables into being kernel variables in vfs_mount(). `data' remains a pointer into userspace. * Attempt to verify the `type' and `path' strings passed to vfs_mount() aren't too long. * rework mount() and linux_mount() to take the userland parameters (besides data, as mentioned) and pass kernel variables to vfs_mount(). (linux_mount() already did this, I've just tidied it up a little more.) * remove the copyin*() stuff for `path'. `data' still requires copyin*() since its a pointer into userland. * set `mount->mnt_statf_mntonname' in vfs_mount() rather than in each filesystem. This variable is generally initialised with `path', and each filesystem can override it if they want to. * NOTE: f_mntonname is intiailised with "/" in the case of a root mount. Notes: svn path=/head/; revision=73286
* Allocate vm_page_array and vm_page_buckets from the end of the biggest chunkAndrew Gallatin2001-03-011-18/+16
| | | | | | | | | | | | | | | | of memory, rather than from the start. This fixes problems allocating bouncebuffers on alphas where there is only 1 chunk of memory (unlike PCs where there is generally at least one small chunk and a large chunk). Having 1 chunk had been fatal, because these structures take over 13MB on a machine with 1GB of ram. This doesn't leave much room for other structures and bounce buffers if they're at the front. Reviewed by: dfr, anderson@cs.duke.edu, silence on -arch Tested by: Yoriaki FUJIMORI <fujimori@grafin.fujimori.cache.waseda.ac.jp> Notes: svn path=/head/; revision=73282
* The 'X' permission symbol is specified by POSIX.2, so don't say that itBen Smithurst2001-03-011-4/+2
| | | | | | | | | | isn't. Obtained from: NetBSD Confirmed by: ru, wollman Notes: svn path=/head/; revision=73281
* Turn on interrupt-entropy harvesting for all/any mass storage devicesMark Murray2001-03-0132-38/+45
| | | | | | | | | | I could find. I have no doubt missed a couple. Interrupt entropy harvesting is still conditional on the kern.random.sys.harvest_interrupt sysctl. Notes: svn path=/head/; revision=73280
* Fix brokeness in rev. 1.6: this manpage appeared in NetBSD 1.4.Ruslan Ermilov2001-03-011-1/+1
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=73279
* No longer an option. Config(8) is whining over LINT.Mark Murray2001-03-012-6/+0
| | | | Notes: svn path=/head/; revision=73278
* Add code to turn on the entropy harvesting sysctl's as early as possibleDoug Barton2001-03-012-0/+81
| | | | | | | | | during the boot process. We're turning it on by default, based on the actual presence of a configured ethernet card, and/or ppp/tun devices. Of course, it's easy to disable in rc.conf. Notes: svn path=/head/; revision=73277
* Put back several lines that I erroneously deleted in my previous commit. ThisMaxim Sobolev2001-03-011-0/+3
| | | | | | | | | should fix recent segfault of `pkg_info -e'. Submitted by: Garrett Rooney <rooneg@electricjellyfish.net>, knu Notes: svn path=/head/; revision=73276
* Update the BUGS section.Ruslan Ermilov2001-03-011-12/+0
| | | | | | | | The first bug is fixed in tmac.doc, revision 1.21. The second bug fixed in doc-common, revision 1.33. Notes: svn path=/head/; revision=73275
* Fixed undesirable hyphenation on the dash of a flag argument.Ruslan Ermilov2001-03-011-1/+1
| | | | | | | | | | | | | | | | | Example: .Sh SYNOPSIS .Nm natd .Fl unregistered-only .Fl proxy-only .Fl deny-incoming .Fl use-sockets .Fl same-ports Ported from: mdocNG Notes: svn path=/head/; revision=73274
* Fixed two bugs with -tag lists.Ruslan Ermilov2001-03-011-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the -tag list definition didn't have a -width modifier, the first .It call was supposed to set the width depending on the first argument type; if it is a macro name, use the macro's width value; otherwise, use width value of `No'. The following two lists should produce identical output: .Bl -tag -width Er -compact .It Er EINVAL invalid argument .El .Bl -tag -compact .It Er EINVAL invalid argument .El If the outermost -tag list definition did't have a -width modifier, the .It elements of inner lists might not work (producing a list where each successive element `walks' to the right). Example: .Bl -tag -compact .It outer .It outer .Bl -tag -compact .It inner .It inner .El .It outer .It outer .El Ported from: mdocNG Notes: svn path=/head/; revision=73273
* mdoc(7) police: misc fixes.Ruslan Ermilov2001-03-011-8/+5
| | | | Notes: svn path=/head/; revision=73272
* Correct English used.Jeroen Ruigrok van der Werven2001-03-011-7/+7
| | | | Notes: svn path=/head/; revision=73271
* Numerous formatting/content fixes.Ruslan Ermilov2001-03-011-23/+28
| | | | Notes: svn path=/head/; revision=73270
* Hook Warner's resource_* manpages to the build.Jeroen Ruigrok van der Werven2001-03-011-1/+5
| | | | | | | | This includes appropriate MLINKS for the other functions contained within them. Notes: svn path=/head/; revision=73269
* Remove leading . from .Nd description.Jeroen Ruigrok van der Werven2001-03-011-1/+1
| | | | Notes: svn path=/head/; revision=73268
* Fix typo: the the -> to the.Jeroen Ruigrok van der Werven2001-03-011-5/+6
| | | | Notes: svn path=/head/; revision=73267
* h_errno is declared in netdb.h.Warner Losh2001-03-011-2/+0
| | | | Notes: svn path=/head/; revision=73266