Skip to content

Commit f5527d9

Browse files
reformat
1 parent 035836d commit f5527d9

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

libc/include/llvm-libc-macros/linux/poll-macros.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,55 +11,55 @@
1111

1212
// From asm-generic/poll.h, redefined here to avoid redeclaring struct pollfd.
1313
#ifndef POLLIN
14-
#define POLLIN 0x0001
14+
#define POLLIN 0x0001
1515
#endif
1616

1717
#ifndef POLLPRI
18-
#define POLLPRI 0x0002
18+
#define POLLPRI 0x0002
1919
#endif
2020

2121
#ifndef POLLOUT
22-
#define POLLOUT 0x0004
22+
#define POLLOUT 0x0004
2323
#endif
2424

2525
#ifndef POLLERR
26-
#define POLLERR 0x0008
26+
#define POLLERR 0x0008
2727
#endif
2828

2929
#ifndef POLLHUP
30-
#define POLLHUP 0x0010
30+
#define POLLHUP 0x0010
3131
#endif
3232

3333
#ifndef POLLNVAL
34-
#define POLLNVAL 0x0020
34+
#define POLLNVAL 0x0020
3535
#endif
3636

3737
#ifndef POLLRDNORM
38-
#define POLLRDNORM 0x0040
38+
#define POLLRDNORM 0x0040
3939
#endif
4040

4141
#ifndef POLLRDBAND
42-
#define POLLRDBAND 0x0080
42+
#define POLLRDBAND 0x0080
4343
#endif
4444

4545
#ifndef POLLWRNORM
46-
#define POLLWRNORM 0x0100
46+
#define POLLWRNORM 0x0100
4747
#endif
4848

4949
#ifndef POLLWRBAND
50-
#define POLLWRBAND 0x0200
50+
#define POLLWRBAND 0x0200
5151
#endif
5252

5353
#ifndef POLLMSG
54-
#define POLLMSG 0x0400
54+
#define POLLMSG 0x0400
5555
#endif
5656

5757
#ifndef POLLREMOVE
58-
#define POLLREMOVE 0x1000
58+
#define POLLREMOVE 0x1000
5959
#endif
6060

6161
#ifndef POLLRDHUP
62-
#define POLLRDHUP 0x2000
62+
#define POLLRDHUP 0x2000
6363
#endif
6464

6565
#endif // LLVM_LIBC_MACROS_LINUX_POLL_MACROS_H

libc/src/poll/linux/poll.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
namespace LIBC_NAMESPACE_DECL {
2121

22-
LLVM_LIBC_FUNCTION(int, poll, (struct pollfd *fds, nfds_t nfds, int timeout)) {
22+
LLVM_LIBC_FUNCTION(int, poll, (struct pollfd * fds, nfds_t nfds, int timeout)) {
2323
int ret = LIBC_NAMESPACE::syscall_impl<int>(SYS_poll, fds, nfds, timeout);
2424
if (ret < 0) {
2525
libc_errno = -ret;

0 commit comments

Comments
 (0)