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

version» Context lines:

pike.git/src/modules/_Stdio/file.c:138: Inside #if defined(__amigaos__)
  /* 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    + /* +  * gcc with -O3 generates very bloated code for the functions in this file. One rather extreme example +  * is file_open, which ends up having 32 call sites of open(2). +  */ + #ifdef __GNUC__ + #pragma GCC optimize "-Os" + #endif +    /* #define SOCKETPAIR_DEBUG */      struct program *file_program;   struct program *file_ref_program;      /*! @module Stdio    */      /*! @class Fd_ref    *!