]> andersk Git - moira.git/blobdiff - gdb/gdb_serv.c
correct help for add_filsys
[moira.git] / gdb / gdb_serv.c
index 685e22da4f0859ac78d9d50d470eaa871b2cb5ac..b8596edf3eda2126b2b4e8af775b818895e9cc82 100644 (file)
@@ -1,6 +1,6 @@
 /*
- *     $Source$
- *     $Header$
+ * $Source$
+ * $Header$
  */
 
 #ifndef lint
@@ -8,48 +8,35 @@ static char *rcsid_gdb_serv_c = "$Header$";
 #endif lint
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/************************************************************************/
-/*     
-/*                        gdb_serv.c
-/*     
-/*           GDB - Routines to implement the server/client model
-/*                 of connections.
-/*     
-/*     Author: Noah Mendelsohn
-/*     Copyright: 1986 MIT Project Athena 
-/*     
-/************************************************************************/
-
+/************************************************************************
+ *     
+ *                        gdb_serv.c
+ *     
+ *           GDB - Routines to implement the server/client model
+ *                 of connections.
+ *     
+ *     Author: Noah Mendelsohn
+ *     Copyright: 1986 MIT Project Athena 
+ *             For copying and distribution information, please see
+ *             the file <mit-copyright.h>.
+ *     
+ ************************************************************************/
+
+#include <mit-copyright.h>
 #include <stdio.h>
 #include <strings.h>
 #include "gdb.h"
 #include <sys/ioctl.h>
+#ifdef SOLARIS
+#include <sys/filio.h>
+#endif
 
-       /*----------------------------------------------------------*/
-       /*      
-       /*      The following field names and types describe the
-       /*      tuple sent from clients to servers during negotiation.
-       /*      
-       /*----------------------------------------------------------*/
+       /*----------------------------------------------------------
+        *      
+        *      The following field names and types describe the
+        *      tuple sent from clients to servers during negotiation.
+        *      
+        *----------------------------------------------------------*/
 
 char *g_tsv_field_names[] = {"server_id",
                            "parms",
@@ -89,7 +76,7 @@ FIELD_TYPE g_fsv_ftypes[] = {INTEGER_T,
 #define FSV_SERVER_ID   1
 #define FSV_PARMS       2
 
-\f
+
 /************************************************************************/
 /*     
 /*                       gdb_i_srv
@@ -115,7 +102,7 @@ gdb_i_srv()
        gdb_socklen = sizeof(gdb_sockaddr_of_client);
 }
 
-\f
+
 /************************************************************************/
 /*     
 /*                start_server_connection (start_server_connection)
@@ -229,7 +216,7 @@ char *parms;
                return NULL;
        }
 }
-\f
+
 /************************************************************************/
 /*     
 /*                          g_try_server
@@ -291,7 +278,7 @@ TUPLE *responsep;
        return;
 }
 
-\f
+
 /************************************************************************/
 /*     
 /*                     g_ask_server
@@ -330,6 +317,7 @@ TUPLE *responsep;
        (void) strcpy(STRING_DATA(*((STRING *)FIELD_FROM_TUPLE(out_tuple,0))),
                       server_id);
 
+       if (parms == NULL) parms = "";
        (void) string_alloc((STRING *)FIELD_FROM_TUPLE(out_tuple, TSV_PARMS),
                     strlen(parms)+1);
        (void) strcpy(STRING_DATA(*((STRING *)FIELD_FROM_TUPLE(out_tuple,1))),
@@ -377,7 +365,8 @@ TUPLE *responsep;
                                                /* CON_STOPPING with errno */
        }
 }
-\f
+
+
 /************************************************************************/
 /*     
 /*                     start_replying_to_client
@@ -459,6 +448,7 @@ char *parms;                                        /*   "     "       */
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_irtc(op, hcon, arg)
 OPERATION op;
This page took 0.043093 seconds and 4 git commands to generate.