svn commit: r218877 - in head/lib/msun: . man

2011-02-19 Thread Murray Stokely
Author: murray (doc committer)
Date: Sun Feb 20 05:29:00 2011
New Revision: 218877
URL: http://svn.freebsd.org/changeset/base/218877

Log:
  Add complex(3) manual page documenting our partial support for C99
  complex arithmetic in libm.
  
  Reviewed by:  David Schultz 
  MFC after:2 weeks

Added:
  head/lib/msun/man/complex.3   (contents, props changed)
Modified:
  head/lib/msun/Makefile

Modified: head/lib/msun/Makefile
==
--- head/lib/msun/Makefile  Sun Feb 20 03:35:59 2011(r218876)
+++ head/lib/msun/Makefile  Sun Feb 20 05:29:00 2011(r218877)
@@ -131,7 +131,8 @@ MAN=acos.3 acosh.3 asin.3 asinh.3 atan.
fma.3 fmax.3 fmod.3 hypot.3 ieee.3 ieee_test.3 ilogb.3 j0.3 \
lgamma.3 log.3 lrint.3 lround.3 math.3 nan.3 \
nextafter.3 remainder.3 rint.3 \
-   round.3 scalbn.3 signbit.3 sin.3 sinh.3 sqrt.3 tan.3 tanh.3 trunc.3
+   round.3 scalbn.3 signbit.3 sin.3 sinh.3 sqrt.3 tan.3 tanh.3 trunc.3 \
+   complex.3
 
 MLINKS+=acos.3 acosf.3 acos.3 acosl.3
 MLINKS+=acosh.3 acoshf.3

Added: head/lib/msun/man/complex.3
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ head/lib/msun/man/complex.3 Sun Feb 20 05:29:00 2011(r218877)
@@ -0,0 +1,128 @@
+.\" Copyright (c) 2011 Murray Stokely 
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"notice, this list of conditions and the following disclaimer in the
+.\"documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD$
+.\"
+.Dd February 19, 2011
+.Dt COMPLEX 3
+.Os
+.Sh NAME
+.Nm complex
+.Nd "complex arithmetic"
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In complex.h
+.Sh DESCRIPTION
+These functions support complex arithmetic in the C math library.
+.Sh "LIST OF FUNCTIONS"
+Each of the following
+.Vt "double complex"
+functions has a
+.Vt "float complex"
+counterpart with an
+.Ql f
+appended to the name and a
+.Vt "long double complex"
+counterpart with an
+.Ql l
+appended.
+As an example, the
+.Vt "float complex"
+and
+.Vt "long double complex"
+counterparts of
+.Ft double
+.Fn cabs "double complex z"
+are
+.Ft float
+.Fn cabsf "float complex z"
+and
+.Ft "long double"
+.Fn cabsl "long double complex z" ,
+respectively.
+.de Cl
+.Bl -column "csqrt" "complex absolute value (i.e. norm, modulus, magnitude)"
+.Em "Name  Description"
+..
+.\" Section 7.3.5 - 7.3.7 of ISO C99 standard unimplemented, see BUGS
+.\" Section 7.3.8 of ISO C99 standard
+.Ss Absolute-value Functions
+.Cl
+cabs   complex absolute value (i.e. norm, modulus, magnitude)
+csqrt  complex square root
+.El
+.\" Section 7.3.9 of ISO C99 standard
+.Ss Manipulation Functions
+.Cl
+carg   compute the argument (i.e. phase angle)
+cimag  compute the imaginary part
+conj   compute the complex conjugate
+cproj  compute projection onto Riemann sphere
+creal  compute the real part
+.El
+.Sh SEE ALSO
+.Xr math 3 ,
+.Xr fenv 3 ,
+.Xr ieee 3 ,
+.Xr tgmath 3
+.Rs
+.%T "ISO/IEC 9899:TC3"
+.%U http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
+.Re
+.Sh STANDARDS
+The
+.In complex.h
+functions described here conform to
+.St -isoC-99 .
+.Sh BUGS
+The trigonmetric functions
+.Fn cacos ,
+.Fn casin ,
+.Fn catan ,
+.Fn ccos ,
+.Fn csin ,
+and
+.Fn ctan
+are not implemented.
+.Pp
+The hyperbolic functions
+.Fn cacosh ,
+.Fn casinh ,
+.Fn catanh ,
+.Fn ccosh ,
+.Fn csinh ,
+and
+.Fn ctanh
+are not implemented.
+.Pp
+The exponential

svn commit: r220353 - in stable/8/lib/msun: . man

2011-04-04 Thread Murray Stokely
Author: murray (doc committer)
Date: Tue Apr  5 04:23:08 2011
New Revision: 220353
URL: http://svn.freebsd.org/changeset/base/220353

Log:
  MFC r218877 from head:  Document our complex(3) support in libm.

Added:
  stable/8/lib/msun/man/complex.3
 - copied unchanged from r218877, head/lib/msun/man/complex.3
Modified:
  stable/8/lib/msun/Makefile
Directory Properties:
  stable/8/lib/msun/   (props changed)

Modified: stable/8/lib/msun/Makefile
==
--- stable/8/lib/msun/Makefile  Tue Apr  5 04:18:42 2011(r220352)
+++ stable/8/lib/msun/Makefile  Tue Apr  5 04:23:08 2011(r220353)
@@ -126,7 +126,8 @@ MAN=acos.3 acosh.3 asin.3 asinh.3 atan.
fma.3 fmax.3 fmod.3 hypot.3 ieee.3 ieee_test.3 ilogb.3 j0.3 \
lgamma.3 log.3 lrint.3 lround.3 math.3 nan.3 \
nextafter.3 remainder.3 rint.3 \
-   round.3 scalbn.3 signbit.3 sin.3 sinh.3 sqrt.3 tan.3 tanh.3 trunc.3
+   round.3 scalbn.3 signbit.3 sin.3 sinh.3 sqrt.3 tan.3 tanh.3 trunc.3 \
+   complex.3
 
 MLINKS+=acos.3 acosf.3 acos.3 acosl.3
 MLINKS+=acosh.3 acoshf.3

