Home
last modified time | relevance | path

Searched refs:NULL (Results 1 - 22 of 22) sorted by relevance

/commonlibrary/utils_lite/kal/timer/src/
H A Dkal.c54 if ((func == NULL) || ((type != KAL_TIMER_ONCE) && (type != KAL_TIMER_PERIODIC))) { in KalTimerCreate()
55 return NULL; in KalTimerCreate()
58 if (kalTimer == NULL) { in KalTimerCreate()
59 return NULL; in KalTimerCreate()
70 return NULL; in KalTimerCreate()
80 if (timerId == NULL) { in KalTimerStart()
89 int ret = timer_settime(tmpPtr->timerPtr, 0, &ts, NULL); in KalTimerStart()
101 if (timerId == NULL) { in KalTimerChange()
112 int ret = timer_settime(tmpPtr->timerPtr, 0, &ts, NULL); in KalTimerChange()
126 if (timerId == NULL) { in KalTimerStop()
[all...]
/commonlibrary/utils_lite/js/builtin/kvstorekit/src/
H A Dnativeapi_kv_impl.c35 if (value == NULL) { in IsValidValue()
47 if (dataPath == NULL) { in GetKvFolder()
66 if (realpath(originPath, trustPath) != NULL) { in GetRealPath()
102 if ((key == NULL) || (value == NULL)) { in GetValue()
106 if (resolvePath == NULL) { in GetValue()
115 resolvePath = NULL; in GetValue()
131 if ((key == NULL) || (!IsValidValue(value))) { in SetValue()
135 if (resolvePath == NULL) { in SetValue()
144 resolvePath = NULL; in SetValue()
[all...]
/commonlibrary/memory_utils/libpurgeablemem/c/src/
H A Dpurgeable_mem_builder_c.c17 #include <stddef.h> /* NULL */
41 IF_NULL_LOG_ACTION(func, "func is NULL", return NULL); in PurgMemBuilderCreate()
43 struct PurgMemBuilder *builder = NULL; in PurgMemBuilderCreate()
47 return NULL; in PurgMemBuilderCreate()
50 builder->nextBuilder = NULL; in PurgMemBuilderCreate()
58 IF_NULL_LOG_ACTION(builder, "builder is NULL", return true); in PurgMemBuilderDestroy()
61 struct PurgMemBuilder *next = NULL; in PurgMemBuilderDestroy()
67 /* set input para NULL to avoid UAF */ in PurgMemBuilderDestroy()
68 builder = NULL; in PurgMemBuilderDestroy()
[all...]
H A Dpurgeable_mem_c.c44 if (obj == NULL) { in LogPurgMemInfo()
45 PM_HILOG_ERROR_C(LOG_CORE, "%{public}s: obj is NULL!", __func__); in LogPurgMemInfo()
73 struct PurgMem *pugObj = NULL; in PurgMemCreate_()
77 return NULL; in PurgMemCreate_()
81 pugObj->dataPtr = mmap(NULL, size, PROT_READ | PROT_WRITE, type, -1, 0); in PurgMemCreate_()
84 pugObj->dataPtr = NULL; in PurgMemCreate_()
99 int lockInitRet = pthread_rwlock_init(&(pugObj->rwlock), NULL); in PurgMemCreate_()
116 pugObj->uxPageTable = NULL; in PurgMemCreate_()
119 pugObj->dataPtr = NULL; in PurgMemCreate_()
122 pugObj = NULL; in PurgMemCreate_()
[all...]
/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs_impl.c35 if (path == NULL) { in IsValidPath()
52 if (realpath(originPath, trustPath) != NULL) { in GetRealPath()
72 if (fileDir == NULL) { in RmdirRecursive()
78 if (fullPath == NULL) { in RmdirRecursive()
81 while (dir != NULL) { in RmdirRecursive()
118 if (fullPath == NULL) { in MakeParent()
128 if (sep != NULL) { in MakeParent()
157 if (firstPath == NULL) { in MkdirRecursive()
176 if (dataBuf == NULL) { in DoCopyFile()
193 if (!IsValidPath(path) || (buf == NULL)) { in StatImpl()
[all...]
/commonlibrary/utils_lite/timer_task/src/
H A Dnativeapi_timer_task.c29 if (userCallback == NULL || timerHandle == NULL) { in StartTimerTask()
35 if (timerId == NULL) { in StartTimerTask()
50 if (timerHandle == NULL) { in StopTimerTask()
/commonlibrary/memory_utils/libdmabufheap/test/unittest/libdmabufheap/
H A Ddmabuf_alloc_test.cpp95 void *ptr = mmap(NULL, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
96 ASSERT_TRUE(ptr != NULL); in HWTEST_F()
123 void *ptr = mmap(NULL, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
124 ASSERT_TRUE(ptr != NULL); in HWTEST_F()
136 ptr = mmap(NULL, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
137 ASSERT_TRUE(ptr != NULL); in HWTEST_F()
208 void *ptr = mmap(NULL, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
209 ASSERT_TRUE(ptr != NULL); in HWTEST_F()
234 void *ptr = mmap(NULL, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F()
235 ASSERT_TRUE(ptr != NULL); in HWTEST_F()
[all...]
/commonlibrary/ets_utils/platform/default/
H A Dutil_helper.cpp47 ucnv_setFromUCallBack(conv, UCNV_FROM_U_CALLBACK_SUBSTITUTE, NULL, NULL, NULL, &codeflag); in CreateConverter()
54 ucnv_setToUCallBack(conv, UCNV_TO_U_CALLBACK_SUBSTITUTE, NULL, NULL, NULL, &codeflag); in CreateConverter()
/commonlibrary/utils_lite/include/
H A Dutils_list.h129 #define UTILS_DL_LIST_IS_ON_QUEUE(node) ((node)->pstPrev != NULL && (node)->pstNext != NULL)
251 node->pstNext = NULL; in UtilsListDelete()
252 node->pstPrev = NULL; in UtilsListDelete()
583 __t = NULL; \
594 __t = NULL; \
606 __t = NULL; \
H A Dohos_types.h60 #ifndef NULL
62 #define NULL 0L macro
64 #define NULL ((void*)0) macro
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/
H A Dslots.rs22 const NULL: usize = usize::MAX; consts
94 self.entries.push(Entry::new(val, tail, NULL)); in push_back()
100 self.entries[key].next = NULL; in push_back()
134 entry.prev = NULL; in pop_front()
139 self.tail = NULL; in pop_front()
142 head.prev = NULL; in pop_front()
172 entry.prev = NULL; in remove()
229 head: NULL, in with_capacity()
230 tail: NULL, in with_capacity()
/commonlibrary/memory_utils/libpurgeablemem/common/src/
H A Dux_page_table_c.c16 #include <stddef.h> /* NULL */
153 void *dataPtr = mmap(NULL, dataSize, prot, type, -1, 0); in CheckUxpt()
162 void *ptes = mmap(NULL, uptSize, prot, type, -1, UxptePageNo((uint64_t)dataPtr) * PAGE_SIZE); in CheckUxpt()
173 ptes = NULL; in CheckUxpt()
178 dataPtr = NULL; in CheckUxpt()
199 if (upt == NULL) { in InitUxPageTable()
200 HILOG_ERROR(LOG_CORE, "%{public}s: upt is NULL!", __func__); in InitUxPageTable()
219 if (upt == NULL) { in DeinitUxPageTable()
220 HILOG_ERROR(LOG_CORE, "%{public}s: upt is NULL!", __func__); in DeinitUxPageTable()
231 upt->uxpte = NULL; in DeinitUxPageTable()
[all...]
/commonlibrary/memory_utils/libdmabufheap/src/
H A Ddmabuf_alloc.c35 if (heapName == NULL) { in IsHeapNameValid()
67 HILOG_ERROR(LOG_CORE, "heapName is wrong, name = %s.", (heapName == NULL) ? "NULL" : heapName); in DmabufHeapOpen()
91 if (buffer == NULL) { in DmabufHeapBufferAlloc()
92 HILOG_ERROR(LOG_CORE, "%{public}s: buffer is NULL!", __func__); in DmabufHeapBufferAlloc()
117 if (buffer == NULL) { in DmabufHeapBufferFree()
118 HILOG_ERROR(LOG_CORE, "%{public}s: buffer is NULL!", __func__); in DmabufHeapBufferFree()
/commonlibrary/utils_lite/file/src/file_impl_hal/
H A Dfile.c63 if ((src == NULL) || (dest == NULL)) { in UtilsFileCopy()
78 if (dataBuf == NULL) { in UtilsFileCopy()
/commonlibrary/ets_utils/platform/ohos/
H A Dutil_helper.cpp27 return NULL; in CreateConverter()
29 ucnv_setFromUCallBack(conv, UCNV_FROM_U_CALLBACK_SUBSTITUTE, NULL, NULL, NULL, &codeflag); in CreateConverter()
33 return NULL; in CreateConverter()
36 ucnv_setToUCallBack(conv, UCNV_TO_U_CALLBACK_SUBSTITUTE, NULL, NULL, NULL, &codeflag); in CreateConverter()
40 return NULL; in CreateConverter()
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_directory_test.cpp372 if (NULL != fp) { in HWTEST_F()
393 if (NULL != fp) { in HWTEST_F()
/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dworker.h70 napi_env env_ {NULL};
71 napi_ref callback_ {NULL};
/commonlibrary/ets_utils/platform/ios/
H A Dprocess_helper.cpp460 if (sysctl(mib, MIB_SIZE, &boottime, &size, NULL, 0) != -1 && boottime.tv_sec != 0) { in GetSysTimer()
487 int ret = sysctl(mib, sizeof(mib)/sizeof(*mib), &info, &size, NULL, 0); in GetProcessStartRealtime()
/commonlibrary/c_utils/base/src/
H A Dashmem.cpp145 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_GET_SIZE, NULL)); in AshmemGetSize()
/commonlibrary/rust/ylong_json/src/value/
H A Dindex.rs16 /// Static NULL, which is returned if the searched key-value pair does not exist.
17 static NULL: JsonValue = JsonValue::Null; consts
68 &NULL
175 return object.get(self).unwrap_or(&NULL); in index_into()
177 &NULL
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dtaskpool.cpp45 napi_create_function(env, "isCanceled", NAPI_AUTO_LENGTH, Task::IsCanceled, NULL, &isCanceledFunc); in InitTaskPool()
48 napi_create_function(env, "sendData", NAPI_AUTO_LENGTH, Task::SendData, NULL, &sendDataFunc); in InitTaskPool()
/commonlibrary/ets_utils/js_api_module/buffer/test/
H A Dtest_napi.cpp651 buf1->ReadBytesForArrayBuffer(NULL, 0); in HWTEST_F()

Completed in 14 milliseconds