Home
last modified time | relevance | path

Searched refs:LE_CHECK (Results 1 – 10 of 10) sorted by relevance

/base/startup/init/services/loopevent/socket/
Dle_socket.c34 LE_CHECK(listenfd > 0, return listenfd, "Failed to create socket errno %d", errno); in CreatePipeServerSocket_()
39 LE_CHECK(ret == 0, close(listenfd); in CreatePipeServerSocket_()
43 LE_CHECK(ret == 0, close(listenfd); in CreatePipeServerSocket_()
47 LE_CHECK(ret >= 0, close(listenfd); in CreatePipeServerSocket_()
52 LE_CHECK(ret >= 0, close(listenfd); in CreatePipeServerSocket_()
55 LE_CHECK(ret == 0, return -1, "Failed to chmod %s, err %d. ", server, errno); in CreatePipeServerSocket_()
63 LE_CHECK(fd > 0, return fd, "Failed to create socket"); in CreatePipeSocket_()
68 LE_CHECK(ret == 0, return ret, "Failed to set socket option"); in CreatePipeSocket_()
72 LE_CHECK(ret == 0, close(fd); in CreatePipeSocket_()
76 LE_CHECK(ret == 0, close(fd); in CreatePipeSocket_()
[all …]
/base/startup/init/services/loopevent/signal/
Dle_signal.c34 LE_CHECK(s == sizeof(fdsi), return LE_FAILURE, "Failed to read sign %d %d", s, errno); in HandleSignalEvent_()
52LE_CHECK(loopHandle != NULL && signalHandle != NULL, return LE_INVALID_PARAM, "Invalid parameters"… in LE_CreateSignalTask()
53 LE_CHECK(processSignal != NULL, return LE_FAILURE, "Invalid parameters processSignal"); in LE_CreateSignalTask()
57 LE_CHECK(sfd > 0, return -1, "Failed to create signal fd"); in LE_CreateSignalTask()
60 LE_CHECK(task != NULL, return LE_NO_MEMORY, "Failed to create task"); in LE_CreateSignalTask()
72LE_CHECK(loopHandle != NULL && signalHandle != NULL, return LE_INVALID_PARAM, "Invalid parameters"… in LE_AddSignal()
82 LE_CHECK(sfd > 0, return -1, "Failed to create signal fd"); in LE_AddSignal()
94LE_CHECK(loopHandle != NULL && signalHandle != NULL, return LE_INVALID_PARAM, "Invalid parameters"… in LE_RemoveSignal()
104 LE_CHECK(sfd > 0, return -1, "Failed to create signal fd"); in LE_RemoveSignal()
113 LE_CHECK(loopHandle != NULL && signalHandle != NULL, return, "Invalid parameters"); in LE_CloseSignalTask()
/base/startup/init/services/loopevent/timer/
Dle_timer.c37 LE_CHECK(ret == 0, return LE_FAILURE, "Failed to set timer %d", errno); in SetTimer_()
77 LE_CHECK(loopHandle != NULL && timer != NULL, return LE_INVALID_PARAM, "Invalid parameters"); in LE_CreateTimer()
78 LE_CHECK(processTimer != NULL, return LE_FAILURE, "Invalid parameters processTimer"); in LE_CreateTimer()
84 LE_CHECK(fd >= 0, return LE_FAILURE, "Failed to create timer"); in LE_CreateTimer()
87 LE_CHECK(task != NULL, close(fd); in LE_CreateTimer()
100 LE_CHECK(loopHandle != NULL && timer != NULL, return LE_INVALID_PARAM, "Invalid parameters"); in LE_StartTimer()
106 LE_CHECK(ret == 0, return LE_FAILURE, "Failed to set timer"); in LE_StartTimer()
108 LE_CHECK(ret == 0, return LE_FAILURE, "Failed to add event"); in LE_StartTimer()
114 LE_CHECK(loopHandle != NULL && timer != NULL, return, "Invalid parameters"); in LE_StopTimer()
/base/startup/init/services/loopevent/loop/
Dle_epoll.c38 LE_CHECK(loop != NULL, return LE_FAILURE, "Invalid loop"); in Close_()
49 LE_CHECK(loop != NULL, return LE_FAILURE, "Invalid loop"); in AddEvent_()
58 LE_CHECK(ret == 0, return LE_FAILURE, "Failed to add epoll_ctl %d ret %d", fd, errno); in AddEvent_()
65 LE_CHECK(loop != NULL, return LE_FAILURE, "Invalid loop"); in ModEvent_()
74 LE_CHECK(ret == 0, return LE_FAILURE, "Failed to mod epoll_ctl %d ret %d", fd, errno); in ModEvent_()
80 LE_CHECK(loop != NULL, return LE_FAILURE, "Invalid loop"); in DelEvent_()
93 LE_CHECK(loop != NULL, return LE_FAILURE, "Invalid loop"); in RunLoop_()
125 LE_CHECK(loop != NULL, return LE_FAILURE, "Invalid loop"); in CreateEpollLoop()
127 LE_CHECK(epoll != NULL, return LE_FAILURE, "Failed to alloc memory for epoll"); in CreateEpollLoop()
129 LE_CHECK(epoll->epollFd >= 0, free(epoll); in CreateEpollLoop()
Dle_loop.c57 LE_CHECK(ret == LE_SUCCESS, return ret, "Failed to create epoll loop"); in CreateLoop_()
156 LE_CHECK(handle != NULL, return, "Invalid handle"); in LE_RunLoop()
163 LE_CHECK(loopHandle != NULL, return, "Invalid handle"); in LE_CloseLoop()
172 LE_CHECK(handle != NULL, return, "Invalid handle"); in LE_StopLoop()
/base/startup/init/services/loopevent/task/
Dle_streamtask.c160LE_CHECK(loopHandle != NULL && taskHandle != NULL && info != NULL, return LE_INVALID_PARAM, "Inval… in LE_CreateStreamServer()
161 LE_CHECK(info->server != NULL, return LE_INVALID_PARAM, "Invalid parameters server"); in LE_CreateStreamServer()
162 LE_CHECK(info->incommingConnect != NULL, return LE_INVALID_PARAM, in LE_CreateStreamServer()
168 LE_CHECK(fd > 0, return LE_FAILURE, "Failed to create socket %s", info->server); in LE_CreateStreamServer()
174 LE_CHECK(task != NULL, close(fd); in LE_CreateStreamServer()
181 LE_CHECK(ret == 0, return LE_FAILURE, "Failed to copy server name %s", info->server); in LE_CreateStreamServer()
189LE_CHECK(loopHandle != NULL && taskHandle != NULL && info != NULL, return LE_INVALID_PARAM, "Inval… in LE_CreateStreamClient()
190LE_CHECK(info->recvMessage != NULL, return LE_FAILURE, "Invalid parameters recvMessage %s", info->… in LE_CreateStreamClient()
193 LE_CHECK(fd > 0, return LE_FAILURE, "Failed to create socket %s", info->server); in LE_CreateStreamClient()
196 LE_CHECK(task != NULL, close(fd); in LE_CreateStreamClient()
[all …]
Dle_asynctask.c26 LE_CHECK(loopHandle != NULL && asyncTask != NULL, return, "Invalid parameters"); in DoAsyncEvent_()
100LE_CHECK(loopHandle != NULL && taskHandle != NULL, return LE_INVALID_PARAM, "Invalid parameters"); in LE_CreateAsyncTask()
101LE_CHECK(processAsyncEvent != NULL, return LE_INVALID_PARAM, "Invalid parameters processAsyncEvent… in LE_CreateAsyncTask()
104 LE_CHECK(fd > 0, return LE_FAILURE, "Failed to event fd "); in LE_CreateAsyncTask()
107 LE_CHECK(task != NULL, close(fd); in LE_CreateAsyncTask()
124LE_CHECK(loopHandle != NULL && taskHandle != NULL, return LE_INVALID_PARAM, "Invalid parameters"); in LE_StartAsyncEvent()
128 LE_CHECK(ret == 0, return -1, "Failed to copy data"); in LE_StartAsyncEvent()
131 LE_CHECK(ret == 0, return -1, "Failed to copy data"); in LE_StartAsyncEvent()
139 LE_CHECK(loopHandle != NULL && taskHandle != NULL, return, "Invalid parameters"); in LE_StopAsyncTask()
Dle_task.c42 LE_CHECK(task != NULL, return NULL, "Failed to alloc for task"); in CreateTask()
48 LE_CHECK(ret == LE_SUCCESS, free(task); in CreateTask()
59 LE_CHECK(loopHandle != NULL && task != NULL, return, "Invalid parameters"); in CloseTask()
78 LE_CHECK((buffer = (LE_Buffer *)malloc(sizeof(LE_Buffer) + bufferSize)) != NULL, in CreateBuffer()
132 LE_CHECK(buffer != NULL, return, "Invalid buffer"); in FreeBuffer()
159 LE_CHECK(buffer != NULL, return NULL, "Invalid buffer"); in LE_GetBufferInfo()
190 LE_CHECK(loopHandle != NULL && taskHandle != NULL, return, "Invalid parameters"); in LE_CloseTask()
201 LE_CHECK(handle != NULL, return NULL, "Invalid handle"); in LE_GetUserData()
208 LE_CHECK(handle != NULL, return 0, "Invalid handle"); in LE_GetSendResult()
Dle_watchtask.c55LE_CHECK(loopHandle != NULL && watcherHandle != NULL, return LE_INVALID_PARAM, "Invalid parameters… in LE_StartWatcher()
56LE_CHECK(info != NULL && info->processEvent != NULL, return LE_INVALID_PARAM, "Invuint64_talid pro… in LE_StartWatcher()
60 LE_CHECK(task != NULL, return LE_NO_MEMORY, "Failed to create task"); in LE_StartWatcher()
75 LE_CHECK(loopHandle != NULL && watcherHandle != NULL, return, "Invalid parameters"); in LE_RemoveWatcher()
/base/startup/init/services/loopevent/utils/
Dle_utils.h38 #define LE_CHECK(ret, exper, ...) … macro