pike.git / src / modules / _Stdio / file.c

version» Context lines:

pike.git/src/modules/_Stdio/file.c:119:   #define THIS ((struct my_file *)(Pike_fp->current_storage))   #define FD (THIS->box.fd)   #define ERRNO (THIS->my_errno)      #define READ_BUFFER 8192   #define DIRECT_BUFSIZE (64*1024)   #define SMALL_NETBUF 2048   #define INUSE_BUSYWAIT_DELAY 0.01   #define INUSE_TIMEOUT 0.1    - /* Don't try to use socketpair() on AmigaOS, socketpair_ultra works better */ - #ifdef __amigaos__ - #undef HAVE_SOCKETPAIR - #endif -  +    #ifdef UNIX_SOCKETS_WORK_WITH_SHUTDOWN   #undef UNIX_SOCKET_CAPABILITIES   #define UNIX_SOCKET_CAPABILITIES (fd_INTERPROCESSABLE | fd_BIDIRECTIONAL | fd_CAN_NONBLOCK | fd_CAN_SHUTDOWN | fd_SEND_FD)   #endif      #ifndef HAVE_DIRFD   #ifdef HAVE_DIR_DD_FD   #define dirfd(dir__) (((DIR*)dir__)->dd_fd)   #define HAVE_DIRFD   #elif defined(HAVE_DIR_D_FD)
pike.git/src/modules/_Stdio/file.c:5224:    */   static void file_create(INT32 args)   {    if(!args) return;    if(TYPEOF(Pike_sp[-args]) != PIKE_T_STRING &&    TYPEOF(Pike_sp[-args]) != PIKE_T_INT)    SIMPLE_ARG_TYPE_ERROR("create", 1, "int|string");       close_fd(0);    file_open(args); +  pop_stack();   }      #ifdef _REENTRANT      struct new_thread_data   {    INT32 from, to;    char buffer[READ_BUFFER];   };