summaryrefslogtreecommitdiffstats
path: root/usr.bin/gcore/gcore.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix some WARNS:dwmalone2004-02-151-1/+1
| | | | | | 1) Remove some unused variables. 2) Mark some things aas static or __unused. 3) Cast to make sure we're comparing the same types.
* Use a crowbar to move the a.out code out of gcore.c and into its ownpeter2002-09-131-193/+23
| | | | | | file so that we have a chance of using gcore on non-i386 platforms. Use linker sets to reduce the registration glue. Remove md-sparc.c, we do not have an a.out sparc32 port. aoutcore.c was repocopied from gcore.c.
* ANSIify function definitions.dwmalone2002-09-041-1/+3
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Consistently wrap CSRG SCM ID.obrien2002-06-301-1/+2
| | | | Requested by: bde
* Consistently use FBSDIDobrien2002-06-301-2/+0
|
* Do not print error message twice.charnier2002-04-121-3/+5
|
* remove __Pimp2002-03-221-6/+6
|
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-101-1/+0
|
* KSE Milestone 2julian2001-09-121-4/+14
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Fix usage message, the executable is optional.mikeh2001-08-151-1/+1
| | | | | PR: bin/29735 MFC after: 2 weeks
* Fix minor style issue from previous commit.obrien2001-05-031-1/+1
|
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-021-1/+1
| | | | | | | | longer includes machine/elf.h. * consumers of elf.h now use the minimalist elf header possible. This change is motivated by Binutils 2.11.0 and too much clashing over our base elf headers and the Binutils elf headers.
* Compensate for header dethreading.markm2001-05-011-0/+1
|
* MAXPATHLEN contains the trailing NUL.imp2001-03-011-1/+1
|
* Change the proc information returned from the kernel so that itmckusick2000-12-121-25/+20
| | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add braces to appease the egcs -Wall mom.jdp1999-07-171-2/+3
|
* Fix errors detected by -Wformat.jdp1998-11-011-2/+2
|
* When the "-s" option is given, try to ensure that we restart thejdp1998-10-221-12/+32
| | | | target process even if we are killed or die due to an error.
* Make gcore work for ELF.jdp1998-10-191-49/+53
|
* Check the executable's header to make sure it is a valid executable.jdp1998-10-141-1/+9
| | | | | | | If it is ELF, print a diagnostic saying that it is not supported yet by this program. This is a stop-gap anti-bug-report measure because it looks like there won't be time to implement gcore's ELF support before 3.0 is released.
* Don't require an executable file name. If no executable image isdes1998-09-141-8/+21
| | | | | | | specified, use /proc/<pid>/file. Document it. PR: bin/7915 Suggested-By: Wolfram Schneider <wosch@panke.de.freebsd.org>
* Check the text segment size of the executable and the process. Ifwosch1998-08-241-1/+9
| | | | | | | | | | not equal, the command line arguments are wrong. E.g.: $./gcore /bin/sh 1761 $ ./gcore /usr/tmp/chroot/bin/sh 1761 gcore: The executable /usr/tmp/chroot/bin/sh does not belong to process 1761! Text segment size (in bytes): executable 303104, process 294912
* Add missing argument detected by "-Wformat". Make messages morejdp1997-11-181-3/+3
| | | | consistent.
* Use err(3) instead of local redefinition.charnier1997-07-081-48/+22
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* General -Wall warning cleanup, part I.jkh1996-07-121-1/+2
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* NBPG -> PAGE_SIZEphk1996-05-021-13/+13
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+313
OpenPOWER on IntegriCloud