axsyslog.h 1.1 KB

123456789101112131415161718192021222324252627
  1. #ifndef _SYS_AXSYSLOG_H
  2. # error "Never include <bits/axsyslog.h> directly; use <sys/axsyslog.h> instead."
  3. #endif
  4. void axsyslog (int __pri, const char* __tag, int __id, const char *__fmt, ...);
  5. extern void __axsyslog_chk (int __pri, const char* __tag, int __id, int __flag, const char *__fmt, ...)
  6. __attribute__ ((__format__ (__printf__, 5, 6)));
  7. #ifdef __va_arg_pack
  8. __fortify_function void
  9. axsyslog (int __pri, const char* __tag, int __id, const char *__fmt, ...)
  10. {
  11. __axsyslog_chk (__pri, __tag, __id, __USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
  12. }
  13. #elif !defined __cplusplus
  14. # define axsyslog(tag, pri, ...) \
  15. __axsyslog_chk (tag, pri, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
  16. #endif
  17. extern void __axvsyslog_chk (int __pri, const char* __tag, int __id, int __flag, const char *__fmt,
  18. __gnuc_va_list __ap)
  19. __attribute__ ((__format__ (__printf__, 5, 0)));
  20. __fortify_function void
  21. axvsyslog (int __pri, const char* __tag, int __id, const char *__fmt, __gnuc_va_list __ap)
  22. {
  23. __axvsyslog_chk (__pri, __tag, __id, __USE_FORTIFY_LEVEL - 1, __fmt, __ap);
  24. }