diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 00:04:15 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 00:04:15 +0200 |
commit | 9e4cf71371187927a6eb7cc4fe32b67d58a93010 (patch) | |
tree | 063ebd26cfc7b50212a2c8069cf702fb9b4b8708 /xutils.h | |
parent | 8bb67e4e60d1c0d9fba66c1b28e62e4d92d8d4ce (diff) |
xutils: break out string handling and locking
Break out all string handling functions and lockme stuff in order
to further eliminate the big code blob in xutils, so that it can
be easier maintained.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'xutils.h')
-rw-r--r-- | xutils.h | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -40,8 +40,6 @@ extern int device_ifindex(const char *ifname); extern short device_get_flags(const char *ifname); extern void device_set_flags(const char *ifname, const short flags); extern void drop_privileges(bool enforce, uid_t uid, gid_t gid); -extern void xlockme(void); -extern void xunlockme(void); extern void set_nonblocking(int fd); extern int set_nonblocking_sloppy(int fd); extern int set_reuseaddr(int fd); @@ -69,11 +67,6 @@ extern void cpu_affinity(int cpu); extern int set_cpu_affinity(char *str, int inverted); extern int set_proc_prio(int prio); extern int set_sched_status(int policy, int priority); -extern size_t strlcpy(char *dest, const char *src, size_t size); -extern int slprintf(char *dst, size_t size, const char *fmt, ...) __check_format_printf(3, 4); -extern int slprintf_nocheck(char *dst, size_t size, const char *fmt, ...); -extern noinline void *xmemset(void *s, int c, size_t n); -extern char *strtrim_right(char *p, char c); extern int get_default_sched_policy(void); extern int get_default_sched_prio(void); extern int get_number_cpus(void); |