]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoFix long constant usage for i386.
Mark Murray [Sat, 3 May 2003 20:52:48 +0000 (20:52 +0000)]
Fix long constant usage for i386.

Tested by: Joe Marcus Clarke <marcus@marcuscom.com>

21 years agoLock the vm_object on entry to vm_object_vndeallocate().
Alan Cox [Sat, 3 May 2003 20:28:26 +0000 (20:28 +0000)]
Lock the vm_object on entry to vm_object_vndeallocate().

21 years agoFix a broken reference to locale(5) and point to re_format(7) too for an
Giorgos Keramidas [Sat, 3 May 2003 20:26:11 +0000 (20:26 +0000)]
Fix a broken reference to locale(5) and point to re_format(7) too for an
explanation of `collating elements'.

21 years agoForget about rev 1.23. -$ is now spelled -fno-dollars-in-identifiers.
David E. O'Brien [Sat, 3 May 2003 19:57:36 +0000 (19:57 +0000)]
Forget about rev 1.23.  -$ is now spelled -fno-dollars-in-identifiers.

Submitted by: kan

21 years agoGCC 3.3's cpplib does not impliment -$ (forbid the use of $ in identifiers).
David E. O'Brien [Sat, 3 May 2003 19:50:41 +0000 (19:50 +0000)]
GCC 3.3's cpplib does not impliment -$ (forbid the use of $ in identifiers).

21 years agoFix the misspelling of DPADD, then fix "make checkdpadd".
Ruslan Ermilov [Sat, 3 May 2003 19:49:05 +0000 (19:49 +0000)]
Fix the misspelling of DPADD, then fix "make checkdpadd".

21 years agoMake GCC 3.3 happy with rcsid[], sccs[], and copyright[].
David E. O'Brien [Sat, 3 May 2003 19:44:46 +0000 (19:44 +0000)]
Make GCC 3.3 happy with rcsid[], sccs[], and copyright[].

21 years agoUse UFS1 for the floppies instead of UFS2
Scott Long [Sat, 3 May 2003 19:23:10 +0000 (19:23 +0000)]
Use UFS1 for the floppies instead of UFS2

21 years agoThe author wanted stringification, not concatenation.
David E. O'Brien [Sat, 3 May 2003 19:22:47 +0000 (19:22 +0000)]
The author wanted stringification, not concatenation.

21 years agoDon't shaddow exp(3).
David E. O'Brien [Sat, 3 May 2003 19:09:11 +0000 (19:09 +0000)]
Don't shaddow exp(3).

21 years ago- Move bge_phy_hack into the phy code and implement the various DSP
Paul Saab [Sat, 3 May 2003 19:06:50 +0000 (19:06 +0000)]
- Move bge_phy_hack into the phy code and implement the various DSP
  patch workarounds for each phy revision.
  Obtained from: NetBSD & Broadcom Linux driver

- Disable AUTOPOLL when accessing the PHY as it may cause PCI errors.
  Obtained from: NetBSD

- Check the UPDATED bit in the status block so the driver knows
  that the status block as indeed changed since the last access.
  Broadcom documentation states drivers should unset the UPDATED/CHANGED
  bits after reading them.

- When changing media types, first loop the phy then set the media.
  Broadcom documentation and Linux drivers do this and I observed
  much better handling of link after this change.

- Broadcom documentation states that for 1000BaseT operation,
  autonegotiation must be enabled.  Fix hard coding of media so that
  the driver only advertises 1000BaseT as the supported media type
  and enable autonegotition.

- Only set Master/Slave on the 5701.
  Obtained from Broadcom Linux driver.

21 years agoUse __FBSDID() to quiet GCC 3.3 warnings.
David E. O'Brien [Sat, 3 May 2003 18:41:59 +0000 (18:41 +0000)]
Use __FBSDID() to quiet GCC 3.3 warnings.

21 years agoFix locking on reinit.
Søren Schmidt [Sat, 3 May 2003 18:28:43 +0000 (18:28 +0000)]
Fix locking on reinit.

21 years agoAdd the pdc20268r as candidate for the TX test.
Søren Schmidt [Sat, 3 May 2003 18:26:00 +0000 (18:26 +0000)]
Add the pdc20268r as candidate for the TX test.

21 years agoUse C99 for the kernel.
David E. O'Brien [Sat, 3 May 2003 18:05:56 +0000 (18:05 +0000)]
Use C99 for the kernel.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r114584,
Warner Losh [Sat, 3 May 2003 17:16:40 +0000 (17:16 +0000)]
This commit was generated by cvs2svn to compensate for changes in r114584,
which included commits to RCS files with non-trunk default branches.

21 years agoFix halt -p. I've done this with an import because kochi-san reports
Warner Losh [Sat, 3 May 2003 17:16:40 +0000 (17:16 +0000)]
Fix halt -p.  I've done this with an import because kochi-san reports
this is fixed in a newer version of ACPICA and I don't want to take
this off the vendor branch for a trivial reason.  This patch was
applied to NetBSD by kochi-san, who also posted the patch to
acpi-jp@jp.freebsd.org.

# My Dell Inspiron 8000 now powers off!

Submitted by: takayoshi kochi-san kochi at netbsd dot org

21 years agoFix a bazillion warnings. This makes almost the whole of src/bin/*
Mark Murray [Sat, 3 May 2003 16:39:34 +0000 (16:39 +0000)]
Fix a bazillion warnings. This makes almost the whole of src/bin/*
WARNS=6, std=c99 clean.

Tested on: i386, alpha

21 years agoWARNS cleaning for the Alpha. On alpha, size_t is a long, and it
Mark Murray [Sat, 3 May 2003 16:02:52 +0000 (16:02 +0000)]
WARNS cleaning for the Alpha. On alpha, size_t is a long, and it
solicits a warning when used for the '*' in printf("%*d"). Cast
to u_int for universal use.

21 years agoDuplicate "from".
Giorgos Keramidas [Sat, 3 May 2003 15:55:23 +0000 (15:55 +0000)]
Duplicate "from".

PR: docs/51724
Submitted by: Christopher Nehren <apeiron@comcast.net

21 years agoRemove some games/ cruft that is no longer of relevance.
Mark Murray [Sat, 3 May 2003 15:48:12 +0000 (15:48 +0000)]
Remove some games/ cruft that is no longer of relevance.

21 years agoFix a shedload of warnings, some memory leaks and clean up WARNS
Mark Murray [Sat, 3 May 2003 10:21:26 +0000 (10:21 +0000)]
Fix a shedload of warnings, some memory leaks and clean up WARNS
and lint. This is now WARNS=9, std=c99 clean on i386.

21 years agoRegen.
Shunsuke Akiyama [Sat, 3 May 2003 10:19:43 +0000 (10:19 +0000)]
Regen.

21 years agoAdd RealTek RTL8150 USB to fast Ethernet controller driver.
Shunsuke Akiyama [Sat, 3 May 2003 10:16:56 +0000 (10:16 +0000)]
Add RealTek RTL8150 USB to fast Ethernet controller driver.
This driver now supports the Melco LUA-KTX and the GREEN HOUSE
GH-USB100B.

Reviewed by: imp
MFC after: 2 weeks

21 years agoFix format warning. This is WARNS=9, std=c99 clean on i386.
Mark Murray [Sat, 3 May 2003 10:16:51 +0000 (10:16 +0000)]
Fix format warning. This is WARNS=9, std=c99 clean on i386.

21 years agoFix warnings. This is now WARNS=9, std=c99 clean in i386.
Mark Murray [Sat, 3 May 2003 10:14:26 +0000 (10:14 +0000)]
Fix warnings. This is now WARNS=9, std=c99 clean in i386.
Use return(0) for main() instead of exit(0). Makes it a
wee bit smaller.

21 years agoMore axe-work:
Poul-Henning Kamp [Sat, 3 May 2003 09:58:20 +0000 (09:58 +0000)]
More axe-work:

Hide all the historical fields of the label, unless people ask for them with -A,
set them to intelligently chosen defaults otherwise.

Distill the manual page to remove inaccuracies, misundertandings and obsolete
information.  It can probably still be done better but now at least it is
not misinforming people.

21 years agoSlightly tweak the rc update text, since things changed slightly after
Doug Barton [Sat, 3 May 2003 09:44:25 +0000 (09:44 +0000)]
Slightly tweak the rc update text, since things changed slightly after
I sent the first draft to Bruce. Remove rc.sendmail from the list, since
it was a mistake on my part to remove it from the base, which I've now
corrected. Add the rc.${MACHINE_ARCH} for arch's besides i386.

While I'm here, do a completely trivial re-capitalization of rcNG. :)

Thanks to Bruce for cleaning up my humble first draft.

21 years agoAdded OpenBSD 3.3
Wolfram Schneider [Sat, 3 May 2003 09:18:25 +0000 (09:18 +0000)]
Added OpenBSD 3.3

Submitted by: itojun@iijlab.net

21 years agoSome minor remodelling with a large axe.
Poul-Henning Kamp [Sat, 3 May 2003 09:02:27 +0000 (09:02 +0000)]
Some minor remodelling with a large axe.

21 years ago - Revert kern/vfs_subr.c revision 1.444. The vm_object's size isn't
Alan Cox [Sat, 3 May 2003 08:09:24 +0000 (08:09 +0000)]
 - Revert kern/vfs_subr.c revision 1.444.  The vm_object's size isn't
   trustworthy for vnode-backed objects.
 - Restore the old behavior of vm_object_page_remove() when the end
   of the given range is zero.  Add a comment to vm_object_page_remove()
   regarding this behavior.

Reported by: iedowse

21 years agoUse new geom.ctl based OAM instead of ioctls.
Poul-Henning Kamp [Sat, 3 May 2003 08:04:24 +0000 (08:04 +0000)]
Use new geom.ctl based OAM instead of ioctls.
Various cleanup.

21 years agoAdd a OAM interface for changing the label and writing the boot code.
Poul-Henning Kamp [Sat, 3 May 2003 08:01:34 +0000 (08:01 +0000)]
Add a OAM interface for changing the label and writing the boot code.

21 years ago- Fix breakage on PAE enabled kernel
Prafulla Deuskar [Sat, 3 May 2003 07:35:47 +0000 (07:35 +0000)]
- Fix breakage on PAE enabled kernel
- Don't use vtophys when you can get physical address using bus_dma API

Submitted by: jake (Jake Burkholder)

21 years agoremove unused variables.
Poul-Henning Kamp [Sat, 3 May 2003 07:12:15 +0000 (07:12 +0000)]
remove unused variables.

Spotted by: dougb

21 years agoPreserve directory structure in PRESERVED_FILES_DIR to avoid
Doug Barton [Sat, 3 May 2003 06:35:19 +0000 (06:35 +0000)]
Preserve directory structure in PRESERVED_FILES_DIR to avoid
filename collisions.

Submitted by: des

21 years agoMove a declaration to its proper place.
Alan Cox [Sat, 3 May 2003 04:21:16 +0000 (04:21 +0000)]
Move a declaration to its proper place.

21 years agoSpell cpu_switch correctly.
Peter Wemm [Sat, 3 May 2003 03:30:29 +0000 (03:30 +0000)]
Spell cpu_switch correctly.

21 years agoForce PnP devices to set SMIT mode.
Yoshihiro Takahashi [Sat, 3 May 2003 02:04:58 +0000 (02:04 +0000)]
Force PnP devices to set SMIT mode.

Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)

21 years agoFix off-by-one bug.
Yoshihiro Takahashi [Sat, 3 May 2003 01:47:38 +0000 (01:47 +0000)]
Fix off-by-one bug.

Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)

21 years agoRepocopy *.s to *.S
Peter Wemm [Sat, 3 May 2003 00:21:43 +0000 (00:21 +0000)]
Repocopy *.s to *.S

21 years agoFix three problems in large (>2TB) device handling:
Kenneth D. Merry [Sat, 3 May 2003 00:21:40 +0000 (00:21 +0000)]
Fix three problems in large (>2TB) device handling:
 - Make sure we don't release the READ CAPACITY CCB twice
 - If we have a device that needs a 16 byte READ CAPACITY command, make
   sure we call xpt_schedule() so we can get a CCB.
 - Don't unlock the peripheral until we're fully probed.

Many thanks to Julian Elischer for providing hardware and testing this.

Tested by: julian

21 years agoRename amd64/*.s to amd64/*.S
Peter Wemm [Sat, 3 May 2003 00:19:42 +0000 (00:19 +0000)]
Rename amd64/*.s to amd64/*.S

21 years agobsd_disklabel_le_dec() takes an extra argument now.
Poul-Henning Kamp [Fri, 2 May 2003 22:46:44 +0000 (22:46 +0000)]
bsd_disklabel_le_dec() takes an extra argument now.

21 years agoMake bsd_disklabel_le_enc calculate the checksum and fill it in.
Poul-Henning Kamp [Fri, 2 May 2003 22:46:13 +0000 (22:46 +0000)]
Make bsd_disklabel_le_enc calculate the checksum and fill it in.
(If there is a legitimate need to correctly encode and pack a
disklabel with an invalid checksum custom tools can be built for
that.)

Make bsd_disklabel_le_dec() validate the magics, number of partitions
(against a new parameter) and the checksum.

Vastly simplify the logic of the GEOM::BSD class implementation:

Let g_bsd_modify() always take a byte-stream label.

This simplifies all users, except the ioctl's which now have to
convert to a byte-stream first.  Their loss.

g_bsd_modify() is called with topology held now, and it returns
with it held.

Always update the md5sum in g_bsd_modify(), otherwise the check
is no use after the first modification of the label.  Make the
MD5 over the bytestream version of the label.

Move the rawoffset hack to g_bsd_modify() and remove all the
inram/ondisk conversions.

Don't configure hotspots in g_bsd_modify(), do it in taste instead,
we do not support moving the label to a different location on the
fly anyway.

This passes all current regression tests.

21 years agoHook rc.sendmail back up, it was removed prematurely
Doug Barton [Fri, 2 May 2003 22:27:31 +0000 (22:27 +0000)]
Hook rc.sendmail back up, it was removed prematurely

21 years ago- Bus DMA'fy the driver
Prafulla Deuskar [Fri, 2 May 2003 21:17:08 +0000 (21:17 +0000)]
- Bus DMA'fy the driver
- Use htole* macros where appropriate so that the driver could work on non-x86 architectures
- Use m_getcl() instead of MGETHDR/MCLGET macros
Submitted by: sam (Sam Leffler)

21 years agoOption KADB does not exist. It came from alpha, where it still exists.
Marcel Moolenaar [Fri, 2 May 2003 20:34:15 +0000 (20:34 +0000)]
Option KADB does not exist. It came from alpha, where it still exists.

21 years agoVastly simplify architecture handling: Use properties of label as
Poul-Henning Kamp [Fri, 2 May 2003 20:14:48 +0000 (20:14 +0000)]
Vastly simplify architecture handling:  Use properties of label as
recorded in global variables, rather than checks on the architecture.

Drop horribly code to handle MBR/PC98's embedded in the BSD label area.
If you need to have an MBR or PC98 on your disk, you should not overlap
it with a BSDLABEL, if you don't need it, this code is nothing but trouble.

21 years agoDefault the location to the compiled for architecture if no -m arg specified.
Poul-Henning Kamp [Fri, 2 May 2003 20:02:11 +0000 (20:02 +0000)]
Default the location to the compiled for architecture if no -m arg specified.

21 years agoAdd three global variables which contain the location, size and a flag
Poul-Henning Kamp [Fri, 2 May 2003 19:58:08 +0000 (19:58 +0000)]
Add three global variables which contain the location, size and a flag
for the alpha checksum, and set them depending on the specified architecture

Don't look for disklabels every 16 bytes, look the only place they should
be for the current architecture.

Always read the label from the raw disk and decode it into struct
disklabel rather than trust a cast from random addresses.

When writing to the raw disk, encode the label properly.

21 years agoPull in geom_bsd_enc.c from sys/geom to encode and decode our labels.
Poul-Henning Kamp [Fri, 2 May 2003 19:54:18 +0000 (19:54 +0000)]
Pull in geom_bsd_enc.c from sys/geom to encode and decode our labels.

21 years agoPull in bcopy() prototype from <string.h> when compiled in userland.
Poul-Henning Kamp [Fri, 2 May 2003 19:53:55 +0000 (19:53 +0000)]
Pull in bcopy() prototype from <string.h> when compiled in userland.

21 years agoAdd untested support for the Broadcom 5704.
Paul Saab [Fri, 2 May 2003 19:53:40 +0000 (19:53 +0000)]
Add untested support for the Broadcom 5704.

Obtained from: NetBSD

21 years agoLock access to the vm_object's flags in vop_stdcreatevobject().
Alan Cox [Fri, 2 May 2003 19:33:21 +0000 (19:33 +0000)]
Lock access to the vm_object's flags in vop_stdcreatevobject().

21 years agoRemove the well-intentioned, but ill thought out check which prevents us
Poul-Henning Kamp [Fri, 2 May 2003 19:14:38 +0000 (19:14 +0000)]
Remove the well-intentioned, but ill thought out check which prevents us
from dd(1)'ing the boot code off one drive and have bsdlabel write it
on another.

21 years agoUpdate the test-script based on the sunlabel version, but put a for-loop
Poul-Henning Kamp [Fri, 2 May 2003 19:12:20 +0000 (19:12 +0000)]
Update the test-script based on the sunlabel version, but put a for-loop
in there to run over the various architectures.

21 years agoConsidering that I did cast the arguments to (intmax_t) I must have
Poul-Henning Kamp [Fri, 2 May 2003 19:08:57 +0000 (19:08 +0000)]
Considering that I did cast the arguments to (intmax_t) I must have
been sleepy since I used %qd instead of %jd.

21 years agopc98 has it's own release subdir, so it's safe to remove the stg, ncv, and
Scott Long [Fri, 2 May 2003 17:47:08 +0000 (17:47 +0000)]
pc98 has it's own release subdir, so it's safe to remove the stg, ncv, and
nsp drivers from the i386 floppies.

Suggested by: bmah

21 years agosysctlbyname takes a size_t as its 5th argument, not a pointer.
Warner Losh [Fri, 2 May 2003 17:38:08 +0000 (17:38 +0000)]
sysctlbyname takes a size_t as its 5th argument, not a pointer.
However, since NULL was used, and this is C++, this error went
undetected until g++ 3.3 somehow managed to whine about it.

Reported by: obrien

21 years agoFix printf format errors.
Jake Burkholder [Fri, 2 May 2003 17:21:07 +0000 (17:21 +0000)]
Fix printf format errors.

21 years agoNew release notes: ata(4) flushing on shutdown, mergemaster(8) -P,
Bruce A. Mah [Fri, 2 May 2003 16:28:45 +0000 (16:28 +0000)]
New release notes:  ata(4) flushing on shutdown, mergemaster(8) -P,
old rc scripts gone, texinfo 4.5.

Updated release notes:  OpenPAM Dianthus.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r114536,
Dag-Erling Smørgrav [Fri, 2 May 2003 15:08:06 +0000 (15:08 +0000)]
This commit was generated by cvs2svn to compensate for changes in r114536,
which included commits to RCS files with non-trunk default branches.

21 years agoVendor import of OpenPAM Dianthus.
Dag-Erling Smørgrav [Fri, 2 May 2003 15:08:06 +0000 (15:08 +0000)]
Vendor import of OpenPAM Dianthus.

21 years agos/DIOCGPC98/DIOCSPC98/
Yoshihiro Takahashi [Fri, 2 May 2003 14:55:42 +0000 (14:55 +0000)]
s/DIOCGPC98/DIOCSPC98/

21 years agoAdd flushing of devices on shutdown.
Søren Schmidt [Fri, 2 May 2003 13:47:44 +0000 (13:47 +0000)]
Add flushing of devices on shutdown.
Note: this might print failure messages on some systems, unfortunatly
the info from the device, stating if flushing is supported, cannot be trusted
so the operation is always issued on all devices, just in case...

21 years agoStyle improvement.
Poul-Henning Kamp [Fri, 2 May 2003 12:57:40 +0000 (12:57 +0000)]
Style improvement.

21 years agoUse g_wither_geom() and plug memory leaks.
Poul-Henning Kamp [Fri, 2 May 2003 12:52:51 +0000 (12:52 +0000)]
Use g_wither_geom() and plug memory leaks.

21 years agoPlug memory leaks.
Poul-Henning Kamp [Fri, 2 May 2003 12:49:41 +0000 (12:49 +0000)]
Plug memory leaks.

21 years agoAdd "addspare" functionality.
Søren Schmidt [Fri, 2 May 2003 12:42:31 +0000 (12:42 +0000)]
Add "addspare" functionality.

21 years agoAdd ioctl to add a spare disk to a RAID array.
Søren Schmidt [Fri, 2 May 2003 12:41:44 +0000 (12:41 +0000)]
Add ioctl to add a spare disk to a RAID array.
Fix the discovery of RAID's to not grap unused disks.
Change the probe printing of a RAID a bit.

21 years agoAdd function to add spare disk to raid.
Søren Schmidt [Fri, 2 May 2003 12:39:34 +0000 (12:39 +0000)]
Add function to add spare disk to raid.

21 years agoDont try to call detached interrupt routine.
Søren Schmidt [Fri, 2 May 2003 12:37:03 +0000 (12:37 +0000)]
Dont try to call detached interrupt routine.

21 years agoUse an uma-zone for allocation bio requests.
Poul-Henning Kamp [Fri, 2 May 2003 12:36:12 +0000 (12:36 +0000)]
Use an uma-zone for allocation bio requests.

21 years agoFix build on 4.x.
Ruslan Ermilov [Fri, 2 May 2003 11:56:43 +0000 (11:56 +0000)]
Fix build on 4.x.

21 years agoHandle thread canceled case, it is same as signal caused backout,
David Xu [Fri, 2 May 2003 11:39:00 +0000 (11:39 +0000)]
Handle thread canceled case, it is same as signal caused backout,
but will break out of loop.

21 years agorc.sendmail should not have been removed yet.
Doug Barton [Fri, 2 May 2003 11:07:58 +0000 (11:07 +0000)]
rc.sendmail should not have been removed yet.
Don't include it in the rcOG removal prompt.

21 years agoThis file was removed prematurely. It contains functionality
Doug Barton [Fri, 2 May 2003 11:05:57 +0000 (11:05 +0000)]
This file was removed prematurely. It contains functionality
not currently duplicated by rcNG, and is also relied on by
/etc/mail/Makefile.

Submitted by: hrs
Pointy hat to: me

21 years agoIPLware support. The `IPLware' program assumes boot menu program
KATO Takenori [Fri, 2 May 2003 09:33:12 +0000 (09:33 +0000)]
IPLware support.  The `IPLware' program assumes boot menu program
begins with the `jmp 0x2d4' near jump.

