|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T f
Length: 2082 (0x822)
Types: TextFile
Names: »ftamfdf.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/ftam/ftamfdf.c«
/* ftamfdf.c - FDF support */
#ifndef lint
static char *rcsid = "$Header: /f/osi/ftam/RCS/ftamfdf.c,v 6.0 89/03/18 23:30:39 mrose Rel $";
#endif
/*
* $Header: /f/osi/ftam/RCS/ftamfdf.c,v 6.0 89/03/18 23:30:39 mrose Rel $
*
*
* $Log: ftamfdf.c,v $
* Revision 6.0 89/03/18 23:30:39 mrose
* Release 5.0
*
*/
/*
* NOTICE
*
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
* this agreement.
*
*/
/* LINTLIBRARY */
#include <stdio.h>
#include "fpkt.h"
/* \f
*/
int fdf_p2names (fd, bits, names, fti)
int fd;
PE bits;
int *names;
struct FTAMindication *fti;
{
register struct ftamblk *fsb;
if ((fsb = findfsblk (fd)) == NULL)
return ftamlose (fti, FS_GEN_NOREASON, 0, NULLCP,
"invalid ftam descriptor");
return fpm2bits (fsb, fname_pairs, bits, names, fti);
}
/* \f
*/
int fdf_names2p (fd, names, bits, fti)
int fd;
int names;
PE *bits;
struct FTAMindication *fti;
{
register struct ftamblk *fsb;
if ((fsb = findfsblk (fd)) == NULL)
return ftamlose (fti, FS_GEN_NOREASON, 0, NULLCP,
"invalid ftam descriptor");
if ((*bits) = bits2fpm (fsb, fname_pairs, names, fti))
return OK;
return NOTOK;
}
/* \f
*/
int fdf_attrs2d (fd, fa, attrs, fti)
int fd;
struct FTAMattributes *fa;
struct type_FTAM_Read__Attributes **attrs;
struct FTAMindication *fti;
{
register struct ftamblk *fsb;
if ((fsb = findfsblk (fd)) == NULL)
return ftamlose (fti, FS_GEN_NOREASON, 0, NULLCP,
"invalid ftam descriptor");
if ((*attrs) = attr2fpm (fsb, fa, fti))
return OK;
return NOTOK;
}
/* \f
*/
int fdf_d2attrs (fd, attrs, fa, fti)
int fd;
struct type_FTAM_Read__Attributes *attrs;
struct FTAMattributes *fa;
struct FTAMindication *fti;
{
register struct ftamblk *fsb;
if ((fsb = findfsblk (fd)) == NULL)
return ftamlose (fti, FS_GEN_NOREASON, 0, NULLCP,
"invalid ftam descriptor");
return fpm2attr (fsb, attrs, fa, fti);
}