aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ar
Commit message (Collapse)AuthorAgeFilesLines
* GNU ar did NOT implment option -q as a synonym of -r as the manualKai Wang2008-03-114-6/+25
| | | | | | | | | | | | | | | | | | | | page stated, thus BSD ar(1) option -q, which was implemented based on the GNU ar manual page, turns out to be incompatible with GNU ar -q. This change will make BSD ar(1) -q a *REAL* GNU ar -q: 1. It will update symbol table. (same as unfixed version) 2. It will NOT compare new members spcified in the command line args with existing members, instead, append them directly. Reported by: Johannes 5 Joemann <joemann@beefree.free.de> Reported by: Timothy Bourke <timbob@bigpond.com> Tested by: Johannes 5 Joemann <joemann@beefree.free.de> Reviewed by: jkoshy Approved by: jkoshy (mentor) Notes: svn path=/head/; revision=177064
* - Do not malloc buffer for 0-size member when reading from archive.Kai Wang2008-03-021-11/+17
| | | | | | | | | | | | | | | | - Fix a malloc buffer overrun: Use a while loop to check whether the string buffer is big enough after resizing, since doubling once might not be enough when a very long member name or symbol name is provided. - Fix typo. Reported by: Michael Plass <mfp49_freebsd@plass-family.net> Tested by: Michael Plass <mfp49_freebsd@plass-family.net> Reviewed by: jkoshy Approved by: jkoshy Notes: svn path=/head/; revision=176728
* Make again BSD ar(1) the default system ar(1), now properly handlingRuslan Ermilov2008-02-251-14/+1
| | | | | | | | | | | | | | | | source upgrades by falling back to GNU ar(1) as necessary. Option WITH_BSDAR is gone. Option _WITH_GNUAR to aid in upgrades is *not* supposed to be set by the user. Stop bootstrapping BSD ar(1) on the next __FreeBSD_version bump, as there are no known bugs in it. Bump __FreeBSD_version to anticipate this and to flag the switch to BSD ar(1), should it be needed for something. Input from: obrien, des, kaiw Notes: svn path=/head/; revision=176556
* style(9) whitespace fix: A space is mandated after keyword 'return'.Kai Wang2008-02-241-5/+5
| | | | | | | | Submitted by: jkoshy Approved by: jkoshy (mentor) Notes: svn path=/head/; revision=176528
* Since the program is installed as 'bsdranlib', we need toKai Wang2008-02-241-1/+2
| | | | | | | | | | | | check if it is invoked as 'bsdranlib'. Reported by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Reviewed by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Reviewed by: jkoshy Approved by: jkoshy (mentor) Notes: svn path=/head/; revision=176527
* Handle properly when insert zero size objects into the archive:Kai Wang2008-02-241-3/+9
| | | | | | | | | | | | | | | | | | | Do not mmap 0-size objects and do not try to extract symbol from 0-size objects, but do treat 0-size objects as qualified objects and accept them as an archive member. (A member with only the header part) Note that GNU binutils ar on FreeBSD ignores 0-size objects, but on Linux it accepts them. [1] But, since this is a rare usage, we can safely ignore the compatibility issue. Reported by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Pointed out by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> [1] Reviewed by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Reviewed by: jkoshy Approved by: jkoshy (mentor) Notes: svn path=/head/; revision=176525
* Fix typo.Christian Brueffer2008-02-231-1/+1
| | | | Notes: svn path=/head/; revision=176477
* Fix essential bugs and warnings.Ruslan Ermilov2008-02-221-5/+4
| | | | Notes: svn path=/head/; revision=176459
* Clean up created turds.David E. O'Brien2008-02-221-0/+1
| | | | Notes: svn path=/head/; revision=176455
* We build important toolchain statically. So build BSD 'ar' staticallyDavid E. O'Brien2008-02-221-0/+1
| | | | | | | when its replacing GNU 'ar'. Notes: svn path=/head/; revision=176454
* Re-introduce the new BSDLed 'ar' to the build.David E. O'Brien2008-02-222-2/+18
| | | | | | | | | It is installed as "bsdar" unless WANT_BSDAR is defined. Discussed with: kaiw Notes: svn path=/head/; revision=176453
* Fix static linkage.Ruslan Ermilov2008-02-211-2/+2
| | | | Notes: svn path=/head/; revision=176440
* Import ar(1) front-end. (aka 'BSD' ar)Kai Wang2008-02-217-0/+1989
| | | | | | | | | | | | | | | | | | | | | Reviewed by: jkoshy Approved by: jkoshy (mentor) Tested by: erwin (ports build test on pointyhat) Sponsored by: Google Summer of Code 2007 Reviewed by (earlier version): Jaakko Heinonen <jh[AT]saunalahti.fi> Tested by (earlier version): Steve Kargl <sgk[AT]troutmask.apl.washington.edu> Tested by (earlier version): Martin Voros <martin_voros[AT]yahoo.com> Tested by (earlier version): swell.k[AT]gmail.com Tested by (earlier version): joel Tested by (earlier version): Alexey Shuvaev <shuvaev[AT]physik.uni-wuerzburg.de> Tested by (earlier version): Arjan van Leeuwen <avleeuwen[AT]gmail.com> Thanks to gabor@ for building ports for it. Thanks to erwin@ and kris@ for scheduling the ports build test on pointyhat. And thanks to many others for their feedback. Notes: svn path=/head/; revision=176434
* Finish the deorbital burn of the i386-only a.out toolchain.David E. O'Brien2003-06-2717-2578/+0
| | | | Notes: svn path=/head/; revision=116903
* WARNS=4Alfred Perlstein2002-07-142-3/+2
| | | | Notes: svn path=/head/; revision=99984
* Add .Pp before enumerating optionsPhilippe Charnier2002-04-192-0/+2
| | | | Notes: svn path=/head/; revision=95078
* remove __PWarner Losh2002-03-223-22/+22
| | | | Notes: svn path=/head/; revision=92920
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* Style improvements recommended by Bruce as a follow up to someDavid Malone2001-12-1010-50/+60
| | | | | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF. Notes: svn path=/head/; revision=87628
* Use __FBSDID().Mark Murray2001-12-0210-18/+50
| | | | Notes: svn path=/head/; revision=87232
* WARNS=2 fixup.Mark Murray2001-12-026-12/+15
| | | | Notes: svn path=/head/; revision=87210
* - When copying into a fixed buffer, bounds checking should occur.Andrew R. Reiter2001-11-201-2/+3
| | | | | | | PR: bin/31673 Notes: svn path=/head/; revision=86681
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-152-8/+4
| | | | Notes: svn path=/head/; revision=81687
* Replace the local `rname' with the cannonical `basename'.David E. O'Brien2001-07-244-13/+11
| | | | Notes: svn path=/head/; revision=80285
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-2/+1
| | | | Notes: svn path=/head/; revision=74848
* Don't attempt to parse %cAndrey A. Chernov2001-03-211-5/+14
| | | | Notes: svn path=/head/; revision=74596
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.Ruslan Ermilov2001-02-132-18/+19
| | | | Notes: svn path=/head/; revision=72432
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-012-26/+26
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-162-2/+2
| | | | Notes: svn path=/head/; revision=71102
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-271-4/+4
| | | | Notes: svn path=/head/; revision=70410
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-191-4/+4
| | | | Notes: svn path=/head/; revision=70197
* mdoc(7) police: added missing .Os call.Ruslan Ermilov2000-12-141-0/+1
| | | | Notes: svn path=/head/; revision=70022
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-202-23/+23
| | | | Notes: svn path=/head/; revision=68963
* $Id$ -> $FreeBSD$Peter Wemm1999-08-285-5/+5
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Eliminate compiler warnings from -WallArchie Cobbs1998-12-0611-16/+16
| | | | Notes: svn path=/head/; revision=41555
* Don't build or install ${MAN1}. It's just a copy of ${MAN1aout} andBruce Evans1998-10-101-3/+3
| | | | | | | | | | installing it clobbers the elf ${MAN1}. The MAN1 -> MAN1aout changes actually work now. Fixed order of MAN* and BINDIR. Notes: svn path=/head/; revision=40176
* Install the legacy man file in section 1aout.John Birrell1998-09-071-0/+1
| | | | Notes: svn path=/head/; revision=38899
* Fixed printf format errors.Bruce Evans1998-07-061-8/+9
| | | | Notes: svn path=/head/; revision=37453
* ELF preparation step 1:Søren Schmidt1998-05-251-0/+1
| | | | | | | | | | | | | | | | | | Move our old a.out utils to /usr/libexec/aout. Enable binutils and put the utils in /usr/libexec/elf Enable objformat, a little helper program that calls the right utils based on /etc/objformat and $OBJFORMAT. This will enable the ELF generating tools. Remember that this is only step one, the system is still compiled and run in a.out format ONLY. Problem left to solve: The BSD manpages wins over the GNU equivalents as the are installed last. We need to distinguish between the manpages somehow... Notes: svn path=/head/; revision=36374
* localtime() needs a pointer to time_t which is not necessarily a long.John Birrell1998-02-201-1/+1
| | | | | | | So use a time_t in the chdr structure so that no casts are required. Notes: svn path=/head/; revision=33652
* kill the undeadPeter Wemm1997-07-131-146/+0
| | | | Notes: svn path=/head/; revision=27369
* This commit was generated by cvs2svn to compensate for changes in r27241,Bruce Evans1997-07-061-0/+146
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=27242
| * Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,Bruce Evans1997-07-065-0/+1119
| | | | | | | | pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported. Notes: svn path=/vendor/CSRG/dist/; revision=27241
* Convert man page to mdoc format. Cosmetic in usage string.Philippe Charnier1997-06-233-241/+352
| | | | Notes: svn path=/head/; revision=26834
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=23012
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-142-2/+2
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673