#
1.27 |
|
21-May-2024 |
jsg |
remove prototypes with no matching function
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
|
#
1.26 |
|
03-May-2018 |
zhuk |
A few fixes for kvm_getargv(3)/kvm_getenv(3):
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@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.25 |
|
14-Dec-2017 |
guenther |
Add Symbols.map to explicitly define the ABIs, hiding linker defined symbols. Use hidden aliases for internal invocations of exported symbols to avoid PLT.
ok deraadt@ kettenis@ jca@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.24 |
|
04-Sep-2015 |
dlg |
add kvm_realloc() as a private function.
part of a larger diff ok millert@ guenther@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.23 |
|
15-Oct-2014 |
deraadt |
Apply reallocarray() idiom. ok guenther
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.22 |
|
17-Nov-2013 |
guenther |
Mark internal symbols as hidden. This removes symbols from the ABI, albeit ones no one should be using, so major bump the shlib.
ok kettenis@ ports testing by landry@
|
#
1.21 |
|
16-Nov-2013 |
guenther |
_kvm_syserr() is printf-like too
|
#
1.20 |
|
16-Nov-2013 |
guenther |
Prep for hidden visibility: move the vnode/file related function 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@
|
#
1.19 |
|
12-Nov-2013 |
guenther |
Apply format __attribute__ to _kvm_err() and fix the errors that it detects. Treat failure to KREAD teh pcredd or ucreds to be errors insteading of continuing with bogus data.
ok deraadt@ millert@
|
#
1.18 |
|
22-Oct-2013 |
guenther |
- add UNIX-domain socket info to struct kinfo_file2 - 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@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.17 |
|
12-Mar-2011 |
guenther |
Replace the old, broken KERN_PROC ABI and its matching functions 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
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.16 |
|
12-Jan-2010 |
jasper |
the comment is right, this can indeed go away. it's unused inside libkvm, and nothing else is allowed to use it.
ok guenther@ "sure" deraadt@
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.15 |
|
24-Jun-2009 |
millert |
Install ntfs includes and add libkvm (fstat) support. ntfs bits adapted from NetBSD fstat. OK deraadt@
|
#
1.14 |
|
20-Jun-2009 |
millert |
Move KREAD define to kvm_private.h
|
#
1.13 |
|
20-Jun-2009 |
millert |
Split out cd9660 bits into their own .c file to avoid #define collisions with ufs and add also udf support. OK miod@
|
#
1.12 |
|
07-Jun-2009 |
millert |
Add kvm_getfile2 which uses KERN_FILE2 when possible, falling back on kmem grovelling for non-live kernels. OK deraadt@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.11 |
|
31-Mar-2006 |
deraadt |
careful cleanup following advice from lint. be very very very careful with sprinkling in size_t!
|
#
1.10 |
|
20-Mar-2006 |
mickey |
for some of internal functions use paddr_t where phys addr is intended insteadd of u_long; miod@ ok
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.9 |
|
07-Jan-2004 |
millert |
Implement kvm_getproc2(), kvm_getargv2() and kvm_getenvv2() that use the KERN_PROC2 sysctl. Based on changes from NetBSD but uses our own kvm_arg_sysctl().
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.8 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.7 |
|
08-Jun-2002 |
art |
Add a flag - KVM_NO_FILES which tells kvm_openfiles to not open any files, just return an kvm handle that we can use to some of the functions.
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.6 |
|
16-Feb-2002 |
millert |
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.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.5 |
|
18-May-2001 |
art |
Convert lseek/{read,write} pairs into pread and pwrite. from my todo list, work by Jonathon Fletcher <jonathon.fletcher@pobox.com>.
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.4 |
|
10-May-1996 |
deraadt |
sync with netbsd
|
#
1.3 |
|
05-May-1996 |
deraadt |
sync with 0430
|
#
1.2 |
|
19-Mar-1996 |
niklas |
From NetBSD: merge of 960317
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
#
1.26 |
|
03-May-2018 |
zhuk |
A few fixes for kvm_getargv(3)/kvm_getenv(3):
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@
|
Revision tags: OPENBSD_6_3_BASE
|
#
1.25 |
|
14-Dec-2017 |
guenther |
Add Symbols.map to explicitly define the ABIs, hiding linker defined symbols. Use hidden aliases for internal invocations of exported symbols to avoid PLT.
ok deraadt@ kettenis@ jca@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.24 |
|
04-Sep-2015 |
dlg |
add kvm_realloc() as a private function.
part of a larger diff ok millert@ guenther@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.23 |
|
15-Oct-2014 |
deraadt |
Apply reallocarray() idiom. ok guenther
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.22 |
|
17-Nov-2013 |
guenther |
Mark internal symbols as hidden. This removes symbols from the ABI, albeit ones no one should be using, so major bump the shlib.
ok kettenis@ ports testing by landry@
|
#
1.21 |
|
16-Nov-2013 |
guenther |
_kvm_syserr() is printf-like too
|
#
1.20 |
|
16-Nov-2013 |
guenther |
Prep for hidden visibility: move the vnode/file related function 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@
|
#
1.19 |
|
12-Nov-2013 |
guenther |
Apply format __attribute__ to _kvm_err() and fix the errors that it detects. Treat failure to KREAD teh pcredd or ucreds to be errors insteading of continuing with bogus data.
ok deraadt@ millert@
|
#
1.18 |
|
22-Oct-2013 |
guenther |
- add UNIX-domain socket info to struct kinfo_file2 - 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@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.17 |
|
12-Mar-2011 |
guenther |
Replace the old, broken KERN_PROC ABI and its matching functions 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
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.16 |
|
12-Jan-2010 |
jasper |
the comment is right, this can indeed go away. it's unused inside libkvm, and nothing else is allowed to use it.
ok guenther@ "sure" deraadt@
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.15 |
|
24-Jun-2009 |
millert |
Install ntfs includes and add libkvm (fstat) support. ntfs bits adapted from NetBSD fstat. OK deraadt@
|
#
1.14 |
|
20-Jun-2009 |
millert |
Move KREAD define to kvm_private.h
|
#
1.13 |
|
20-Jun-2009 |
millert |
Split out cd9660 bits into their own .c file to avoid #define collisions with ufs and add also udf support. OK miod@
|
#
1.12 |
|
07-Jun-2009 |
millert |
Add kvm_getfile2 which uses KERN_FILE2 when possible, falling back on kmem grovelling for non-live kernels. OK deraadt@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.11 |
|
31-Mar-2006 |
deraadt |
careful cleanup following advice from lint. be very very very careful with sprinkling in size_t!
|
#
1.10 |
|
20-Mar-2006 |
mickey |
for some of internal functions use paddr_t where phys addr is intended insteadd of u_long; miod@ ok
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.9 |
|
07-Jan-2004 |
millert |
Implement kvm_getproc2(), kvm_getargv2() and kvm_getenvv2() that use the KERN_PROC2 sysctl. Based on changes from NetBSD but uses our own kvm_arg_sysctl().
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.8 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.7 |
|
08-Jun-2002 |
art |
Add a flag - KVM_NO_FILES which tells kvm_openfiles to not open any files, just return an kvm handle that we can use to some of the functions.
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.6 |
|
16-Feb-2002 |
millert |
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.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.5 |
|
18-May-2001 |
art |
Convert lseek/{read,write} pairs into pread and pwrite. from my todo list, work by Jonathon Fletcher <jonathon.fletcher@pobox.com>.
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.4 |
|
10-May-1996 |
deraadt |
sync with netbsd
|
#
1.3 |
|
05-May-1996 |
deraadt |
sync with 0430
|
#
1.2 |
|
19-Mar-1996 |
niklas |
From NetBSD: merge of 960317
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|
#
1.25 |
|
14-Dec-2017 |
guenther |
Add Symbols.map to explicitly define the ABIs, hiding linker defined symbols. Use hidden aliases for internal invocations of exported symbols to avoid PLT.
ok deraadt@ kettenis@ jca@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.24 |
|
04-Sep-2015 |
dlg |
add kvm_realloc() as a private function.
part of a larger diff ok millert@ guenther@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.23 |
|
15-Oct-2014 |
deraadt |
Apply reallocarray() idiom. ok guenther
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.22 |
|
17-Nov-2013 |
guenther |
Mark internal symbols as hidden. This removes symbols from the ABI, albeit ones no one should be using, so major bump the shlib.
ok kettenis@ ports testing by landry@
|
#
1.21 |
|
16-Nov-2013 |
guenther |
_kvm_syserr() is printf-like too
|
#
1.20 |
|
16-Nov-2013 |
guenther |
Prep for hidden visibility: move the vnode/file related function 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@
|
#
1.19 |
|
12-Nov-2013 |
guenther |
Apply format __attribute__ to _kvm_err() and fix the errors that it detects. Treat failure to KREAD teh pcredd or ucreds to be errors insteading of continuing with bogus data.
ok deraadt@ millert@
|
#
1.18 |
|
22-Oct-2013 |
guenther |
- add UNIX-domain socket info to struct kinfo_file2 - 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@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.17 |
|
12-Mar-2011 |
guenther |
Replace the old, broken KERN_PROC ABI and its matching functions 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
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.16 |
|
12-Jan-2010 |
jasper |
the comment is right, this can indeed go away. it's unused inside libkvm, and nothing else is allowed to use it.
ok guenther@ "sure" deraadt@
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.15 |
|
24-Jun-2009 |
millert |
Install ntfs includes and add libkvm (fstat) support. ntfs bits adapted from NetBSD fstat. OK deraadt@
|
#
1.14 |
|
20-Jun-2009 |
millert |
Move KREAD define to kvm_private.h
|
#
1.13 |
|
20-Jun-2009 |
millert |
Split out cd9660 bits into their own .c file to avoid #define collisions with ufs and add also udf support. OK miod@
|
#
1.12 |
|
07-Jun-2009 |
millert |
Add kvm_getfile2 which uses KERN_FILE2 when possible, falling back on kmem grovelling for non-live kernels. OK deraadt@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.11 |
|
31-Mar-2006 |
deraadt |
careful cleanup following advice from lint. be very very very careful with sprinkling in size_t!
|
#
1.10 |
|
20-Mar-2006 |
mickey |
for some of internal functions use paddr_t where phys addr is intended insteadd of u_long; miod@ ok
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.9 |
|
07-Jan-2004 |
millert |
Implement kvm_getproc2(), kvm_getargv2() and kvm_getenvv2() that use the KERN_PROC2 sysctl. Based on changes from NetBSD but uses our own kvm_arg_sysctl().
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.8 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.7 |
|
08-Jun-2002 |
art |
Add a flag - KVM_NO_FILES which tells kvm_openfiles to not open any files, just return an kvm handle that we can use to some of the functions.
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.6 |
|
16-Feb-2002 |
millert |
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.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.5 |
|
18-May-2001 |
art |
Convert lseek/{read,write} pairs into pread and pwrite. from my todo list, work by Jonathon Fletcher <jonathon.fletcher@pobox.com>.
|
Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.4 |
|
10-May-1996 |
deraadt |
sync with netbsd
|
#
1.3 |
|
05-May-1996 |
deraadt |
sync with 0430
|
#
1.2 |
|
19-Mar-1996 |
niklas |
From NetBSD: merge of 960317
|
#
1.1 |
|
18-Oct-1995 |
deraadt |
branches: 1.1.1; Initial revision
|