/***********************************************************************
* *
* 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: ifs_news.c
*/
#include "ifs_agent.h"
#include <stdio.h>
struct {
int version;
} NewsData;
/*
*name: NewsCommand
*/
int
{
return -1;
debug_logit( buf );
return 0;
}
/*
*name: NewsReply
*/
int
char *buf;
int bsize;
{
}
debug_logit( "FtpReply: NetGets return NULL\n" );
return -1;
}
debug_logit( buf );
}
/*
*name: NewsXferFile
*/
int
char *destfile;
{
*ptr = '\0';
}
return 0;
}
}
return -1;
}
/*
*name: NewsListGroups
*/
int
struct server_info *srv;
{
logit( "<news>: LIST error\n" );
return -1;
}
/* 215 Newsgroups in form "group high low flags". */
}
/*
*name: NewsEnterGroup
*/
int
struct server_info *srv;
char *group;
char *lpath;
{
char *oldgroup;
return 0;
}
logit( "<news>: unknown group\n" );
return -1;
}
/* 211 num min max group-name */
return 0;
sfsprintf( buf, sizeof(buf), "%d-%d", (int)strtol( arg[2], (char**)0, 0 ), (int)strtol( arg[3], (char**)0, 0 ) );
logit( "<news>: xover error\n" );
return -1;
}
/* 224 data follows */
return -1;
}
}
}
}
return 0;
}
/*
*name: NewsGetArticle
*/
int
struct server_info *srv;
char *group;
char *article;
{
return -1;
logit( "<news>: get article error\n" );
return -1;
}
}
/*
*name: NewsConnect
*/
int
struct server_info *srv;
{
int port;
return 0;
}
}
logit( "<news>: connect\n" );
return -1;
return -1;
}
return -1;
}
return 0;
}
/*
*name: NewsDisconnect
*/
int
struct server_info *srv;
{
}
return 0;
}
/*
*name: NewsGetFile
*/
int
struct server_info *srv;
{
return -1;
NewsDisconnect( srv );
return -1;
}
if( *rpath == '\0' ) {
return NewsListGroups( srv );
}
}
*article++ = '\0';
logit( "<news>: invalid path\n" );
return -1;
}
}
/*
*name: NewsPutFile
*/
int
struct server_info *srv;
{
return 0;
}
/*
*name: NewsNop
*/
int
struct server_info *srv;
{
return 0;
}
/*
*name: NewsInit
* Initial the data and functions in agent_item
*/
int
struct agent_item *tbl;
{
return 0;
}