Searched refs:nread (Results 1 – 7 of 7) sorted by relevance
/base/startup/init/services/param/linux/ |
D | param_msgadp.c | 29 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 ((nread - curr < msg->msgSize) || in OnReceiveRequest() 38 (nread - curr < sizeof(ParamMessage)) || in OnReceiveRequest()
|
/base/startup/appspawn/standard/ |
D | main.c | 40 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/startup/init/test/unittest/loopevent/ |
D | loopserver_unittest.cpp | 51 static void DecodeMessage(const char *buffer, size_t nread, uint32_t &cmd) in DecodeMessage() argument 53 cJSON *root = cJSON_ParseWithLength(buffer, nread); in DecodeMessage() 94 static void TestOnReceiveRequest(const TaskHandle task, const uint8_t *buffer, uint32_t nread) in TestOnReceiveRequest() argument 102 DecodeMessage(reinterpret_cast<const char *>(buffer), nread, cmd); in TestOnReceiveRequest() 106 static void TestClientOnReceiveRequest(const TaskHandle task, const uint8_t *buffer, uint32_t nread) in TestClientOnReceiveRequest() argument 114 DecodeMessage(reinterpret_cast<const char *>(buffer), nread, cmd); in TestClientOnReceiveRequest()
|
D | loopevent_unittest.cpp | 53 static void OnReceiveRequest(const TaskHandle task, const uint8_t *buffer, uint32_t nread) in OnReceiveRequest() argument 57 UNUSED(nread); in OnReceiveRequest()
|
/base/hiviewdfx/faultloggerd/services/ |
D | fault_logger_daemon.cpp | 153 ssize_t nread = read(connectionFd, buf, sizeof(buf)); in HandleRequest() local 154 if (nread < 0) { in HandleRequest() 157 } else if (nread == 0) { in HandleRequest() 160 } else if (nread != static_cast<long>(sizeof(FaultLoggerdRequest))) { in HandleRequest() 307 int nread = read(connectionFd, buf, sizeof(buf) - 1); in HandlePrintTHilogClientRequest() local 308 if (nread < 0) { in HandlePrintTHilogClientRequest() 310 } else if (nread == 0) { in HandlePrintTHilogClientRequest()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/ |
D | faultloggerd_client.cpp | 92 ssize_t nread = read(sockfd, ControlBuffer, sizeof(ControlBuffer) - 1); in CheckReadResp() local 93 if (nread != static_cast<ssize_t>(strlen(FAULTLOGGER_DAEMON_RESP))) { in CheckReadResp() 94 DFXLOG_ERROR("nread: %d.", nread); in CheckReadResp()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/ |
D | dfx_dump_catcher.cpp | 327 ssize_t nread = read(fd, buffer, sizeof(buffer) - 1); in DoReadBuf() local 328 if (nread <= 0) { in DoReadBuf() 339 ssize_t nread = read(fd, &res, sizeof(res)); in DoReadRes() local 340 if (nread != sizeof(res)) { in DoReadRes()
|