/*
- * $Source$
- * $Header$
+ * $Source$
+ * $Header$
*/
#ifndef lint
#endif lint
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/************************************************************************/
-/*
-/* gdb_ops.c
-/*
-/* GDB - Asynchronous Operations and Their Synchronous
-/* Counterparts
-/*
-/* Author: Noah Mendelsohn
-/* Copyright: 1986 MIT Project Athena
-/* For copying and distribution information, please see
-/* the file <mit-copyright.h>.
-/*
-/* These routines provide a suite of asynchronous operations
-/* on connections.
-/*
-/************************************************************************/
+/************************************************************************
+ *
+ * gdb_ops.c
+ *
+ * GDB - Asynchronous Operations and Their Synchronous
+ * Counterparts
+ *
+ * Author: Noah Mendelsohn
+ * Copyright: 1986 MIT Project Athena
+ * For copying and distribution information, please see
+ * the file <mit-copyright.h>.
+ *
+ * These routines provide a suite of asynchronous operations
+ * on connections.
+ *
+ ************************************************************************/
#include <mit-copyright.h>
#include <stdio.h>
#include "gdb.h"
#include <netinet/in.h>
#include <sys/ioctl.h>
+#ifdef SOLARIS
+#include <sys/filio.h>
+#endif
#ifdef vax
extern u_long htonl();
#endif vax
-\f
-/************************************************************************/
-/*
-/* send_object (send_object)
-/*
-/* Synchronous form of start_sending_object. Returns either
-/* OP_CANCELLED, or OP_RESULT(op).
-/*
-/************************************************************************/
+
+
+/************************************************************************
+ *
+ * send_object (send_object)
+ *
+ * Synchronous form of start_sending_object. Returns either
+ * OP_CANCELLED, or OP_RESULT(op).
+ *
+ ************************************************************************/
int
send_object(con, objp, type)
delete_operation(op);
return retval;
}
-\f
+
+
/************************************************************************/
/*
/* start_send_object (g_snobj)
/*
/*----------------------------------------------------------*/
+/*ARGSUSED*/
int
g_csnobj(op, hcon, arg)
OPERATION op;
return OP_COMPLETE;
}
-\f
+
/************************************************************************/
/*
/* receive_object (receive_object)
delete_operation(op);
return retval;
}
-\f
+
+
/************************************************************************/
/*
/* start_receiving_object (g_rcobj)
db_free((char *)arg, sizeof(struct robj_data)); /* free the state structure */
return OP_COMPLETE;
}
-\f
+
+
/************************************************************************/
/*
/* complete_operation(complete_operation)
}
-\f
+
/************************************************************************/
/*
/* cancel_operation(cancel_operation)
return OP_CANCELLED;
}
-\f
+
+
/************************************************************************/
/*
/* start_listening
/*
/*----------------------------------------------------------*/
+/*ARGSUSED*/
int
g_clis(op, hcon, arg)
OPERATION op;
return OP_COMPLETE;
}
-\f
+
/************************************************************************/
/*
/* start_accepting_client
/*
/*----------------------------------------------------------*/
+/*ARGSUSED*/
int
g_iacc(op, hcon, arg)
OPERATION op;
/*
/*----------------------------------------------------------*/
+/*ARGSUSED*/
int
g_i2acc(op, hcon, arg)
OPERATION op;