henning
24755fb155
get clock src id from the timedelta sensor desc.
unfortunately I still don't have any hardware to test this ;(
18 years ago
henning
60325542b8
if sysctl gives ENOENT the sensor is gone and we remove it
18 years ago
henning
b2a25c5f18
let sensor_query handle removals itself
18 years ago
henning
1314afba48
sensor_byid not needed any more
18 years ago
henning
18724bbfff
hotplug devid will go away in a minute, so don't use it here any longer
18 years ago
henning
494460017f
do not bother with rmeoval events, we remove sensors whoch vanished or
are not a timedelta sensor any more on query on the fly anyway
18 years ago
jmc
405e658006
small grammar improvement;
18 years ago
henning
d5fece7cde
DV_SENSORS is no more, plug workaround for the time to the real solution
18 years ago
henning
790a2f0010
make use of the new hotplug events for sensors showing up or vanishing
18 years ago
henning
54fb320578
add sensor_byid(), return sensor by its id
18 years ago
henning
d3875817fc
stop passing the config around all time, just store one copy
18 years ago
henning
66277ecc3d
factor out sensor_probe from sensor_scan so we can probe a sensors when
we know its idea without scanning all again
18 years ago
henning
1c3c1ca642
make ntpd listen on the hotplug socket and decode yadda yadda, because
new sensors showing up will be announced that way when slacking ml comes
back from food
18 years ago
henning
c24767cca2
scan for new timedelta sensors every five minutes for now, ok deraadt
18 years ago
henning
9bb919c475
ntpd does timedelta sensors now too
18 years ago
henning
fe9a290e7a
document timedelat sensors. ok deraadt
18 years ago
henning
f687c4f193
config file bits for timedelta sensors, so one can specify which devices
to use. "sensors *" just uses all. untested due to lack of hardware.
hacked on the road somewhere between vancouver and calgary
18 years ago
deraadt
1036a9d27a
\<char> is <char> except for \<newline> -- no exceptions. much like how
other things work. ok henning
18 years ago
henning
21382f5e23
add support for timedelta sensors, which pretty much means udcf(4) right
now. untested due to lack of hardware, and it wouldn't have worked in the
plane anyways. work in progress, currently picks up and uses all sensors
it finds, config file bits to be added soon. theo fine with this going in
18 years ago
henning
1d2ad6e90a
more bits from transatlanic flight:
make priv_adjtime() deal with offsets, not peers.
18 years ago
henning
309a243757
figure out the refid to send to NTP v3 clients early and store it
first bits from a way to long flight
18 years ago
henning
926119b732
make listen on example idiot proof
suggested by "Karsten W. Rohrbach" <karsten@rohrbach.de>
18 years ago
thib
c7485b1da9
fix a !foo & bar.
ok miod@, tedu@, pedro@
18 years ago
henning
a139e32a41
PFD_MAX betterer than harcoded 1
18 years ago
otto
6fdf04a27b
Fix the second malloc_ulimit regression: maintaining the free list
requires memory; try to make sure we have it. If all fails, leak
instead of crash. Test case originally found by cloder@, fix tested
by many.
18 years ago
miod
4468c127e2
Regen
18 years ago
miod
2d3996d0f5
Administrative changes for aviion, ok deraadt@
18 years ago
otto
bf7ad7afc9
delint; ok millert@ beck@
18 years ago
millert
2a8d0a4c1b
Convert do {} while loop -> while {} for clarity. No binary change
on most architectures. From Oliver Smith. OK deraadt@ and henning@
18 years ago
tedu
09917d2c4e
strtonum does not require limits.h
spotted by ray some time ago
18 years ago
otto
854f853894
Do not leave an hole in the directory list if allocation of the
region succeeds, but allocation a required page dir failed. This
can happen if we're really close to ulimit after allocation the
region of the size requested. See malloc_ulimit1 regress test.
Tested by many; thanks.
18 years ago
otto
f650f69733
delint; original from deraadt@ with fixes from tdeval@ and me;
tested by quite a few developers. ok deraadt@
18 years ago
espie
14b69ad0fc
fix badly broken code. okay millert@, deraadt@
18 years ago
todd
29ba9a7ac6
remove some rather deceptively unused lines; no change to generated MAKEDEV's
18 years ago
todd
c81d73893f
shuffle ramdisk device targets to MAKEDEV.common to avoid duplication and
pave the way for future work; ok since this does not change the generated
MAKEDEV
18 years ago
todd
57c7e54a33
sync
18 years ago
todd
e7190b9b1c
add 'com' serial port as a common ramdisk device
18 years ago
todd
ba7cddc6d6
add forgotten copyright; ok deraadt@
18 years ago
dhartmei
782bed6d79
move the commented example /var/mail/whitelist.txt to /var/db, so it
doesn't trigger security(8)'s ownership checks. ok bob@
18 years ago
otto
8d5338428b
POSIX says tdelete() returns the parent of the deleted node. Sadly the
root node doesn't have a parent, and POSIX does not say what should be
done in that case. Warn developers that different implementations
may do different things.
18 years ago
moritz
699dc2618d
When tdelete() is used to delete the root node, don't return a
pointer to the freed root node, but return a pointer to the new
root node. POSIX does not define, what should be returned in
that case.
Fixes Coverity CID 2528.
ok millert@ otto@
18 years ago
deraadt
71a91e8ae3
be more careful with atoi() result; ok otto
18 years ago
otto
e9112488f5
Use SIZE_MAX instead of SIZE_T_MAX, the latter is not POSIX and
remove redundant check on size. ok millert@ deraadt@
18 years ago
deraadt
d72bbf4be3
getting to the bottom of the issues. sprinkle a few casts that will
actually help us find bugs later (with lint, not cc), if they get
introduced
18 years ago
otto
f37b50710e
- Plug huge mem leak; mostly samba was suffering.
- Fix semantics: seekdir(pos); telldir() shoud return pos. The code
that implements this will be made faster in a later commit.
- We loose documented behaviour (after closedir() the telldir()
positions are not valid anymore). This was never in Posix, and most
other systems have nothing like it.
Diff originally from Paul Thorn, rewritten by me using some FreeBSD
code. "slap it in" deraadt@
18 years ago
deraadt
16ce0f1f4d
(char)to{upper,lower}()
18 years ago
deraadt
6ba7d08d6c
kvm_openfiles() should take int flag, not unsigned
18 years ago
deraadt
69800b44d4
after we changed mode_t to be an int, the devname() man page was
updated but the function itself never was; ok millert
18 years ago
deraadt
db4a02f55c
casts that cannot cause breakage in the future
18 years ago
deraadt
937e47b3dc
change internal login_protect() API to use mode_t like it should
18 years ago