21 years agoHuh? When did the etc bits for amd64 get added?
Mike Makonnen [Fri, 2 May 2003 08:35:17 +0000 (08:35 +0000)]
Huh? When did the etc bits for amd64 get added?
Make sure they're ported over to rc.d.
While I'm at it correct a logic mistake in rc.d/apmd.

Approved by: markm (mentor)(implicit)

21 years agoUse g_slice_spoiled() instead of g_std_spoiled().
Poul-Henning Kamp [Fri, 2 May 2003 08:33:26 +0000 (08:33 +0000)]
Use g_slice_spoiled() instead of g_std_spoiled().

Add XXX comment about minor memory leak until I can fix it.

21 years agoUse g_slice_spoiled() instead of g_std_spoiled().
Poul-Henning Kamp [Fri, 2 May 2003 08:21:02 +0000 (08:21 +0000)]
Use g_slice_spoiled() instead of g_std_spoiled().

21 years agoUse g_slice_spoiled().
Poul-Henning Kamp [Fri, 2 May 2003 08:13:03 +0000 (08:13 +0000)]
Use g_slice_spoiled().
Free buffer from g_read_data().

21 years agoCreate a symbolic link /dev/vga -> /dev/ttyv0.
Mike Makonnen [Fri, 2 May 2003 08:10:58 +0000 (08:10 +0000)]
Create a symbolic link /dev/vga -> /dev/ttyv0.

