Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | getifaddrs() can return entries where ifa_addr is NULL. Check for this | 2020-12-30 | 2 | -4/+7 | |
| | | | | | before accessing anything in ifa_addr. ok claudio@ | ||||
* | Do some easy .data -> .rodata/.data.rel.ro conversions | 2020-10-13 | 1 | -2/+2 | |
| | | | | ok millert@ deraadt@ | ||||
* | Remove duplicate definition of _null_auth. | 2020-08-30 | 1 | -3/+1 | |
| | | | | ok millert@ deraadt@ | ||||
* | Add support for timeconting in userland. | 2020-07-06 | 4 | -12/+12 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | This diff exposes parts of clock_gettime(2) and gettimeofday(2) to userland via libc eliberating processes from the need for a context switch everytime they want to count the passage of time. If a timecounter clock can be exposed to userland than it needs to set its tc_user member to a non-zero value. Tested with one or multiple counters per architecture. The timing data is shared through a pointer found in the new ELF auxiliary vector AUX_openbsd_timekeep containing timehands information that is frequently updated by the kernel. Timing differences between the last kernel update and the current time are adjusted in userland by the tc_get_timecount() function inside the MD usertc.c file. This permits a much more responsive environment, quite visible in browsers, office programs and gaming (apparently one is are able to fly in Minecraft now). Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others! OK from at least kettenis@, cheloha@, naddy@, sthen@ | ||||
* | snprintf/vsnprintf return < 0 on error, rather than -1. | 2019-07-03 | 1 | -9/+9 | |
| | |||||
* | When system calls indicate an error they return -1, not some arbitrary | 2019-06-28 | 8 | -30/+31 | |
| | | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | ||||
* | Remove dead gettimeofday calls and timevals. | 2018-01-06 | 2 | -6/+2 | |
| | | | | ok jca@ | ||||
* | Simplify and unify timespec variables used in those event loops | 2017-12-14 | 3 | -18/+14 | |
| | | | | ok millert@ | ||||
* | Use CLOCK_MONOTONIC for the rpc event loops | 2017-12-14 | 3 | -40/+40 | |
| | | | | From Scott Cheloha, ok deraadt@ tb@ | ||||
* | fix a sentence that used unusual terminology, the wrong macro, | 2017-06-10 | 1 | -5/+6 | |
| | | | | and broken delimiter syntax; found with mandoc -Tlint | ||||
* | Nuke whitespace foolish enough to expose itself during the great | 2017-01-21 | 3 | -12/+12 | |
| | | | | "warning:" rectification. | ||||
* | Add 'default:' cases to switch statements that gcc whines about. | 2016-12-20 | 4 | -4/+13 | |
| | | | | ok jung@ | ||||
* | s/alloctaed/allocated/ in comment | 2016-09-23 | 1 | -2/+2 | |
| | |||||
* | Delete casts to off_t and size_t that are implied by assignments | 2016-09-21 | 1 | -5/+5 | |
| | | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@ | ||||
* | for some time now mandoc has not required MLINKS to function | 2016-03-30 | 1 | -111/+1 | |
| | | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | ||||
* | We are done providing support for the vax. | 2016-03-09 | 1 | -177/+2 | |
| | | | | lots of agreement. | ||||
* | Remove NULL-checks before free() and a few related dead assignments. | 2015-12-28 | 1 | -3/+2 | |
| | | | | ok and valuable input from millert@ | ||||
* | update NAME section to include all documented functions, | 2015-11-10 | 2 | -6/+6 | |
| | | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze | ||||
* | delete old lint ARGSUSED comments | 2015-11-01 | 11 | -38/+11 | |
| | |||||
* | user land -> userland; from Rob Pierce | 2015-10-05 | 1 | -2/+2 | |
| | |||||
* | __xdrrec_getrec is in the reserved namespace, so it doesn't need to be weak | 2015-10-04 | 1 | -2/+2 | |
| | |||||
* | use .Va for global variables, and .Vt where the type is included | 2015-09-14 | 1 | -44/+37 | |
| | |||||
* | Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internal | 2015-09-14 | 1 | -1/+3 | |
| | | | | calls go direct and all the symbols are weak | ||||
* | Wrap <rpc/*.h> so that calls go direct and the symbols are all weak. | 2015-09-13 | 25 | -33/+106 | |
| | | | | | | Hide __xprt_register() and _authenticate(); truncate <rpc/svc_auth.h> ok deraadt@ | ||||
* | lseek() is in <unistd.h> ok deraadt@ | 2015-09-11 | 1 | -1/+2 | |
| | |||||
* | _rpc_dtablesize() is not used anywhere, tracking by sthen; ok guenther | 2015-09-11 | 2 | -52/+2 | |
| | |||||
* | rpcdata should not be exported; ok guenther | 2015-09-11 | 1 | -2/+2 | |
| | |||||
* | Use SOCK_NONBLOCK in a couple more places | 2015-09-09 | 1 | -22/+3 | |
| | | | | ok deraadt@ | ||||
* | Delete 3 more stderr messages, right before returning a proper error. | 2015-09-02 | 3 | -6/+6 | |
| | | | | Code from way in the past. | ||||
* | do not printf() on error from libc; ok millert | 2015-09-02 | 1 | -3/+1 | |
| | |||||
* | Remove all bogus writes to stderr. Only explicit requests should | 2015-09-01 | 10 | -70/+23 | |
| | | | | | go that way. ok miod beck | ||||
* | Remove calls to perror(); the error returns are sufficient, and these | 2015-09-01 | 3 | -27/+7 | |
| | | | | | library may not assume stderr is useable. ok millert miod beck | ||||
* | All these files include <stdlib.h>, so do not need to cast | 2015-08-20 | 9 | -19/+19 | |
| | | | | malloc/calloc/realloc* returns. | ||||
* | swap calloc() arguments for clarity | 2015-05-18 | 1 | -2/+2 | |
| | |||||
* | Use fcntl() to set non-blocking-mode, rather ioctl(). This has a better | 2015-05-17 | 1 | -4/+20 | |
| | | | | | chance of working in systrace restricted environments. ok guenther | ||||
* | Use the size of the buffer not the pointer in a call to mem_free(). | 2015-05-04 | 1 | -2/+2 | |
| | | | | ok miod@ and guenther@ who both pointed out this argument is unused. | ||||
* | Cut the aliases part of /etc/rpc lines before feeding them to strtonum(), for | 2015-04-25 | 1 | -6/+7 | |
| | | | | it will fail otherwise; ok deraadt@ millert@ | ||||
* | Convert many atoi() calls to strtonum(), adding range checks and failure | 2015-04-18 | 1 | -2/+6 | |
| | | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert | ||||
* | Move to the <limits.h> universe. | 2015-01-16 | 4 | -11/+7 | |
| | | | | review by millert, binary checking process with doug, concept with guenther | ||||
* | Merge from NetBSD from 1999-03-25:" | 2014-11-11 | 7 | -29/+26 | |
| | | | | | | | | | | | | * don't close the socket unless it was opened by the function * note (in the comments) that the client is responsible for closing the socket if they opened it, or they didn't use CLNT_DESTROY() fixes a couple of unnecessary closing of already-closed sockets. noted by: Matthias Drochner <M.Drochner@fz-juelich.de>" tested by many in snaps ok schwarze@ | ||||
* | missing pfd = newp, diagnosed by deraadt@ | 2014-11-05 | 1 | -1/+2 | |
| | |||||
* | Fix memory leak on reallocarray() failure introduced by conversion | 2014-11-04 | 1 | -4/+6 | |
| | | | | from calloc(). | ||||
* | Remove unnecessary netinet/in_systm.h include. | 2014-10-25 | 1 | -2/+1 | |
| | | | | ok millert@ | ||||
* | We prefer to use call reallocarray() with nmemb first and size second. | 2014-10-22 | 1 | -2/+2 | |
| | | | | Requested by guenther@ | ||||
* | Use reallocarray() instead of calloc() (originally was realloc). | 2014-10-22 | 1 | -3/+2 | |
| | | | | OK deraadt@ | ||||
* | obvious conversion of realloc() to reallocarray(). Luckily this is | 2014-10-08 | 1 | -2/+2 | |
| | | | | | using pollfd, because if this was fd_set... it would not be obvious (or easy) | ||||
* | When fopen()ing internal to libc (the API doesn't support the use | 2014-09-15 | 1 | -3/+3 | |
| | | | | | | | of the resulting FILE *), then pass fopen() the 'e' mode letter to mark it close-on-exec. ok miod@ | ||||
* | Switch from <sys/endian.h> or <machine/endian.h> to the new, | 2014-07-21 | 1 | -2/+2 | |
| | | | | | | being-standardized <endian.h> ok deraadt@ millert@ beck@ | ||||
* | lint is dead (long live the lint!), so stop using it as a cpp conditional | 2014-03-16 | 1 | -7/+1 | |
| | | | | | | (namespace pollution!) or talking about its opinion on code. ok krw@ | ||||
* | obvious .Pa fixes; found with mandocdb(8) | 2014-01-21 | 1 | -3/+3 | |
| |