Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54333
b: refs/heads/master
c: c2f239d
h: refs/heads/master
i:
  54331: 7274eaa
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed May 7, 2007
1 parent 5b1c07f commit 0c2fb0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7ec15bd004f4524bf091f851348da2ccb519e4f
refs/heads/master: c2f239d93e8af991392871c57465cb2ac556b482
10 changes: 7 additions & 3 deletions trunk/arch/um/include/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@
*/
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))

/*
* This will provide the size_t definition in both kernel and userspace builds
*/
#include <linux/types.h>

extern void panic(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));
extern int printk(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));
extern void schedule(void);
extern int in_aton(char *str);
extern int open_gdb_chan(void);
/* These use size_t, however unsigned long is correct on both i386 and x86_64. */
extern unsigned long strlcpy(char *, const char *, unsigned long);
extern unsigned long strlcat(char *, const char *, unsigned long);
extern size_t strlcpy(char *, const char *, size_t);
extern size_t strlcat(char *, const char *, size_t);

#endif

0 comments on commit 0c2fb0a

Please sign in to comment.