|
|
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: 1470 (0x5be)
Types: TextFile
Names: »ftamselect.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/ftam/ftamselect.c«
/* ftamselect.c - FPM: map descriptors */
#ifndef lint
static char *rcsid = "$Header: /f/osi/ftam/RCS/ftamselect.c,v 6.0 89/03/18 23:30:58 mrose Rel $";
#endif
/*
* $Header: /f/osi/ftam/RCS/ftamselect.c,v 6.0 89/03/18 23:30:58 mrose Rel $
*
*
* $Log: ftamselect.c,v $
* Revision 6.0 89/03/18 23:30:58 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 "fpkt.h"
/* \f
map ftam descriptors for select() */
int FSelectMask (sd, mask, nfds, fti)
int sd;
fd_set *mask;
int *nfds;
struct FTAMindication *fti;
{
SBV smask;
register struct ftamblk *fsb;
struct PSAPindication pis;
register struct PSAPabort *pa = &pis.pi_abort;
missingP (mask);
missingP (nfds);
missingP (fti);
smask = sigioblock ();
ftamPsig (fsb, sd);
if (PSelectMask (fsb -> fsb_fd, mask, nfds, &pis) == NOTOK)
switch (pa -> pa_reason) {
case PC_WAITING:
(void) sigiomask (smask);
return ftamlose (fti, FS_GEN_WAITING, 0, NULLCP, NULLCP);
default:
(void) ps2ftamlose (fsb, fti, "PSelectMask", pa);
freefsblk (fsb);
(void) sigiomask (smask);
return NOTOK;
}
(void) sigiomask (smask);
return OK;
}