]> andersk Git - moira.git/blobdiff - gdb/gdb_trans2.c
don't flame about being unable to delete filesystem if the `propagate
[moira.git] / gdb / gdb_trans2.c
index 24452914040730dd797b1944581d32ea51b31f0f..dea58bac0c2192db8f1f80acdf9db9d4305db3c6 100644 (file)
@@ -5,48 +5,29 @@
 
 #ifndef lint
 static char *rcsid_gdb_trans2_c = "$Header$";
-#endif lint
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/************************************************************************/
-/*     
-/*                        gdb_trans2.c
-/*     
-/*           GDB - Data Transport Services Routines (Part 2)
-/*     
-/*     Author: Noah Mendelsohn
-/*     Copyright: 1986 MIT Project Athena 
-/*             For copying and distribution information, please see
-/*             the file <mit-copyright.h>.
-/*     
-/*     
-/*     These routines implement layer 6 of the Client Library
-/*     Specification of the GDB system, as well as the facilities
-/*     outlined in the GDB Protocol Specification.  Part 2 of 2.
-/*
-/*     Some of the routines specified are actually implemented as
-/*     macros defined in gdb.h.
-/*     
-/************************************************************************/
+#endif
+
+
+/************************************************************************
+ *     
+ *                        gdb_trans2.c
+ *     
+ *           GDB - Data Transport Services Routines (Part 2)
+ *     
+ *     Author: Noah Mendelsohn
+ *     Copyright: 1986 MIT Project Athena 
+ *             For copying and distribution information, please see
+ *             the file <mit-copyright.h>.
+ *     
+ *     
+ *     These routines implement layer 6 of the Client Library
+ *     Specification of the GDB system, as well as the facilities
+ *     outlined in the GDB Protocol Specification.  Part 2 of 2.
+ *
+ *     Some of the routines specified are actually implemented as
+ *     macros defined in gdb.h.
+ *     
+ ************************************************************************/
 
 #include <mit-copyright.h>
 #include <sys/types.h>
@@ -55,6 +36,7 @@ static char *rcsid_gdb_trans2_c = "$Header$";
 #include "gdb.h"
 #include <sys/uio.h>
 #include <sys/socket.h>
+#include <string.h>
 extern int errno;                              /* Unix error slot */
 
 /*
@@ -208,7 +190,7 @@ OPERATION newop;
         */
        if (gdb_Debug & GDB_LOG)
                fprintf(gdb_log, "op preempted: halfcon=0x%x oldop=0x%x newop=0x%x\n",
-                       oldop,newop);
+                       hc,oldop,newop);
        /*
         * link in the new operation
         */
@@ -863,7 +845,7 @@ register HALF_CONNECTION hc;
         * Copy the data, update both stream and data buffer pointers
         */
 
-       bcopy(hc->stream_buffer_next, hc->next_byte, count);
+       memcpy(hc->next_byte, hc->stream_buffer_next, count);
 
        hc->stream_buffer_next += count;
        hc->stream_buffer_remaining -= count;
@@ -1252,7 +1234,7 @@ struct  half_con_data *hc;                        /* pointer to control struct */
         /*
          * Selected is >0.  The accept SHOULD not hang.
          */
-#endif notdef
+#endif
 
        /*
         * Here is Bill's non-blocking implementation
This page took 0.06144 seconds and 4 git commands to generate.