patch from upstream for prompting problem when no tty associated with sudo
[debian/sudo] / logging.h
index 77196fa471d07a44c678bfa9c497b68d6f57e8c8..c95423ed4ccdcc89d253af435ebd3aa22711de53 100644 (file)
--- a/logging.h
+++ b/logging.h
@@ -1,5 +1,6 @@
 /*
- * Copyright (c) 1999, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 1999-2005, 2009
+ *     Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -34,6 +35,7 @@
 #define USE_ERRNO              0x02
 #define NO_MAIL                        0x04
 #define NO_EXIT                        0x08
+#define NO_STDERR              0x10
 
 /*
  * Maximum number of characters to log per entry.  The syslogger
 # define MAXSYSLOGLEN          960
 #endif
 
-void log_auth                  __P((int, int));
+void audit_success             __P((char *[]));
+void audit_failure             __P((char *[], char const * const, ...));
+void log_allowed               __P((int));
+void log_denial                        __P((int, int));
 void log_error                 __P((int flags, const char *fmt, ...))
                                    __printflike(2, 3);
 RETSIGTYPE reapchild           __P((int));