We can't remove the sourcing of /etc/rc.devfs yet in case the user
might have custom entries in it. We will have to come up with an
/etc/devfs.rules or something to make this kind of thing easier.

Approved by: markm (mentor)(implicit)

21 years agobufpos is used in size_t contexts, so make it one.
David E. O'Brien [Fri, 2 May 2003 07:08:52 +0000 (07:08 +0000)]
bufpos is used in size_t contexts, so make it one.

21 years agoSet WARNS=1. RESOLUTION_MAX macro has major signed/unsigned issues.
David E. O'Brien [Fri, 2 May 2003 06:56:32 +0000 (06:56 +0000)]
Set WARNS=1.  RESOLUTION_MAX macro has major signed/unsigned issues.

21 years agoUse __FBSDID.
David E. O'Brien [Fri, 2 May 2003 06:49:10 +0000 (06:49 +0000)]
Use __FBSDID.

21 years agoUse size_t type vars in sizeof contexts.
David E. O'Brien [Fri, 2 May 2003 06:46:24 +0000 (06:46 +0000)]
Use size_t type vars in sizeof contexts.

21 years agoBack out all the stuff that didn't belong in the last commit.
Poul-Henning Kamp [Fri, 2 May 2003 06:42:59 +0000 (06:42 +0000)]
Back out all the stuff that didn't belong in the last commit.

