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

/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);
481 SAFEARRAY *sa; local
485 sa
[all...]
H A Dcom_variant.c37 SAFEARRAY *sa = NULL; local
65 sa = SafeArrayCreate(VT_VARIANT, 1, &bound);
68 SafeArrayAccessData(sa, &va);
69 va = (VARIANT*)sa->pvData;
82 SafeArrayUnaccessData(sa);
84 V_ARRAY(v) = sa;
93 if (sa) {
94 SafeArrayUnlock(sa);
95 SafeArrayDestroy(sa);
/PHP_TRUNK/main/streams/
H A Dxp_socket.c267 php_sockaddr_storage sa; local
268 socklen_t sl = sizeof(sa);
273 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl);
275 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
/PHP_TRUNK/main/
H A Dnetwork.c429 struct sockaddr **sal, **psal, *sa; local
441 sa = *sal;
444 sock = socket(sa->sa_family, socktype, 0);
450 switch (sa->sa_family) {
453 ((struct sockaddr_in6 *)sa)->sin6_family = sa->sa_family;
454 ((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
459 ((struct sockaddr_in *)sa)->sin_family = sa->sa_family;
460 ((struct sockaddr_in *)sa)
515 php_network_parse_network_address_with_port(const char *addr, zend_long addrlen, struct sockaddr *sa, socklen_t *sl) argument
602 php_network_populate_name_from_sockaddr( struct sockaddr *sa, socklen_t sl, zend_string **textaddr, struct sockaddr **addr, socklen_t *addrlen ) argument
673 php_sockaddr_storage sa; local
693 php_sockaddr_storage sa; local
729 php_sockaddr_storage sa; local
780 struct sockaddr **sal, **psal, *sa; local
[all...]
H A Dphp_network.h300 struct sockaddr *sa, socklen_t sl,
309 zend_long addrlen, struct sockaddr *sa, socklen_t *sl);
H A Dfastcgi.c141 struct sockaddr sa; member in union:_sa_t
383 sa_t sa; local
384 socklen_t len = sizeof(sa);
433 if (getpeername(0, (struct sockaddr *)&sa, &len) != 0 && errno == ENOTCONN) {
473 static PACL prepare_named_pipe_acl(PSECURITY_DESCRIPTOR sd, LPSECURITY_ATTRIBUTES sa) argument
525 sa->lpSecurityDescriptor = sd;
553 sa_t sa; local
580 memset(&sa.sa_inet, 0, sizeof(sa.sa_inet));
581 sa
1289 sa_t sa; local
[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/sapi/fpm/fpm/
H A Dfpm_sockets.c78 static void *fpm_get_in_addr(struct sockaddr *sa) /* {{{ */ argument
80 if (sa->sa_family == AF_INET) {
81 return &(((struct sockaddr_in*)sa)->sin_addr);
84 return &(((struct sockaddr_in6*)sa)->sin6_addr);
88 static int fpm_get_in_port(struct sockaddr *sa) /* {{{ */ argument
90 if (sa->sa_family == AF_INET) {
91 return ntohs(((struct sockaddr_in*)sa)->sin_port);
94 return ntohs(((struct sockaddr_in6*)sa)->sin6_port);
98 static int fpm_sockets_hash_op(int sock, struct sockaddr *sa, char *key, int type, int op) /* {{{ */ argument
104 inet_ntop(sa
163 fpm_sockets_new_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int socklen) argument
220 fpm_sockets_get_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int socklen) argument
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dapprentice.c866 size_t sa = apprentice_magic_strength(ma->mp); local
868 if (sa == sb)
870 else if (sa > sb)
/PHP_TRUNK/Zend/
H A Dzend_signal.c159 struct sigaction sa = {{0}}; local
164 if (sigaction(signo, NULL, &sa) == 0) {
165 sa.sa_handler = SIG_DFL;
166 sigemptyset(&sa.sa_mask);
171 if (sigaction(signo, &sa, NULL) == 0) {
196 struct sigaction sa = {{0}}; local
212 sa.sa_flags = SA_SIGINFO | (act->sa_flags & SA_FLAGS_MASK);
213 sa.sa_sigaction = zend_signal_handler_defer;
214 sa.sa_mask = global_sigmask;
216 if (sigaction(signo, &sa, NUL
234 struct sigaction sa = {{0}}; local
250 struct sigaction sa = {{0}}; local
300 struct sigaction sa = {{0}}; local
340 struct sigaction sa = {{0}}; local
[all...]
/PHP_TRUNK/ext/phar/
H A Dphar_object.c762 char *tmp = NULL, sa = '\0'; local
771 sa = *tmp;
784 *tmp = sa;
/PHP_TRUNK/ext/sockets/
H A Dsockets.c940 php_sockaddr_storage sa; local
941 socklen_t php_sa_len = sizeof(sa);
951 if (!php_accept_connect(php_sock, &new_sock, (struct sockaddr*)&sa, &php_sa_len)) {
1196 struct sockaddr *sa; local
1214 sa = (struct sockaddr *) &sa_storage;
1216 if (getsockname(php_sock->bsd_socket, sa, &salen) != 0) {
1225 switch (sa->sa_family) {
1228 sin6 = (struct sockaddr_in6 *) sa;
1241 sin = (struct sockaddr_in *) sa;
1258 s_un = (struct sockaddr_un *) sa;
1279 struct sockaddr *sa; local
1525 struct sockaddr_un *sa = (struct sockaddr_un *) sock_type; local
1544 struct sockaddr_in *sa = (struct sockaddr_in *) sock_type; local
1559 struct sockaddr_in6 *sa = (struct sockaddr_in6 *) sock_type; local
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_source_win32a.c43 static HANDLE _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa);
92 _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa) argument
107 return CreateFileA((const char *)*temp, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ, sa, CREATE_NEW, FILE_ATTRIBUTE_NORMAL | FILE_ATTRIBUTE_TEMPORARY, NULL);
H A Dzip_source_win32handle.c421 SECURITY_ATTRIBUTES sa; local
444 sa.nLength = sizeof(SECURITY_ATTRIBUTES);
445 sa.bInheritHandle = FALSE;
446 sa.lpSecurityDescriptor = psd;
447 psa = &sa;
H A Dzip_source_win32w.c43 static HANDLE _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa);
92 _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa) argument
107 return CreateFileW((const wchar_t *)*temp, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ, sa, CREATE_NEW, FILE_ATTRIBUTE_NORMAL | FILE_ATTRIBUTE_TEMPORARY, NULL);
/PHP_TRUNK/ext/ftp/
H A Dftp.c740 struct sockaddr *sa; local
755 sa = (struct sockaddr *) &ftp->pasvaddr;
758 if (getpeername(ftp->fd, sa, &n) < 0) {
761 if (sa->sa_family == AF_INET6) {
762 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) sa;
812 sin = (struct sockaddr_in *) sa;
1514 struct sockaddr *sa; local
1531 sa = (struct sockaddr *) &ftp->localaddr;
1533 if ((fd = socket(sa->sa_family, SOCK_STREAM, 0)) == SOCK_ERR) {
1563 php_any_addr(sa
[all...]
/PHP_TRUNK/ext/standard/
H A Dstreamsfuncs.c326 php_sockaddr_storage sa; local
336 if (FAILURE == php_network_parse_network_address_with_port(target_addr, target_addr_len, (struct sockaddr*)&sa, &sl)) {
342 RETURN_LONG(php_stream_xport_sendto(stream, data, datalen, (int)flags, target_addr ? &sa : NULL, sl));
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c1179 struct sockaddr *sa = NULL, **p, **sal; local
1186 if (sa) {
1187 pefree(sa, 1);
1188 sa = NULL;
1199 sa = pemalloc(sizeof(struct sockaddr_in6), 1);
1200 if (!sa) {
1206 *(struct sockaddr_in6 *)sa = *(struct sockaddr_in6 *)*p;
1207 ((struct sockaddr_in6 *)sa)->sin6_port = htons(*port);
1212 sa = pemalloc(sizeof(struct sockaddr_in), 1);
1213 if (!sa) {
2347 struct sockaddr *sa = pemalloc(server->socklen, 1); local
[all...]

Completed in 122 milliseconds