pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.368 2003/05/07 12:31:43 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.369 2003/09/19 12:28:52 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:3404:    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:3512:    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:4275:    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 */