summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_private.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* A few fixes for kvm_getargv(3)/kvm_getenv(3):zhuk2018-05-031-1/+7
| | | | | | | | | | | 1. Most notable: this splits argv buffer into argv-specific one and environ-specific one. This makes ps -eww totally happy. 2. realloc() usage in kvm_argv() is now ENOMEM-prone. 3. The "int off" changed to "ptrdiff_t off", as it should be. input & okay deraadt@, millert@
* Add Symbols.map to explicitly define the ABIs, hiding linker defined symbols.guenther2017-12-141-1/+9
| | | | | | Use hidden aliases for internal invocations of exported symbols to avoid PLT. ok deraadt@ kettenis@ jca@
* add kvm_realloc() as a private function.dlg2015-09-041-1/+2
| | | | | part of a larger diff ok millert@ guenther@
* Apply reallocarray() idiom.deraadt2014-10-151-2/+2
| | | | ok guenther
* Mark internal symbols as hidden. This removes symbols from the ABI,guenther2013-11-171-1/+3
| | | | | | | albeit ones no one should be using, so major bump the shlib. ok kettenis@ ports testing by landry@
* _kvm_syserr() is printf-like tooguenther2013-11-161-2/+3
|
* Prep for hidden visibility: move the vnode/file related functionguenther2013-11-161-4/+1
| | | | | | | | declarations, including _kvm_getftype(), into a new header, kvm_file.h, so that we don't have to pull <sys/vnode.h> into all the .c files. No more extern function declaration in .c files. ok millert@
* Apply format __attribute__ to _kvm_err() and fix the errors that it detects.guenther2013-11-121-2/+3
| | | | | | | Treat failure to KREAD teh pcredd or ucreds to be errors insteading of continuing with bogus data. ok deraadt@ millert@
* - add UNIX-domain socket info to struct kinfo_file2guenther2013-10-221-4/+4
| | | | | | | | | | - convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE. ok deraadt@, millert@ ports scan sthen@
* Replace the old, broken KERN_PROC ABI and its matching functionsguenther2011-03-121-3/+1
| | | | | | | | | in libkvm with the stable-ABI versions that are currently named KERN_PROC2, kvm_get{proc,argv,envv}2(). The latter names and symbols will continue to be supported for a few releases. Committing now that they ports people have had a couple releases to update pkgs that usd the old functions
* the comment is right, this can indeed go away.jasper2010-01-121-2/+1
| | | | | | it's unused inside libkvm, and nothing else is allowed to use it. ok guenther@ "sure" deraadt@
* Install ntfs includes and add libkvm (fstat) support. ntfs bitsmillert2009-06-241-1/+2
| | | | adapted from NetBSD fstat. OK deraadt@
* Move KREAD define to kvm_private.hmillert2009-06-201-1/+4
|
* Split out cd9660 bits into their own .c file to avoid #define collisionsmillert2009-06-201-1/+3
| | | | with ufs and add also udf support. OK miod@
* Add kvm_getfile2 which uses KERN_FILE2 when possible, fallingmillert2009-06-071-1/+2
| | | | back on kmem grovelling for non-live kernels. OK deraadt@
* careful cleanup following advice from lint. be very very very carefulderaadt2006-03-311-7/+4
| | | | with sprinkling in size_t!
* for some of internal functions use paddr_t where phys addr is intended insteadd of u_long; miod@ okmickey2006-03-201-3/+3
|
* Implement kvm_getproc2(), kvm_getargv2() and kvm_getenvv2() that usemillert2004-01-071-1/+2
| | | | | the KERN_PROC2 sysctl. Based on changes from NetBSD but uses our own kvm_arg_sysctl().
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Add a flag - KVM_NO_FILES which tells kvm_openfiles to notart2002-06-081-2/+3
| | | | | open any files, just return an kvm handle that we can use to some of the functions.
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-13/+13
|
* Convert lseek/{read,write} pairs into pread and pwrite.art2001-05-181-1/+5
| | | | from my todo list, work by Jonathon Fletcher <jonathon.fletcher@pobox.com>.
* sync with netbsdderaadt1996-05-101-3/+4
|
* sync with 0430deraadt1996-05-051-1/+2
|
* From NetBSD: merge of 960317niklas1996-03-191-1/+14
|
* initial import of NetBSD treederaadt1995-10-181-0/+88