[BACK]Return to file.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / sndiod

Diff for /src/usr.bin/sndiod/file.h between version 1.4 and 1.5

version 1.4, 2015/08/01 10:47:30 version 1.5, 2016/01/08 16:17:31
Line 34 
Line 34 
         char *name;          char *name;
         int (*pollfd)(void *, struct pollfd *);          int (*pollfd)(void *, struct pollfd *);
         int (*revents)(void *, struct pollfd *);          int (*revents)(void *, struct pollfd *);
         /*          /*
          * we have to handle POLLIN and POLLOUT events           * we have to handle POLLIN and POLLOUT events
          * in separate handles, since handling POLLIN can           * in separate handles, since handling POLLIN can
          * close the file, and continuing (to handle POLLOUT)           * close the file, and continuing (to handle POLLOUT)
Line 52 
Line 52 
 #define FILE_INIT       0               /* ready */  #define FILE_INIT       0               /* ready */
 #define FILE_ZOMB       1               /* closed, but not free()d yet */  #define FILE_ZOMB       1               /* closed, but not free()d yet */
         unsigned int state;             /* one of above */          unsigned int state;             /* one of above */
         unsigned int max_nfds;          /* max number of descriptors */          unsigned int max_nfds;          /* max number of descriptors */
         unsigned int nfds;              /* number of descriptors polled */          unsigned int nfds;              /* number of descriptors polled */
         char *name;                     /* for debug purposes */          char *name;                     /* for debug purposes */
 };  };

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5