Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-07-21 | Support KERN_FILE_TEXT here too | Todd C. Miller | |
2009-07-21 | Handle the case where so_pcb is NULL. | Todd C. Miller | |
2009-07-15 | round, roundf, trunc, truncf for hppa; ok kettenis@ | Martynas Venckus | |
2009-07-15 | must include <sys/types.h> before including <login_cap.h> or <bsd_auth.h>; | Ingo Schwarze | |
noticed by joao <salvatti at gmail dot com> on tech@; feedback and ok kettenis@ deraadt@ and reminded by jmc@ | |||
2009-07-14 | Don't specify mode(SI) attribute for __EH_FRAME_END__ as we have | Jonathan Gray | |
32 bit ints on OpenBSD. ok kettenis@ | |||
2009-07-13 | Load symbol address with dla, not la; good thing userland is still limited | Miod Vallat | |
to 2GB of vm space. | |||
2009-07-12 | fwrite() should also return 0 if either size or nmemb are 0. | Todd C. Miller | |
Adapted from FreeBSD. OK deraadt@ | |||
2009-07-09 | promote correct style for error checking | Eric Faurot | |
ok tedu@ deraadt@ krw@ | |||
2009-07-08 | correct kvm_getfile2 error string | Todd C. Miller | |
2009-07-06 | fe_towardzero not on openbsd. ok millert@ | Martynas Venckus | |
2009-06-30 | floor(3) should round towards -inf instead of towards zero. | Mark Kettenis | |
ok martynas@, deraadt@ | |||
2009-06-24 | Install ntfs includes and add libkvm (fstat) support. ntfs bits | Todd C. Miller | |
adapted from NetBSD fstat. OK deraadt@ | |||
2009-06-23 | getgrouplist(3) used to and ought to return 0 on success; | Ingo Schwarze | |
fixing a regression introduced in rev. 1.16 spotted by otto@; ok millert@ otto@ | |||
2009-06-21 | fix rcs ids. ok sthen@ | Martynas Venckus | |
2009-06-21 | abs conforms c99 -> imaxabs conforms c99. ok millert@ | Martynas Venckus | |
2009-06-20 | Move KREAD define to kvm_private.h | Todd C. Miller | |
2009-06-20 | Split out cd9660 bits into their own .c file to avoid #define collisions | Todd C. Miller | |
with ufs and add also udf support. OK miod@ | |||
2009-06-20 | use llabs instead of the home-grown version; and some comment changes | Martynas Venckus | |
ok ian@, millert@ | |||
2009-06-20 | Add msdosfs support now that we have the headers. | Todd C. Miller | |
2009-06-19 | Quiet a gcc warning | Todd C. Miller | |
2009-06-16 | Do not break gcc -Z on powerpc. mprotect the got only if it is padded. | Dale Rahn | |
Diff written and tweaked by kurt@ and myself. ok kurt@, now is agood time deraadt@ | |||
2009-06-12 | YP client functions do not allocate memory when they fail; | Ingo Schwarze | |
wording tweaked by jmc@ | |||
2009-06-11 | add missing headers needed by free(), memset(), getuid() and strlcpy(). | Charles Longeau | |
ok millert@ | |||
2009-06-11 | don't use freelist if it overruns; use heap memory instead not | Martynas Venckus | |
trying to allocate large blocks from bss memory pool in this case. problem reported by Maksymilian Arciemowicz. ok otto@, millert@ | |||
2009-06-09 | document KERN_BUFCACHEPERCENT and KERN_MAXLOCKSPERUID; help/ok oga | Jason McIntyre | |
2009-06-09 | nnpfspioctl change in libc mandates a major crank here to | Theo de Raadt | |
2009-06-08 | quieten compiler by converting pointers to uintptr_t before truncating them | Theo de Raadt | |
to u_int32_t to do integer math with (in a situation where that is legit) ok otto millert | |||
2009-06-07 | Define _KERNEL for the bare minimum. We can include sys/proc.h | Todd C. Miller | |
normally as long as we define __need_process and use a local definition of struct proclist. | |||
2009-06-07 | Avoid including machine/cpu.h | Todd C. Miller | |
2009-06-07 | de-spaghetti: | Ingo Schwarze | |
If code is used from exactly one place, don't jump back dozens of lines to reach it, only to "goto" back where you came from. Instead, simply put the code where it belongs. Also fixes a regression that crept in in rev. 1.30: After clearing the variable __ypmode, don't try to make decisions based on its former value. As a bonus, garbage collect the grname variable and the _ypmode enum type. ok millert@ | |||
2009-06-07 | fix a minor memory leak spotted by deraadt@; ok millert@ deraadt@ | Ingo Schwarze | |
2009-06-07 | Add kvm_getfile2 which uses KERN_FILE2 when possible, falling | Todd C. Miller | |
back on kmem grovelling for non-live kernels. OK deraadt@ | |||
2009-06-07 | Add KERN_FILE2 sysctl analogous to KERN_PROC2 but for file structures, | Todd C. Miller | |
along with vnode type-specific info to make it more useful for fstat(1). OK deraadt@ | |||
2009-06-07 | Modify the uc_entries allocation check such that the lhs is a constant. | Todd C. Miller | |
OK deraadt@ | |||
2009-06-07 | No need to malloc, copy, have a single read access, and free right away. | Ingo Schwarze | |
Thus, garbage collect one variable, one strdup, one free, two ifs, one else and a couple of assignments. No functional change. ok millert@ | |||
2009-06-06 | In case of memory exhaustion, ypmatch_add may both leak memory and leave | Ingo Schwarze | |
invalid data on the list, inviting later NULL pointer access. noticed by deraadt@, algorithm proposed by millert, implemented by me; feedback and ok millert@ | |||
2009-06-06 | correct error codes after malloc(3) failure, as 0 means RPC_SUCCESS; | Ingo Schwarze | |
noticed by and OK deraadt@, ok millert@ | |||
2009-06-06 | use calloc() and realloc() more; ok schwarze | Theo de Raadt | |
2009-06-05 | Note that f_fsid gets cleared when caller is not the superuser. OK deraadt@ | Todd C. Miller | |
2009-06-05 | use calloc() to provide size * nitems safety | Theo de Raadt | |
2009-06-05 | use calloc() to provide size * nitems safety; ok millert | Theo de Raadt | |
2009-06-05 | The yp_bind(3) return code now distinguishes "YP not active" from "an error | Ingo Schwarze | |
occurred". Based on this, decide to either bail or use the record as is. Prevents getgrnam(3) and friends from silently skipping YP records on system errors, for example when out of memory. Also, calling yp_get_default_domain once is enough. The first two switch cases are unchanged, just reindented. ok millert@ | |||
2009-06-05 | malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR; | Ingo Schwarze | |
ok millert@ | |||
2009-06-05 | improve yp_bind(3) error reporting after clnttcp_create(3) failure: | Ingo Schwarze | |
map ECONNREFUSED -> YPERR_YPBIND, ENOMEM -> YPERR_RESRC, else YPERR_YPERR while here, malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR ok millert@ | |||
2009-06-05 | When parsing a line stating with "+" or "-" in group(5), | Ingo Schwarze | |
check whether YP is active up front, not half-way through the parsing. This fixes the bug that group names starting with a dash (yuck!) were skipped when YP was not active, introduced in rev. 1.27. Besides, the code becomes easier to understand. The code inside the two switch cases is unchanged, just reindented. "looks good" millert@ | |||
2009-06-05 | An empty sting cannot be used as a YP domain name, | Ingo Schwarze | |
so treat it similarly to a failing call to getdomainname. ok millert@ | |||
2009-06-05 | abort any time adjustment in progress if the clock is set with settimeofday | Chris Kuethe | |
ok millert | |||
2009-06-05 | compare and shift buffer against a fixed length not strlen derived values. | Pierre-Yves Ritschard | |
ok otto@ | |||
2009-06-04 | simplify the 'family' option parser and make it more evident what we're | Pierre-Yves Ritschard | |
now doing. ok deraadt@ | |||
2009-06-04 | Recycle four ancient fields in the disklabel structure, replacing them with | Theo de Raadt | |
bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn |