Commit Graph

17966 Commits

Author SHA1 Message Date
tron 7655e3065e Don't try to use listen(2) on a UDP socket which will always fail.
Previously this was not a problem because the return value of listen(2)
was ignored. With this fix amd(8) no longer fails to start with the
error message "cannot create rpc/udp service".

TL;DR: Make amd(8) work again
2015-11-13 11:23:08 +00:00
tron 65a6071730 Avoid broken state if realloc(3) fails. 2015-11-13 10:43:32 +00:00
wiz 455c3673bc Family is singular, so use singular form of verb. 2015-11-13 09:56:27 +00:00
wiz 594b3ba9a8 Remove trailing whitespace. 2015-11-13 09:50:31 +00:00
christos 05dbf82446 consistency fixes. 2015-11-12 17:51:05 +00:00
christos 6ea48155ff Now that our source tree has binary constants, recognize them. 2015-11-12 17:30:03 +00:00
christos f5dda10488 fix compilation/lint 2015-11-10 20:56:20 +00:00
christos 9a91ff6ff5 CID 1338520: Check NULL
CID 1338521: Fix error (realloc returns different pointer)
2015-11-10 18:11:05 +00:00
christos aa158b270c CID 1338517: Check negative returns 2015-11-10 18:08:05 +00:00
christos 69deaff196 CID 1338515: Make it clear that the pfd variable can't be NULL 2015-11-10 18:06:53 +00:00
christos 5d9565aab9 CID 1338513: Check listen(2) return 2015-11-10 18:01:16 +00:00
christos ab2f8d0338 fix return type 2015-11-09 15:12:12 +00:00
christos 2a964e6106 Add debugging for pollfd 2015-11-08 19:30:53 +00:00
christos 6821cf5fc4 Only do the compat cruft if we are compiling libc. 2015-11-08 02:46:53 +00:00
joerg aae634b518 Soft-float support for rounding mode is currently not thread-safe, which
is not acceptable. Decision should be made on whether full fenv.h
support is desirable and then fix this appropiately.

Math functions (both libc and libm) should not touch errno, this creates
unnecessary problems for compilers.
2015-11-08 02:20:26 +00:00
christos 245e5bc63c initialize revents too. 2015-11-07 23:17:09 +00:00
christos df8f5914dc PR/50408: Pedro Giffuni: Provide a way for rpc to use poll(2) instead of
select(2), and the linux svc_pollfd and svc_maxpollfd members. Our select(2)
implementation does not suffer from the FD_SETSIZE limitation so this is
not turned on by default.
2015-11-07 23:09:20 +00:00
christos 7c3ee3b303 spell reserved. 2015-11-07 20:24:00 +00:00
wiz dec41c2e36 Use Dv for NULL. 2015-11-07 18:47:26 +00:00
wiz c9e587d5a6 Sort SEE ALSO. 2015-11-07 18:46:37 +00:00
nros f30e83597e Fix typo in erfl synopsis. 2015-11-07 18:17:51 +00:00
christos f0421a30ec check for errors and recover instead of core-dumping. 2015-11-07 17:34:33 +00:00
christos 670a38d899 Put back NULL tests for allocation failures. 2015-11-07 16:58:24 +00:00
nros b16a5c9dec Add the C11 function aligned_alloc to libc. 2015-11-07 16:21:42 +00:00
christos addac9ec10 don't compile with SVC_LEGACY 2015-11-07 14:21:32 +00:00
christos 68e3906c09 simplify more. 2015-11-07 03:06:32 +00:00
christos 841c77b99c Introduce a binary compatible __fd_set_256 that is what the original fdset
size was for libc. Now we can bump it.
2015-11-07 00:42:04 +00:00
christos 01b6ad43e7 Cleanup and simplify.
undef svc_fdset and svc_maxfd to get to the real data for the compat code.
2015-11-06 23:11:09 +00:00
joerg 76218c7768 Don't use macros as types or variable names. 2015-11-06 23:05:09 +00:00
christos 2f904d5a7a - Provide multi-threaded fdset's for everyone not just rump if requested.
- Abstract fd_set access, and don't limit the fd_set size.
- Maintain binary compatibility by keeping the old global variables around.
2015-11-06 19:34:13 +00:00
christos 46615f7efe - Use -1 for the fake raw fd since we will be able to go beyond FD_SETSIZE.
- Poster boy for why it is bad to initialize in declarations :-)
2015-11-06 19:32:08 +00:00
wiz 61125159a3 Correctly document backtrace_symbols_fd_fmt.
From Henning Petersen in PR 50407.

