Annotation of 43BSDReno/contrib/isode-beta/ftam/ftamfdf.c, revision 1.1.1.1

1.1       root        1: /* ftamfdf.c - FDF support */
                      2: 
                      3: #ifndef        lint
                      4: static char *rcsid = "$Header: /f/osi/ftam/RCS/ftamfdf.c,v 7.0 89/11/23 21:53:37 mrose Rel $";
                      5: #endif
                      6: 
                      7: /* 
                      8:  * $Header: /f/osi/ftam/RCS/ftamfdf.c,v 7.0 89/11/23 21:53:37 mrose Rel $
                      9:  *
                     10:  *
                     11:  * $Log:       ftamfdf.c,v $
                     12:  * Revision 7.0  89/11/23  21:53:37  mrose
                     13:  * Release 6.0
                     14:  * 
                     15:  */
                     16: 
                     17: /*
                     18:  *                               NOTICE
                     19:  *
                     20:  *    Acquisition, use, and distribution of this module and related
                     21:  *    materials are subject to the restrictions of a license agreement.
                     22:  *    Consult the Preface in the User's Manual for the full terms of
                     23:  *    this agreement.
                     24:  *
                     25:  */
                     26: 
                     27: 
                     28: /* LINTLIBRARY */
                     29: 
                     30: #include <stdio.h>
                     31: #include "fpkt.h"
                     32: 
                     33: /*  */
                     34: 
                     35: int    fdf_p2names (fd, bits, names, fti)
                     36: int    fd;
                     37: PE     bits;
                     38: int    *names;
                     39: struct FTAMindication *fti;
                     40: {
                     41:     register struct ftamblk *fsb;
                     42: 
                     43:     if ((fsb = findfsblk (fd)) == NULL)
                     44:        return ftamlose (fti, FS_GEN_NOREASON, 0, NULLCP,
                     45:                         "invalid ftam descriptor");
                     46: 
                     47:     return fpm2bits (fsb, fname_pairs, bits, names, fti);
                     48: }
                     49: 
                     50: /*  */
                     51: 
                     52: int    fdf_names2p (fd, names, bits, fti)
                     53: int    fd;
                     54: int     names;
                     55: PE     *bits;
                     56: struct FTAMindication *fti;
                     57: {
                     58:     register struct ftamblk *fsb;
                     59: 
                     60:     if ((fsb = findfsblk (fd)) == NULL)
                     61:        return ftamlose (fti, FS_GEN_NOREASON, 0, NULLCP,
                     62:                         "invalid ftam descriptor");
                     63: 
                     64:     if ((*bits) = bits2fpm (fsb, fname_pairs, names, fti))
                     65:        return OK;
                     66:     return NOTOK;
                     67: }
                     68: 
                     69: /*  */
                     70: 
                     71: int    fdf_attrs2d (fd, fa, attrs, fti)
                     72: int    fd;
                     73: struct FTAMattributes *fa;
                     74: struct type_FTAM_Read__Attributes **attrs;
                     75: struct FTAMindication *fti;
                     76: {
                     77:     register struct ftamblk *fsb;
                     78: 
                     79:     if ((fsb = findfsblk (fd)) == NULL)
                     80:        return ftamlose (fti, FS_GEN_NOREASON, 0, NULLCP,
                     81:                         "invalid ftam descriptor");
                     82: 
                     83:     if ((*attrs) = attr2fpm (fsb, fa, fti))
                     84:        return OK;
                     85:     return NOTOK;
                     86: }
                     87: 
                     88: /*  */
                     89: 
                     90: int    fdf_d2attrs (fd, attrs, fa, fti)
                     91: int    fd;
                     92: struct type_FTAM_Read__Attributes *attrs;
                     93: struct FTAMattributes *fa;
                     94: struct FTAMindication *fti;
                     95: {
                     96:     register struct ftamblk *fsb;
                     97: 
                     98:     if ((fsb = findfsblk (fd)) == NULL)
                     99:        return ftamlose (fti, FS_GEN_NOREASON, 0, NULLCP,
                    100:                         "invalid ftam descriptor");
                    101: 
                    102:     return fpm2attr (fsb, attrs, fa, fti);
                    103: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.