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.

99 lines
1.8 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 <stdlib.h>
  18. #include "ntpd.h"
  19. u_int constraint_cnt = 0;
  20. int
  21. constraint_init(struct constraint *cstr)
  22. {
  23. return (0);
  24. }
  25. int
  26. constraint_query(struct constraint *cstr)
  27. {
  28. return (-1);
  29. }
  30. void
  31. priv_constraint_child(const char *pw_dir, uid_t pw_uid, gid_t pw_gid)
  32. {
  33. }
  34. void
  35. priv_constraint_check_child(pid_t pid, int status)
  36. {
  37. }
  38. void
  39. priv_constraint_kill(u_int32_t id)
  40. {
  41. }
  42. void
  43. priv_constraint_msg(u_int32_t id, u_int8_t *data, size_t len, int argc,
  44. char **argv)
  45. {
  46. }
  47. void
  48. constraint_purge(void)
  49. {
  50. }
  51. void
  52. constraint_add(struct constraint *cstr)
  53. {
  54. free(cstr);
  55. }
  56. void
  57. constraint_reset(void)
  58. {
  59. }
  60. void
  61. constraint_msg_dns(u_int32_t id, u_int8_t *data, size_t len)
  62. {
  63. }
  64. void
  65. constraint_msg_result(u_int32_t id, u_int8_t *data, size_t len)
  66. {
  67. }
  68. void
  69. constraint_msg_close(u_int32_t id, u_int8_t *data, size_t len)
  70. {
  71. }
  72. int
  73. priv_constraint_dispatch(struct pollfd *pfd)
  74. {
  75. return (0);
  76. }
  77. int
  78. constraint_check(double val)
  79. {
  80. return (-1);
  81. }