21 years agoMake this WARNS=1 as that is all we can do with GCC 3.3 -- too many
David E. O'Brien [Fri, 2 May 2003 06:39:13 +0000 (06:39 +0000)]
Make this WARNS=1 as that is all we can do with GCC 3.3 -- too many
sized/unsigned comparisons.

21 years agoMake count a size_t as that is what is compared against and how it is used.
David E. O'Brien [Fri, 2 May 2003 06:36:52 +0000 (06:36 +0000)]
Make count a size_t as that is what is compared against and how it is used.

21 years agoUse g_slice_spoiled() rather than g_std_spoiled().
Poul-Henning Kamp [Fri, 2 May 2003 06:36:14 +0000 (06:36 +0000)]
Use g_slice_spoiled() rather than g_std_spoiled().

Remember to free the buffer we got from g_read_data().

21 years agoUse g_slice_spoiled() not g_std_spoiled()
Poul-Henning Kamp [Fri, 2 May 2003 06:34:51 +0000 (06:34 +0000)]
Use g_slice_spoiled() not g_std_spoiled()

21 years agoUse g_slice_spoiled() rather than g_std_spoiled()
Poul-Henning Kamp [Fri, 2 May 2003 06:33:59 +0000 (06:33 +0000)]
Use g_slice_spoiled() rather than g_std_spoiled()

