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

⟦ac198b06f⟧ TextFile

    Length: 1487 (0x5cf)
    Types: TextFile
    Names: »ssapselect.c«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/ssap/ssapselect.c« 

TextFile

/* ssapselect.c - SPM: map descriptors */

#ifndef	lint
static char *rcsid = "$Header: /f/osi/ssap/RCS/ssapselect.c,v 6.0 89/03/18 23:44:08 mrose Rel $";
#endif

/* 
 * $Header: /f/osi/ssap/RCS/ssapselect.c,v 6.0 89/03/18 23:44:08 mrose Rel $
 *
 *
 * $Log:	ssapselect.c,v $
 * Revision 6.0  89/03/18  23:44:08  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 <signal.h>
#include "spkt.h"

/* \f

   map session descriptors for select() */

int	SSelectMask (sd, mask, nfds, si)
int	sd;
fd_set *mask;
int    *nfds;
register struct SSAPindication *si;
{
    SBV	    smask;
    int     result;
    register struct ssapblk *sb;
    struct TSAPdisconnect   tds;
    register struct TSAPdisconnect *td = &tds;

    missingP (mask);
    missingP (nfds);

    smask = sigioblock ();

    if ((sb = findsblk (sd)) == NULL) {
	(void) sigiomask (smask);
	return ssaplose (si, SC_PARAMETER, NULLCP,
			    "invalid session descriptor");
    }

    if ((result = TSelectMask (sb -> sb_fd, mask, nfds, td)) == NOTOK)
	if (td -> td_reason == DR_WAITING)
	    (void) ssaplose (si, SC_WAITING, NULLCP, NULLCP);
	else
	    (void) ts2sslose (si, "TSelectMask", td);

    (void) sigiomask (smask);

    return result;
}