Copied: stable/8/lib/msun/man/complex.3 (from r218877, 
head/lib/msun/man/complex.3)
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ stable/8/lib/msun/man/complex.3 Tue Apr  5 04:23:08 2011
(r220353, copy of r218877, head/lib/msun/man/complex.3)
@@ -0,0 +1,128 @@
+.\" Copyright (c) 2011 Murray Stokely 
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"notice, this list of conditions and the following disclaimer in the
+.\"documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD$
+.\"
+.Dd February 19, 2011
+.Dt COMPLEX 3
+.Os
+.Sh NAME
+.Nm complex
+.Nd "complex arithmetic"
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In complex.h
+.Sh DESCRIPTION
+These functions support complex arithmetic in the C math library.
+.Sh "LIST OF FUNCTIONS"
+Each of the following
+.Vt "double complex"
+functions has a
+.Vt "float complex"
+counterpart with an
+.Ql f
+appended to the name and a
+.Vt "long double complex"
+counterpart with an
+.Ql l
+appended.
+As an example, the
+.Vt "float complex"
+and
+.Vt "long double complex"
+counterparts of
+.Ft double
+.Fn cabs "double complex z"
+are
+.Ft float
+.Fn cabsf "float complex z"
+and
+.Ft "long double"
+.Fn cabsl "long double complex z" ,
+respectively.
+.de Cl
+.Bl -column "csqrt" "complex absolute value (i.e. norm, modulus, magnitude)"
+.Em "Name  Description"
+..
+.\" Section 7.3.5 - 7.3.7 of ISO C99 standard unimplemented, see BUGS
+.\" Section 7.3.8 of ISO C99 standard
+.Ss Absolute-value Functions
+.Cl
+cabs   complex absolute value (i.e. norm, modulus, magnitude)
+csqrt  complex square root
+.El
+.\" Section 7.3.9 of ISO C99 standard
+.Ss Manipulation Functions
+.Cl
+carg   compute the argument (i.e. phase angle)
+cimag  compute the imaginary part
+conj   compute the complex conjugate
+cproj  compute projection onto Riemann sphere
+creal  compute the real part
+.El
+.Sh SEE ALSO
+.Xr math 3 ,
+.Xr fenv 3 ,
+.Xr ieee 3 ,
+.Xr tgmath 3
+.Rs
+.%T "ISO/IEC 9899:TC3"
+.%U http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
+.Re
+.Sh STANDARDS
+The
+.In complex.h
+functions described here conform to
+.St -isoC-99 .
+.Sh BUGS
+The trigonmetric functions
+.Fn cacos ,
+.Fn casin ,
+.Fn catan ,
+.Fn ccos ,
+.Fn csin ,
+and
+.Fn ctan
+are no

svn commit: r186095 - head/lib/libc/net

2008-12-14 Thread Murray Stokely
Author: murray
Date: Sun Dec 14 22:48:48 2008
New Revision: 186095
URL: http://svn.freebsd.org/changeset/base/186095

Log:
  Add an ENVIRONMENT section to note that the RSH variable can be set to
  override the use of the rsh(1) program in rcmd(3).
  
  PR:   docs/51133
  Obtained from:NetBSD, partially
  MFC after:3 weeks

Modified:
  head/lib/libc/net/rcmd.3

Modified: head/lib/libc/net/rcmd.3
==
--- head/lib/libc/net/rcmd.3Sun Dec 14 22:26:57 2008(r186094)
+++ head/lib/libc/net/rcmd.3Sun Dec 14 22:48:48 2008(r186095)
@@ -238,6 +238,13 @@ For
 .Fn rcmd_af ,
 .Dv PF_UNSPEC
 is also allowed.
+.Sh ENVIRONMENT
+.Bl -tag -width RSH
+.It Ev RSH
+When using the
+.Fn rcmd
+function, this variable is used as the program to run instead of
+.Xr rsh 1 .
 .Sh DIAGNOSTICS
 The
 .Fn rcmd
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r186124 - in head: lib/libfetch usr.bin/fetch

2008-12-15 Thread Murray Stokely
Author: murray
Date: Mon Dec 15 08:27:44 2008
New Revision: 186124
URL: http://svn.freebsd.org/changeset/base/186124

Log:
  Add support for HTTP 1.1 If-Modified-Since behavior.
  
  fetch(1) accepts a new argument -i  that if specified will cause
  the file to be downloaded only if it is more recent than the mtime of
  .
  
  libfetch(3) accepts the mtime in the url structure and a flag to
  indicate when this behavior is desired.
  
  PR:   bin/87841
  Submitted by: Jukka A. Ukkonen  (partially)
  Reviewed by:  des, ru
  MFC after:3 weeks

Modified:
  head/lib/libfetch/fetch.3
  head/lib/libfetch/fetch.h
  head/lib/libfetch/http.c
  head/usr.bin/fetch/fetch.1
  head/usr.bin/fetch/fetch.c

Modified: head/lib/libfetch/fetch.3
==
--- head/lib/libfetch/fetch.3   Mon Dec 15 08:11:45 2008(r186123)
+++ head/lib/libfetch/fetch.3   Mon Dec 15 08:27:44 2008(r186124)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd December 18, 2007
+.Dd December 14, 2008
 .Dt FETCH 3
 .Os
 .Sh NAME
@@ -165,9 +165,16 @@ struct url {
 char   *doc;
 off_t   offset;
 size_t  length;
+time_t  ims_time;
 };
 .Ed
 .Pp
+The
+.Va ims_time
+field stores the time value for
+.Li If-Modified-Since
+HTTP requests.
+.Pp
 The pointer returned by
 .Fn fetchMakeURL
 or
@@ -353,6 +360,22 @@ and
 .Fn fetchPutHTTP
 will use a direct connection even if a proxy server is defined.
 .Pp
