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

/PHP_5_5/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_5/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_5/ext/phar/
H A Dphar_object.c787 char *tmp = NULL, sa = '\0'; local
796 sa = *tmp;
809 *tmp = sa;
/PHP_5_5/ext/sockets/
H A Dsockets.c942 php_sockaddr_storage sa; local
943 socklen_t php_sa_len = sizeof(sa);
951 if (!php_accept_connect(php_sock, &new_sock, (struct sockaddr*)&sa, &php_sa_len TSRMLS_CC)) {
1182 struct sockaddr *sa; local
1198 sa = (struct sockaddr *) &sa_storage;
1200 if (getsockname(php_sock->bsd_socket, sa, &salen) != 0) {
1205 switch (sa->sa_family) {
1208 sin6 = (struct sockaddr_in6 *) sa;
1221 sin = (struct sockaddr_in *) sa;
1238 s_un = (struct sockaddr_un *) sa;
1259 struct sockaddr *sa; local
1498 struct sockaddr_un *sa = (struct sockaddr_un *) sock_type; local
1517 struct sockaddr_in *sa = (struct sockaddr_in *) sock_type; local
1532 struct sockaddr_in6 *sa = (struct sockaddr_in6 *) sock_type; local
[all...]
/PHP_5_5/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_5/main/
H A Dnetwork.c424 struct sockaddr **sal, **psal, *sa; local
435 sa = *sal;
438 sock = socket(sa->sa_family, socktype, 0);
444 switch (sa->sa_family) {
447 ((struct sockaddr_in6 *)sa)->sin6_family = sa->sa_family;
448 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
453 ((struct sockaddr_in *)sa)->sin_family = sa->sa_family;
454 ((struct sockaddr_in *)sa)
502 php_network_parse_network_address_with_port(const char *addr, long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC) argument
589 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
663 php_sockaddr_storage sa; local
683 php_sockaddr_storage sa; local
719 php_sockaddr_storage sa; local
770 struct sockaddr **sal, **psal, *sa; local
[all...]
H A Dphp_network.h294 struct sockaddr *sa, socklen_t sl,
303 long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC);
/PHP_5_5/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_5/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_5_5/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_5/sapi/litespeed/
H A Dlsapilib.c159 struct sigaction sa; local
161 sigaction(signo, NULL, &sa);
163 if (sa.sa_handler == SIG_DFL) {
164 sigemptyset(&sa.sa_mask);
165 sa.sa_flags = 0;
166 sa.sa_handler = handler;
167 sigaction(signo, &sa, NULL);
/PHP_5_5/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)
/PHP_5_5/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_5/sapi/cli/
H A Dphp_cli_server.c1286 struct sockaddr *sa = NULL, **p, **sal; local
1293 if (sa) {
1294 pefree(sa, 1);
1295 sa = NULL;
1306 sa = pemalloc(sizeof(struct sockaddr_in6), 1);
1307 if (!sa) {
1313 *(struct sockaddr_in6 *)sa = *(struct sockaddr_in6 *)*p;
1314 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1319 sa = pemalloc(sizeof(struct sockaddr_in), 1);
1320 if (!sa) {
2418 struct sockaddr *sa = pemalloc(server->socklen, 1); local
[all...]

Completed in 40 milliseconds