wiz
09534ff4a3
Bump date for previous.
2015-11-19 07:03:13 +00:00
christos
14fcefd52e
Introduce a HASH_BSIZE macro to return the blocksize; in the 64K case this
...
returns 0xffff to avoid overflow. This is used where sizes are stored.
2015-11-18 18:22:42 +00:00
pgoyette
9d449a8fd8
Update RETURN VALUE to match reality and POSIX
2015-11-18 13:19:52 +00:00
christos
60aa2a0eb6
Account for the -1 hack to fit 0x10000 in a short in hash_page.c
2015-11-18 13:00:46 +00:00
christos
057be2c9f2
If MAX_BSIZE == hashp->BSIZE (65536) then it does not fit in a short, and
...
we end up storing 0... This means that every entry needs a page. We store
MAX_BSIZE - 1 here, but it would be better to always store (avail - 1) here
so that we don't waste a byte and be consistent.
2015-11-18 00:23:39 +00:00
christos
8b926f831a
PR/50441: Manuel Bouyer: hash seq enumeration skips keys on big data.
...
XXX: pullup-7
2015-11-17 20:19:55 +00:00
christos
53ba0e3d35
revert 0b documentation.
2015-11-13 16:00:32 +00:00
christos
50ccfe1eab
Generalize the test, compare on the protocol semantics instead of the name
...
since it could be udp6...
2015-11-13 15:23:17 +00:00
christos
6cd5630e13
Do proper accounting for the extra -1 slot. Perhaps this is too confusing
...
and it would be better to just access the array with [fd + 1] instead?
2015-11-13 15:22:12 +00:00
tron
25c8e9abea
Remove now unnecessary cast.
2015-11-13 11:43:26 +00:00
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