pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.462 2003/08/19 09:38:16 tomas Exp $ + || $Id: builtin_functions.c,v 1.463 2003/09/19 12:27:50 jonasw Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.462 2003/08/19 09:38:16 tomas Exp $"); + RCSID("$Id: builtin_functions.c,v 1.463 2003/09/19 12:27:50 jonasw Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:3469:    double left;    /* THREADS_ALLOW may take longer time then POLL_SLEEP_LIMIT */    THREADS_ALLOW();    do {    FIX_LEFT();    if(left<=0.0) break;      #ifdef __NT__    Sleep(DO_NOT_WARN((int)(left*1000)));   #elif defined(HAVE_POLL) -  poll(NULL,0,(int)(left*1000)); +  { +  /* MacOS X is stupid, and requires a non-NULL pollfd pointer. */ +  struct pollfd sentinel; +  poll(&sentinel, 0, (int)(left*1000)); +  }   #else    {    struct timeval t3;    t3.tv_sec=left;    t3.tv_usec=(int)((left - (int)left)*1e6);    select(0,0,0,0,&t3);    }   #endif    } while(0);    THREADS_DISALLOW();
pike.git/src/builtin_functions.c:3583:    double left;    /* THREADS_ALLOW may take longer time then POLL_SLEEP_LIMIT */    THREADS_ALLOW();    do {    FIX_LEFT();    if(left<=0.0) break;      #ifdef __NT__    Sleep(DO_NOT_WARN((int)(left*1000)));   #elif defined(HAVE_POLL) -  poll(NULL,0,(int)(left*1000)); +  { +  /* MacOS X is stupid, and requires a non-NULL pollfd pointer. */ +  struct pollfd sentinel; +  poll(&sentinel, 0, (int)(left*1000)); +  }   #else    {    struct timeval t3;    t3.tv_sec=left;    t3.tv_usec=(int)((left - (int)left)*1e6);    select(0,0,0,0,&t3);    }   #endif    } while(0);    THREADS_DISALLOW();
pike.git/src/builtin_functions.c:4337:    case '@':    case '^':    case '_':    case '|':    continue;    /* Padding */    case ' ':    case '\'':    case '+':    case '~': -  break; +  continue;    /* Attributes */    case '.':    case ':':    case ';':    continue;    /* Attribute value */    case '1': case '2': case '3': case '4': case '5':    case '6': case '7': case '8': case '9':    continue;    /* Specials */