pike.git / src / modules / DVB / dvb.c

version» Context lines:

pike.git/src/modules/DVB/dvb.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dvb.c,v 1.15 2002/11/09 14:07:55 grubba Exp $ + || $Id: dvb.c,v 1.16 2002/11/19 16:11:29 hop Exp $   */      /*    * DVB module    *    * Creator: Honza Petrous <hop@unibase.cz>    *    * Credits:    * + Tuner zapping code inspired on 'szap' app from linux DVB driver    * package
pike.git/src/modules/DVB/dvb.c:703:       struct pollfd u[1];    int retries;    int n,l;       for (retries=0;retries<100;retries++)    {    u[0].fd = fd;    u[0].events = POLLIN;    -  THREAD_ALLOW(); +  THREADS_ALLOW();    n = poll(u,1,20000); -  THREAD_DISALLOW(); +  THREADS_DISALLOW();    if (n < 0)    {    perror("poll error");    return -1;    }    if (n == 0)    {    fprintf(stderr,"timeout\n");    return -1;    }       buffer[0] = 0;    -  THREAD_ALLOW(); +  THREADS_ALLOW();    n = read(fd,buffer+1,length-1); -  THREAD_DISALLOW(); +  THREADS_DISALLOW();    if (n < 0)    {    perror("read error");    return -1;    }       if (cks && crc32(buffer+1,n) != 0)    {    fprintf(stderr,"crc error\n"); /* FIXME: ??? */    continue;