/***********************************************************************
* *
* 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> *
* *
***********************************************************************/
/*
* File: server.c
*/
#include "ifs_agent.h"
#include "ifs_errno.h"
#include <cs.h>
#include <error.h>
#include <fs3d.h>
/*
* replies
* I ... information
* W ... warning message
* E ... error message
*/
typedef struct
{
char* where;
int out_static;
int dormant;
int who;
char* logfile;
} State_t;
int cserrno;
help; kill; quit; version; \t\t\t\
record [logfile]; \t\t\t\
out pathname [version [pathname]] \t\t\t\
instances pathname \t\t\t\
connect protocol server user-info; \t\t\t\
disconnect protocol server; \t\t\t\
listdents local-path \t\t\t\
getfile local-path \t\t\t\
putfile [source] local-path \t\t\t\
userdef protocol arguments\n";
void*
void* handle;
int fdmax;
{
(void) fs3d(FS3D_OP_OFF);
IfsInitial();
return( handle );
}
static int
void* handle;
int fd;
int clone;
char** args;
{
"\n-- connect( fd=%d hid=%s pid=%d uid=%d gid=%d )\n",
}
if( fd < FD_SETSIZE )
return (0);
}
static int
void* handle;
int sig;
{
}
return (0);
}
static int
char *buf;
int size;
int uid;
int own;
{
}
static int
void* handle;
int fd;
{
(void) fs3d(FS3D_OP_OFF);
csusrmsg[0] = '\0';
return -1;
time_t t;
}
n = sizeof(ret);
switch ( argv[0][0] ) {
case 'c':
break;
case 'd':
break;
case 'g':
break;
case 'h':
break;
case 'i':
break;
case 'k':
exit( 1 );
break;
case 'l':
break;
case 'm':
break;
case 'o':
switch (argv[0][1]) {
case 'p':
break;
default:
break;
}
break;
case 'p':
break;
case 'q':
break;
case 'r':
} else {
}
break;
case 's':
break;
case 'v':
break;
case 'u':
break;
case 'D':
break;
default:
break;
}
return -1;
}
}
return (0);
}
static int
void* handle;
{
return (0);
}
int
int argc;
char** argv;
{
exit(1);
}