/systemd/src/journal/ |
H A D | journald-native.c | 86 const struct timeval *tv, 122 server_dispatch_message(s, iovec, n, m, ucred, tv, label, label_len, NULL, priority, object_pid); 281 server_forward_syslog(s, priority, identifier, message, ucred, tv); 293 server_dispatch_message(s, iovec, n, m, ucred, tv, label, label_len, NULL, priority, object_pid); 314 const struct timeval *tv, 397 server_process_native_message(s, p, st.st_size, ucred, tv, label, label_len); 446 server_process_native_message(s, p, n, ucred, tv, label, label_len); 82 server_process_native_message( Server *s, const void *buffer, size_t buffer_size, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len) argument 310 server_process_native_file( Server *s, int fd, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len) argument
|
H A D | journald-syslog.c | 45 static void forward_syslog_iovec(Server *s, const struct iovec *iovec, unsigned n_iovec, const struct ucred *ucred, const struct timeval *tv) { argument 119 static void forward_syslog_raw(Server *s, int priority, const char *buffer, const struct ucred *ucred, const struct timeval *tv) { argument 129 forward_syslog_iovec(s, &iovec, 1, ucred, tv); 132 void server_forward_syslog(Server *s, int priority, const char *identifier, const char *message, const struct ucred *ucred, const struct timeval *tv) { argument 154 t = tv ? tv->tv_sec : ((time_t) (now(CLOCK_REALTIME) / USEC_PER_SEC)); 183 forward_syslog_iovec(s, iovec, n, ucred, tv); 322 const struct timeval *tv, 342 forward_syslog_raw(s, priority, orig, ucred, tv); 382 server_dispatch_message(s, iovec, n, ELEMENTSOF(iovec), ucred, tv, labe 318 server_process_syslog_message( Server *s, const char *buf, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len) argument [all...] |
H A D | journald-server.c | 576 const struct timeval *tv, 821 if (tv) { 822 sprintf(source_time, "_SOURCE_REALTIME_TIMESTAMP=%llu", (unsigned long long) timeval_load(tv)); 914 const struct timeval *tv, 974 dispatch_message_real(s, iovec, n, m, ucred, tv, label, label_len, unit_id, priority, object_pid); 1155 struct timeval *tv = NULL; local 1236 tv = (struct timeval*) CMSG_DATA(cmsg); 1249 server_process_syslog_message(s, strstrip(s->buffer), ucred, tv, label, label_len); 1255 server_process_native_message(s, s->buffer, n, ucred, tv, label, label_len); 1257 server_process_native_file(s, fds[0], ucred, tv, labe 572 dispatch_message_real( Server *s, struct iovec *iovec, unsigned n, unsigned m, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority, pid_t object_pid) argument 910 server_dispatch_message( Server *s, struct iovec *iovec, unsigned n, unsigned m, const struct ucred *ucred, const struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority, pid_t object_pid) argument [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-dump.c | 562 struct timeval tv; local 574 timeval_store(&tv, m->realtime); 576 assert_se(gettimeofday(&tv, NULL) >= 0); 578 hdr.ts_sec = tv.tv_sec; 579 hdr.ts_usec = tv.tv_usec;
|
/systemd/src/basic/ |
H A D | time-util.c | 161 usec_t timeval_load(const struct timeval *tv) { argument 162 assert(tv); 164 if (tv->tv_sec == (time_t) -1 && 165 tv->tv_usec == (suseconds_t) -1) 168 if ((usec_t) tv->tv_sec > (UINT64_MAX - tv->tv_usec) / USEC_PER_SEC) 172 (usec_t) tv->tv_sec * USEC_PER_SEC + 173 (usec_t) tv->tv_usec; 176 struct timeval *timeval_store(struct timeval *tv, usec_t u) { argument 177 assert(tv); [all...] |
H A D | log.c | 129 struct timeval tv; local 142 timeval_store(&tv, 10 * USEC_PER_MSEC); 144 timeval_store(&tv, 10 * USEC_PER_SEC); 145 (void) setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
|