Searched refs:sa (Results 1 - 19 of 19) sorted by relevance

/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) /* {{{ */ argument
106 struct sockaddr_in *sa_in = (struct sockaddr_in *) sa;
113 struct sockaddr_un *sa_un = (struct sockaddr_un *) sa;
166 static int fpm_sockets_new_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int socklen) /* {{{ */ argument
172 sock = socket(sa->sa_family, SOCK_STREAM, 0);
184 if (fpm_socket_unix_test_connect((struct sockaddr_un *)sa, socklen) == 0) {
185 zlog(ZLOG_ERROR, "An another FPM instance seems to already listen on %s", ((struct sockaddr_un *) sa)->sun_path);
189 unlink( ((struct sockaddr_un *) sa)->sun_path);
193 if (0 > bind(sock, sa, socklen)) {
203 char *path = ((struct sockaddr_un *) sa)
226 fpm_sockets_get_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int socklen) argument
[all...]
H A Dfastcgi.c137 struct sockaddr sa; member in union:_sa_t
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.sin_addr));
1099 if (client_sa.sa
[all...]
/PHP_5_4/win32/
H A Dinet.c13 struct sockaddr_storage sa; local
14 struct sockaddr_in *sin = (struct sockaddr_in *)&sa;
15 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa;
30 if (WSAStringToAddress ((LPTSTR) src, af, NULL, (LPSOCKADDR) &sa, &address_length) == 0) {
50 struct sockaddr_storage sa; local
51 struct sockaddr_in *sin = (struct sockaddr_in *)&sa;
52 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa;
54 memset (&sa, 0, sizeof (sa));
72 if (WSAAddressToString ((LPSOCKADDR) &sa, address_lengt
[all...]
/PHP_5_4/Zend/
H A Dzend_signal.c160 struct sigaction sa = {{0}}; local
165 if (sigaction(signo, NULL, &sa) == 0) {
166 sa.sa_handler = SIG_DFL;
167 sigemptyset(&sa.sa_mask);
172 if (sigaction(signo, &sa, NULL) == 0) {
197 struct sigaction sa = {{0}}; local
213 sa.sa_flags = SA_SIGINFO | (act->sa_flags & SA_FLAGS_MASK);
214 sa.sa_sigaction = zend_signal_handler_defer;
215 sa.sa_mask = global_sigmask;
217 if (sigaction(signo, &sa, NUL
235 struct sigaction sa = {{0}}; local
251 struct sigaction sa = {{0}}; local
299 struct sigaction sa = {{0}}; local
348 struct sigaction sa = {{0}}; local
[all...]
H A Dzend_static_allocator.c45 void static_allocator_init(StaticAllocator *sa) argument
47 sa->Blocks = (Block *) emalloc(sizeof(Block));
48 block_init(sa->Blocks, ALLOCATOR_BLOCK_SIZE);
49 sa->num_blocks = 1;
50 sa->current_block = 0;
53 char *static_allocator_allocate(StaticAllocator *sa, zend_uint size) argument
57 retval = block_allocate(&sa->Blocks[sa->current_block], size);
61 sa->Blocks = (Block *) erealloc(sa
68 static_allocator_destroy(StaticAllocator *sa) argument
[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/ext/sockets/
H A Dsockets.c1127 php_sockaddr_storage sa; local
1128 socklen_t php_sa_len = sizeof(sa);
1136 if (!php_accept_connect(php_sock, &new_sock, (struct sockaddr*)&sa, &php_sa_len TSRMLS_CC)) {
1367 struct sockaddr *sa; local
1383 sa = (struct sockaddr *) &sa_storage;
1385 if (getsockname(php_sock->bsd_socket, sa, &salen) != 0) {
1390 switch (sa->sa_family) {
1393 sin6 = (struct sockaddr_in6 *) sa;
1406 sin = (struct sockaddr_in *) sa;
1423 s_un = (struct sockaddr_un *) sa;
1444 struct sockaddr *sa; local
1683 struct sockaddr_un *sa = (struct sockaddr_un *) sock_type; local
1693 struct sockaddr_in *sa = (struct sockaddr_in *) sock_type; local
1710 struct sockaddr_in6 *sa = (struct sockaddr_in6 *) sock_type; local
[all...]
/PHP_5_4/main/
H A Dphp_network.h292 struct sockaddr *sa, socklen_t sl,
301 long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC);
H A Dnetwork.c421 struct sockaddr **sal, **psal, *sa; local
432 sa = *sal;
435 sock = socket(sa->sa_family, socktype, 0);
441 switch (sa->sa_family) {
444 ((struct sockaddr_in6 *)sa)->sin6_family = sa->sa_family;
445 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
450 ((struct sockaddr_in *)sa)->sin_family = sa->sa_family;
451 ((struct sockaddr_in *)sa)
499 php_network_parse_network_address_with_port(const char *addr, long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC) argument
586 php_network_populate_name_from_sockaddr( struct sockaddr *sa, socklen_t sl, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
660 php_sockaddr_storage sa; local
680 php_sockaddr_storage sa; local
716 php_sockaddr_storage sa; local
767 struct sockaddr **sal, **psal, *sa; local
[all...]
/PHP_5_4/sapi/cgi/
H A Dfastcgi.c132 struct sockaddr sa; member in union:_sa_t
411 sa_t sa; local
412 socklen_t len = sizeof(sa);
455 if (getpeername(0, (struct sockaddr *)&sa, &len) != 0 && errno == ENOTCONN) {
495 static PACL prepare_named_pipe_acl(PSECURITY_DESCRIPTOR sd, LPSECURITY_ATTRIBUTES sa) argument
547 sa->lpSecurityDescriptor = sd;
575 sa_t sa; local
602 memset(&sa.sa_inet, 0, sizeof(sa.sa_inet));
603 sa
1176 sa_t sa; local
[all...]
/PHP_5_4/ext/com_dotnet/
H A Dcom_saproxy.c96 SAFEARRAY *sa; local
144 sa = V_ARRAY(&proxy->obj->v);
145 dims = SafeArrayGetDim(sa);
154 SafeArrayGetLBound(sa, proxy->dimensions, &lbound);
155 SafeArrayGetUBound(sa, proxy->dimensions, &ubound);
182 if (FAILED(SafeArrayGetVartype(sa, &vt)) || vt == VT_EMPTY) {
187 res = SafeArrayGetElement(sa, indices, &v);
190 res = SafeArrayGetElement(sa, indices, &v.lVal);
495 SAFEARRAY *sa; local
499 sa
[all...]
H A Dcom_variant.c37 SAFEARRAY *sa = NULL; local
67 sa = SafeArrayCreate(VT_VARIANT, 1, &bound);
70 SafeArrayAccessData(sa, &va);
71 va = (VARIANT*)sa->pvData;
84 SafeArrayUnaccessData(sa);
86 V_ARRAY(v) = sa;
95 if (sa) {
96 SafeArrayUnlock(sa);
97 SafeArrayDestroy(sa);
/PHP_5_4/ext/ftp/
H A Dftp.c708 struct sockaddr *sa; local
723 sa = (struct sockaddr *) &ftp->pasvaddr;
726 if (getpeername(ftp->fd, sa, &n) < 0) {
729 if (sa->sa_family == AF_INET6) {
730 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sa;
780 sin = (struct sockaddr_in *) sa;
1377 struct sockaddr *sa; local
1394 sa = (struct sockaddr *) &ftp->localaddr;
1396 if ((fd = socket(sa->sa_family, SOCK_STREAM, 0)) == SOCK_ERR) {
1426 php_any_addr(sa
[all...]
/PHP_5_4/main/streams/
H A Dxp_socket.c250 php_sockaddr_storage sa; local
251 socklen_t sl = sizeof(sa);
256 ret = recvfrom(sock->socket, buf, buflen, flags, (struct sockaddr*)&sa, &sl);
258 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
/PHP_5_4/ext/standard/
H A Dstreamsfuncs.c332 php_sockaddr_storage sa; local
342 if (FAILURE == php_network_parse_network_address_with_port(target_addr, target_addr_len, (struct sockaddr*)&sa, &sl TSRMLS_CC)) {
348 RETURN_LONG(php_stream_xport_sendto(stream, data, datalen, flags, target_addr ? &sa : NULL, sl TSRMLS_CC));
/PHP_5_4/sapi/cli/
H A Dphp_cli_server.c1161 struct sockaddr *sa = NULL, **p, **sal; local
1168 if (sa) {
1169 pefree(sa, 1);
1170 sa = NULL;
1181 sa = pemalloc(sizeof(struct sockaddr_in6), 1);
1182 if (!sa) {
1188 *(struct sockaddr_in6 *)sa = *(struct sockaddr_in6 *)*p;
1189 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1194 sa = pemalloc(sizeof(struct sockaddr_in), 1);
1195 if (!sa) {
2292 struct sockaddr *sa = pemalloc(server->socklen, 1); local
[all...]
/PHP_5_4/ext/phar/
H A Dphar_object.c801 char *tmp = NULL, sa = '\0'; local
810 sa = *tmp;
823 *tmp = sa;
/PHP_5_4/sapi/litespeed/
H A Dlsapilib.c202 struct sigaction sa; local
204 sigaction(signo, NULL, &sa);
206 if (sa.sa_handler == SIG_DFL)
208 sigemptyset(&sa.sa_mask);
209 sa.sa_flags = 0;
210 sa.sa_handler = handler;
211 sigaction(signo, &sa, NULL);
/PHP_5_4/ext/fileinfo/libmagic/
H A Dapprentice.c783 size_t sa = apprentice_magic_strength(ma->mp); local
785 if (sa == sb)
787 else if (sa > sb)

Completed in 64 milliseconds