|
|
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«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/ftam/ftamfdf.c«
/* ftamfdf.c - FDF support */
#ifndef lint
static char *rcsid = "$Header: /f/osi/ftam/RCS/ftamfdf.c,v 7.0 89/11/23 21:53:37 mrose Rel $";
#endif
/*
* $Header: /f/osi/ftam/RCS/ftamfdf.c,v 7.0 89/11/23 21:53:37 mrose Rel $
*
*
* $Log: ftamfdf.c,v $
* Revision 7.0 89/11/23 21:53:37 mrose
* Release 6.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);
}