my_libwrap.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. #ifndef MY_LIBWRAP_INCLUDED
  2. #define MY_LIBWRAP_INCLUDED
  3. /* Copyright (c) 2000, 2006 MySQL AB, 2009 Sun Microsystems, Inc.
  4. Use is subject to license terms.
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; version 2 of the License.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  15. #ifdef HAVE_LIBWRAP
  16. #include <tcpd.h>
  17. #include <syslog.h>
  18. #ifdef NEED_SYS_SYSLOG_H
  19. #include <sys/syslog.h>
  20. #endif /* NEED_SYS_SYSLOG_H */
  21. extern void my_fromhost(struct request_info *req);
  22. extern int my_hosts_access(struct request_info *req);
  23. extern char *my_eval_client(struct request_info *req);
  24. #endif /* HAVE_LIBWRAP */
  25. #endif /* MY_LIBWRAP_INCLUDED */