chiark
/
gitweb
/
~mdw
/
yaid
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile.am: Tweak `silent-rules' machinery.
[yaid]
/
yaid.h
diff --git
a/yaid.h
b/yaid.h
index 15f26bfc409b601bfc9cd437c3f786c875292d76..eb874cbb1ed9da919554949d862355f748ab4265 100644
(file)
--- a/
yaid.h
+++ b/
yaid.h
@@
-252,6
+252,9
@@
struct query {
extern void PRINTF_LIKE(3, 4)
logmsg(const struct query */*q*/, int /*prio*/, const char */*msg*/, ...);
extern void PRINTF_LIKE(3, 4)
logmsg(const struct query */*q*/, int /*prio*/, const char */*msg*/, ...);
+/* Format and report MSG as a fatal error, and exit. */
+extern void PRINTF_LIKE(1, 2) fatal(const char */*msg*/, ...);
+
/*----- System-specific connection identification code --------------------*/
/* Find out who is responsible for the connection described in the query Q.
/*----- System-specific connection identification code --------------------*/
/* Find out who is responsible for the connection described in the query Q.
@@
-260,6
+263,12
@@
extern void PRINTF_LIKE(3, 4)
*/
extern void identify(struct query */*q*/);
*/
extern void identify(struct query */*q*/);
+/* Fill the buffer at P with SZ random bytes. The buffer will be moderately
+ * large: this is intended to be a low-level interface, not a general-purpose
+ * utility.
+ */
+extern void fill_random(void */*p*/, size_t /*sz*/);
+
/* Initialize the system-specific code. */
extern void init_sys(void);
/* Initialize the system-specific code. */
extern void init_sys(void);