DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T s

⟦310282c50⟧ TextFile

    Length: 1777 (0x6f1)
    Types: TextFile
    Names: »ssapcapd1.c«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/ssap/ssapcapd1.c« 

TextFile

/* ssapcapd1.c - SPM: write capability data */

#ifndef	lint
static char *rcsid = "$Header: /f/osi/ssap/RCS/ssapcapd1.c,v 7.0 89/11/23 22:25:23 mrose Rel $";
#endif

/* 
 * $Header: /f/osi/ssap/RCS/ssapcapd1.c,v 7.0 89/11/23 22:25:23 mrose Rel $
 *
 *
 * $Log:	ssapcapd1.c,v $
 * Revision 7.0  89/11/23  22:25:23  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 <signal.h>
#include "spkt.h"

/* \f

   S-CAPABILITY-DATA.REQUEST */

int	SCapdRequest (sd, data, cc, si)
int	sd;
char   *data;
int	cc;
struct SSAPindication *si;
{
    SBV	    smask;
    int     result;
    register struct ssapblk *sb;

    missingP (si);

    smask = sigioblock ();

    ssapPsig (sb, sd);
    toomuchP (sb, data, cc, SX_CDSIZE, "capability");

    result = SCapdRequestAux (sb, data, cc, si);

    (void) sigiomask (smask);

    return result;
}

/* \f

 */

static  int SCapdRequestAux (sb, data, cc, si)
register struct ssapblk *sb;
char   *data;
int	cc;
struct SSAPindication *si;
{
    int     result;

    if (!(sb -> sb_requirements & SR_CAPABILITY))
	return ssaplose (si, SC_OPERATION, NULLCP,
		"capability data exchange service unavailable");
    if (SDoActivityAux (sb, si, 1, 0) == NOTOK)
	return NOTOK;
    if (sb -> sb_flags & SB_CD)
	return ssaplose (si, SC_OPERATION, NULLCP,
		"capability data request in progress");
    sb -> sb_flags |= SB_CD;

    if ((result = SWriteRequestAux (sb, SPDU_CD, data, cc, 0, 0L, 0, NULLSD,
		NULLSD, NULLSR, si)) == NOTOK)
	freesblk (sb);

    return result;
}