/***********************************************************************
* *
* 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_func.c
*/
#include "ifs_agent.h"
#include <ls.h>
struct DataEntry {
char *fpath;
char *key;
void* data;
int len;
};
/*
*name: MallocZero
* Allocation a block of memory and initiate to 0
* rtn: NULL if error
*/
void *
int nSize;
{
void *pBuf;
if( nSize <= 0 )
return NULL;
return NULL;
return pBuf;
}
/*
*name: SecurityDataAccess
* rtn: the offset of file
*/
int
int pos;
void *data;
int len;
{
static int FileNum = 0;
if( FileNum == 0 ) { /* create a security file */
return -1;
#ifndef DEBUG
#endif
}
if( pos <= 0 ) { /* write security data */
return -1;
} else {
return -1;
return -1;
}
return pos;
}
/*
*name: DataEntryInsert
*/
int
char *fpath;
char *key;
void *data;
int len;
{
break;
}
}
}
return 0;
}
/*
*name: DataEntryDelete
*/
int
char *fpath;
char *key;
{
} else {
}
return 0;
}
}
return -1;
}
/*
*name: DataEntryQuery
*/
int
char *fpath;
char *key;
void *buffer;
int bsize;
{
return -1;
}
}
return -1;
}
/*
*name: DashF
* Test if the path is a regular file
* rtn: TRUE or FALSE
*/
int
char *pPath;
{
}
/*
*name: DashD
* Test if the path is a directory
* rtn: TRUE or FALSE
*/
int
char *pPath;
{
}
/*
*Name: CopyFile
* Duplicate a file
* rtn: -1 if error, 0 if O.K.
*/
int
{
return -1;
}
return 0;
}
/*
*name: MakePath
* Recursive create the directories of a file.
*/
void
char *fpath;
{
char *ptr;
*ptr = '\0';
}
*ptr = '/';
}
}
/*
*name: MakeTmpFile
* Recursive find the valid directory for tmpfile
*/
void
char *fpath;
char *buf;
int bsize;
{
char *ptr;
*ptr = '\0';
} else {
}
*ptr = '/';
}
}
/*
*name: GetUserFile
*/
char *
char *fname;
char *buf;
int size;
{
return buf;
}
/*
*name: logit
* Write the message to logfile
*/
void
char *msg;
{
static int flog;
if( flog == 0 ) {
}
if( flog > 0 ) {
}
}
/*
*name: SplitFields
* Parse a text string and split into fields by tokens
* rtn: fields number
*/
int
char *arg[];
int asize;
char *str;
char tok;
{
char *ptr;
int n, fields;
fields = 0;
for( n = 0; n < asize; n++ ) {
fields++;
}
}
return fields;
}
/*
*name: MakeImageFile
* create an empty image file
*/
int
char *fname;
int size;
{
int fd;
if( actime == 0 ) {
}
if( fd > 0 ) {
if( size > 10 ) {
}
}
return 0;
}