21 years agoUse g_slice_spoiled() rather than g_std_spoiled().
Poul-Henning Kamp [Fri, 2 May 2003 06:33:26 +0000 (06:33 +0000)]
Use g_slice_spoiled() rather than g_std_spoiled().

21 years agoUse a more tailored spoil routine for slices, and take advantage of
Poul-Henning Kamp [Fri, 2 May 2003 06:29:33 +0000 (06:29 +0000)]
Use a more tailored spoil routine for slices, and take advantage of
g_wither_geom() to do most of the work for us.

21 years ago* Document the -P option
Doug Barton [Fri, 2 May 2003 06:28:30 +0000 (06:28 +0000)]
* Document the -P option

* Add a paragraph suggesting that the merge option be used only for
files that users have modified. People have been using this option
for all files that are different, causing unecessary confusion.

21 years ago[Grrr, editor exited too early]
David E. O'Brien [Fri, 2 May 2003 06:26:32 +0000 (06:26 +0000)]
[Grrr, editor exited too early]
Rev 1.39 sets WARNS=WFORMAT=0 because of the explanation given.

21 years ago* Add a -P (Preserve) option, which saves a copy of files that you replace.
Doug Barton [Fri, 2 May 2003 06:26:23 +0000 (06:26 +0000)]
* Add a -P (Preserve) option, which saves a copy of files that you replace.
The idea for this option came from Marc Schneiders <marc@schneiders.org>

* I've been meaning to remove the code that checked for the existence of
/etc/sysconfig for a while now, since that file was last seen in 2.2.2.

* Replace the above with a check for elements of the old rc system.
Offer to move these files out of DESTDIR/etc for the user's convenience.

21 years agoThe is_name and is_in_name macros are FUBAR'ed.
David E. O'Brien [Fri, 2 May 2003 06:24:51 +0000 (06:24 +0000)]
The is_name and is_in_name macros are FUBAR'ed.
Due to the use of signed vs. unsigned chars on our various platforms, one gets
"warning: comparison is always true due to limited range of data type"
from GCC 3.3.