Home
last modified time | relevance | path

Searched refs:rep (Results 1 – 4 of 4) sorted by relevance

/system/core/logd/
Dlibaudit.c36 struct audit_message rep; in get_ack() local
43 rc = audit_get_reply(fd, &rep, GET_REPLY_BLOCKING, MSG_PEEK); in get_ack()
48 if (rep.nlh.nlmsg_type == NLMSG_ERROR) { in get_ack()
49 audit_get_reply(fd, &rep, GET_REPLY_BLOCKING, 0); in get_ack()
50 rc = ((struct nlmsgerr*)rep.data)->error; in get_ack()
152 struct audit_message rep; in audit_setup() local
181 audit_get_reply(fd, &rep, GET_REPLY_NONBLOCKING, 0); in audit_setup()
198 int audit_get_reply(int fd, struct audit_message* rep, reply_t block, int peek) { in audit_get_reply() argument
219 len = TEMP_FAILURE_RETRY(recvfrom(fd, rep, sizeof(*rep), flags, in audit_get_reply()
244 if (!NLMSG_OK(&rep->nlh, (size_t)len)) { in audit_get_reply()
[all …]
DLogAudit.cpp87 struct audit_message rep; in onDataAvailable() local
89 rep.nlh.nlmsg_type = 0; in onDataAvailable()
90 rep.nlh.nlmsg_len = 0; in onDataAvailable()
91 rep.data[0] = '\0'; in onDataAvailable()
93 if (audit_get_reply(cli->getSocket(), &rep, GET_REPLY_BLOCKING, 0) < 0) { in onDataAvailable()
98 logPrint("type=%d %.*s", rep.nlh.nlmsg_type, rep.nlh.nlmsg_len, rep.data); in onDataAvailable()
Dlibaudit.h78 extern int audit_get_reply(int fd, struct audit_message* rep, reply_t block,
/system/core/base/
Dproperties.cpp128 ts.tv_sec = std::min<std::chrono::seconds::rep>(s.count(), std::numeric_limits<time_t>::max()); in DurationToTimeSpec()