Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 37) sorted by relevance

12

/PHP-5.4/Zend/
H A Dzend_static_allocator.c48 block_init(sa->Blocks, ALLOCATOR_BLOCK_SIZE); in static_allocator_init()
49 sa->num_blocks = 1; in static_allocator_init()
50 sa->current_block = 0; in static_allocator_init()
57 retval = block_allocate(&sa->Blocks[sa->current_block], size); in static_allocator_allocate()
61 sa->Blocks = (Block *) erealloc(sa->Blocks, ++sa->num_blocks); in static_allocator_allocate()
62 sa->current_block++; in static_allocator_allocate()
63 …block_init(&sa->Blocks[sa->current_block], (size > ALLOCATOR_BLOCK_SIZE) ? size : ALLOCATOR_BLOCK_… in static_allocator_allocate()
64 retval = block_allocate(&sa->Blocks[sa->current_block], size); in static_allocator_allocate()
72 for (i=0; i<sa->num_blocks; i++) { in static_allocator_destroy()
73 block_free(&sa->Blocks[i]); in static_allocator_destroy()
[all …]
H A Dzend_signal.c160 struct sigaction sa = {{0}}; in zend_signal_handler() local
166 sa.sa_handler = SIG_DFL; in zend_signal_handler()
167 sigemptyset(&sa.sa_mask); in zend_signal_handler()
197 struct sigaction sa = {{0}}; in zend_sigaction() local
235 struct sigaction sa = {{0}}; in zend_signal() local
237 sa.sa_flags = 0; in zend_signal()
238 sa.sa_handler = handler; in zend_signal()
251 struct sigaction sa = {{0}}; in zend_signal_register() local
254 if ((sa.sa_flags & SA_SIGINFO) && sa.sa_sigaction == handler) { in zend_signal_register()
266 sa.sa_sigaction = handler; in zend_signal_register()
[all …]
H A Dzend_static_allocator.h43 void static_allocator_init(StaticAllocator *sa);
44 char *static_allocator_allocate(StaticAllocator *sa, zend_uint size);
45 void static_allocator_destroy(StaticAllocator *sa);
/PHP-5.4/win32/
H A Dinet.c13 struct sockaddr_storage sa; in inet_pton() local
14 struct sockaddr_in *sin = (struct sockaddr_in *)&sa; in inet_pton()
15 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa; in inet_pton()
30 if (WSAStringToAddress ((LPTSTR) src, af, NULL, (LPSOCKADDR) &sa, &address_length) == 0) { in inet_pton()
50 struct sockaddr_storage sa; in inet_ntop() local
51 struct sockaddr_in *sin = (struct sockaddr_in *)&sa; in inet_ntop()
52 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa; in inet_ntop()
54 memset (&sa, 0, sizeof (sa)); in inet_ntop()
72 if (WSAAddressToString ((LPSOCKADDR) &sa, address_length, NULL, dst, &string_length) == 0) { in inet_ntop()
/PHP-5.4/main/
H A Dnetwork.c438 sa = *sal;
450 ((struct sockaddr_in6 *)sa)->sin6_family = sa->sa_family;
456 ((struct sockaddr_in *)sa)->sin_family = sa->sa_family;
463 sa = NULL;
466 if (sa) {
668 memset(&sa, 0, sizeof(sa));
688 memset(&sa, 0, sizeof(sa));
801 sa = *sal;
824 ((struct sockaddr_in *)sa)->sin_family = sa->sa_family;
831 sa = NULL;
[all …]
/PHP-5.4/ext/standard/tests/assert/
H A Dassert_basic1.phpt17 $sa = "0 != 0";
18 var_dump($r2=assert($sa));
19 $sa = "0 == 0";
20 var_dump($r2=assert($sa));
H A Dassert_basic.phpt16 $sa = "0 != 0";
17 var_dump($r2=assert($sa));
18 $sa = "0 == 0";
19 var_dump($r2=assert($sa));
H A Dassert_basic5.phpt18 $sa = "0 != 0";
19 var_dump($r2=assert($sa));
20 $sa = "0 == 0";
21 var_dump($r2=assert($sa));
H A Dassert_error.phpt16 $sa = "threemeninaboat";
18 var_dump($r2=assert($sa));
22 var_dump($r2=assert($sa));
H A Dassert_variation.phpt32 $sa = "0 != 0";
33 var_dump($r2=assert($sa));
40 var_dump($r2=assert($sa));
47 var_dump($r2=assert($sa));
55 var_dump($r2=assert($sa));
62 var_dump($r2=assert($sa));
70 var_dump($r2=assert($sa));
H A Dassert_error3.phpt13 $sa = "0 $ 0";
14 var_dump($r2 = assert($sa));
H A Dassert_error4.phpt13 $sa = "0 $ 0";
14 var_dump($r2 = assert($sa, "Describing what was asserted"));
H A Dassert_basic3.phpt18 $sa = "0 != 0";
19 var_dump($r2=assert($sa));
H A Dassert_basic6.phpt18 $sa = "0 != 0";
19 var_dump($r2 = assert($sa, "0 is 0"));
H A Dassert_error2.phpt20 $sa = "0 != 0";
21 var_dump($r2 = assert($sa));
H A Dassert_error1.phpt30 $sa="0 != 0";
31 var_dump($r2 = assert($sa, "message", 1));
/PHP-5.4/sapi/fpm/fpm/
H A Dfpm_sockets.c101 static int fpm_sockets_hash_op(int sock, struct sockaddr *sa, char *key, int type, int op) /* {{{ */ in fpm_sockets_hash_op() argument
106 struct sockaddr_in *sa_in = (struct sockaddr_in *) sa; in fpm_sockets_hash_op()
113 struct sockaddr_un *sa_un = (struct sockaddr_un *) sa; in fpm_sockets_hash_op()
172 sock = socket(sa->sa_family, SOCK_STREAM, 0); in fpm_sockets_new_listening_socket()
184 if (fpm_socket_unix_test_connect((struct sockaddr_un *)sa, socklen) == 0) { in fpm_sockets_new_listening_socket()
189 unlink( ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket()
193 if (0 > bind(sock, sa, socklen)) { in fpm_sockets_new_listening_socket()
203 char *path = ((struct sockaddr_un *) sa)->sun_path; in fpm_sockets_new_listening_socket()
230 sock = fpm_sockets_hash_op(0, sa, 0, wp->listen_address_domain, FPM_GET_USE_SOCKET); in fpm_sockets_get_listening_socket()
235 sock = fpm_sockets_new_listening_socket(wp, sa, socklen); in fpm_sockets_get_listening_socket()
[all …]
H A Dfastcgi.c137 struct sockaddr sa; member
802 sa_t sa; local
803 socklen_t len = sizeof(sa);
808 req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
811 client_sa = sa;
812 if (sa.sa.sa_family == AF_INET && req->fd >= 0 && allowed_clients) {
817 if (allowed_clients[n] == sa.sa_inet.sin_addr.s_addr) {
824 …zlog(ZLOG_ERROR, "Connection disallowed: IP address '%s' has been dropped.", inet_ntoa(sa.sa_inet.…
1099 if (client_sa.sa.sa_family == AF_UNIX) {
/PHP-5.4/sapi/cgi/
H A Dfastcgi.c136 struct sockaddr sa; member
415 sa_t sa; in fcgi_init() local
416 socklen_t len = sizeof(sa); in fcgi_init()
551 sa->lpSecurityDescriptor = sd; in prepare_named_pipe_acl()
579 sa_t sa; in fcgi_listen() local
606 memset(&sa.sa_inet, 0, sizeof(sa.sa_inet)); in fcgi_listen()
609 sock_len = sizeof(sa.sa_inet); in fcgi_listen()
640 memset(&sa, 0, sizeof(saw)); in fcgi_listen()
668 memset(&sa.sa_unix, 0, sizeof(sa.sa_unix)); in fcgi_listen()
680 if ((listen_socket = socket(sa.sa.sa_family, SOCK_STREAM, 0)) < 0 || in fcgi_listen()
[all …]
/PHP-5.4/ext/com_dotnet/
H A Dcom_saproxy.c96 SAFEARRAY *sa; in saproxy_read_dimension() local
144 sa = V_ARRAY(&proxy->obj->v); in saproxy_read_dimension()
145 dims = SafeArrayGetDim(sa); in saproxy_read_dimension()
154 SafeArrayGetLBound(sa, proxy->dimensions, &lbound); in saproxy_read_dimension()
155 SafeArrayGetUBound(sa, proxy->dimensions, &ubound); in saproxy_read_dimension()
187 res = SafeArrayGetElement(sa, indices, &v); in saproxy_read_dimension()
190 res = SafeArrayGetElement(sa, indices, &v.lVal); in saproxy_read_dimension()
495 SAFEARRAY *sa; in saproxy_iter_get_data() local
499 sa = V_ARRAY(&I->proxy->obj->v); in saproxy_iter_get_data()
507 SafeArrayGetElement(sa, I->indices, &v); in saproxy_iter_get_data()
[all …]
H A Dcom_variant.c37 SAFEARRAY *sa = NULL; in safe_array_from_zval() local
67 sa = SafeArrayCreate(VT_VARIANT, 1, &bound); in safe_array_from_zval()
70 SafeArrayAccessData(sa, &va); in safe_array_from_zval()
71 va = (VARIANT*)sa->pvData; in safe_array_from_zval()
84 SafeArrayUnaccessData(sa); in safe_array_from_zval()
86 V_ARRAY(v) = sa; in safe_array_from_zval()
95 if (sa) { in safe_array_from_zval()
96 SafeArrayUnlock(sa); in safe_array_from_zval()
97 SafeArrayDestroy(sa); in safe_array_from_zval()
/PHP-5.4/ext/sockets/
H A Dsockets.c1127 php_sockaddr_storage sa; local
1367 struct sockaddr *sa; local
1390 switch (sa->sa_family) {
1406 sin = (struct sockaddr_in *) sa;
1444 struct sockaddr *sa; local
1467 switch (sa->sa_family) {
1484 sin = (struct sockaddr_in *) sa;
1685 sa->sun_family = AF_UNIX;
1687 retval = bind(php_sock->bsd_socket, (struct sockaddr *) sa, SUN_LEN(sa));
1697 sa->sin_family = AF_INET;
[all …]
/PHP-5.4/sapi/cli/
H A Dphp_cli_server.c1168 if (sa) { in php_network_listen_socket()
1169 pefree(sa, 1); in php_network_listen_socket()
1170 sa = NULL; in php_network_listen_socket()
1182 if (!sa) { in php_network_listen_socket()
1195 if (!sa) { in php_network_listen_socket()
1261 if (sa) { in php_network_listen_socket()
1262 pefree(sa, 1); in php_network_listen_socket()
2293 if (!sa) { in php_cli_server_do_event_for_each_fd_callback()
2302 pefree(sa, 1); in php_cli_server_do_event_for_each_fd_callback()
2306 pefree(sa, 1); in php_cli_server_do_event_for_each_fd_callback()
[all …]
/PHP-5.4/ext/ftp/
H A Dftp.c708 struct sockaddr *sa; in ftp_pasv() local
723 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
726 if (getpeername(ftp->fd, sa, &n) < 0) { in ftp_pasv()
729 if (sa->sa_family == AF_INET6) { in ftp_pasv()
730 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sa; in ftp_pasv()
780 sin = (struct sockaddr_in *) sa; in ftp_pasv()
1377 struct sockaddr *sa; in ftp_getdata() local
1394 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1426 php_any_addr(sa->sa_family, &addr, 0); in ftp_getdata()
1447 if (sa->sa_family == AF_INET6) { in ftp_getdata()
[all …]
/PHP-5.4/ext/oci8/tests/
H A Dbug35973.phpt45 string(%d) "%sa"

Completed in 54 milliseconds

12