|
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 p
Length: 1596 (0x63c) Types: TextFile Names: »psapselect.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.0/psap2/psapselect.c«
/* psapselect.c - PPM: map descriptors */ #ifndef lint static char *rcsid = "$Header: /f/osi/psap2/RCS/psapselect.c,v 7.0 89/11/23 22:14:36 mrose Rel $"; #endif /* * $Header: /f/osi/psap2/RCS/psapselect.c,v 7.0 89/11/23 22:14:36 mrose Rel $ * * * $Log: psapselect.c,v $ * Revision 7.0 89/11/23 22:14:36 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 "ppkt.h" /* \f map presentation descriptors for select() */ int PSelectMask (sd, mask, nfds, pi) int sd; fd_set *mask; int *nfds; struct PSAPindication *pi; { SBV smask; register struct psapblk *pb; struct SSAPindication sis; register struct SSAPabort *sa = &sis.si_abort; missingP (mask); missingP (nfds); missingP (pi); smask = sigioblock (); if ((pb = findpblk (sd)) == NULL) { (void) sigiomask (smask); return psaplose (pi, PC_PARAMETER, NULLCP, "invalid presentation descriptor"); } if (SSelectMask (pb -> pb_fd, mask, nfds, &sis) == NOTOK) switch (sa -> sa_reason) { case SC_WAITING: (void) sigiomask (smask); return psaplose (pi, PC_WAITING, NULLCP, NULLCP); default: (void) ss2pslose (pb, pi, "SSelectMask", sa); freepblk (pb); (void) sigiomask (smask); return NOTOK; } (void) sigiomask (smask); return OK; }