Portable build framework for OpenNTPD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.1 KiB

  1. /*
  2. * Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
  3. * Copyright (c) 2014 Brent Cook <bcook@openbsd.org>
  4. *
  5. * Permission to use, copy, modify, and distribute this software for any
  6. * purpose with or without fee is hereby granted, provided that the above
  7. * copyright notice and this permission notice appear in all copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
  14. * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
  15. * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #include "ntpd.h"
  18. /*
  19. * These stubs indicate that no sensors exist on systems without a sensor framework.
  20. */
  21. void
  22. sensor_init(void)
  23. {
  24. }
  25. int
  26. sensor_scan(void)
  27. {
  28. return 0;
  29. }
  30. void
  31. sensor_query(struct ntp_sensor *s)
  32. {
  33. }
  34. int
  35. sensor_hotplugfd(void)
  36. {
  37. return (-1);
  38. }
  39. void
  40. sensor_hotplugevent(int fd)
  41. {
  42. }