Home
last modified time | relevance | path

Searched refs:nread (Results 1 – 7 of 7) sorted by relevance

/base/startup/init/services/param/linux/
Dparam_msgadp.c29 static void OnReceiveRequest(const TaskHandle task, const uint8_t *buffer, uint32_t nread) in OnReceiveRequest() argument
31 if (nread == 0 || buffer == NULL || g_recvMessage == NULL) { in OnReceiveRequest()
35 while (curr < nread) { in OnReceiveRequest()
37 if (((msg->msgSize + curr) > nread) in OnReceiveRequest()
38 || ((sizeof(ParamMessage) + curr) > nread) in OnReceiveRequest()
/base/startup/appspawn/standard/
Dmain.c40 ssize_t nread = readlink("/proc/self/exe", buf, sizeof(buf) - 1); in CheckPreload() local
41 APPSPAWN_CHECK(nread != -1, return, "readlink fail: /proc/self/exe: %{public}d", errno); in CheckPreload()
42 buf[nread] = 0; in CheckPreload()
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_elf.cpp89 ssize_t nread = read(fd_, &(header_), sizeof(header_)); in ParseElfHeader() local
90 if (nread < 0 || nread != static_cast<long>(sizeof(header_))) { in ParseElfHeader()
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_daemon.cpp206 int nread = read(connectionFd, buf, sizeof(buf) - 1); in HandlePrintTHilogClientRequest() local
207 if (nread < 0) { in HandlePrintTHilogClientRequest()
209 } else if (nread == 0) { in HandlePrintTHilogClientRequest()
368 ssize_t nread = read(connectionFd, buf, sizeof(buf)); in HandleRequest() local
369 if (nread < 0) { in HandleRequest()
372 } else if (nread == 0) { in HandleRequest()
375 } else if (nread != static_cast<long>(sizeof(FaultLoggerdRequest))) { in HandleRequest()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/
Dfaultloggerd_client.cpp205 int nread = read(sockfd, ControlBuffer, sizeof(ControlBuffer) - 1); in SendRequestToServer() local
206 if (nread != (ssize_t)strlen(FAULTLOGGER_DAEMON_RESP)) { in SendRequestToServer()
207 DfxLogError("nread: %d.", nread); in SendRequestToServer()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/
Ddfx_dump_catcher.cpp456 ssize_t nread = read(fd, buffer, sizeof(buffer) - 1); in DoReadBuf() local
457 if (nread <= 0) { in DoReadBuf()
468 ssize_t nread = read(fd, &dumpRes, sizeof(struct DumpResMsg)); in DoReadRes() local
469 if (nread != sizeof(struct DumpResMsg)) { in DoReadRes()
/base/startup/init/test/unittest/init/
Dloopevent_unittest.cpp56 static void OnReceiveRequest(const TaskHandle task, const uint8_t *buffer, uint32_t nread) in OnReceiveRequest() argument
60 UNUSED(nread); in OnReceiveRequest()