summaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-05-03Cleanup usage of free() in libkvm.Vadim Zhukov
2018-05-03A few fixes for kvm_getargv(3)/kvm_getenv(3):Vadim Zhukov
2017-12-14Add Symbols.map to explicitly define the ABIs, hiding linker defined symbols.Philip Guenther
2016-07-10use offsetof to create an offset instead of illegal unaligned pointersTed Unangst
2016-05-14Revert previous commit. Converting bcopy into memcpy is never safe whenMark Kettenis
2016-05-11convert bcopy to memcpy. ok dlg millertTed Unangst
2015-12-19Remove NULL-checks before free(). ok tb@mmcc
2015-09-08port the changes just made to kvm_getfiles in kvm_file2.c r1.47 toDavid Gwynne
2015-09-04fix a race when fetching files from the kernel. the number of filesDavid Gwynne
2015-09-04add kvm_realloc() as a private function.David Gwynne
2015-05-11When checking flags that will be passed to open(), test the O_ACCMODE portionPhilip Guenther
2015-01-16Move to the <limits.h> universe.Theo de Raadt
2014-08-15Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)Philip Guenther
2013-11-16ANSIfy a declarationPhilip Guenther
2013-11-01reduce use of <sys/user.h>Theo de Raadt
2013-10-17Remove support for a.out and ecoff. We only do elf now.Theo de Raadt
2011-03-12Replace the old, broken KERN_PROC ABI and its matching functionsPhilip Guenthe
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-06-07Add kvm_getfile2 which uses KERN_FILE2 when possible, fallingTodd C. Miller
2009-01-21All operation on live kernels uses sysctl interface, there is no reason toMiod Vallat
2006-03-31careful cleanup following advice from lint. be very very very carefulTheo de Raadt
2006-03-31kvm_openfiles() should take int flag, not unsignedTheo de Raadt
2006-03-20for some of internal functions use paddr_t where phys addr is intended instea...Michael Shalayeff
2004-09-15Kill (almost all) warnings.Miod Vallat
2004-09-14KVM_NO_FILES is 0x80000000, so arg 4 of kvm_openfiles() must be unsignedTheo de Raadt
2004-08-11free memory allocated by kvm_getproc2() in kvm_close()Jared Yanovich
2004-07-01if sym has null value -- report as not found; check that kd->vmst is set befo...Michael Shalayeff
2004-06-15knf; ok millertTheo de Raadt
2004-02-23more explicitly check against -1 for pread/pwrite error returns; millert okTheo de Raadt
2004-02-18strlcpy is nicer. ok deraadt@ millert@Ted Unangst
2004-01-09Initialize procbase2 to 0 in _kvm_open(); Dan HarnettTodd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2002-09-17indentTheo de Raadt
2002-09-17Set close on exec flag for file descriptors opened by kvm_open().Todd C. Miller
2002-06-08Add a flag - KVM_NO_FILES which tells kvm_openfiles to notArtur Grabowski
2002-03-05call open() with 3 args, for the heck of itTheo de Raadt
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained o...Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-11-21Use the address of the symbol, do not overwrite the address with 0, beforeDale Rahn
2001-11-06Adapt to new uvm/ includes.Artur Grabowski
2001-11-05No need to pull in vm/vm_param.h in any of these files.Artur Grabowski
2001-06-27no more vm/swap_pager.hTheo de Raadt
2001-05-18Convert lseek/{read,write} pairs into pread and pwrite.Artur Grabowski
2001-05-17Repair a fprintf message lacking one parameter.Miod Vallat
2001-01-04spellingTodd T. Fries
2000-10-25various savecore/kvm fixes; gluk@ptci.ru, PR#1461Theo de Raadt
2000-10-23Format string paranoia; deraadt@ okAaron Campbell
1998-10-28Don't return error trying to make a dump header when noMarco S Hyman