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

/PHP_TRUNK/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_TRUNK/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
792 sa_t sa; local
793 socklen_t len = sizeof(sa);
798 req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
801 client_sa = sa;
802 if (sa.sa.sa_family == AF_INET && req->fd >= 0 && allowed_clients) {
807 if (allowed_clients[n] == sa.sa_inet.sin_addr.s_addr) {
814 zlog(ZLOG_ERROR, "Connection disallowed: IP address '%s' has been dropped.", inet_ntoa(sa.sa_inet.sin_addr));
1078 if (client_sa.sa
[all...]
/PHP_TRUNK/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_TRUNK/ext/com_dotnet/
H A Dcom_saproxy.c92 SAFEARRAY *sa; local
139 sa = V_ARRAY(&proxy->obj->v);
140 dims = SafeArrayGetDim(sa);
149 SafeArrayGetLBound(sa, proxy->dimensions, &lbound);
150 SafeArrayGetUBound(sa, proxy->dimensions, &ubound);
177 if (FAILED(SafeArrayGetVartype(sa, &vt)) || vt == VT_EMPTY) {
182 res = SafeArrayGetElement(sa, indices, &v);
185 res = SafeArrayGetElement(sa, indices, &v.lVal);
487 SAFEARRAY *sa; local
491 sa
[all...]
H A Dcom_variant.c37 SAFEARRAY *sa = NULL; local
66 sa = SafeArrayCreate(VT_VARIANT, 1, &bound);
69 SafeArrayAccessData(sa, &va);
70 va = (VARIANT*)sa->pvData;
83 SafeArrayUnaccessData(sa);
85 V_ARRAY(v) = sa;
94 if (sa) {
95 SafeArrayUnlock(sa);
96 SafeArrayDestroy(sa);
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dapprentice.c798 size_t sa = apprentice_magic_strength(ma->mp); local
800 if (sa == sb)
802 else if (sa > sb)
/PHP_TRUNK/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;
1372 struct sockaddr *sa; local
1389 sa = (struct sockaddr *) &ftp->localaddr;
1391 if ((fd = socket(sa->sa_family, SOCK_STREAM, 0)) == SOCK_ERR) {
1421 php_any_addr(sa
[all...]
/PHP_TRUNK/ext/phar/
H A Dphar_object.c758 char *tmp = NULL, sa = '\0'; local
767 sa = *tmp;
780 *tmp = sa;
/PHP_TRUNK/ext/sockets/
H A Dsockets.c931 php_sockaddr_storage sa; local
932 socklen_t php_sa_len = sizeof(sa);
940 if (!php_accept_connect(php_sock, &new_sock, (struct sockaddr*)&sa, &php_sa_len TSRMLS_CC)) {
1172 struct sockaddr *sa; local
1188 sa = (struct sockaddr *) &sa_storage;
1190 if (getsockname(php_sock->bsd_socket, sa, &salen) != 0) {
1199 switch (sa->sa_family) {
1202 sin6 = (struct sockaddr_in6 *) sa;
1215 sin = (struct sockaddr_in *) sa;
1232 s_un = (struct sockaddr_un *) sa;
1253 struct sockaddr *sa; local
1492 struct sockaddr_un *sa = (struct sockaddr_un *) sock_type; local
1511 struct sockaddr_in *sa = (struct sockaddr_in *) sock_type; local
1526 struct sockaddr_in6 *sa = (struct sockaddr_in6 *) sock_type; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dstreamsfuncs.c327 php_sockaddr_storage sa; local
337 if (FAILURE == php_network_parse_network_address_with_port(target_addr, target_addr_len, (struct sockaddr*)&sa, &sl TSRMLS_CC)) {
343 RETURN_INT(php_stream_xport_sendto(stream, data, datalen, flags, target_addr ? &sa : NULL, sl TSRMLS_CC));
/PHP_TRUNK/main/
H A Dnetwork.c424 struct sockaddr **sal, **psal, *sa; local
436 sa = *sal;
439 sock = socket(sa->sa_family, socktype, 0);
445 switch (sa->sa_family) {
448 ((struct sockaddr_in6 *)sa)->sin6_family = sa->sa_family;
449 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
454 ((struct sockaddr_in *)sa)->sin_family = sa->sa_family;
455 ((struct sockaddr_in *)sa)
510 php_network_parse_network_address_with_port(const char *addr, php_int_t addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC) argument
597 php_network_populate_name_from_sockaddr( struct sockaddr *sa, socklen_t sl, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC) argument
668 php_sockaddr_storage sa; local
688 php_sockaddr_storage sa; local
724 php_sockaddr_storage sa; local
775 struct sockaddr **sal, **psal, *sa; local
[all...]
H A Dphp_network.h300 struct sockaddr *sa, socklen_t sl,
309 php_int_t addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC);
/PHP_TRUNK/main/streams/
H A Dxp_socket.c262 php_sockaddr_storage sa; local
263 socklen_t sl = sizeof(sa);
268 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl);
270 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
/PHP_TRUNK/sapi/cgi/
H A Dfastcgi.c133 struct sockaddr sa; member in union:_sa_t
412 sa_t sa; local
413 socklen_t len = sizeof(sa);
456 if (getpeername(0, (struct sockaddr *)&sa, &len) != 0 && errno == ENOTCONN) {
496 static PACL prepare_named_pipe_acl(PSECURITY_DESCRIPTOR sd, LPSECURITY_ATTRIBUTES sa) argument
548 sa->lpSecurityDescriptor = sd;
576 sa_t sa; local
603 memset(&sa.sa_inet, 0, sizeof(sa.sa_inet));
604 sa
1177 sa_t sa; local
[all...]
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c1214 struct sockaddr *sa = NULL, **p, **sal; local
1221 if (sa) {
1222 pefree(sa, 1);
1223 sa = NULL;
1234 sa = pemalloc(sizeof(struct sockaddr_in6), 1);
1235 if (!sa) {
1241 *(struct sockaddr_in6 *)sa = *(struct sockaddr_in6 *)*p;
1242 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1247 sa = pemalloc(sizeof(struct sockaddr_in), 1);
1248 if (!sa) {
2375 struct sockaddr *sa = pemalloc(server->socklen, 1); local
[all...]

Completed in 41 milliseconds