Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/replace/system/select.h

    r414 r745  
    3939#endif
    4040
     41#ifdef HAVE_POLL
     42
     43#include <poll.h>
     44
     45#else
     46
     47/* Type used for the number of file descriptors.  */
     48typedef unsigned long int nfds_t;
     49
     50/* Data structure describing a polling request.  */
     51struct pollfd
     52{
     53        int fd;            /* File descriptor to poll.  */
     54        short int events;  /* Types of events poller cares about.  */
     55        short int revents; /* Types of events that actually occurred.  */
     56};
     57
     58/* Event types that can be polled for.  These bits may be set in `events'
     59   to indicate the interesting event types; they will appear in `revents'
     60   to indicate the status of the file descriptor.  */
     61#define POLLIN          0x001           /* There is data to read.  */
     62#define POLLPRI         0x002           /* There is urgent data to read.  */
     63#define POLLOUT         0x004           /* Writing now will not block.  */
     64#define POLLRDNORM      0x040           /* Normal data may be read.  */
     65#define POLLRDBAND      0x080           /* Priority data may be read.  */
     66#define POLLWRNORM      0x100           /* Writing now will not block.  */
     67#define POLLWRBAND      0x200           /* Priority data may be written.  */
     68#define POLLERR         0x008           /* Error condition.  */
     69#define POLLHUP         0x010           /* Hung up.  */
     70#define POLLNVAL        0x020           /* Invalid polling request.  */
     71
     72/* define is in "replace.h" */
     73int rep_poll(struct pollfd *fds, nfds_t nfds, int timeout);
     74
    4175#endif
     76
     77#endif
Note: See TracChangeset for help on using the changeset viewer.