Skip to content

Commit

Permalink
Fix socket poll events values
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniElectra committed May 4, 2024
1 parent faf5162 commit c3ec3b7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions libctru/include/poll.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#pragma once

#define POLLIN 0x01
#define POLLPRI 0x02
#define POLLHUP 0x04 // unknown ???
#define POLLERR 0x08 // probably
#define POLLOUT 0x10
#define POLLNVAL 0x20
#define POLLRDNORM 0x01
#define POLLRDBAND 0x02
#define POLLPRI 0x04
#define POLLWRNORM 0x08
#define POLLWRBAND 0x10
#define POLLERR 0x20
#define POLLHUP 0x40
#define POLLNVAL 0x80
#define POLLIN (POLLRDNORM | POLLRDBAND)
#define POLLOUT POLLWRNORM

typedef unsigned int nfds_t;

Expand Down

0 comments on commit c3ec3b7

Please sign in to comment.