/***********************************************************************
* *
* 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"
#include <ctype.h>
[mount-point prot:/[user[:pass]@]host[:port][/remote-path]]"
char* getpass();
/*
* prot:/user:pass@host:port/remote-path
*/
char* data;
char* buf;
int size;
{
register char* s;
register char* t;
char* pass;
return(buf);
}
t = strchr( s, '/' );
if( t ) *t = '\0';
if( t ) *t = '/';
*s = '\0';
*s = '-';
return( buf );
}
int im_mount_help(s)
char* s;
{
return (0);
}
int argc;
register char** argv;
{
register char* s;
register int n;
int fd;
char* mpoint;
char* mfs;
while (n = optget(argv, "s:[server]f:[mount-file] [mount-point prot,host,user,pass,time:remote-path]"))
switch (n)
{
case 's':
{
printf("cannot connect cs server %s\n", s);
return (-1);
}
break;
case 'f':
{
return(1);
}
break;
case '?':
case ':':
return (1);
}
{
if (argc < 2)
{
return (1);
}
{
return (1);
}
{
return (0);
}
else
{
return (1);
}
}
/* mfd != NULL */
{
*s = '\0';
if (*s == '\0')
continue;
mpoint = s;
for (; *s && !isspace(*s); s++);
if (*s == '\0')
continue;
*s = '\0';
for (s++; *s && isspace(*s); s++);
if (*s == '\0')
continue;
mfs = s;
for (s; *s && !isspace(*s); s++);
*s = '\0';
{
continue;
}
{
continue;
}
}
return(0);
}
int fd;
char* mpoint;
char* mfs;
char* reply;
{
else
return (-1);
return (0);
}