Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 108) sorted by relevance

12345

/AliOS-Things-master/components/SDL2/src/filesystem/unix/
A DSDL_sysfilesystem.c51 char *retval = NULL; in readSymLink() local
63 retval = ptr; in readSymLink()
76 SDL_free(retval); in readSymLink()
84 char *retval = NULL; in SDL_GetBasePath() local
92 if (!retval) { in SDL_GetBasePath()
110 if (retval) in SDL_GetBasePath()
120 if (!retval) { in SDL_GetBasePath()
168 char *ptr = (char *) SDL_realloc(retval, strlen(retval) + 1); in SDL_GetBasePath()
173 return retval; in SDL_GetBasePath()
219 if (!retval) { in SDL_GetPrefPath()
[all …]
/AliOS-Things-master/components/freetype/src/type1/
A Dt1driver.c181 FT_Long retval = -1; in t1_ps_get_font_value() local
190 if ( value && value_len >= retval ) in t1_ps_get_font_value()
201 retval = sizeof ( val ); in t1_ps_get_font_value()
231 retval = sizeof ( val ); in t1_ps_get_font_value()
256 if ( value && value_len >= retval ) in t1_ps_get_font_value()
262 if ( value && value_len >= retval ) in t1_ps_get_font_value()
268 if ( value && value_len >= retval ) in t1_ps_get_font_value()
274 if ( value && value_len >= retval ) in t1_ps_get_font_value()
297 retval - 1 ); in t1_ps_get_font_value()
317 retval - 1 ); in t1_ps_get_font_value()
[all …]
/AliOS-Things-master/components/SDL2/src/thread/pthread/
A DSDL_syssem.c73 int retval; in SDL_SemTryWait() local
80 retval = 0; in SDL_SemTryWait()
82 return retval; in SDL_SemTryWait()
88 int retval; in SDL_SemWait() local
98 if (retval < 0) { in SDL_SemWait()
101 return retval; in SDL_SemWait()
107 int retval; in SDL_SemWaitTimeout() local
159 if (retval < 0) { in SDL_SemWaitTimeout()
176 return retval; in SDL_SemWaitTimeout()
195 int retval; in SDL_SemPost() local
[all …]
A DSDL_syscond.c68 int retval; in SDL_CondSignal() local
74 retval = 0; in SDL_CondSignal()
78 return retval; in SDL_CondSignal()
85 int retval; in SDL_CondBroadcast() local
91 retval = 0; in SDL_CondBroadcast()
95 return retval; in SDL_CondBroadcast()
101 int retval; in SDL_CondWaitTimeout() local
129 switch (retval) { in SDL_CondWaitTimeout()
134 retval = SDL_MUTEX_TIMEDOUT; in SDL_CondWaitTimeout()
139 retval = SDL_SetError("pthread_cond_timedwait() failed"); in SDL_CondWaitTimeout()
[all …]
A DSDL_sysmutex.c118 int retval; in SDL_TryLockMutex() local
128 retval = 0; in SDL_TryLockMutex()
143 retval = SDL_MUTEX_TIMEDOUT; in SDL_TryLockMutex()
145 retval = SDL_SetError("pthread_mutex_trylock() failed"); in SDL_TryLockMutex()
152 retval = SDL_MUTEX_TIMEDOUT; in SDL_TryLockMutex()
154 retval = SDL_SetError("pthread_mutex_trylock() failed"); in SDL_TryLockMutex()
158 return retval; in SDL_TryLockMutex()
/AliOS-Things-master/components/SDL2/src/filesystem/emscripten/
A DSDL_sysfilesystem.c38 char *retval = "/"; in SDL_GetBasePath() local
39 return SDL_strdup(retval); in SDL_GetBasePath()
46 char *retval; in SDL_GetPrefPath() local
58 retval = (char *) SDL_malloc(len); in SDL_GetPrefPath()
59 if (!retval) { in SDL_GetPrefPath()
65 SDL_snprintf(retval, len, "%s%s/%s/", append, org, app); in SDL_GetPrefPath()
67 SDL_snprintf(retval, len, "%s%s/", append, app); in SDL_GetPrefPath()
70 if (mkdir(retval, 0700) != 0 && errno != EEXIST) { in SDL_GetPrefPath()
71 SDL_SetError("Couldn't create directory '%s': '%s'", retval, strerror(errno)); in SDL_GetPrefPath()
72 SDL_free(retval); in SDL_GetPrefPath()
[all …]
/AliOS-Things-master/components/SDL2/src/filesystem/haiku/
A DSDL_sysfilesystem.cc60 char *retval = (char *) SDL_malloc(len + 2); in SDL_GetBasePath() local
61 if (!retval) { in SDL_GetBasePath()
66 SDL_memcpy(retval, str, len); in SDL_GetBasePath()
67 retval[len] = '/'; in SDL_GetBasePath()
68 retval[len+1] = '\0'; in SDL_GetBasePath()
69 return retval; in SDL_GetBasePath()
93 char *retval = (char *) SDL_malloc(len); in SDL_GetPrefPath() local
94 if (!retval) { in SDL_GetPrefPath()
100 SDL_snprintf(retval, len, "%s%s%s/", home, append, app); in SDL_GetPrefPath()
102 create_directory(retval, 0700); // Haiku api: creates missing dirs in SDL_GetPrefPath()
[all …]
/AliOS-Things-master/components/SDL2/src/core/linux/
A DSDL_dbus.c99 int retval = 0; in LoadDBUSLibrary() local
113 return retval; in LoadDBUSLibrary()
227 return retval; in SDL_DBus_CallMethodInternal()
233 SDL_bool retval; in SDL_DBus_CallMethodOnConnection() local
238 return retval; in SDL_DBus_CallMethodOnConnection()
244 SDL_bool retval; in SDL_DBus_CallMethod() local
249 return retval; in SDL_DBus_CallMethod()
272 return retval; in SDL_DBus_CallVoidMethodInternal()
283 return retval; in SDL_DBus_CallVoidMethodOnConnection()
294 return retval; in SDL_DBus_CallVoidMethod()
[all …]
/AliOS-Things-master/components/SDL2/src/video/directfb/
A DSDL_DirectFB_dyn.c51 int retval = 0; in SDL_DirectFB_LoadLibrary() local
56 retval = 1; in SDL_DirectFB_LoadLibrary()
57 …e, args, al, func) if (!(SDL_DirectFB_Symbols.name = SDL_LoadFunction(handle, # name))) retval = 0; in SDL_DirectFB_LoadLibrary()
63 retval = 0; in SDL_DirectFB_LoadLibrary()
67 retval = 0; in SDL_DirectFB_LoadLibrary()
71 retval = 0; in SDL_DirectFB_LoadLibrary()
74 if (retval) { in SDL_DirectFB_LoadLibrary()
87 retval = 0; in SDL_DirectFB_LoadLibrary()
90 if (!retval) in SDL_DirectFB_LoadLibrary()
92 return retval; in SDL_DirectFB_LoadLibrary()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/enc/
A Dbackward_references_enc.h47 PixOrCopy retval; in PixOrCopyCreateCopy() local
48 retval.mode = kCopy; in PixOrCopyCreateCopy()
50 retval.len = len; in PixOrCopyCreateCopy()
51 return retval; in PixOrCopyCreateCopy()
55 PixOrCopy retval; in PixOrCopyCreateCacheIdx() local
60 retval.len = 1; in PixOrCopyCreateCacheIdx()
61 return retval; in PixOrCopyCreateCacheIdx()
65 PixOrCopy retval; in PixOrCopyCreateLiteral() local
66 retval.mode = kLiteral; in PixOrCopyCreateLiteral()
68 retval.len = 1; in PixOrCopyCreateLiteral()
[all …]
/AliOS-Things-master/components/sensor/drv/
A Ddrv_mag_bosch_bmm150.c265 int16_t retval; in drv_mag_bosch_bmm150_compensate_x() local
291 process_comp_x3 = (((int32_t)retval) * ((int32_t)retval)); in drv_mag_bosch_bmm150_compensate_x()
300 retval = (retval + (((int16_t)g_bmm150_trim_reg.dig_x1) * 8)) / 16; in drv_mag_bosch_bmm150_compensate_x()
308 return retval; in drv_mag_bosch_bmm150_compensate_x()
314 int16_t retval; in drv_mag_bosch_bmm150_compensate_y() local
339 process_comp_y3 = ((int32_t) retval) * ((int32_t)retval); in drv_mag_bosch_bmm150_compensate_y()
347 retval = (retval + (((int16_t)g_bmm150_trim_reg.dig_y1) * 8)) / 16; in drv_mag_bosch_bmm150_compensate_y()
356 return retval; in drv_mag_bosch_bmm150_compensate_y()
365 int32_t retval; in drv_mag_bosch_bmm150_compensate_z() local
391 retval = retval / 16; in drv_mag_bosch_bmm150_compensate_z()
[all …]
/AliOS-Things-master/components/SDL2/src/thread/generic/
A DSDL_syssem.c132 int retval; in SDL_SemTryWait() local
138 retval = SDL_MUTEX_TIMEDOUT; in SDL_SemTryWait()
142 retval = 0; in SDL_SemTryWait()
146 return retval; in SDL_SemTryWait()
152 int retval; in SDL_SemWaitTimeout() local
165 retval = 0; in SDL_SemWaitTimeout()
166 while ((sem->count == 0) && (retval != SDL_MUTEX_TIMEDOUT)) { in SDL_SemWaitTimeout()
167 retval = SDL_CondWaitTimeout(sem->count_nonzero, in SDL_SemWaitTimeout()
171 if (retval == 0) { in SDL_SemWaitTimeout()
176 return retval; in SDL_SemWaitTimeout()
A DSDL_sysmutex.c108 int retval = 0; in SDL_TryLockMutex()
123 retval = SDL_SemWait(mutex->sem); in SDL_TryLockMutex()
124 if (retval == 0) { in SDL_TryLockMutex()
130 return retval; in SDL_TryLockMutex()
A DSDL_syscond.c162 int retval; in SDL_CondWaitTimeout() local
181 retval = SDL_SemWait(cond->wait_sem); in SDL_CondWaitTimeout()
183 retval = SDL_SemWaitTimeout(cond->wait_sem, ms); in SDL_CondWaitTimeout()
195 if (retval > 0) { in SDL_CondWaitTimeout()
210 return retval; in SDL_CondWaitTimeout()
/AliOS-Things-master/components/SDL2/src/audio/
A DSDL_audiocvt.c658 return retval; in SDL_BuildAudioTypeCVTToFloat()
703 return retval; in SDL_BuildAudioTypeCVTFromFloat()
1243 int retval; in SDL_ResampleAudioStream() local
1251 return retval; in SDL_ResampleAudioStream()
1278 SDL_AudioStream *retval; in SDL_NewAudioStream() local
1281 if (!retval) { in SDL_NewAudioStream()
1303retval->resampler_padding_samples = ResamplerPadding(retval->src_rate, retval->dst_rate) * pre_res… in SDL_NewAudioStream()
1312retval->staging_buffer_size = ((retval->resampler_padding_samples / retval->pre_resample_channels)… in SDL_NewAudioStream()
1314 retval->staging_buffer = (Uint8 *) SDL_malloc(retval->staging_buffer_size); in SDL_NewAudioStream()
1369 if (!retval->queue) { in SDL_NewAudioStream()
[all …]
/AliOS-Things-master/components/SDL2/src/dynapi/
A DSDL_dynapi.c84 return retval; \
90 return retval; \
223 void *retval = NULL; in get_sdlapi_entry() local
226 if (retval == NULL) { in get_sdlapi_entry()
230 return retval; in get_sdlapi_entry()
238 void *retval = NULL; in get_sdlapi_entry() local
240 retval = dlsym(lib, sym); in get_sdlapi_entry()
241 if (retval == NULL) { in get_sdlapi_entry()
245 return retval; in get_sdlapi_entry()
252 PFN retval = NULL; in get_sdlapi_entry() local
[all …]
/AliOS-Things-master/components/SDL2/src/filesystem/cocoa/
A DSDL_sysfilesystem.m43 char *retval = NULL;
59 retval = (char *) SDL_malloc(len);
60 if (retval == NULL) {
63 SDL_snprintf(retval, len, "%s/", base);
67 return retval;
82 char *retval = NULL;
110 retval = (char *) SDL_malloc(len);
111 if (retval == NULL) {
123 mkdir(retval, 0700);
127 mkdir(retval, 0700);
[all …]
/AliOS-Things-master/components/posix/example/
A Dpthread_example.c37 int *retval; in pthread_example() local
54 ret = pthread_join(new_thread, (void **)&retval); in pthread_example()
58 printf("retval:%p, &ret_value:%p\n", retval, &ret_value); in pthread_example()
59 printf("New thread:0x%x exited with vaule: %d\n", new_thread, *retval); in pthread_example()
61 if ((*retval == 100) && (count == 11)) { in pthread_example()
/AliOS-Things-master/components/SDL2/src/render/
A DSDL_render.c211 int retval; in FlushRenderCommands() local
307 retval = SDL_calloc(1, sizeof (*retval)); in AllocateRenderCommand()
2104 int retval; in SDL_RenderSetViewport() local
2139 int retval; in SDL_RenderSetClipRect() local
2258 int retval; in SDL_RenderClear() local
2319 int retval; in SDL_RenderDrawPoints() local
2389 int retval; in SDL_RenderDrawPointsF() local
2564 int retval; in SDL_RenderDrawLines() local
2607 int retval; in SDL_RenderDrawLinesF() local
2801 int retval; in SDL_RenderFillRects() local
[all …]
/AliOS-Things-master/components/SDL2/src/locale/
A DSDL_locale.c34 SDL_Locale *retval; in build_locales_from_csv_string() local
51 loc = retval = (SDL_Locale *) SDL_calloc(1, alloclen); in build_locales_from_csv_string()
52 if (!retval) { in build_locales_from_csv_string()
56 ptr = (char *) (retval + num_locales); in build_locales_from_csv_string()
85 return retval; in build_locales_from_csv_string()
/AliOS-Things-master/components/SDL2/src/thread/windows/
A DSDL_syssem.c81 int retval; in SDL_SemWaitTimeout() local
96 retval = 0; in SDL_SemWaitTimeout()
99 retval = SDL_MUTEX_TIMEDOUT; in SDL_SemWaitTimeout()
102 retval = SDL_SetError("WaitForSingleObject() failed"); in SDL_SemWaitTimeout()
105 return retval; in SDL_SemWaitTimeout()
/AliOS-Things-master/components/SDL2/src/filesystem/windows/
A DSDL_sysfilesystem.c44 char *retval = NULL; in SDL_GetBasePath() local
97 retval = WIN_StringToUTF8(path); in SDL_GetBasePath()
100 return retval; in SDL_GetBasePath()
115 char *retval = NULL; in SDL_GetPrefPath() local
185 retval = WIN_StringToUTF8(path); in SDL_GetPrefPath()
187 return retval; in SDL_GetPrefPath()
/AliOS-Things-master/components/SDL2/test/
A Dtestloadso.c27 int retval = 0; in main() local
60 retval = 3; in main()
66 retval = 4; in main()
81 return retval; in main()
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/snmp/
A Dsnmp_threadsync.c58 …call_data->retval.s16 = call_data->proxy_instance.get_value(&call_data->proxy_instance, call_data-… in threadsync_get_value_synced()
71 return call_data->retval.s16; in threadsync_get_value()
79 …call_data->retval.err = call_data->proxy_instance.set_test(&call_data->proxy_instance, call_data->… in threadsync_set_test_synced()
93 return call_data->retval.err; in threadsync_set_test()
101 …call_data->retval.err = call_data->proxy_instance.set_value(&call_data->proxy_instance, call_data-… in threadsync_set_value_synced()
115 return call_data->retval.err; in threadsync_set_value()
144 …call_data->retval.err = leaf->get_instance(call_data->arg1.root_oid, call_data->arg2.root_oid_len,… in get_instance_synced()
155 …call_data->retval.err = leaf->get_next_instance(call_data->arg1.root_oid, call_data->arg2.root_oid… in get_next_instance_synced()
183 if (call_data->retval.err == SNMP_ERR_NOERROR) { in do_sync()
193 return call_data->retval.err; in do_sync()
/AliOS-Things-master/components/SDL2/src/video/android/
A DSDL_androidwindow.c43 int retval = 0; in Android_CreateWindow() local
48 retval = SDL_SetError("Android only supports one window"); in Android_CreateWindow()
70 retval = SDL_OutOfMemory(); in Android_CreateWindow()
78 retval = SDL_SetError("Could not fetch native window"); in Android_CreateWindow()
90 retval = -1; in Android_CreateWindow()
102 return retval; in Android_CreateWindow()

Completed in 40 milliseconds

12345