Searched refs:fds (Results 1 - 25 of 133) sorted by last modified time

123456

/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Duipc_usrreq.c1871 int *fds = (int *)(cm + 1); local
1924 fds[i] = f;
1977 int *fds; local
1991 fds = (int *)(cm + 1);
1995 if (((error = fdgetf_noref(p, fds[i], &tmpfp)) != 0)) {
2003 fds[i], tmpfp, kGUARD_EXC_SOCKET_IPC);
2014 (void) fdgetf_noref(p, fds[i], &fp);
H A Dkern_memorystatus.c2126 memorystatus_jetsam_snapshot_list[i].fds = p->p_fd->fd_nfiles;
2187 entry->fds = p->p_fd->fd_nfiles;
H A Dsys_generic.c1412 struct pollfd *fds; local
1443 fds = (struct pollfd *)&cont[1];
1444 error = copyin(uap->fds, fds, nfds * sizeof(struct pollfd));
1468 short events = fds[i].events;
1473 if (fds[i].fd < 0) {
1474 fds[i].revents = 0;
1479 kev.ident = fds[i].fd;
1481 kev.udata = CAST_USER_ADDR_T(&fds[i]);
1519 fds[
1560 struct pollfd *fds = CAST_DOWN(struct pollfd *, kevp->udata); local
[all...]
/macosx-10.10/ppp-786.1.1/Helpers/vpnd/
H A Dvpnplugins.c544 fd_set fds = *out_fds; local
564 FD_SET(evt_sockfd, &fds);
579 FD_SET(lb_sockfd, &fds);
605 *out_fds = fds;
714 fd_set fds, fds_save; local
788 fds = fds_save;
789 i = select(fdmax, &fds, NULL, NULL, hastimeout ? &timeout : 0);
795 if (lb_is_started && FD_ISSET (evt_sockfd, &fds)) {
829 if (lb_is_started && FD_ISSET (lb_sockfd, &fds)) {
875 if (health_sockfd != -1 && FD_ISSET (health_sockfd, &fds)) {
[all...]
/macosx-10.10/bless-103/
H A Dfirmwaresyncd.c765 int fds[2]; local
772 ret = pipe(fds);
786 posix_spawn_file_actions_addclose(&file_actions, fds[0]);
787 if (fds[1] != STDOUT_FILENO) {
788 (void)posix_spawn_file_actions_adddup2(&file_actions, fds[1], STDOUT_FILENO);
789 if (fds[1] != STDERR_FILENO) {
790 (void)posix_spawn_file_actions_adddup2(&file_actions, fds[1], STDERR_FILENO);
792 (void)posix_spawn_file_actions_addclose(&file_actions, fds[1]);
803 close(fds[1]);
804 fds[
[all...]
/macosx-10.10/cups-408/cups/scheduler/
H A Dmain.c33 extern int launch_activate_socket(const char *name, int **fds, size_t *cnt);
69 static long select_timeout(int fds);
104 int fds; /* Number of ready descriptors */ local
664 fds = 1;
754 if ((timeout = select_timeout(fds)) > 1 && LastEvent)
775 if ((fds = cupsdDoSelect(timeout)) < 0)
876 if (!fds && service_idle_exit)
1541 select_timeout(int fds) /* I - Number of descriptors returned */ argument
1566 * If select has been active in the last second (fds > 0) or we have
1571 if (fds >
[all...]
H A Dclient.c3444 int fds[2]; /* Pipe FDs */ local
3781 if (cupsdOpenPipe(fds))
3792 if (cupsdStartProcess(command, argv, envp, infile, fds[1], CGIPipes[1],
3802 cupsdClosePipe(fds);
3816 *outfile = fds[0];
3817 close(fds[1]);
H A Dcupsfilter.c83 static int open_pipe(int *fds);
1318 open_pipe(int *fds) /* O - Pipe file descriptors (2) */ argument
1324 if (pipe(fds))
1326 fds[0] = -1;
1327 fds[1] = -1;
1336 if (fcntl(fds[0], F_SETFD, fcntl(fds[0], F_GETFD) | FD_CLOEXEC))
1338 close(fds[0]);
1339 close(fds[1]);
1341 fds[
[all...]
H A Dcupsd.h183 extern void cupsdClosePipe(int *fds);
186 extern int cupsdOpenPipe(int *fds);
/macosx-10.10/cups-408/cups/cups/
H A Dhttp-support.c1716 int fds; /* Number of ready descriptors */ local
1744 fds = poll(&polldata, 1, (int)(1000 * timeout));
1757 fds = select(DNSServiceRefSockFD(ref)+1, &input_set, NULL, NULL,
1761 if (fds < 0)
1769 else if (fds == 0)
/macosx-10.10/Security-57031.1.35/Security/include/security_utilities/
H A Dfdmover.cpp75 size_t FdMover::send(const void *data, size_t length, const FdVector &fds) argument
77 auto_ptr<Element> elem(new (fds.size() * sizeof(int)) Element (SOL_SOCKET, SCM_RIGHTS));
78 copy(fds.begin(), fds.end(), &elem.get()->payload<int>());
87 size_t FdMover::receive(void *data, size_t length, FdVector &fds) argument
98 swap(fds, result);
H A Dfdmover.h81 size_t send(const void *data, size_t length, const FdVector &fds);
82 size_t receive(void *data, size_t length, FdVector &fds);
/macosx-10.10/Security-57031.1.35/Security/libsecurity_utilities/lib/
H A Dfdmover.cpp75 size_t FdMover::send(const void *data, size_t length, const FdVector &fds) argument
77 auto_ptr<Element> elem(new (fds.size() * sizeof(int)) Element (SOL_SOCKET, SCM_RIGHTS));
78 copy(fds.begin(), fds.end(), &elem.get()->payload<int>());
87 size_t FdMover::receive(void *data, size_t length, FdVector &fds) argument
98 swap(fds, result);
H A Dfdmover.h81 size_t send(const void *data, size_t length, const FdVector &fds);
82 size_t receive(void *data, size_t length, FdVector &fds);
/macosx-10.10/curl-83.1.2/curl/lib/
H A Deasy.c579 struct pollfd fds[4]; local
586 /* populate the fds[] array */
587 for(m = ev->list, f=&fds[0]; m; m = m->next) {
600 pollrc = Curl_poll(fds, numfds, (int)ev->ms);
616 if(fds[i].revents) {
618 int act = poll2cselect(fds[i].revents); /* convert */
620 fds[i].fd);
621 mcode = curl_multi_socket_action(multi, fds[i].fd, act,
/macosx-10.10/curl-83.1.2/curl/tests/server/
H A Dsockfilt.c670 int error, fds; local
740 for(fds = 0; fds < nfds; fds++) {
744 if(FD_ISSET(fds, readfds))
747 if(FD_ISSET(fds, writefds))
750 if(FD_ISSET(fds, exceptfds))
755 fdarr[nfd] = curlx_sitosk(fds);
756 if(fds == fileno(stdin)) {
763 else if(fds
[all...]
/macosx-10.10/OpenSSL098-52/src/apps/
H A Dspeed.c2725 int *fds; local
2728 fds=malloc(multi*sizeof *fds);
2737 fds[n]=fd[0];
2759 f=fdopen(fds[n],"r");
/macosx-10.10/xnu-2782.1.97/bsd/sys/
H A Dkern_memorystatus.h124 uint32_t fds; member in struct:jetsam_snapshot_entry
/macosx-10.10/WebKit2-7600.1.25/Platform/efl/
H A DDispatchQueueEfl.cpp75 int fds[2]; local
76 if (pipe(fds))
79 m_readFromPipeDescriptor = fds[0];
80 m_writeToPipeDescriptor = fds[1];
/macosx-10.10/ntp-92/ntpd/
H A Dntp_io.c372 * - fds will be moved above the socket fd boundary
388 * number of fds we would like to have for
3326 fd_set fds; local
3345 fds = activefds;
3348 n = select(maxactivefd + 1, &fds, (fd_set *)0, (fd_set *)0,
3366 fds = activefds;
3368 if ((FD_ISSET(j, &fds)
3392 if (FD_ISSET(fd, &fds))
3419 if (FD_ISSET(fd, &fds))
3437 if (FD_ISSET(asyncio_reader->fd, &fds)) {
[all...]
/macosx-10.10/ntp-92/ntpdate/
H A Dntpdate.c1872 struct pollfd fds[MAX_AF]; local
1874 fd_set fds; local
1884 memcpy(fds, fdmask, sizeof(fdmask));
1885 n = poll(fds, (unsigned int)nbsock, tvzero.tv_sec * 1000);
1892 if(fds[i].revents & POLLIN) {
1899 fds = fdmask;
1900 n = select(maxfd, &fds, (fd_set *)0, (fd_set *)0, &tvzero);
1907 if(FD_ISSET(fd[i], &fds)) {
/macosx-10.10/xnu-2782.1.97/libsyscall/wrappers/libproc/
H A Dproc_listpidspath.c45 struct proc_fdinfo *fds; member in struct:__anon15227
79 info->fds = NULL;
113 if (info->fds != NULL) {
114 free(info->fds);
298 if (info->fds == NULL) {
299 info->fds = malloc(info->fds_size);
301 info->fds = reallocf(info->fds, info->fds_size);
303 if (info->fds == NULL) {
308 buf_used = proc_pidinfo(pid, PROC_PIDLISTFDS, 0, info->fds, (in
[all...]
/macosx-10.10/ruby-106/ruby/win32/
H A Dwin32.c3809 int fds[32]; local
3820 fds[filled++] = ret;
3821 } while (filled < (int)numberof(fds));
3828 int fd = fds[--filled];
5434 rb_w32_pipe(int fds[2]) argument
5446 return _pipe(fds, 65536L, _O_NOINHERIT);
5519 fds[0] = fdRead;
5520 fds[1] = fdWrite;
/macosx-10.10/cups-408/cups/ppdc/
H A Dppdc.cxx276 fds[2]; // Pipe file descriptors local
279 if (pipe(fds))
290 dup2(fds[0], 0);
292 close(fds[0]);
293 close(fds[1]);
309 close(fds[0]);
310 fp = cupsFileOpenFd(fds[1], "w");
/macosx-10.10/dtrace-147/libdtrace/
H A Ddt_open.c732 int *fds = realloc(dfp->df_fds, size * sizeof (int)); local
734 if (fds == NULL)
737 dfp->df_fds = fds;

Completed in 320 milliseconds

123456