mnt_vcs.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1990-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "mnt_imount.h"
char* buf;
{
int ret;
{
return (-1);
}
{
return (-1);
}
return (ret);
}
char* buf;
int bufsize;
{
int ret;
{
return (-1);
}
{
printf("no msg from server\n");
return (-1);
}
if (ret <= 0)
{
printf("read error\n");
}
else
return (ret);
}
int im_vcs_help(s)
register char* s;
{
if (strcmp(s, "cs") == 0)
printf("\tcs commands\n");
else if (strcmp(s, "version") == 0)
printf("\tversion # display server's ID\n");
else if (strcmp(s, "kill") == 0)
printf("\tkill # kill server \n");
else if (strcmp(s, "connect") == 0)
printf("\tconnect [server] # connect server \n");
else if (strcmp(s, "log") == 0)
printf("\tlog [file] # log server messages\n");
return (0);
}
int argc;
char** argv;
{
register char* s;
register char* cmd;
char reply[1024];
int fd;
char buf[2048];
int len;
{
return (0);
}
{
if (argc > 0)
{
s = *argv;
{
printf("cannot connect cs server %s\n", s);
return (-1);
}
argc--;
argv++;
}
cmd = "version";
}
{
cmd = "r";
}
{
}
{
}
else
s = buf;
if (argc > 0)
{
}
{
printf("cannot connect cs server\n");
return (-1);
}
s = reply + 2;
else
s = reply;
printf("%s", s);
return (0);
}
void printmtmsg(buf)
char* buf;
{
register char* url;
register char* mnt;
} else {
}
}