summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar
Commit message (Collapse)AuthorAgeFilesLines
* GNU ar did NOT implment option -q as a synonym of -r as the manualkaiw2008-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)
* - Do not malloc buffer for 0-size member when reading from archive.kaiw2008-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
* Make again BSD ar(1) the default system ar(1), now properly handlingru2008-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
* style(9) whitespace fix: A space is mandated after keyword 'return'.kaiw2008-02-241-5/+5
| | | | | Submitted by: jkoshy Approved by: jkoshy (mentor)
* Since the program is installed as 'bsdranlib', we need tokaiw2008-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)
* Handle properly when insert zero size objects into the archive:kaiw2008-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)
* Fix typo.brueffer2008-02-231-1/+1
|
* Fix essential bugs and warnings.ru2008-02-221-5/+4
|
* Clean up created turds.obrien2008-02-221-0/+1
|
* We build important toolchain statically. So build BSD 'ar' staticallyobrien2008-02-221-0/+1
| | | | when its replacing GNU 'ar'.
* Re-introduce the new BSDLed 'ar' to the build.obrien2008-02-222-2/+18
| | | | | | It is installed as "bsdar" unless WANT_BSDAR is defined. Discussed with: kaiw
* Fix static linkage.ru2008-02-211-2/+2
|
* Import ar(1) front-end. (aka 'BSD' ar)kaiw2008-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.
* Finish the deorbital burn of the i386-only a.out toolchain.obrien2003-06-2717-2578/+0
|
* WARNS=4alfred2002-07-142-3/+2
|
* Add .Pp before enumerating optionscharnier2002-04-192-0/+2
|
* remove __Pimp2002-03-223-22/+22
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-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.
* Use __FBSDID().markm2001-12-0210-18/+50
|
* WARNS=2 fixup.markm2001-12-026-12/+15
|
* - When copying into a fixed buffer, bounds checking should occur.arr2001-11-201-2/+3
| | | | PR: bin/31673
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-1/+1
|
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-152-8/+4
|
* Replace the local `rname' with the cannonical `basename'.obrien2001-07-244-13/+11
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-2/+1
|
* Don't attempt to parse %cache2001-03-211-5/+14
|
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.ru2001-02-132-18/+19
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-012-26/+26
|
* Prepare for mdoc(7)NG.ru2001-01-162-2/+2
|
* Prepare for mdoc(7)NG.ru2000-12-271-4/+4
|
* Prepare for mdoc(7)NG.ru2000-12-191-4/+4
|
* mdoc(7) police: added missing .Os call.ru2000-12-141-0/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-23/+23
|
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-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
* Eliminate compiler warnings from -Wallarchie1998-12-0611-16/+16
|
* Don't build or install ${MAN1}. It's just a copy of ${MAN1aout} andbde1998-10-101-3/+3
| | | | | | | installing it clobbers the elf ${MAN1}. The MAN1 -> MAN1aout changes actually work now. Fixed order of MAN* and BINDIR.
* Install the legacy man file in section 1aout.jb1998-09-071-0/+1
|
* Fixed printf format errors.bde1998-07-061-8/+9
|
* ELF preparation step 1:sos1998-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...
* localtime() needs a pointer to time_t which is not necessarily a long.jb1998-02-201-1/+1
| | | | So use a time_t in the chdr structure so that no casts are required.
* kill the undeadpeter1997-07-131-146/+0
|
* This commit was generated by cvs2svn to compensate for changes in r27241,bde1997-07-061-0/+146
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,bde1997-07-065-117/+330
| | | | | | | | | | pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported.
| * recording cvs-1.6 file deathpeter1995-12-301-145/+0
| |
* | Convert man page to mdoc format. Cosmetic in usage string.charnier1997-06-233-241/+352
| |
* | compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | | | | | posix standard on the topic.
* | Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
| |
OpenPOWER on IntegriCloud