| /third_party/gstreamer/gstplugins_bad/tests/check/elements/ |
| D | shm.c | 47 gchar *socket_path = NULL; in setup_shm() local 60 g_object_get (sink, "socket-path", &socket_path, NULL); in setup_shm() 61 fail_unless (socket_path != NULL); in setup_shm() 62 g_object_set (src, "socket-path", socket_path, NULL); in setup_shm() 63 g_free (socket_path); in setup_shm() 176 gchar *socket_path = NULL; in GST_START_TEST() local 194 g_object_get (sink, "socket-path", &socket_path, NULL); in GST_START_TEST() 195 fail_unless (socket_path != NULL); in GST_START_TEST() 206 g_object_set (src, "socket-path", socket_path, NULL); in GST_START_TEST() 227 g_free (socket_path); in GST_START_TEST()
|
| /third_party/pulseaudio/src/modules/ |
| D | module-protocol-stub.c | 184 char *socket_path; member 304 u->socket_path = pa_sprintf_malloc("/tmp/.esd-%lu/socket", (unsigned long) getuid()); in pa__init() 306 u->socket_path = pa_xstrdup("/tmp/.esd/socket"); in pa__init() 312 …if (pa_make_secure_parent_dir(u->socket_path, pa_in_system_mode() ? 0755U : 0700U, (uid_t)-1, (gid… in pa__init() 313 pa_log("Failed to create socket directory '%s': %s\n", u->socket_path, pa_cstrerror(errno)); in pa__init() 318 if (!(u->socket_path = pa_runtime_path(pa_modargs_get_value(ma, "socket", UNIX_SOCKET)))) { in pa__init() 324 if ((r = pa_unix_socket_remove_stale(u->socket_path)) < 0) { in pa__init() 325 pa_log("Failed to remove stale UNIX socket '%s': %s", u->socket_path, pa_cstrerror(errno)); in pa__init() 328 pa_log_info("Removed stale UNIX socket '%s'.", u->socket_path); in pa__init() 330 if (!(u->socket_server_unix = pa_socket_server_new_unix(m->core->mainloop, u->socket_path))) in pa__init() [all …]
|
| D | ohos_module-protocol-stub.c | 184 char *socket_path; member 304 u->socket_path = pa_sprintf_malloc("/tmp/.esd-%lu/socket", (unsigned long) getuid()); in pa__init() 306 u->socket_path = pa_xstrdup("/tmp/.esd/socket"); in pa__init() 312 …if (pa_make_secure_parent_dir(u->socket_path, pa_in_system_mode() ? 0755U : 0700U, (uid_t)-1, (gid… in pa__init() 313 pa_log("Failed to create socket directory '%s': %s\n", u->socket_path, pa_cstrerror(errno)); in pa__init() 318 if (!(u->socket_path = pa_runtime_path(pa_modargs_get_value(ma, "socket", UNIX_SOCKET)))) { in pa__init() 326 if ((r = pa_unix_socket_remove_stale(u->socket_path)) < 0) { in pa__init() 327 pa_log("Failed to remove stale UNIX socket '%s': %s", u->socket_path, pa_cstrerror(errno)); in pa__init() 329 pa_log_info("Removed stale UNIX socket '%s'.", u->socket_path); in pa__init() 331 if (!(u->socket_server_unix = pa_socket_server_new_unix(m->core->mainloop, u->socket_path))) in pa__init() [all …]
|
| /third_party/gstreamer/gstplugins_bad/sys/shm/ |
| D | gstshmsrc.c | 164 g_free (self->socket_path); in gst_shm_src_finalize() 183 g_free (self->socket_path); in gst_shm_src_set_property() 184 self->socket_path = g_value_dup_string (value); in gst_shm_src_set_property() 207 g_value_set_string (value, self->socket_path); in gst_shm_src_get_property() 230 if (!self->socket_path) { in gst_shm_src_start_reading() 240 GST_DEBUG_OBJECT (self, "Opening socket %s", self->socket_path); in gst_shm_src_start_reading() 243 gstpipe->pipe = sp_client_open (self->socket_path); in gst_shm_src_start_reading() 248 ("Could not open socket %s: %d %s", self->socket_path, errno, in gst_shm_src_start_reading()
|
| D | gstshmsink.c | 447 g_free (self->socket_path); in gst_shm_sink_finalize() 465 g_free (self->socket_path); in gst_shm_sink_set_property() 466 self->socket_path = g_value_dup_string (value); in gst_shm_sink_set_property() 525 g_value_set_string (value, self->socket_path); in gst_shm_sink_get_property() 557 if (!self->socket_path) { in gst_shm_sink_start() 564 " with shared memory of %d bytes", self->socket_path, self->size); in gst_shm_sink_start() 566 self->pipe = sp_writer_create (self->socket_path, self->size, self->perms); in gst_shm_sink_start() 575 g_free (self->socket_path); in gst_shm_sink_start() 576 self->socket_path = g_strdup (sp_writer_get_path (self->pipe)); in gst_shm_sink_start() 578 GST_DEBUG ("Created socket at %s", self->socket_path); in gst_shm_sink_start()
|
| D | shmpipe.c | 130 char *socket_path; member 238 self->socket_path = strdup (sock_un.sun_path); in sp_writer_create() 240 if (chmod (self->socket_path, perms) < 0) in sp_writer_create() 440 if (self->socket_path) { in sp_writer_close() 441 unlink (self->socket_path); in sp_writer_close() 442 free (self->socket_path); in sp_writer_close() 468 ret |= chmod (self->socket_path, perms); in sp_writer_setperms_shm() 967 return pipe->socket_path; in sp_writer_get_path()
|
| D | gstshmsrc.h | 50 gchar *socket_path; member
|
| D | gstshmsink.h | 49 gchar *socket_path; member
|
| /third_party/ltp/testcases/kernel/security/tomoyo/ |
| D | tomoyo_file_test.c | 72 static const char *socket_path = "/tmp/socket_test"; variable 185 strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path) - 1); in stage_file_test() 226 unlink(socket_path); in creanup_files()
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/ |
| D | hlr_auc_gw.c | 62 static const char *socket_path; variable 953 if (socket_path) in cleanup() 954 unlink(socket_path); in cleanup() 1014 socket_path = default_socket_path; in main() 1046 socket_path = optarg; in main() 1074 serv_sock = open_socket(socket_path); in main() 1078 printf("Listening for requests on %s\n", socket_path); in main() 1088 socket_path = NULL; in main()
|
| /third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/ |
| D | hlr_auc_gw.c | 62 static const char *socket_path; variable 953 if (socket_path) in cleanup() 954 unlink(socket_path); in cleanup() 1014 socket_path = default_socket_path; in main() 1046 socket_path = optarg; in main() 1074 serv_sock = open_socket(socket_path); in main() 1078 printf("Listening for requests on %s\n", socket_path); in main() 1088 socket_path = NULL; in main()
|