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.

86 lines
1.6 KiB

  1. /* $OpenBSD: constraint.c,v 1.5 2015/02/22 14:55:41 jsing Exp $ */
  2. /*
  3. * Copyright (c) 2015 Reyk Floeter <reyk@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 USE, DATA OR PROFITS, WHETHER IN AN
  14. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. */
  17. #include "ntpd.h"
  18. u_int constraint_cnt = 0;
  19. int
  20. constraint_init(struct constraint *cstr)
  21. {
  22. return (0);
  23. }
  24. int
  25. constraint_query(struct constraint *cstr)
  26. {
  27. return (-1);
  28. }
  29. void
  30. priv_constraint_check_child(pid_t pid, int status)
  31. {
  32. }
  33. void
  34. priv_constraint_kill(u_int32_t id)
  35. {
  36. }
  37. void
  38. priv_constraint_msg(u_int32_t id, u_int8_t *data, size_t len,
  39. const char *pw_dir, uid_t pw_uid, gid_t pw_gid)
  40. {
  41. }
  42. void
  43. constraint_purge(void)
  44. {
  45. }
  46. void
  47. constraint_add(struct constraint *cstr)
  48. {
  49. }
  50. void
  51. constraint_msg_dns(u_int32_t id, u_int8_t *data, size_t len)
  52. {
  53. }
  54. void
  55. constraint_msg_result(u_int32_t id, u_int8_t *data, size_t len)
  56. {
  57. }
  58. void
  59. constraint_msg_close(u_int32_t id, u_int8_t *data, size_t len)
  60. {
  61. }
  62. int
  63. priv_constraint_dispatch(struct pollfd *pfd)
  64. {
  65. return (0);
  66. }
  67. int
  68. constraint_check(double val)
  69. {
  70. return (-1);
  71. }