summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-05-07 21:06:55 +0200
committerKay Sievers <kay@vrfy.org>2012-05-08 01:57:17 +0200
commitbbc98d32560cc456531bf254f7b69054921082bd (patch)
tree0c4c10fe1944119fa17a051cd69e840201ed94bc /src/shared/util.h
parentb80efeb9ae23b493d03501caa7e6334d1db65dd9 (diff)
util: split-out hwclock.[ch]
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index b246996fcc..cca6118363 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -59,17 +59,6 @@ typedef struct dual_timestamp {
#define USEC_PER_MONTH (2629800ULL*USEC_PER_SEC)
#define USEC_PER_YEAR (31557600ULL*USEC_PER_SEC)
-/*
- * container_of - cast a member of a structure out to the containing structure
- * @ptr: the pointer to the member.
- * @type: the type of the container struct this is embedded in.
- * @member: the name of the member within the struct.
- *
- */
-#define container_of(ptr, type, member) ({ \
- const typeof( ((type *)0)->member ) *__mptr = (ptr); \
- (type *)( (char *)__mptr - offsetof(type,member) );})
-
/* What is interpreted as whitespace? */
#define WHITESPACE " \t\n\r"
#define NEWLINE "\n\r"
@@ -460,12 +449,6 @@ int symlink_or_copy_atomic(const char *from, const char *to);
int fchmod_umask(int fd, mode_t mode);
-int hwclock_is_localtime(void);
-int hwclock_apply_localtime_delta(int *min);
-int hwclock_reset_localtime_delta(void);
-int hwclock_get_time(struct tm *tm);
-int hwclock_set_time(const struct tm *tm);
-
bool display_is_local(const char *display);
int socket_from_display(const char *display, char **path);
@@ -538,8 +521,6 @@ int fd_wait_for_event(int fd, int event, usec_t timeout);
void* memdup(const void *p, size_t l);
-int rtc_open(int flags);
-
int is_kernel_thread(pid_t pid);
int fd_inc_sndbuf(int fd, size_t n);