/AliOS-Things-master/components/mbedtls/programs/ssl/ |
A D | ssl_fork_server.c | 114 int ret = 1, len, cnt = 0, pid; in main() local 257 pid = fork(); in main() 259 if( pid < 0 ) in main() 265 if( pid != 0 ) in main() 282 pid = getpid(); in main() 296 pid, ret ); in main() 304 pid, ret ); in main() 310 mbedtls_printf( "pid %d: SSL setup ok\n", pid ); in main() 324 pid, ret ); in main() 329 mbedtls_printf( "pid %d: SSL handshake ok\n", pid ); in main() [all …]
|
/AliOS-Things-master/components/posix/src/ |
A D | sched.c | 17 static inline pthread_t _pid_to_pthread(pid_t pid) in _pid_to_pthread() argument 19 if (pid == -1) { in _pid_to_pthread() 24 return (pthread_t)(uintptr_t)pid; in _pid_to_pthread() 28 static inline pthread_tcb_t* sched_get_ptcb(pid_t pid) in sched_get_ptcb() argument 32 thread = _pid_to_pthread(pid); in sched_get_ptcb() 54 ptcb = sched_get_ptcb(pid); in sched_setscheduler() 95 int sched_getscheduler(pid_t pid) in sched_getscheduler() argument 101 ptcb = sched_get_ptcb(pid); in sched_getscheduler() 124 ptcb = sched_get_ptcb(pid); in sched_setparam() 173 ptcb = sched_get_ptcb(pid); in sched_getparam() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/ |
A D | utils.c | 799 int fd, pid, n; 851 n = read(fd, &pid, sizeof(pid)); 863 pid = atoi(lock_buffer); 865 if (pid == getpid()) 867 if (pid == 0 868 || (kill(pid, 0) == -1 && errno == ESRCH)) { 884 pid = getpid(); 889 write(fd, &pid, sizeof (pid)); 907 relock(pid) 908 int pid; [all …]
|
A D | multilink.c | 73 static int owns_unit (TDB_DATA pid, int unit); 127 TDB_DATA key, pid, rec; in mp_join_bundle() local 213 pid = tdb_fetch(pppdb, key); in mp_join_bundle() 214 if (pid.dptr != NULL) { in mp_join_bundle() 216 rec = tdb_fetch(pppdb, pid); in mp_join_bundle() 225 || !owns_unit(pid, unit)) in mp_join_bundle() 229 free(pid.dptr); in mp_join_bundle() 266 int pid; in sendhup() local 268 if (parse_num(str, "PPPD_PID=", &pid) && pid != getpid()) { in sendhup() 270 dbglog("sending SIGHUP to process %d", pid); in sendhup() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/tests/ |
A D | test_std.js | 228 var ret, fds, pid, f, status; 237 pid = os.exec(["sh", "-c", "echo $FOO"], { 242 assert(pid >= 0); 248 [ret, status] = os.waitpid(pid, 0); 249 assert(ret, pid); 253 pid = os.exec(["cat"], { block: false } ); 254 assert(pid >= 0); 255 os.kill(pid, os.SIGQUIT); 256 [ret, status] = os.waitpid(pid, 0); 257 assert(ret, pid);
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_crypto.c | 40 sprintf(static_str, "%08x,%s,%s", p_genie_triple->pid, mac_str, key_str); in genie_crypto_get_auth() 42 sprintf(static_str, "%08x,%s,%s,%s", p_genie_triple->pid, mac_str, key_str, rad_str); in genie_crypto_get_auth() 119 sprintf(static_str + 16, ",%08x,%s,%s", p_genie_triple->pid, mac_str, key_str); in genie_ais_get_cipher() 171 memcpy(ad_structure + GENIE_TRIPLE_PID_SIZE, &p_genie_triple->pid, GENIE_TRIPLE_PID_SIZE); in genie_crypto_adv_create()
|
A D | genie_cli.c | 40 ret = genie_triple_read(&genie_triple.pid, genie_triple.mac, genie_triple.key); in _get_triple() 47 printk("%d ", (unsigned int)genie_triple.pid); in _get_triple() 64 uint32_t pid; in genie_cli_set_triple() local 76 pid = atol(argv[1]); in genie_cli_set_triple() 77 if (pid == 0) in genie_cli_set_triple() 119 printk("step1: triple : %d\t", pid); in genie_cli_set_triple() 134 ret = genie_triple_write(&pid, mac, key); in genie_cli_set_triple()
|
A D | genie_triple.c | 117 uint32_t pid; in genie_triple_read() local 125 ret = aos_kv_get("pid", &pid, &pid_len); in genie_triple_read() 149 memcpy(p_pid, &pid, GENIE_TRIPLE_PID_SIZE); in genie_triple_read() 172 ret = genie_triple_read(&genie_triple.pid, genie_triple.mac, genie_triple.key); in genie_triple_init()
|
/AliOS-Things-master/components/posix/include/ |
A D | sched.h | 29 int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param); 32 int sched_rr_get_interval(pid_t pid, struct timespec *interval);
|
/AliOS-Things-master/components/ble_host/bt_host/ali_vendormodel_profile/ |
A D | ali_vendormodel_profile.h | 21 void bt_mesh_profile_calculate_digest(const uint8_t *digest, const uint8_t *pid, 38 void bt_mesh_profile_construct_uuid(char *uuid, const uint8_t *pid,
|
A D | ali_vendormodel_profile.c | 358 void bt_mesh_profile_calculate_digest(const uint8_t *digest, const uint8_t *pid, in bt_mesh_profile_calculate_digest() argument 366 hextostring(pid, pid_string, PID_STRING_LEN); in bt_mesh_profile_calculate_digest() 406 void bt_mesh_profile_construct_uuid(char *dev_uuid, const uint8_t *pid, in bt_mesh_profile_construct_uuid() argument 425 dev_uuid[3 + i] = pid[3 - i]; in bt_mesh_profile_construct_uuid() 517 comp.pid = 0; in bt_mesh_profile_composition_data_init()
|
/AliOS-Things-master/components/py_engine/engine/lib/tinytest/ |
A D | tinytest.c | 172 pid_t pid; in testcase_run_forked_() 180 pid = fork(); in testcase_run_forked_() 184 if (!pid) { in testcase_run_forked_() 213 waitpid(pid, &status, 0); in testcase_run_forked_()
|
/AliOS-Things-master/components/genie_service/core/inc/ |
A D | genie_triple.h | 18 uint32_t pid; member
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | qjsc.c | 379 int pid, status, ret; in exec_cmd() local 381 pid = fork(); in exec_cmd() 382 if (pid == 0) { in exec_cmd() 388 ret = waitpid(pid, &status, 0); in exec_cmd() 389 if (ret == pid && WIFEXITED(status)) in exec_cmd()
|
/AliOS-Things-master/kernel/rhino/ |
A D | k_stats.c | 55 if (cur->pid == 0) { in krhino_stack_ovf_check() 98 if (cur->pid == 0) { in krhino_stack_ovf_check()
|
/AliOS-Things-master/components/drivers/core/base/include/drivers/ |
A D | u_device_info.h | 84 unsigned int pid; member
|
/AliOS-Things-master/components/linkkit/include/linkkit/infra/ |
A D | infra_report.h | 54 int iotx_midreport_payload(char *msg, char *requestId, char *mid, char *pid);
|
/AliOS-Things-master/components/SDL2/src/video/x11/ |
A D | SDL_x11messagebox.c | 843 pid_t pid; in X11_ShowMessageBox() local 851 pid = fork(); in X11_ShowMessageBox() 852 if (pid == -1) { /* failed */ in X11_ShowMessageBox() 856 } else if (pid == 0) { /* we're the child */ in X11_ShowMessageBox() 870 rc = waitpid(pid, &status, 0); in X11_ShowMessageBox() 873 SDL_assert(rc == pid); /* not sure what to do if this fails. */ in X11_ShowMessageBox()
|
A D | SDL_x11video.h | 79 pid_t pid; member
|
/AliOS-Things-master/components/minilibc/include/ |
A D | mm.h | 398 uint32_t pid:8; member 412 magic ^= hdr->pid; in mdbg_calc_magic()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/usb_otg/include/ |
A D | dwc_otg_regs.h | 1739 unsigned pid:2; member 1759 unsigned pid:2; member 2276 unsigned pid:2; member 2309 unsigned pid:2; member
|
/AliOS-Things-master/components/netmgr/src/ |
A D | netmgr_wifi.c | 1700 res_free(node->group->pid, change); in handle_wifi_event() 2688 res_free(group->pid, call_msg.arg_value[0]); in wifi_msg_cb() 2695 res_free(group->pid, call_msg.arg_value[0]); in wifi_msg_cb() 2700 res_free(group->pid, call_msg.arg_value[0]); in wifi_msg_cb() 3327 res_free(group->pid, call_msg.arg_value[0]); 3341 res_free(group->pid, call_msg.arg_value[2]); 3342 res_free(group->pid, call_msg.arg_value[0]); 3349 res_free(group->pid, call_msg.arg_value[2]); 3350 res_free(group->pid, call_msg.arg_value[0]); 3355 res_free(group->pid, call_msg.arg_value[2]); [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/ |
A D | hal_usbhost.h | 107 enum HAL_USBHOST_PID_TYPE_T pid; member
|
/AliOS-Things-master/components/minilibc/ |
A D | newlib_stub.c | 55 int _kill_r(struct _reent *ptr, int pid, int sig) in _kill_r() argument
|
/AliOS-Things-master/components/py_engine/engine/tools/mpremote/mpremote/ |
A D | main.py | 173 p.pid if isinstance(p.pid, int) else 0,
|