Bump date.
2015-11-05 08:29:42 +00:00
pgoyette 82bcd0c81b Document the ms_flags field which is now exported in struct modstat 2015-11-04 04:31:53 +00:00
christos 8ec268554e Fix descriptions of el_set functions.
Americanise initialise :-)
2015-11-03 21:36:59 +00:00
kamil c3c23fd40b Readd empty line - it's a part of style 2015-11-02 02:45:25 +00:00
kamil f7b066af90 No functional changes
Make this code nicer for C++ compilers, don't assign char* to void*.
Add extra __prefix_false() CPU hint for failed malloc(3).
Normalize whitespace.
2015-11-02 01:06:15 +00:00
wiz c1ffcd2b53 Fix previous. 2015-11-01 14:47:54 +00:00
wiz 180eabf53d Improve wording even more, suggested by Robert Elz. 2015-11-01 11:02:23 +00:00
wiz c1bac8eb81 Improve wording. 2015-11-01 08:54:37 +00:00
wiz c1ef8df3ab Fix macro. Remove trailing whitespace. 2015-11-01 08:52:29 +00:00
uwe 411bbd24b9 panel_below(NULL) returns the top panel.
panel_above(NULL) returns the bottom panel.
2015-11-01 01:40:23 +00:00
christos 94aa2c7cfc mention what we are allowed to do. 2015-10-31 17:45:32 +00:00
ginsbach 3219a72f94 Don't attempt to set TM_ZONE (name) for 'J' as isdst isn't known. 2015-10-31 03:42:00 +00:00
nakayama 13217c03e5 Use PRIxPADDR instead of type casting. 2015-10-31 02:40:44 +00:00
christos 3c0ef4294c make %Z and %z understand the same strings. 2015-10-31 02:14:08 +00:00
ginsbach b8b1230d48 - Add reference to RFC-3339
- Add J to military / nautical time zone description
2015-10-31 02:09:06 +00:00
ginsbach fb679626c8 Add 'J' (Juliett) as military time zone name meaning the local time zone. 2015-10-30 21:36:25 +00:00
christos eff9b12acf drop stray #endif 2015-10-30 18:20:16 +00:00
christos 5ba7c63c3a revert timezone() ifdef; it is wrong (pointed out by ginsbach) 2015-10-30 18:04:42 +00:00
ginsbach 862d86e79e ISO 8601 and RFC 3339 specify that an offset can be up to 23:59 and
not 12:00 east/west.  Just proves that one shouldn't use other
implementations as a canonical reference.  Thanks to all who pointed
this out.
2015-10-30 03:18:10 +00:00
christos f4d28d09d8 Add tzgetgmtoff() prototype I forgot to commit. 2015-10-30 03:08:56 +00:00
ginsbach a5eaa096be Reject timezone offsets more than 12 hours (east or west). 2015-10-30 01:49:36 +00:00
wiz 4bdb969ddc Whitespace. 2015-10-29 22:42:55 +00:00
kamil ed6e96ca70 Correct typos in comments
Pointed out by Edgar Fuss and J. Lewis Muir.
2015-10-29 20:29:24 +00:00
christos fb1c722214 another lint warning for compat. 2015-10-29 19:18:32 +00:00
christos 5eac10702e - use #defined constants (from gisbach)
- back to setting tm_zone to NULL when we don't know.
2015-10-29 19:18:19 +00:00
christos d690aea660 new tzgetgmtoff 2015-10-29 17:55:09 +00:00
christos 4ba084a19e PR/50380: Balazs Scheidler: strptime() returns incorrect values in tm_gmtoff
- Always offset in seconds.
- Handle arbitrary timezones.
2015-10-29 17:54:49 +00:00
christos 37de2f9dd3 Add tzgetgmtoff(3) 2015-10-29 17:53:04 +00:00
christos cefa99b2ad Document tzgetgmtoff(3) 2015-10-29 17:51:58 +00:00
christos 1aed602970 Add tzgetgmtoff, delint compat 2015-10-29 17:49:24 +00:00
wiz f0f2f50bf3 More articles, less typos. 2015-10-29 06:57:34 +00:00
uwe 1d644ad7b0 Document update_panels(). 2015-10-29 02:36:01 +00:00
uwe e47dc51a2a Fix typo missed by wizd(8). 2015-10-29 02:33:46 +00:00
wiz ed8dd38836 Improve wording. 2015-10-28 10:22:40 +00:00
wiz 9b23e645c3 Fix whitespace. 2015-10-28 10:18:54 +00:00
wiz 8249bf064f Fix xrefs.
XXX: someone should write stdscr(3)
2015-10-28 10:18:43 +00:00
uwe 0c624ce435 Provide descriptions of panel functions. 2015-10-28 02:23:50 +00:00
uwe fe1865411c Skeleton manual pages for libpanel functions. No content yet. 2015-10-27 23:42:55 +00:00
uwe ab1c44cb65 Manual page for libpanel. 2015-10-27 23:13:18 +00:00
uwe 5858a2db3d First cut at ETI libpanel. Lacks man pages and tests.
Not hooked into the build yet.
2015-10-26 23:09:49 +00:00
christos 4dddbc1f8d put the state back after it is used. 2015-10-26 19:41:19 +00:00
christos 208f128939 PR/50367: Stefan Schaeckeler: Apply fix to obey RES_CHECKNAME to getnetbyaddr
and getnetbyname.
2015-10-26 19:28:53 +00:00
christos a7b9f27a41 PR/50367: Stefan Schaeckeler: libc resolver library does not resolve host
names with underscores ("_"). According to resolv.conf(5) RES_NOCHECKNAME
is on by default; well, it is and gethostbyname(3) obeys it
(gethnamaddr.c:maybe_ok), but getaddrinfo(3) up till this commit not.
XXX: pullup-7, pullup-6
2015-10-26 14:48:04 +00:00
roy 4557363ec4 Use strerror(3) instead of strerror_r(3) and an arbitary buffer size which could be too small. 2015-10-26 11:44:30 +00:00
pooka 3a6246a644 Don't include daemon.c in RUMPRUN=yes mode.
The standard implementation uses fork(), needs an alternative
implementation for Rumprun.
2015-10-25 16:01:04 +00:00
christos 0fe5419e98 Use the full buffer for the conversion; ideally we should be dynamically
allocating this. From Jilles Tjoelker
2015-10-21 21:45:30 +00:00
christos 234792da04 make sure we have space for NUL and NUL terminate buffer array (Jilles Tjoelker) 2015-10-19 00:36:27 +00:00
uwe 3ae7b58008 Fix x/y edito. 2015-10-17 00:35:25 +00:00
christos 1616498e3d these are syslog-like 2015-10-14 15:54:21 +00:00
christos f9589d4feb Release 2015g - 2015-10-01 00:39:51 -0700
Changes affecting code

    localtime no longer mishandles America/Anchorage after 2037.
    (Thanks to Bradley White for reporting the bug.)

    The localtime module allows the variables 'timezone', 'daylight',
    and 'altzone' to be in common storage shared with other modules,
    and declares them in case the system <time.h> does not.
    (Problems reported by Kees Dekker.)

    On platforms with tm_zone, strftime.c now assumes it is not NULL.
    This simplifies the code and is consistent with zdump.c.
    (Problem reported by Christos Zoulas.)

  Changes affecting documentation

   The tzfile man page now documents that transition times denote the
   starts (not the ends) of the corresponding time periods.
   (Ambiguity reported by Bill Seymour.)
