Reduce namespace pollution by removing argument names from prototypes.
This commit is contained in:
parent
6598654546
commit
0ed55f1f2a
@ -51,27 +51,27 @@ __BEGIN_DECLS
|
||||
/*
|
||||
* API functions
|
||||
*/
|
||||
struct sbuf *sbuf_new(struct sbuf *s, char *buf, int length, int flags);
|
||||
void sbuf_clear(struct sbuf *s);
|
||||
int sbuf_setpos(struct sbuf *s, int pos);
|
||||
int sbuf_bcat(struct sbuf *s, const char *str, size_t len);
|
||||
int sbuf_bcpy(struct sbuf *s, const char *str, size_t len);
|
||||
int sbuf_cat(struct sbuf *s, const char *str);
|
||||
int sbuf_cpy(struct sbuf *s, const char *str);
|
||||
int sbuf_printf(struct sbuf *s, const char *fmt, ...) __printflike(2, 3);
|
||||
int sbuf_putc(struct sbuf *s, int c);
|
||||
int sbuf_trim(struct sbuf *s);
|
||||
int sbuf_overflowed(struct sbuf *s);
|
||||
void sbuf_finish(struct sbuf *s);
|
||||
char *sbuf_data(struct sbuf *s);
|
||||
int sbuf_len(struct sbuf *s);
|
||||
void sbuf_delete(struct sbuf *s);
|
||||
struct sbuf *sbuf_new(struct sbuf *, char *, int, int);
|
||||
void sbuf_clear(struct sbuf *);
|
||||
int sbuf_setpos(struct sbuf *, int);
|
||||
int sbuf_bcat(struct sbuf *, const char *, size_t);
|
||||
int sbuf_bcpy(struct sbuf *, const char *, size_t);
|
||||
int sbuf_cat(struct sbuf *, const char *);
|
||||
int sbuf_cpy(struct sbuf *, const char *);
|
||||
int sbuf_printf(struct sbuf *, const char *, ...) __printflike(2, 3);
|
||||
int sbuf_putc(struct sbuf *, int);
|
||||
int sbuf_trim(struct sbuf *);
|
||||
int sbuf_overflowed(struct sbuf *);
|
||||
void sbuf_finish(struct sbuf *);
|
||||
char *sbuf_data(struct sbuf *);
|
||||
int sbuf_len(struct sbuf *);
|
||||
void sbuf_delete(struct sbuf *);
|
||||
|
||||
#ifdef _KERNEL
|
||||
struct uio;
|
||||
struct sbuf *sbuf_uionew(struct sbuf *s, struct uio *uio, int *error);
|
||||
int sbuf_bcopyin(struct sbuf *s, const void *uaddr, size_t len);
|
||||
int sbuf_copyin(struct sbuf *s, const void *uaddr, size_t len);
|
||||
struct sbuf *sbuf_uionew(struct sbuf *, struct uio *, int *);
|
||||
int sbuf_bcopyin(struct sbuf *, const void *, size_t);
|
||||
int sbuf_copyin(struct sbuf *, const void *, size_t);
|
||||
#endif
|
||||
__END_DECLS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user