summaryrefslogtreecommitdiff
path: root/userland/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/include')
-rw-r--r--userland/libc/include/assert.h4
-rw-r--r--userland/libc/include/math.h12
-rw-r--r--userland/libc/include/pty.h4
-rw-r--r--userland/libc/include/setjmp.h6
-rw-r--r--userland/libc/include/sys/sendfile.h7
-rw-r--r--userland/libc/include/tb/sb.h3
6 files changed, 17 insertions, 19 deletions
diff --git a/userland/libc/include/assert.h b/userland/libc/include/assert.h
index a009e5f..c35845e 100644
--- a/userland/libc/include/assert.h
+++ b/userland/libc/include/assert.h
@@ -1,10 +1,10 @@
#ifndef ASSERT_H
#define ASSERT_H
-#define assert(expr) \
+#define assert(expr) \
{ \
if (!(expr)) \
- aFailed(__FILE__, __LINE__); \
+ aFailed(__FILE__, __LINE__); \
}
void aFailed(char *f, int l);
#endif
diff --git a/userland/libc/include/math.h b/userland/libc/include/math.h
index 7168a5d..3590caa 100644
--- a/userland/libc/include/math.h
+++ b/userland/libc/include/math.h
@@ -1,16 +1,16 @@
#define max(_a, _b) ((_a) > (_b) ? (_a) : (_b))
#define min(_a, _b) ((_a) < (_b) ? (_a) : (_b))
-#if 100*__GNUC__+__GNUC_MINOR__ >= 303
-#define NAN __builtin_nanf("")
-#define INFINITY __builtin_inff()
+#if 100 * __GNUC__ + __GNUC_MINOR__ >= 303
+#define NAN __builtin_nanf("")
+#define INFINITY __builtin_inff()
#else
-#define NAN (0.0f/0.0f)
-#define INFINITY 1e40f
+#define NAN (0.0f / 0.0f)
+#define INFINITY 1e40f
#endif
#define HUGE_VALF INFINITY
-#define HUGE_VAL ((double)INFINITY)
+#define HUGE_VAL ((double)INFINITY)
#define HUGE_VALL ((long double)INFINITY)
double ldexp(double x, int exp);
diff --git a/userland/libc/include/pty.h b/userland/libc/include/pty.h
index b8ce978..e5de5a3 100644
--- a/userland/libc/include/pty.h
+++ b/userland/libc/include/pty.h
@@ -1,6 +1,6 @@
#ifndef PTY_H
#define PTY_H
int openpty(int *amaster, int *aslave, char *name,
- /*const struct termios*/ void *termp,
- /*const struct winsize*/ void *winp);
+ /*const struct termios*/ void *termp,
+ /*const struct winsize*/ void *winp);
#endif
diff --git a/userland/libc/include/setjmp.h b/userland/libc/include/setjmp.h
index ea15cf3..ec7e23c 100644
--- a/userland/libc/include/setjmp.h
+++ b/userland/libc/include/setjmp.h
@@ -2,9 +2,9 @@
#define SETJMP_H
typedef unsigned long __jmp_buf[6];
typedef struct __jmp_buf_tag {
- __jmp_buf __jb;
- unsigned long __fl;
- unsigned long __ss[128/sizeof(long)];
+ __jmp_buf __jb;
+ unsigned long __fl;
+ unsigned long __ss[128 / sizeof(long)];
} jmp_buf[1];
typedef jmp_buf sigjmp_buf;
diff --git a/userland/libc/include/sys/sendfile.h b/userland/libc/include/sys/sendfile.h
index 5e83999..6fdd21b 100644
--- a/userland/libc/include/sys/sendfile.h
+++ b/userland/libc/include/sys/sendfile.h
@@ -1,7 +1,6 @@
-#include <stdint.h>
-#include <typedefs.h>
#include <stddef.h>
+#include <stdint.h>
#include <sys/types.h>
+#include <typedefs.h>
-u32 sendfile(int out_fd, int in_fd, off_t *offset, size_t count,
- int *error_rc);
+u32 sendfile(int out_fd, int in_fd, off_t *offset, size_t count, int *error_rc);
diff --git a/userland/libc/include/tb/sb.h b/userland/libc/include/tb/sb.h
index 8493997..7832015 100644
--- a/userland/libc/include/tb/sb.h
+++ b/userland/libc/include/tb/sb.h
@@ -22,8 +22,7 @@ int sb_isempty(const struct sb *ctx);
int sb_append_char(struct sb *ctx, char c);
int sb_delete_right(struct sb *ctx, size_t n);
int sb_append(struct sb *ctx, const char *s);
-int sb_append_buffer(struct sb *ctx, const char *buffer,
- size_t length);
+int sb_append_buffer(struct sb *ctx, const char *buffer, size_t length);
int sb_append_sv(struct sb *ctx, struct sv sv);
int sb_prepend_sv(struct sb *ctx, struct sv sv);
int sb_prepend_buffer(struct sb *ctx, const char *buffer, size_t length);