2015-10-09 17:21:45 +00:00
martin 59db503a23 Fix the -m32 compat build for sparc64 after recent sparc/include/types.h
changes. XXX I suspect this variant has not been tested in real life.
2015-10-07 11:56:41 +00:00
christos a786eb43af PR/50295: Fix clock_nanosleep return value documentation. 2015-10-02 19:52:49 +00:00
christos 4a21fa14fc Neither libproc or librtld_db require CTF 2015-09-28 17:12:12 +00:00
christos c9b640c057 need uvm_param.h now. 2015-09-26 20:28:55 +00:00
christos e09cabee76 args are flipped. 2015-09-25 19:27:31 +00:00
christos a94376db50 use provide KERN_PROC_PATHNAME in PROC_ARGS. 2015-09-25 19:18:28 +00:00
christos c09ba22ef4 Restore previous: only build libproc and librtld_db for dtrace since many
archs are not supported.
2015-09-25 11:39:08 +00:00
christos dc1fa8fa85 we always build librtld_db and libproc. 2015-09-25 11:35:05 +00:00
martin 2f0225ffc2 librtld_db depends on libproc, so conditionalize it as well 2015-09-25 10:08:35 +00:00
martin e662b1ba49 libproc depends on libctf, so conditionalize it with the same condition 2015-09-25 07:41:53 +00:00
christos 46e2ed0d2c make dtrace follow libproc. 2015-09-24 18:37:33 +00:00
christos 85dc0057a4 Hello lint. 2015-09-24 15:30:39 +00:00
christos 58ad14e816 Hook up libproc and librtld_db into the build 2015-09-24 14:48:36 +00:00
christos 80a7733395 Add kinfo_getvmmap from FreeBSD 2015-09-24 14:39:20 +00:00
christos 1ede8275d7 - fix various leaks on error
- don't use the wrong error variable in switch
- always set the error return code
- return consistent errors when the input data cannot be handled.
2015-09-22 16:16:02 +00:00
christos 525756d35c be more forgiving, and don't abort on unexpected errors. 2015-09-22 16:15:08 +00:00
christos b350f7a434 Handle herrors properly so that postfix can return 4XX codes when appropriate.
Pointed out by Viktor Dukhovni.
2015-09-22 14:46:09 +00:00
joerg 605a3a0b27 Drop .proc. It is ignored by GNU as anyway. 2015-09-22 13:27:13 +00:00
joerg 7cd266968a Restrict libc_vfp to NetBSD/arm. It doesn't make sense for aarch64. 2015-09-22 13:26:14 +00:00