summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Delete unused files in the window(1) directory that contain a colon.ed2008-08-094-38/+0
| | | | | | | | | | | | | During the import of the 4.4BSD Lite sources, four files got added to the repository called :tt, :tty, :var and :ww. They seem to contain some kind of debug information. These files aren't used/installed anywhere. Unfortunately the colons in the filenames prevents us from checking out the source tree on file systems that don't support colons (such as FAT). Just remove these unneeded files to keep SVN happy. Reported by: Rohit Tripathi <rohit trip gmail com> MFC after: 3 days
* Use arc4random_uniform(3)ache2008-08-071-1/+1
|
* - acificfrancexchange -> pacificfrancexchangeedwin2008-08-071-1/+3
| | | | | | - Add comments about the pegged currencies. Submitted by: GeJ on #bsdports
* Update the units library file.edwin2008-08-071-104/+195
| | | | | | | | | | | | | | - Merge changes from NetBSD and OpenBSD. - Add the Euro as a primitive unit, add old converted currency and pegged currency (Obtained from Wikipedia) - Rename "dollar" to "usdollar" as primitive unit, remove non-pegged currency and add pegged currency (Obtained from Wikipedia) - Updated the accuracy of a lot of constants (Obtained from Wikipedia) PR: bin/106545 bin/88252 Submitted by: trasz<trasz@pin.if.uz.zgora.pl>, J Vinopal <banshee@abattoir.com> Approved by: bde@ (mentor) MFC after: 1 week
* Move functions which are only locally used into their C files andedwin2008-08-053-23/+23
| | | | | | | | | | make them static. usage() in calendar.c event_*() in io.c PR: bin/118644 Approved by: bde@ (mentor)
* style(9)ify usr.bin/calendaredwin2008-08-056-290/+324
| | | | | | PR: bin/118644 Approved by: bde@ (mentor) MFC after: 1 week
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-041-2/+2
| | | | | | understand which code paths aren't possible. Reported by: edwin
* Don't close file descriptor number <whatever random garbage was on thecperciva2008-08-041-0/+1
| | | | | | | stack>. Found by: LLVM/Clang Static Checker MFC after: 1 week
* Setting a variable to the same value twice doesn't actually make itcperciva2008-08-042-3/+0
| | | | | | more likely to have the right value. Remove superfluous assignments. Found by: LLVM/Clang Static Checker
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-044-27/+28
| | | | | | | understand which code paths aren't possible. This commit eliminates 117 false positive bug reports of the form "allocate memory; error out if pointer is NULL; use pointer".
* Make quota(1) to compile with WARNS=6:delphij2008-08-041-5/+2
| | | | | | - ANSI'fy showrawquotas(). - Shut up GCC by initializing bgrace and igrace. The situation that caused the GCC warning can never happen though.
* ctime() expects a time_t, but qup->dqblk.dqb_btime is an int32_t, so forcognet2008-08-031-6/+9
| | | | | | | | | big endian platforms where time_t is 64bits (ie armeb and sparc64), it will be a problem. Use a temporary time_t to work around this. Submitted by: Matthew Luckie <mjl AT luckie DOT org dot nz> MFC after: 3 days
* calendar.holiday: Buinea-bissau should be Guinea-Bissauedwin2008-08-031-1/+1
| | | | | | PR: conf/126199 Submitted by: comet--berkeley (aka Pablo Picasso) <comet@transbay.net> Approved by: bde@
* A few style and whitespace fixes.jhb2008-08-021-11/+9
| | | | Submitted by: bde
* POSIX says that octal escapes have the format \ddd in the format string,das2008-08-021-1/+2
| | | | | | | | | but \0ddd in a %b argument, with a length restriction of 3 octal digits in either case. This seems silly, but it needs to be right so it's possible to write an octal escape followed by an ordinary digit. Solaris printf(1) and GNU printf(1) also behave this way. Example: "printf '\0752'" now produces "=2" instead of garbage.
* Tweak the support for using ldd on 32-bit objects a bit further.jhb2008-08-013-39/+68
| | | | | | | | | | | | | Specifically, build a 32-bit /usr/bin/ldd32 on amd64 which handles 32-bit objects. Since it is a 32-bit binary, it can fork a child process which can dlopen() a 32-bit shared library. The current 32-bit support in ldd can't do this because it does the dlopen() from a 64-bit process. In order to preserve an intuitive interface for users, the ldd binary automatically execs /usr/bin/ldd32 for 32-bit objects. The end result is that ldd on amd64 now transparently handles 32-bit shared libraries in addition to 32-bit binaries. Submitted by: ps (indirectly)
* Try to make this code slightly less painful to read.des2008-07-312-690/+673
|
* Add POSIX -p flag to make(1).ed2008-07-302-4/+19
| | | | | | | | | | | | | | | | This article [1] describes the -p flag for make(1): Write to standard output the complete set of macro definitions and target descriptions. The output format is unspecified. We already support a similar flag (-d g1), but unlike -p, it still executes commands. Our implementation just turns it into -d g1, but also sets flag `printGraphOnly', which will cause make(1) to skip execution. [1] http://www.opengroup.org/onlinepubs/009695399/utilities/make.html Reviewed by: imp PR: standards/99960
* MfP4: Preserve permissions by default.kientzle2008-07-301-0/+1
| | | | | | | | | | | | | | | | | | In particular, this fixes the oddity that -dumpl would apply umask to copied dirs (which are created in the target tree) but not to "copied" files (which are only linked). After this change: $ ls -ld a a/b a/b/c d--x-w-r-- 3 tim tim 512 Jul 29 20:08 a drwxr----x 3 tim tim 512 Jul 29 20:09 a/b dr----x-w- 2 tim tim 512 Jul 29 20:09 a/b/c $ (echo a; echo a/b; echo a/b/c) | cpio -dumpl o $ cd o $ ls -ld a a/b a/b/c d--x-w-r-- 3 tim tim 512 Jul 29 20:08 a drwxr----x 3 tim tim 512 Jul 29 20:09 a/b dr----x-w- 2 tim tim 512 Jul 29 20:09 a/b/c
* Fix buildemax2008-07-291-1/+1
|
* Fix buildemax2008-07-291-0/+1
|
* Add --no-preserve-owner, which seems to be required by some ports.kientzle2008-07-293-0/+5
| | | | Thanks to: Erwin Lansing
* Fix text in the comment why we check for ELF32_R_TYPEedwin2008-07-281-8/+5
| | | | | Approved by: bde@ MFC after: 2 days2 days
* Fix a small typo in the procstat(1) manpage: messsage queue.ed2008-07-281-1/+1
| | | | | Approved by: philip (mentor) MFC after: 3 days
* - Fix mtree example so it works.simon2008-07-261-0/+7
| | | | | | | - Document --version. Reviewed by: kientzle MFC after: 1 week
* Adding myself as a new ports committerpgollucci2008-07-231-0/+1
| | | | | Reviewed by: gabor (mentor) Approved by: araujo (mentor)
* Sync with NetBSD's license changes.delphij2008-07-232-10/+4
|
* After the commit of SVN rev 180236, wilko@ noticed that the approachedwin2008-07-211-4/+18
| | | | | | | | | doesn't work on the Alpha platform: machine/elf.h doesn't include sys/elf32.h there. PR: related to bin/124906 Approved by: bde@ MFC after: 1 week
* Use %zd for size_t. With this gcore(1) is WARNS=6 clean.delphij2008-07-181-3/+3
|
* Indent the else path, reduce diff against OpenBSD.delphij2008-07-181-1/+1
|
* Fix a longstanding bug, from Otto Moerbeck:kevlo2008-07-181-1/+5
| | | | | | | | | if we're reducing a rule that has an empty right hand side and the yacc stackpointer is pointing at the very end of the allocated stack, we end up accessing the stack out of bounds by the implicit $$ = $1 action Obtained from: OpenBSD
* add __unused to succeed at WARNS=6charnier2008-07-101-1/+1
|
* Added my birthday to the FreeBSD calendar.sson2008-07-081-0/+1
| | | | Approved by: jb (mentor)
* Preserve ownership if cpio is run as root.kientzle2008-07-061-1/+2
|
* Move duplicated code from tar_mode_[cru] into archive_write.cperciva2008-07-051-32/+15
| | | | | Fix a bug I introduced 7 minutes ago: clean up properly from archive_write if we exit the argv-handling loop due to -C not having an argument.
* Use malloc in write_archive to allocate a 64kB buffer for holding file datacperciva2008-07-052-12/+21
| | | | instead of using 64kB of stack space in copy_file_data and write_file_data.
* Clean up write_entry by eliminating fd except in the #ifdef __linux blockcperciva2008-07-051-13/+14
| | | | | | | | | where it is used. [1] Don't leak file descriptors in write_entry_backend if archive_write_header returns ARCHIVE_FAILED. Found by: Coverity Prevent [1]
* bsdcpio is now at version 1.0.0.kientzle2008-07-051-1/+1
|
* In -pl mode, only hardlink regular files. I need to testkientzle2008-07-051-6/+8
| | | | | other implementations, but it's clear that dirs and symlinks, at least, shouldn't be hardlinked.
* Remove an unused define.kientzle2008-07-051-1/+0
|
* Revert CVS revision 1.68; it is now possible for entry to be NULL at the endcperciva2008-07-051-1/+2
| | | | | of write_entry. (This was perfectly safe, since archive_entry_free(NULL) is a no-op, but adding the check back makes the style more consistent.)
* FreeBSD-CURRENT bsdtar is synched up with libarchive-portable 2.5.5.kientzle2008-07-051-1/+1
|
* Remove HAVE_STRUCT_STAT_ST_RDEV, as it's not used anywhere.kientzle2008-07-051-1/+0
|
* Stop using the deprecated linux/ext2_fs.h.kientzle2008-07-051-3/+0
|
* Use %H:%M for strftime() time formatting instead of the non-portable %R.kientzle2008-07-051-1/+1
|
* On 64 bit architectures, you can run 32 bit executables and the rtld can ↵edwin2008-07-032-2/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trace them, but ldd(1) doesn't know yet how to detect them: [/] root@ed-exigent>ldd `which httpd` ldd: /usr/local/sbin/httpd: can't read program header ldd: /usr/local/sbin/httpd: not a dynamic executable But... [/] root@ed-exigent>LD_32_TRACE_LOADED_OBJECTS==1 `which httpd` libm.so.4 => /lib32//libm.so.4 (0x280c8000) libaprutil-1.so.2 => /usr/local/lib/libaprutil-1.so.2 (0x280de000) libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x280f2000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28110000) libapr-1.so.2 => /usr/local/lib/libapr-1.so.2 (0x281fd000) libcrypt.so.3 => /lib32//libcrypt.so.3 (0x2821d000) libpthread.so.2 => not found (0x0) libc.so.6 => /lib32//libc.so.6 (0x28235000) libpthread.so.2 => /usr/lib32/libpthread.so.2 (0x2830d000) Added support in ldd(1) for the LD_32_xxx environment variables if the architecture of the machine is >32 bits. If we ever go to 128 bit architectures this excercise will have to be repeated but thanks to earlier commits today it will be relative simple. PR: bin/124906 Submitted by: edwin Approved by: bde (mentor) MFC after: 1 week
* Extract the determination of the kind of (dynamic) executable fromedwin2008-07-031-81/+120
| | | | | | | | | | the main-loop into a seperate function. Instead of using hardcoded environment variables, define them in a lookup table. For the rest, no functionality changes. Approved by: bde (mentor) MFC after: 1 week
* stylify ldd.c, no functional changes.edwin2008-07-031-37/+34
| | | | | Approved by: bde (mentor) MFC after: 1 week
* - add the -m option to the example commands because they would fail w/o itdanger2008-07-011-4/+9
| | | | | | | | as the ``man'' user does not have a valid shell by default. PR: docs/121713 Approved by: trhodes MFC after: 3 days
* Don't try to hardlink directories. While I'm here, expand somekientzle2008-07-011-3/+10
| | | | comments to make this section of code a little clearer.
OpenPOWER on IntegriCloud