summaryrefslogtreecommitdiffstats
path: root/usr.bin/gcore
Commit message (Collapse)AuthorAgeFilesLines
* Deal with double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-2/+4
|
* Fix some WARNS:dwmalone2004-02-153-8/+7
| | | | | | 1) Remove some unused variables. 2) Mark some things aas static or __unused. 3) Cast to make sure we're comparing the same types.
* Add #include <sys/queue.h> for sparc64's benefit. The MD includes therepeter2002-09-131-0/+1
| | | | have less polution.
* Use a crowbar to move the a.out code out of gcore.c and into its ownpeter2002-09-137-577/+68
| | | | | | 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.
* Include stdint.h to make this compile.iedowse2002-09-051-0/+1
| | | | Submitted by: Garance A Drosihn <drosih@rpi.edu>
* ANSIify function definitions.dwmalone2002-09-044-14/+19
| | | | | | | | | 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-303-4/+6
| | | | Requested by: bde
* Consistently use FBSDIDobrien2002-06-304-6/+4
|
* Use `The .Nm utility'charnier2002-04-191-10/+13
|
* Do not print error message twice.charnier2002-04-122-6/+10
|
* Don't use gcc specific flags.dwmalone2002-03-301-1/+0
|
* Add FBSDID. Do not \n terminate err() strings. Spelling.charnier2002-03-261-5/+6
|
* remove __Pimp2002-03-223-15/+16
|
* Removed unused include of kernel-only file <sys/lock.h>.bde2001-10-131-1/+0
|
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-102-2/+0
|
* KSE Milestone 2julian2001-09-122-8/+28
| | | | | | | | | | | | | | 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-152-2/+2
| | | | | PR: bin/29735 MFC after: 2 weeks
* Remove whitespace at EOL.dd2001-07-151-3/+3
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Null terminate buffer.jlemon2001-06-071-1/+2
| | | | | | PR: 23150 Submitted by: Dan Nelson <dnelson@emsphone.com> MFC in: 1 week
* Fix minor style issue from previous commit.obrien2001-05-032-2/+2
|
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-023-3/+3
| | | | | | | | 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-012-0/+2
|
* MAXPATHLEN contains the trailing NUL.imp2001-03-012-2/+2
|
* Prepare for mdoc(7)NG.ru2000-12-191-1/+0
|
* Change the proc information returned from the kernel so that itmckusick2000-12-122-50/+40
| | | | | | | | | | | | 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.
* Fixed typo: .EL -> .Elru2000-11-061-1/+1
|
* Change our ELF binary branding to something more acceptable to the Binutilsobrien2000-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maintainers. After we established our branding method of writing upto 8 characters of the OS name into the ELF header in the padding; the Binutils maintainers and/or SCO (as USL) decided that instead the ELF header should grow two new fields -- EI_OSABI and EI_ABIVERSION. Each of these are an 8-bit unsigned integer. SCO has assigned official values for the EI_OSABI field. In addition to this, the Binutils maintainers and NetBSD decided that a better ELF branding method was to include ABI information in a ".note" ELF section. With this set of changes, we will now create ELF binaries branded using both "official" methods. Due to the complexity of adding a section to a binary, binaries branded with ``brandelf'' will only brand using the EI_OSABI method. Also due to the complexity of pulling a section out of an ELF file vs. poking around in the ELF header, our image activator only looks at the EI_OSABI header field. Note that a new kernel can still properly load old binaries except for Linux static binaries branded in our old method. * * For a short period of time, ``ld'' will also brand ELF binaries * using our old method. This is so people can still use kernel.old * with a new world. This support will be removed before 5.0-RELEASE, * and may not last anywhere upto the actual release. My expiration * time for this is about 6mo. *
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* ${MACHINE} -> ${MACHINE_ARCH}marcel1999-11-141-2/+3
| | | | | | | | | | | | | | | | All Makefiles now use MACHINE_ARCH for the target architecture. Unification is required for cross-building. Tags added to: sys/boot/Makefile sys/boot/arc/loader/Makefile sys/kern/Makefile usr.bin/cpp/Makefile usr.bin/gcore/Makefile usr.bin/truss/Makefile usr.bin/gcore/Makefile: fixed typo: MACHINDE -> MACHINE_ARCH
* useracc() the prequel:phk1999-10-291-1/+0
| | | | | | | | | | | Merge the contents (less some trivial bordering the silly comments) of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts the #defines for the vm_inherit_t and vm_prot_t types next to their typedefs. This paves the road for the commit to follow shortly: change useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE} as argument.
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* Add braces to appease the egcs -Wall mom.jdp1999-07-172-4/+6
|
* Make gcore work again. It was broken by a format change in thejdp1999-07-171-2/+2
| | | | | | | | | | procfs map file when object IDs were eliminated in the mega-commit that included procfs_map.c revision 1.19. The map file is a terrible hodge-podge. The fields that are used mainly for kernel debugging should be moved out of it into a separate file, so that the interface presented by the map file to applications can remain stable in the face of VM system changes.
* 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
* Fix errors detected by -Wformat.jdp1998-11-013-6/+7
|
* When the "-s" option is given, try to ensure that we restart thejdp1998-10-222-24/+64
| | | | target process even if we are killed or die due to an error.
* Make gcore work for ELF.jdp1998-10-195-99/+625
|
* Check the executable's header to make sure it is a valid executable.jdp1998-10-142-2/+18
| | | | | | | 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-143-26/+52
| | | | | | | 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-242-2/+18
| | | | | | | | | | 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-182-6/+6
| | | | consistent.
* Use err(3) instead of local redefinition.charnier1997-07-085-109/+64
|
* Show the real revision date and not the date that thissteve1997-06-231-1/+1
| | | | manpage is being viewed.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-292-2/+2
| | | | posix standard on the topic.
* Use the .Bx macro where appropriate.mpp1996-08-231-3/+8
|
* General -Wall warning cleanup, part I.jkh1996-07-122-2/+4
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* NBPG -> PAGE_SIZEphk1996-05-022-26/+26
|
* Remove trailing whitespace.rgrimes1995-05-304-8/+8
|
OpenPOWER on IntegriCloud