/***********************************************************************
* *
* 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> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* /env nDFS file server
* the top level requests are
*
* request
*
* <op> <mount> <path> [pwd=<pwd>] [<name>=<value>] ...
*/
#ifndef DEBUG
#endif
#include <cs.h>
#include <msg.h>
#include <hashkey.h>
#include <ctype.h>
#include <error.h>
#include <debug.h>
#include <tok.h>
#define CON 0
typedef struct
{
int state;
char* data;
} Connection_t;
typedef struct
{
int active;
int dormant;
char* clone;
} State_t;
static void*
{
register int fd;
exit(1);
return (void*)state;
}
static int
{
return 0;
}
/*
* service a request
*/
static int
{
register int n;
int xd;
int err;
long ret;
char* op;
char* logical;
char* path;
{
case CMD:
goto drop;
buf[n - 1] = 0;
goto nope;
{
goto nope;
goto nope;
goto drop;
return 0;
exit(0);
break;
default:
goto nope;
}
break;
case KEY:
goto drop;
buf[n - 1] = 0;
goto drop;
return 0;
case ACT:
goto drop;
ret = 0;
err = 0;
op = 0;
{
case MSG_getdents:
break;
case MSG_read:
{
if (n > MAXIO)
n = MAXIO;
if (n > 0)
{
ret = n;
}
}
break;
case MSG_seek:
{
case SEEK_SET:
break;
case SEEK_CUR:
break;
case SEEK_END:
break;
default:
n = -1;
break;
}
if (n < 0)
else
break;
case MSG_stat:
break;
case MSG_write:
break;
default:
break;
}
goto drop;
return 0;
case CON:
goto drop;
return 0;
default:
goto drop;
}
nope:
return 0;
drop:
return -1;
}
/*
* exit if inactive on timeout
*/
static int
{
{
exit(0);
}
return 0;
}
int
{
exit(1);
}