+If the
+.Ql i
+(if-modified-since) flag is specified, and
+the
+.Va ims_time
+field is set in 
+.Vt "struct url" ,
+then
+.Fn fetchXGetHTTP
+and
+.Fn fetchGetHTTP
+will send a conditional
+.Li If-Modified-Since
+HTTP header to only fetch the content if it is newer than
+.Va ims_time .
+.Pp
 Since there seems to be no good way of implementing the HTTP PUT
 method in a manner consistent with the rest of the
 .Nm fetch

Modified: head/lib/libfetch/fetch.h
==
--- head/lib/libfetch/fetch.h   Mon Dec 15 08:11:45 2008(r186123)
+++ head/lib/libfetch/fetch.h   Mon Dec 15 08:27:44 2008(r186124)
@@ -46,6 +46,7 @@ struct url {
char*doc;
off_toffset;
size_t   length;
+   time_t   ims_time;
 };
 
 struct url_stat {

Modified: head/lib/libfetch/http.c
==
--- head/lib/libfetch/http.cMon Dec 15 08:11:45 2008(r186123)
+++ head/lib/libfetch/http.cMon Dec 15 08:27:44 2008(r186124)
@@ -63,6 +63,7 @@ __FBSDID("$FreeBSD$");
 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -92,6 +93,7 @@ __FBSDID("$FreeBSD$");
 #define HTTP_MOVED_PERM301
 #define HTTP_MOVED_TEMP302
 #define HTTP_SEE_OTHER 303
+#define HTTP_NOT_MODIFIED  304
 #define HTTP_TEMP_REDIRECT 307
 #define HTTP_NEED_AUTH 401
 #define HTTP_NEED_PROXY_AUTH   407
@@ -797,20 +799,23 @@ FILE *
 http_request(struct url *URL, const char *op, struct url_stat *us,
 struct url *purl, const char *flags)
 {
+   char timebuf[80];
+   char hbuf[MAXHOSTNAMELEN + 7], *host;
conn_t *conn;
struct url *url, *new;
-   int chunked, direct, need_auth, noredirect, verbose;
+   int chunked, direct, ims, need_auth, noredirect, verbose;
int e, i, n, val;
off_t offset, clength, length, size;
time_t mtime;
const char *p;
FILE *f;
hdr_t h;
-   char hbuf[MAXHOSTNAMELEN + 7], *host;
+   struct tm *timestruct;
 
direct = CHECK_FLAG('d');
noredirect = CHECK_FLAG('A');
verbose = CHECK_FLAG('v');
+   ims = CHECK_FLAG('i');
 
if (direct && purl) {
fetchFreeURL(purl);
@@ -879,6 +884,14 @@ http_request(struct url *URL, const char
op, url->doc);
}
 
+   if (ims && url->ims_time) {
+   timestruct = gmtime((time_t *)&url->ims_time);
+   (void)strftime(timebuf, 80, "%a, %d %b %Y %T GMT",
+   timestruct);
+   if (verbose)
+   fetch_info("If-Modified-Since: %s", timebuf);
+   http_cmd(conn, "If-Modified-Since: %s", timebuf);
+   }
/* virtual host */
http_cmd(conn, "Host: %s", host);
 
@@ -940,6 +953,7 @@ http_request(struct url *URL, const char
switch (http_get_reply(conn)) {
case HTTP_OK:
case HTTP_PARTIAL:
+   case HTTP_NOT_MODIFIED:
/* fine */
break;
case HTTP_MOVED_PERM:
@@ -1074,7 +1088,10 @@ http_request(struct url *URL, const char
}
 
/* we have a hit or an error */
-   if (conn->err =

svn commit: r186204 - head/release/doc/en_US.ISO8859-1/hardware

2008-12-16 Thread Murray Stokely
Author: murray
Date: Wed Dec 17 03:24:55 2008
New Revision: 186204
URL: http://svn.freebsd.org/changeset/base/186204

Log:
  1. Update the list of Intel chips which have EM64T and can run the amd64
 port.
  
  2. Increase the known working maximum memory configuration from
 8gb to 32gb.
  
  PR:   docs/102148 (1)
  Submitted by: Mike Meyer  (1 - partially)
  Reviewed by:  hrs
  Approved by:  re (hrs)
  MFC after:1 minute

Modified:
  head/release/doc/en_US.ISO8859-1/hardware/article.sgml

Modified: head/release/doc/en_US.ISO8859-1/hardware/article.sgml
==
--- head/release/doc/en_US.ISO8859-1/hardware/article.sgml  Wed Dec 17 
02:54:18 2008(r186203)
+++ head/release/doc/en_US.ISO8859-1/hardware/article.sgml  Wed Dec 17 
03:24:55 2008(r186204)
@@ -90,22 +90,40 @@

 

- &intel; 64-bit &xeon; (Nocona).  This
-   processor is fabricated on 90nm process technology, and
-   operates with 2.80 to 3.60 GHz (FSB 800MHz) and &intel;
-   E7520/E7525/E7320 chipsets.
+ All multi-core &intel; &xeon; processors except
+   Sossaman have EM64T support.

 

- &intel; &pentium; 4 Processor supporting &intel; EM64T
-   (Prescott).  This is fabricated on 90nm
-   process technology, uses FC-LGA775 package, and operates
-   with 3.20F/3.40F/3.60F GHz and &intel; 925X Express
-   chipsets.  The corresponding S-Spec numbers are SL7L9,
-   SL7L8, SL7LA, SL7NZ, SL7PZ, and SL7PX. Note that
-   processors marked as 5xx numbers do not support
-   EM64T.
+  The single-core &intel; &xeon;
+processors Nocona, Irwindale,
+   Potomac, and Cranford have
+   EM64T support.

+
+   
+ All &intel; Core 2 (not Core Duo) and later
+   processors
+   
+
+   
+ All &intel; &pentium; D processors
+   
+
+   
+ &intel; &pentium; 4s and Celeron Ds using
+   the Cedar Mill core have EM64T
+   support.
+   
+
+   
+ Some &intel; &pentium; 4s and Celeron Ds using
+   the Prescott core have EM64T support.  See
+   the http://processorfinder.intel.com";>Intel
+   Processor Spec Finder for the definitive answer about
+   EM64T support in Intel processors.
+   
+
   
 
   &intel; EM64T is an extended version of IA-32 (x86) and
@@ -114,7 +132,7 @@
to &intel; EM64T as 64-bit extension technology
or IA-32e.
 
-  The largest tested memory configuration to date is 8GB.
+  The largest tested memory configuration to date is 32GB.
SMP support has been recently completed and is reasonably
robust.
 
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r186205 - stable/7/release/doc/en_US.ISO8859-1/hardware

2008-12-16 Thread Murray Stokely
Author: murray
Date: Wed Dec 17 03:48:35 2008
New Revision: 186205
URL: http://svn.freebsd.org/changeset/base/186205

Log:
  MFC: r186204
  
  Update the list of Intel chips with EM64T for FreeBSD/amd64 and
  increase the known maximum memory configuration from 8gb to 32gb.
  
  Approved by:  re (hrs)

Modified:
  stable/7/release/doc/en_US.ISO8859-1/hardware/article.sgml

Modified: stable/7/release/doc/en_US.ISO8859-1/hardware/article.sgml
==
--- stable/7/release/doc/en_US.ISO8859-1/hardware/article.sgml  Wed Dec 17 
03:24:55 2008(r186204)
+++ stable/7/release/doc/en_US.ISO8859-1/hardware/article.sgml  Wed Dec 17 
03:48:35 2008(r186205)
@@ -92,21 +92,40 @@
 
 
 
-  &intel; 64-bit &xeon; (Nocona).
-   This processor is fabricated on 90nm process technology, and operates
-   with 2.80 to 3.60 GHz (FSB 800MHz) and &intel; E7520/E7525/E7320 
chipsets.
+  All multi-core &intel; &xeon; processors except
+Sossaman have EM64T support.
 
 
 
-  &intel; &pentium; 4 Processor supporting &intel; EM64T
-   (Prescott).
-   This is fabricated on 90nm process technology,
-   uses FC-LGA775 package, and operates with 3.20F/3.40F/3.60F GHz
-   and &intel; 925X Express chipsets.
-   The corresponding S-Spec numbers are SL7L9, SL7L8, SL7LA, SL7NZ, SL7PZ,
-   and SL7PX.  Note that processors marked as 5xx numbers do not support
-   EM64T.
+  The single-core &intel; &xeon;
+processors Nocona, Irwindale,
+Potomac, and Cranford have
+EM64T support.
 
+
+
+  All &intel; Core 2 (not Core Duo) and later
+processors
+
+
+
+  All &intel; &pentium; D processors
+
+
+
+  &intel; &pentium; 4s and Celeron Ds using
+the Cedar Mill core have EM64T
+support.
+
+
+
+  Some &intel; &pentium; 4s and Celeron Ds using
+the Prescott core have EM64T support.  See
+the http://processorfinder.intel.com";>Intel
+Processor Spec Finder for the definitive answer about
+EM64T support in Intel processors.
+
+
   
 
   &intel; EM64T is an extended version of IA-32 (x86) and
@@ -115,7 +134,7 @@
 64-bit extension technology or IA-32e.
 
   The largest tested
-memory configuration to date is 8GB.  SMP support has been
+memory configuration to date is 32GB.  SMP support has been
 recently completed and is reasonably robust.
 
   In many respects, &os;/&arch.amd64; is similar to &os;/&arch.i386;, in
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r186206 - releng/7.1/release/doc/en_US.ISO8859-1/hardware

2008-12-16 Thread Murray Stokely
Author: murray
Date: Wed Dec 17 03:57:28 2008
New Revision: 186206
URL: http://svn.freebsd.org/changeset/base/186206

Log:
  MFC: r186204
  
  Update the list of Intel chips with EM64T for FreeBSD/amd64 and
  increase the known maximum memory configuration from 8gb to 32gb.
  
  Approved by:  re (hrs)

Modified:
  releng/7.1/release/doc/en_US.ISO8859-1/hardware/article.sgml

Modified: releng/7.1/release/doc/en_US.ISO8859-1/hardware/article.sgml
==
--- releng/7.1/release/doc/en_US.ISO8859-1/hardware/article.sgmlWed Dec 
17 03:48:35 2008(r186205)
+++ releng/7.1/release/doc/en_US.ISO8859-1/hardware/article.sgmlWed Dec 
17 03:57:28 2008(r186206)
@@ -92,21 +92,40 @@
 
 
 
-  &intel; 64-bit &xeon; (Nocona).
-   This processor is fabricated on 90nm process technology, and operates
-   with 2.80 to 3.60 GHz (FSB 800MHz) and &intel; E7520/E7525/E7320 
chipsets.
+  All multi-core &intel; &xeon; processors except
+Sossaman have EM64T support.
 
 
 
-  &intel; &pentium; 4 Processor supporting &intel; EM64T
-   (Prescott).
-   This is fabricated on 90nm process technology,
-   uses FC-LGA775 package, and operates with 3.20F/3.40F/3.60F GHz
-   and &intel; 925X Express chipsets.
-   The corresponding S-Spec numbers are SL7L9, SL7L8, SL7LA, SL7NZ, SL7PZ,
-   and SL7PX.  Note that processors marked as 5xx numbers do not support
-   EM64T.
+  The single-core &intel; &xeon;
+processors Nocona, Irwindale,
+Potomac, and Cranford have
+EM64T support.
 
+
+
+  All &intel; Core 2 (not Core Duo) and later
+processors
+
+
+
+  All &intel; &pentium; D processors
+
+
+
+  &intel; &pentium; 4s and Celeron Ds using
+the Cedar Mill core have EM64T
+support.
+
+
+
+  Some &intel; &pentium; 4s and Celeron Ds using
+the Prescott core have EM64T support.  See
+the http://processorfinder.intel.com";>Intel
+Processor Spec Finder for the definitive answer about
+EM64T support in Intel processors.
+
+
   
 
   &intel; EM64T is an extended version of IA-32 (x86) and
@@ -115,7 +134,7 @@
 64-bit extension technology or IA-32e.
 
   The largest tested
-memory configuration to date is 8GB.  SMP support has been
+memory configuration to date is 32GB.  SMP support has been
 recently completed and is reasonably robust.
 
   In many respects, &os;/&arch.amd64; is similar to &os;/&arch.i386;, in
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r186208 - head/release/doc/en_US.ISO8859-1/hardware

2008-12-16 Thread Murray Stokely
Author: murray
Date: Wed Dec 17 04:15:38 2008
New Revision: 186208
URL: http://svn.freebsd.org/changeset/base/186208

Log:
  1. Correct capitalization of a closing tag (no effect on output).
  2. Ensure all &arch entities end with ';' (no effect on output).
  3. Ensure all &arch lists for drivers/features are comma-separated.
  
  PR:   docs/127840 (item 2 only)
  MFC after:1 week

Modified:
  head/release/doc/en_US.ISO8859-1/hardware/article.sgml

Modified: head/release/doc/en_US.ISO8859-1/hardware/article.sgml
==
--- head/release/doc/en_US.ISO8859-1/hardware/article.sgml  Wed Dec 17 
04:00:43 2008(r186207)
+++ head/release/doc/en_US.ISO8859-1/hardware/article.sgml  Wed Dec 17 
04:15:38 2008(r186208)
@@ -91,7 +91,7 @@
 

  All multi-core &intel; &xeon; processors except
-   Sossaman have EM64T support.
+   Sossaman have EM64T support.

 

@@ -778,7 +778,7 @@
 
   &hwlist.tl;
 
-  [&arch.amd64;, &arch.i386, &arch.pc98;] SMC 83c17x
+  [&arch.amd64;, &arch.i386;, &arch.pc98;] SMC 83c17x
(EPIC)-based Ethernet NICs (&man.tx.4; driver)
 
   &hwlist.txp;
@@ -802,7 +802,7 @@
 
   FDDI Interfaces
 
-  [&arch.i386, &arch.pc98;] DEC DEFPA PCI (&man.fpa.4;
+  [&arch.i386;, &arch.pc98;] DEC DEFPA PCI (&man.fpa.4;
driver)
 
   [&arch.i386;] DEC DEFEA EISA (&man.fpa.4; driver)
@@ -811,17 +811,17 @@
 
   ATM Interfaces
 
-  [&arch.i386, &arch.pc98;] Midway-based ATM interfaces
+  [&arch.i386;, &arch.pc98;] Midway-based ATM interfaces
(&man.en.4; driver)
 
-  [&arch.i386, &arch.pc98; &arch.sparc64;] FORE Systems,
+  [&arch.i386;, &arch.pc98; &arch.sparc64;] FORE Systems,
Inc. PCA-200E ATM PCI Adapters (hfa and &man.fatm.4;
drivers)
 
   [&arch.i386;, &arch.pc98;] IDT NICStAR 77201/211-based ATM
Adapters (&man.idt.4; driver)
 
-  [&arch.i386, &arch.pc98; &arch.sparc64;] FORE Systems,
+  [&arch.i386;, &arch.pc98; &arch.sparc64;] FORE Systems,
Inc. HE155 and HE622 ATM interfaces (&man.hatm.4;
driver)
 
@@ -1026,7 +1026,7 @@
 
   Serial Interfaces
 
-  [&arch.amd64; &arch.i386;] PC standard
+  [&arch.amd64;, &arch.i386;] PC standard
8250, 16450, and 16550-based serial ports (&man.sio.4;
driver)
 
@@ -1034,7 +1034,7 @@
 
   &hwlist.scc;
 
-  [&arch.amd64; &arch.i386;] AST 4 port serial card using
+  [&arch.amd64;, &arch.i386;] AST 4 port serial card using
shared IRQ
 
   [&arch.i386;] ARNET serial cards (&man.ar.4;
@@ -1086,25 +1086,25 @@
   [&arch.i386;] DigiBoard intelligent serial cards (digi
driver)
 
-  [&arch.amd64;, &arch.i386, &arch.ia64;] PCI-Based
+  [&arch.amd64;, &arch.i386;, &arch.ia64;] PCI-Based
multi-port serial boards (&man.puc.4; driver)
 
   

- [&arch.amd64; &arch.i386;] Actiontech 56K PCI
+ [&arch.amd64;, &arch.i386;] Actiontech 56K PCI

 

- [&arch.amd64; &arch.i386;] Avlab Technology, PCI IO 2S
+ [&arch.amd64;, &arch.i386;] Avlab Technology, PCI IO 2S
and PCI IO 4S

 

- [&arch.amd64; &arch.i386;] Comtrol RocketPort 550
+ [&arch.amd64;, &arch.i386;] Comtrol RocketPort 550

 

- [&arch.amd64; &arch.i386;] Decision Computers PCCOM
+ [&arch.amd64;, &arch.i386;] Decision Computers PCCOM
4-port serial and dual port RS232/422/485

 
@@ -1113,92 +1113,92 @@

 

- [&arch.amd64; &arch.i386;] Dolphin Peripherals
+ [&arch.amd64;, &arch.i386;] Dolphin Peripherals
4025/4035/4036

 

- [&arch.amd64; &arch.i386;] IC Book Labs Dreadnought
+ [&arch.amd64;, &arch.i386;] IC Book Labs Dreadnought
16x Lite and Pro

 

- [&arch.amd64; &arch.i386;] Lava Computers
+ [&arch.amd64;, &arch.i386;] Lava Computers
2SP-PCI/DSerial-PCI/Quattro-PCI/Octopus-550

 

- [&arch.amd64; &arch.i386;] Middle Digital, Weasle
+ [&arch.amd64;, &arch.i386;] Middle Digital, Weasle
serial port

 

- [&arch.amd64; &arch.i386;] Moxa Industio CP-114,
+ [&arch.amd64;, &arch.i386;] Moxa Industio CP-114,
Smartio C104H-PCI and C168H/PCI

 

- [&arch.amd64; &arch.i386;] NEC PK-UG-X001 and
+ [&arch.amd64;, &arch.i386;] NEC PK-UG-X001 and
PK-UG-X008

 

- [&arch.amd64; &arch.i386;] Netmos NM9835
+ [&arch.amd64;, &arch.i386;] Netmos NM9835
PCI-2S-550

 

- [&arch.amd64; &arch.i386;] Oxford Semiconductor
+ [&arch.amd64;, &arch.i386;] Oxford Semiconductor
OX16PCI954 PCI UART

 
   

svn commit: r186241 - in head: lib/libfetch usr.bin/fetch

2008-12-17 Thread Murray Stokely
Author: murray
Date: Wed Dec 17 18:00:18 2008
New Revision: 186241
URL: http://svn.freebsd.org/changeset/base/186241

Log:
  1. Update fetch to consistently return 1 on error, as the man page states,
 rather than usually returning 1 but in a few instances using a sysexits(3)
 return value.
  
  2. Remove a few unused variables from libfetch.
  
  PR:   docs/122470  (1, only)
  Reviewed by:  des
  > Description of fields to fill in above: 76 columns --|
  > PR:If a GNATS PR is affected by the change.
  > Submitted by:  If someone else sent in the change.
  > Reviewed by:   If someone else reviewed your modification.
  > Approved by:   If you needed approval for this commit.
  > Obtained from: If the change is from a third party.
  > MFC after: N [day[s]|week[s]|month[s]].  Request a reminder email.
  > Security:  Vulnerability reference (one per line) or description.
  > Empty fields above will be automatically removed.
  
  Musr.bin/fetch/fetch.c
  Mlib/libfetch/fetch.c

Modified:
  head/lib/libfetch/fetch.c
  head/usr.bin/fetch/fetch.c

Modified: head/lib/libfetch/fetch.c
==
--- head/lib/libfetch/fetch.c   Wed Dec 17 17:43:22 2008(r186240)
+++ head/lib/libfetch/fetch.c   Wed Dec 17 18:00:18 2008(r186241)
@@ -74,9 +74,7 @@ static struct fetcherr url_errlist[] = {
 FILE *
 fetchXGet(struct url *URL, struct url_stat *us, const char *flags)
 {
-   int direct;
 
-   direct = CHECK_FLAG('d');
if (us != NULL) {
us->size = -1;
us->atime = us->mtime = 0;
@@ -110,9 +108,7 @@ fetchGet(struct url *URL, const char *fl
 FILE *
 fetchPut(struct url *URL, const char *flags)
 {
-   int direct;
 
-   direct = CHECK_FLAG('d');
if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
return (fetchPutFile(URL, flags));
else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
@@ -132,9 +128,7 @@ fetchPut(struct url *URL, const char *fl
 int
 fetchStat(struct url *URL, struct url_stat *us, const char *flags)
 {
-   int direct;
 
-   direct = CHECK_FLAG('d');
if (us != NULL) {
us->size = -1;
us->atime = us->mtime = 0;
@@ -158,9 +152,7 @@ fetchStat(struct url *URL, struct url_st
 struct url_ent *
 fetchList(struct url *URL, const char *flags)
 {
-   int direct;
 
-   direct = CHECK_FLAG('d');
if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
return (fetchListFile(URL, flags));
else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)

Modified: head/usr.bin/fetch/fetch.c
==
--- head/usr.bin/fetch/fetch.c  Wed Dec 17 17:43:22 2008(r186240)
+++ head/usr.bin/fetch/fetch.c  Wed Dec 17 18:00:18 2008(r186241)
@@ -42,7 +42,6 @@ __FBSDID("$FreeBSD$");
 #include 
 #include 
 #include 
-#include 
 #include 
 #include 
 
@@ -865,7 +864,7 @@ main(int argc, char *argv[])
break;
default:
usage();
-   exit(EX_USAGE);
+   exit(1);
}
 
argc -= optind;
@@ -874,7 +873,7 @@ main(int argc, char *argv[])
if (h_hostname || f_filename || c_dirname) {
if (!h_hostname || !f_filename || argc) {
usage();
-   exit(EX_USAGE);
+   exit(1);
}
/* XXX this is a hack. */
if (strcspn(h_hostname, "@:/") != strlen(h_hostname))
@@ -887,7 +886,7 @@ main(int argc, char *argv[])
 
if (!argc) {
usage();
-   exit(EX_USAGE);
+   exit(1);
}
 
/* allocate buffer */
@@ -928,10 +927,10 @@ main(int argc, char *argv[])
} else if (stat(o_filename, &sb) == -1) {
if (errno == ENOENT) {
if (argc > 1)
-   errx(EX_USAGE, "%s is not a directory",
+   errx(1, "%s is not a directory",
o_filename);
} else {
-   err(EX_IOERR, "%s", o_filename);
+   err(1, "%s", o_filename);
}
} else {
if (sb.st_mode & S_IFDIR)
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r186242 - head/release/doc/en_US.ISO8859-1/hardware

2008-12-17 Thread Murray Stokely
Author: murray
Date: Wed Dec 17 18:05:30 2008
New Revision: 186242
URL: http://svn.freebsd.org/changeset/base/186242

Log:
  Increase maximum memory configuration that is reported as stable for
  FreeBSD/amd64 to 64GB.
  
  Submitted by: Matt Olander (m...@ixsystems.net)

Modified:
  head/release/doc/en_US.ISO8859-1/hardware/article.sgml

Modified: head/release/doc/en_US.ISO8859-1/hardware/article.sgml
==
--- head/release/doc/en_US.ISO8859-1/hardware/article.sgml  Wed Dec 17 
18:00:18 2008(r186241)
+++ head/release/doc/en_US.ISO8859-1/hardware/article.sgml  Wed Dec 17 
18:05:30 2008(r186242)
@@ -132,7 +132,7 @@
to &intel; EM64T as 64-bit extension technology
or IA-32e.
 
-  The largest tested memory configuration to date is 32GB.
+  The largest tested memory configuration to date is 64GB.
SMP support has been recently completed and is reasonably
robust.
 
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r186204 - head/release/doc/en_US.ISO8859-1/hardware

2008-12-17 Thread Murray Stokely
I've got a report now of FreeBSD/amd64 working fine with 64GB, so we
can increase this limit to at least that amount.  The 8GB dimms
required for 128GB configurations are, I understand, harder to come by
until recently.

This page you provided appears to be the specs for a hardware system
with many operating systems (but not FreeBSD) listed.  I'm aware of
such systems, but I want to make sure we have a report of FreeBSD
actually working well on such hardware.  Do you know of FreeBSD
working on this system you provided?

Thanks,

 - Murray

On Tue, Dec 16, 2008 at 11:31 PM, pluknet  wrote:
> The largest tested memory configuration I ever heard was with 128GB
> running on current :p.
> Link to conf (in russian): http://www.etegro.com/rus/items/24/2.html
>
> --
> wbr,
> pluknet
>
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r186920 - in stable/7: lib/libfetch usr.bin/fetch

2009-01-08 Thread Murray Stokely
Author: murray
Date: Fri Jan  9 03:42:41 2009
New Revision: 186920
URL: http://svn.freebsd.org/changeset/base/186920

Log:
  MFC r186043, 186124, 186241
  
  Add support for If-Modified-Since to fetch with new -i option.
  Consistently return 1 on error.
  Improve usage and SYNOPSIS.
  
  _M   usr.bin/fetch
  Musr.bin/fetch/fetch.1
  Musr.bin/fetch/fetch.c
  _M   lib/libfetch
  Mlib/libfetch/fetch.h
  Mlib/libfetch/http.c
  Mlib/libfetch/fetch.3
  Mlib/libfetch/fetch.c

Modified:
  stable/7/lib/libfetch/   (props changed)
  stable/7/lib/libfetch/fetch.3
  stable/7/lib/libfetch/fetch.c
  stable/7/lib/libfetch/fetch.h
  stable/7/lib/libfetch/http.c
  stable/7/usr.bin/fetch/   (props changed)
  stable/7/usr.bin/fetch/fetch.1
  stable/7/usr.bin/fetch/fetch.c

Modified: stable/7/lib/libfetch/fetch.3
==
--- stable/7/lib/libfetch/fetch.3   Fri Jan  9 02:31:51 2009
(r186919)
+++ stable/7/lib/libfetch/fetch.3   Fri Jan  9 03:42:41 2009
(r186920)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd December 18, 2007
+.Dd December 14, 2008
 .Dt FETCH 3
 .Os
 .Sh NAME
@@ -165,9 +165,16 @@ struct url {
 char   *doc;
 off_t   offset;
 size_t  length;
+time_t  ims_time;
 };
 .Ed
 .Pp
+The
+.Va ims_time
+field stores the time value for
+.Li If-Modified-Since
+HTTP requests.
+.Pp
 The pointer returned by
 .Fn fetchMakeURL
 or
@@ -353,6 +360,22 @@ and
 .Fn fetchPutHTTP
 will use a direct connection even if a proxy server is defined.
 .Pp
+If the
+.Ql i
+(if-modified-since) flag is specified, and
+the
+.Va ims_time
+field is set in 
+.Vt "struct url" ,
+then
+.Fn fetchXGetHTTP
+and
+.Fn fetchGetHTTP
+will send a conditional
+.Li If-Modified-Since
+HTTP header to only fetch the content if it is newer than
+.Va ims_time .
+.Pp
 Since there seems to be no good way of implementing the HTTP PUT
 method in a manner consistent with the rest of the
 .Nm fetch

Modified: stable/7/lib/libfetch/fetch.c
==
--- stable/7/lib/libfetch/fetch.c   Fri Jan  9 02:31:51 2009
(r186919)
+++ stable/7/lib/libfetch/fetch.c   Fri Jan  9 03:42:41 2009
(r186920)
@@ -74,9 +74,7 @@ static struct fetcherr url_errlist[] = {
 FILE *
 fetchXGet(struct url *URL, struct url_stat *us, const char *flags)
 {
-   int direct;
 
-   direct = CHECK_FLAG('d');
if (us != NULL) {
us->size = -1;
us->atime = us->mtime = 0;
@@ -110,9 +108,7 @@ fetchGet(struct url *URL, const char *fl
 FILE *
 fetchPut(struct url *URL, const char *flags)
 {
-   int direct;
 
-   direct = CHECK_FLAG('d');
if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
return (fetchPutFile(URL, flags));
else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
@@ -132,9 +128,7 @@ fetchPut(struct url *URL, const char *fl
 int
 fetchStat(struct url *URL, struct url_stat *us, const char *flags)
 {
-   int direct;
 
-   direct = CHECK_FLAG('d');
if (us != NULL) {
us->size = -1;
us->atime = us->mtime = 0;
@@ -158,9 +152,7 @@ fetchStat(struct url *URL, struct url_st
 struct url_ent *
 fetchList(struct url *URL, const char *flags)
 {
-   int direct;
 
-   direct = CHECK_FLAG('d');
if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
return (fetchListFile(URL, flags));
else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)

Modified: stable/7/lib/libfetch/fetch.h
==
--- stable/7/lib/libfetch/fetch.h   Fri Jan  9 02:31:51 2009
(r186919)
+++ stable/7/lib/libfetch/fetch.h   Fri Jan  9 03:42:41 2009
(r186920)
@@ -46,6 +46,7 @@ struct url {
char*doc;
off_toffset;
size_t   length;
+   time_t   ims_time;
 };
 
 struct url_stat {

Modified: stable/7/lib/libfetch/http.c
==
--- stable/7/lib/libfetch/http.cFri Jan  9 02:31:51 2009
(r186919)
+++ stable/7/lib/libfetch/http.cFri Jan  9 03:42:41 2009
(r186920)
@@ -63,6 +63,7 @@ __FBSDID("$FreeBSD$");
 
 #include 
 #include 
+#include 
 
 #include 
 #include 
@@ -92,6 +93,7 @@ __FBSDID("$FreeBSD$");
 #define HTTP_MOVED_PERM301
 #define HTTP_MOVED_TEMP302
 #define HTTP_SEE_OTHER 303
+#define HTTP_NOT_MODIFIED  304
 #define HTTP_TEMP_REDIRECT 307
 #define HTTP_NEED_AUTH 401
 #define HTTP_NEED_PROXY_AUTH   407
@@ -797,20 +799,23 @@ FILE *
 http_request(struct url *URL, const char *op, struct url_stat *us,
 struct url *purl, const char *flags)
 {
+   char timebuf[80];
+   char hbuf[MAXHOSTNAMELEN + 7], *host;
conn_t *conn;
struct ur

svn commit: r186921 - head/release/doc/en_US.ISO8859-1/relnotes

2009-01-08 Thread Murray Stokely
Author: murray
Date: Fri Jan  9 03:52:12 2009
New Revision: 186921
URL: http://svn.freebsd.org/changeset/base/186921

Log:
  Note new fetch if-modified-since support in the userland section, and
  update copyright to 2009.
  
  Marticle.sgml

Modified:
  head/release/doc/en_US.ISO8859-1/relnotes/article.sgml

Modified: head/release/doc/en_US.ISO8859-1/relnotes/article.sgml
==
--- head/release/doc/en_US.ISO8859-1/relnotes/article.sgml  Fri Jan  9 
03:42:41 2009(r186920)
+++ head/release/doc/en_US.ISO8859-1/relnotes/article.sgml  Fri Jan  9 
03:52:12 2009(r186921)
@@ -29,6 +29,7 @@
 2006
 2007
 2008
+2009
 mailto:d...@freebsd.org";>The &os; Documentation 
Project
   
 
@@ -347,6 +348,12 @@
 
 The &man.fdopendir.3; library function has been added.
 
+The &man.fetch.3; library now support HTTP 1.1
+  If-Modified-Since behavior.  The &man.fetch.1; program now
+  supports -i filename
+  which will only download the specified HTTP URL if the content
+  is newer than filename.
+
 &man.find.1; has been enhanced by the addition of a number
   of primaries that were present in GNU find but not &os;
   &man.find.1;.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r361443 - head/usr.sbin/fdformat

2020-05-25 Thread Murray Stokely
Author: murray (doc committer)
Date: Mon May 25 07:18:47 2020
New Revision: 361443
URL: https://svnweb.freebsd.org/changeset/base/361443

Log:
  Add example usage for formatting a floppy disk.  Adding a more self
  contained example here in the fdformat man page will allow us to
  modernize and streamline the FreeBSD Handbook by cutting out some of
  this legacy material.
  
  While here, address some other minor grammatical nits in this man page.
  
  Reviewed by:  bcr (mentor)
  Approved by:  bcr (mentor)
  MFC after:2 weeks
  Differential Revision:https://reviews.freebsd.org/D24971

Modified:
  head/usr.sbin/fdformat/fdformat.8

Modified: head/usr.sbin/fdformat/fdformat.8
==
--- head/usr.sbin/fdformat/fdformat.8   Mon May 25 06:25:31 2020
(r361442)
+++ head/usr.sbin/fdformat/fdformat.8   Mon May 25 07:18:47 2020
(r361443)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd December 4, 2017
+.Dd May 23, 2020
 .Dt FDFORMAT 8
 .Os
 .Sh NAME
@@ -46,12 +46,12 @@ where
 .Ar device
 may either be given as a full path
 name of a device node for a floppy disk drive
-(e.g.\&
+(e.g.,\&
 .Pa /dev/fd0 ) ,
 or using an abbreviated name that will be looked up
 under
 .Pa /dev
-(e.g.\&
+(e.g.,\&
 .Dq Li fd0 ) .
 .Pp
 The options are as follows:
@@ -133,6 +133,30 @@ Exit status
 1 is returned on any errors during floppy formatting, and an exit status
 of 2 reflects invalid arguments given to the program (along with an
 appropriate information written to diagnostic output).
+.Sh EXAMPLES
+To format a new double-sided, high-density (HD) 1.44 MB disk
+inserted in the first floppy disk drive, issue:
+.Pp
+.Dl "/usr/sbin/fdformat -f 1440 /dev/fd0"
+.Pp
+After low-level formatting the disk with
+.Nm ,
+create a disk label so that the system can determine the size and
+geometry of the disk.
+The supported geometry values are listed in
+.Pa /etc/disktab ,
+and we will use
+.Va fd1440
+for this example.
+To write the disk label, use
+.Xr bsdlabel 8 :
+.Pp
+.Dl "/sbin/bsdlabel -B -w /dev/fd0 fd1440"
+.Pp
+The floppy is now ready to be high-level formatted with a file system.
+To format the floppy disk with FAT, issue:
+.Pp
+.Dl "/sbin/newfs_msdos /dev/fd0"
 .Sh DIAGNOSTICS
 Unless
 .Fl q
@@ -150,6 +174,7 @@ exact cause of the error) will be printed for up to 10
 entire formatting process has completed.
 .Sh SEE ALSO
 .Xr fdc 4 ,
+.Xr bsdlabel 8 ,
 .Xr fdcontrol 8 ,
 .Xr newfs 8 ,
 .Xr newfs_msdos 8
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"