aboutsummaryrefslogtreecommitdiff
path: root/lib/libproc
Commit message (Collapse)AuthorAgeFilesLines
* MFC 246035:John Baldwin2013-03-011-1/+2
| | | | | | | | | | | - Compute the correct size to reallocate when doubling the size of the array of loaded objects to avoid a buffer overrun. - Use reallocf() to avoid leaking memory if the realloc() fails. PR: kern/175648 Notes: svn path=/stable/9/; revision=247553
* fix a serious bug in libproc's proc_attachAndriy Gapon2011-08-031-2/+1
| | | | | | | | | | | | | proc_attach always frees any struct proc_handle data that it allocates, but that is supposed to be done only in error conditions. PR: bin/158431 Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=224632
* Fix a memory leak on the error conditionKevin Lo2010-12-141-1/+1
| | | | | | | Reviewed by: rpaulo Notes: svn path=/head/; revision=216432
* Ignore EINTR when calling waitpid.Rui Paulo2010-09-181-1/+2
| | | | Notes: svn path=/head/; revision=212831
* Several fixes for libproc:Rui Paulo2010-08-115-9/+25
| | | | | | | | | | | o return the correct status in proc_wstatus() o proc_read takes a void * o correctly allocate the objs structure array Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=211184
* Revert SHLIB_MAJOR to 2.Rui Paulo2010-07-311-1/+1
| | | | | | | | As discussed with kan@, since DTrace is the only consumer of libproc right now, there's no need for a major shlib bump. Notes: svn path=/head/; revision=210694
* Bump the shared library major version due to ABI conflicts.Rui Paulo2010-07-311-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=210689
* New version of libproc. Changes are:Rui Paulo2010-07-3116-76/+1316
| | | | | | | | | | | | | | * breakpoint setup support * register query * symbol to address mapping and vice-versa * more misc utility functions based on their Solaris counterpart Also, I've written some test cases. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=210688
* Removed redundant -I. from CFLAGS and "yes" from WITHOUT_MAN.Ruslan Ermilov2010-02-251-2/+2
| | | | Notes: svn path=/head/; revision=204338
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) Notes: svn path=/head/; revision=195767
* Merge latest DTrace changes from Perforce.Craig Rodrigues2008-11-052-3/+10
| | | | | | | | | Update libproc API to reflect new changes. Approved by: jb Notes: svn path=/head/; revision=184697
* Add the Makefile for the process library which was missed in the previousJohn Birrell2008-05-221-0/+20
| | | | | | | commit. Notes: svn path=/head/; revision=179186
* Add a process library with some stubs that the DTrace client needs.John Birrell2008-05-225-0/+473
These will be fleshed out as part of the DTrace userland tracing development. For now, the kernel tracing part of DTrace requires minimal functionality for this library. The API for this library is deliberately different from the libproc in OpenSolaris due to licensing restrictions. Notes: svn path=/head/; revision=179185