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

version» Context lines:

pike.git/src/modules/_Stdio/file.h: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.   */    + #include <io.h>   #ifndef FILE_H   #define FILE_H      #ifdef HAVE_NETINET_IN_H   #include <netinet/in.h>   #endif      #ifdef HAVE_ARPA_INET_H   #ifndef ARPA_INET_H   #include <arpa/inet.h>
pike.git/src/modules/_Stdio/file.h:53:   #endif      #include "pike_netlib.h"   #include "backend.h"      #if defined(HAVE_IPPROTO_IPv6) && !defined(IPPROTO_IPV6)   // Hidden in an enum.   #define IPPROTO_IPV6 IPPROTO_IPV6   #endif    + /* Provide some values not provided by windows (and without a direct equivalent) */ + #ifndef R_OK + #define R_OK 4 /* Test for read permission. */ + #endif + #ifndef W_OK + #define W_OK 2 /* Test for write permission. */ + #endif + #define X_OK R_OK /* execute permission - unsupported in windows*/ + #ifndef F_OK + #define F_OK 0 /* Test for existence. */ + #endif +    struct my_file   {    struct fd_callback_box box; /* Must be first. */    /* The box is hooked in whenever box.backend is set. */       struct svalue event_cbs[6];    /* Callbacks can be set without having the corresponding bits in    * box.events, but not the other way around. */       short open_mode;