~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bogus examples. Explain quoting rules for `exec' endpoints.
[fwd]
/
identify.h
diff --git
a/identify.h
b/identify.h
index
c4019b6
..
69acb61
100644
(file)
--- a/
identify.h
+++ b/
identify.h
@@
-1,10
+1,10
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: identify.h,v 1.
1 1999/07/01 08:56:2
3 mdw Exp $
+ * $Id: identify.h,v 1.
3 1999/07/27 18:30:5
3 mdw Exp $
*
* Identifies and logs the client of a connection
*
*
* Identifies and logs the client of a connection
*
- * (c) 1999
Mark Wooding
+ * (c) 1999
Straylight/Edgeware
*/
/*----- Licensing notice --------------------------------------------------*
*/
/*----- Licensing notice --------------------------------------------------*
@@
-29,8
+29,14
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: identify.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: identify.h,v $
- * Revision 1.1 1999/07/01 08:56:23 mdw
- * Initial revision
+ * Revision 1.3 1999/07/27 18:30:53 mdw
+ * Various minor portability fixes.
+ *
+ * Revision 1.2 1999/07/26 23:26:21 mdw
+ * Minor modifications for new design.
+ *
+ * Revision 1.1.1.1 1999/07/01 08:56:23 mdw
+ * Initial revision.
*
*/
*
*/
@@
-43,9
+49,14
@@
/*----- Header files ------------------------------------------------------*/
/*----- Header files ------------------------------------------------------*/
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#ifndef REFFD_H
+# include "reffd.h"
+#endif
+
/*----- Data structures ---------------------------------------------------*/
typedef struct id_req {
/*----- Data structures ---------------------------------------------------*/
typedef struct id_req {
@@
-53,6
+64,7
@@
typedef struct id_req {
struct sockaddr_in rsin; /* Remote address of connection */
const char *desc; /* Description of connection */
const char *act; /* Action taken by server */
struct sockaddr_in rsin; /* Remote address of connection */
const char *desc; /* Description of connection */
const char *act; /* Action taken by server */
+ reffd *r; /* Pointer to file descriptor */
} id_req;
/*----- Functions provided ------------------------------------------------*/
} id_req;
/*----- Functions provided ------------------------------------------------*/
@@
-60,8
+72,6
@@
typedef struct id_req {
/* --- @identify@ --- *
*
* Arguments: @const id_req *q@ = pointer to request block
/* --- @identify@ --- *
*
* Arguments: @const id_req *q@ = pointer to request block
- * @void (*func)(void *p)@ = function to call when done
- * @void *p@ = argument to pass to function
*
* Returns: ---
*
*
* Returns: ---
*
@@
-69,8
+79,7
@@
typedef struct id_req {
* which will, eventually, report a message to the system log.
*/
* which will, eventually, report a message to the system log.
*/
-extern void identify(const id_req */*q*/,
- void (*/*func*/)(void */*p*/), void */*p*/);
+extern void identify(const id_req */*q*/);
/*----- That's all, folks -------------------------------------------------*/
/*----- That's all, folks -------------------------------------------------*/