diff options
author | 2016-12-09 17:24:55 +0000 | |
---|---|---|
committer | 2016-12-09 17:24:55 +0000 | |
commit | 0f3f7c4ee0345c0e321d5c6f0b708f4f7d37dbf1 (patch) | |
tree | cdbe4f28b0747af02e6ebe560f851091d4d8d4be /sys/dev/pv/xen.c | |
parent | log connections dropped in excess of MaxStartups at verbose LogLevel; (diff) | |
download | wireguard-openbsd-0f3f7c4ee0345c0e321d5c6f0b708f4f7d37dbf1.tar.xz wireguard-openbsd-0f3f7c4ee0345c0e321d5c6f0b708f4f7d37dbf1.zip |
New XenStore public API function to read numeric values
A need for a function to perform string to number conversion arose
when domain identifier needed to be read and converted to numerical
representation. With xbf(4) the usage became broader as greater
values (such as the sector count) needed to be converted. And as a
result another function was implemented to perform string to unsigned
long long conversion but unfortunately multiplication overflows were
not handled correctly. This new version consolidates the code in
one place and exports a proper XenStore API function to get and set
numeric values. The new atoull function borrows multiplication
overflow detection logic from the libc.
Diffstat (limited to 'sys/dev/pv/xen.c')
0 files changed, 0 insertions, 0 deletions