Home
last modified time | relevance | path

Searched refs:nfd (Results 1 – 25 of 120) sorted by relevance

12345

/third_party/glib/gio/
Dgunixfdlist.c55 gint nfd; member
72 for (i = 0; i < list->priv->nfd; i++) in g_unix_fd_list_finalize()
191 list->priv->nfd = n_fds; in g_unix_fd_list_new_from_array()
243 list->priv->nfd = 0; in g_unix_fd_list_steal_fds()
247 *length = list->priv->nfd; in g_unix_fd_list_steal_fds()
251 list->priv->nfd = 0; in g_unix_fd_list_steal_fds()
292 list->priv->nfd = 0; in g_unix_fd_list_peek_fds()
296 *length = list->priv->nfd; in g_unix_fd_list_peek_fds()
341 (list->priv->nfd + 2)); in g_unix_fd_list_append()
342 list->priv->fds[list->priv->nfd++] = new_fd; in g_unix_fd_list_append()
[all …]
Dgunixconnection.c143 gint *fds, nfd, fd, nscm; in g_unix_connection_receive_fd() local
192 fds = g_unix_fd_message_steal_fds (fdmsg, &nfd); in g_unix_connection_receive_fd()
195 if (nfd != 1) in g_unix_connection_receive_fd()
202 nfd), in g_unix_connection_receive_fd()
203 nfd); in g_unix_connection_receive_fd()
205 for (i = 0; i < nfd; i++) in g_unix_connection_receive_fd()
/third_party/ltp/testcases/kernel/syscalls/dup2/
Ddup202.c29 static int ofd = -1, nfd = -1; variable
35 int *nfd; member
72 close(nfd); in cleanup()
84 nfd = *tc->nfd; in run()
86 TEST(dup2(ofd, nfd)); in run()
98 SAFE_FSTAT(nfd, &newbuf); in run()
107 SAFE_CLOSE(nfd); in run()
Ddup204.c17 static int nfd[2] = {10, 20}; variable
30 close(nfd[i]); in cleanup()
38 TEST(dup2(fd[i], nfd[i])); in run()
45 SAFE_FSTAT(nfd[i], &newbuf); in run()
Ddup207.c21 static int ofd = -1, nfd = 10; variable
45 close(nfd); in cleanup()
59 TEST(dup2(ofd, nfd)); in run()
67 SAFE_READ(1, nfd, read_buf, tc->exp_size); in run()
Ddup201.c29 int *nfd; member
47 TST_EXP_FAIL2(dup2(*tc->ofd, *tc->nfd), EBADF, in run()
48 "dup2(%d, %d)", *tc->ofd, *tc->nfd); in run()
/third_party/pulseaudio/src/pulsecore/
Dpstream-util.c55 a.nfd = 0; in pa_pstream_send_tagstruct_with_creds()
71 void pa_pstream_send_tagstruct_with_fds(pa_pstream *p, pa_tagstruct *t, int nfd, const int *fds, in pa_pstream_send_tagstruct_with_fds() argument
73 if (nfd > 0) { in pa_pstream_send_tagstruct_with_fds()
76 a.nfd = nfd; in pa_pstream_send_tagstruct_with_fds()
79 pa_assert(nfd <= MAX_ANCIL_DATA_FDS); in pa_pstream_send_tagstruct_with_fds()
80 memcpy(a.fds, fds, sizeof(int) * nfd); in pa_pstream_send_tagstruct_with_fds()
93 void PA_GCC_NORETURN pa_pstream_send_tagstruct_with_fds(pa_pstream *p, pa_tagstruct *t, int nfd, co… in pa_pstream_send_tagstruct_with_fds() argument
Diochannel.c351 ssize_t pa_iochannel_write_with_fds(pa_iochannel*io, const void*data, size_t l, int nfd, const int … in pa_iochannel_write_with_fds() argument
366 pa_assert(nfd > 0); in pa_iochannel_write_with_fds()
367 pa_assert(nfd <= MAX_ANCIL_DATA_FDS); in pa_iochannel_write_with_fds()
378 memcpy(msgdata, fds, nfd * sizeof(int)); in pa_iochannel_write_with_fds()
379 cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int) * nfd); in pa_iochannel_write_with_fds()
391 mh.msg_controllen = CMSG_SPACE(sizeof(int) * nfd); in pa_iochannel_write_with_fds()
417 ancil_data->nfd = 0; in pa_iochannel_read_with_ancil_data()
434 ancil_data->nfd = 0; in pa_iochannel_read_with_ancil_data()
451 int nfd = (cmh->cmsg_len - CMSG_LEN(0)) / sizeof(int); in pa_iochannel_read_with_ancil_data() local
452 if (nfd > MAX_ANCIL_DATA_FDS) { in pa_iochannel_read_with_ancil_data()
[all …]
Dpoll-win32.c351 pa_poll (struct pollfd *pfd, nfds_t nfd, int timeout) in pa_poll() argument
364 if (nfd < 0 in pa_poll()
365 || (nfd > sc_open_max in pa_poll()
367 || nfd > (sc_open_max = sysconf (_SC_OPEN_MAX))))) in pa_poll()
374 if (nfd < 0 || nfd > OPEN_MAX) in pa_poll()
384 if (!pfd && nfd) in pa_poll()
417 for (i = 0; i < nfd; i++) in pa_poll()
453 for (i = 0; i < nfd; i++) in pa_poll()
489 for (i = 0; i < nfd; i++) in pa_poll()
591 for (i = 0; i < nfd; i++) in pa_poll()
Dsocket-server.c97 int nfd; in callback() local
109 if ((nfd = pa_accept_cloexec(fd, NULL, NULL)) < 0) { in callback()
115 pa_close(nfd); in callback()
124 request_init(&req, RQ_DAEMON, s->tcpwrap_service, RQ_FILE, nfd, NULL); in callback()
128 pa_close(nfd); in callback()
138 pa_make_tcp_socket_low_delay(nfd); in callback()
140 pa_make_socket_low_delay(nfd); in callback()
142 pa_assert_se(io = pa_iochannel_new(s->mainloop, nfd, nfd)); in callback()
Dohos_socket-server.c102 int nfd; in callback() local
114 if ((nfd = pa_accept_cloexec(fd, NULL, NULL)) < 0) { in callback()
120 pa_close(nfd); in callback()
129 request_init(&req, RQ_DAEMON, s->tcpwrap_service, RQ_FILE, nfd, NULL); in callback()
133 pa_close(nfd); in callback()
143 pa_make_tcp_socket_low_delay(nfd); in callback()
145 pa_make_socket_low_delay(nfd); in callback()
147 pa_assert_se(io = pa_iochannel_new(s->mainloop, nfd, nfd)); in callback()
Dnative-common.c55 if (ancil->nfd == 0) { in pa_common_command_register_memfd_shmid()
61 if (ancil->nfd != 1 || ancil->fds[0] == -1) in pa_common_command_register_memfd_shmid()
Dpstream.c218 if (ancil && ancil->nfd > 0 && ancil->close_fds_on_cleanup) { in pa_cmsg_ancil_data_close_fds()
221 pa_assert(ancil->nfd <= MAX_ANCIL_DATA_FDS); in pa_cmsg_ancil_data_close_fds()
223 for (i = 0; i < ancil->nfd; i++) in pa_cmsg_ancil_data_close_fds()
229 ancil->nfd = 0; in pa_cmsg_ancil_data_close_fds()
466 pa_assert(ancil_data->nfd == 0); in pa_pstream_send_packet()
468 pa_assert(ancil_data->nfd > 0); in pa_pstream_send_packet()
784 pa_assert(p->write_ancil_data->nfd == 0); in do_write()
789 …if ((r = pa_iochannel_write_with_fds(p->io, d, l, p->write_ancil_data->nfd, p->write_ancil_data->f… in do_write()
903 if (b.nfd > 0) { in do_read()
904 pa_assert(b.nfd <= MAX_ANCIL_DATA_FDS); in do_read()
[all …]
/third_party/ltp/testcases/kernel/syscalls/close_range/
Dclose_range01.c56 struct rlimit nfd; in setup() local
58 SAFE_GETRLIMIT(RLIMIT_NOFILE, &nfd); in setup()
60 if (nfd.rlim_max < 1000) { in setup()
62 nfd.rlim_max); in setup()
65 nfd.rlim_cur = nfd.rlim_max; in setup()
66 SAFE_SETRLIMIT(RLIMIT_NOFILE, &nfd); in setup()
/third_party/curl/tests/server/
Dsockfilt.c626 DWORD timeout_ms, wait, nfd, nth, nws, i; in select_ws() local
689 nfd = 0; /* number of handled file descriptors */ in select_ws()
695 handles[nfd] = 0; in select_ws()
718 data[nfd].fd = fd; in select_ws()
725 handles[nfd] = signal; in select_ws()
728 nfd++; in select_ws()
737 handles[nfd] = GetStdHandle(STD_OUTPUT_HANDLE); in select_ws()
738 nfd++; in select_ws()
741 handles[nfd] = GetStdHandle(STD_ERROR_HANDLE); in select_ws()
742 nfd++; in select_ws()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/common/
Duprops.cpp112 UnicodeString nfd; in changesWhenCasefolded() local
118 if(nfcNorm2->getDecomposition(c, nfd)) { in changesWhenCasefolded()
120 if(nfd.length()==1) { in changesWhenCasefolded()
121 c=nfd[0]; /* single BMP code point */ in changesWhenCasefolded()
122 } else if(nfd.length()<=U16_MAX_LENGTH && in changesWhenCasefolded()
123 nfd.length()==U16_LENGTH(c=nfd.char32At(0)) in changesWhenCasefolded()
141 nfd.getBuffer(), nfd.length(), in changesWhenCasefolded()
144 0!=u_strCompare(nfd.getBuffer(), nfd.length(), in changesWhenCasefolded()
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait01.c26 int nfd, write_size = 0; in get_writesize() local
37 nfd = poll(pfd, 1, 1); in get_writesize()
38 if (nfd == -1) in get_writesize()
40 } while (nfd > 0); in get_writesize()
/third_party/skia/third_party/externals/icu/source/common/
Duprops.cpp220 UnicodeString nfd; in changesWhenCasefolded() local
226 if(nfcNorm2->getDecomposition(c, nfd)) { in changesWhenCasefolded()
228 if(nfd.length()==1) { in changesWhenCasefolded()
229 c=nfd[0]; /* single BMP code point */ in changesWhenCasefolded()
230 } else if(nfd.length()<=U16_MAX_LENGTH && in changesWhenCasefolded()
231 nfd.length()==U16_LENGTH(c=nfd.char32At(0)) in changesWhenCasefolded()
249 nfd.getBuffer(), nfd.length(), in changesWhenCasefolded()
252 0!=u_strCompare(nfd.getBuffer(), nfd.length(), in changesWhenCasefolded()
Dcaniter.cpp76 nfd(*Normalizer2::getNFDInstance(status)), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
175 nfd.normalize(newSource, source, status); in setSource()
384 nfd.normalize(possible, attempt, status); in getEquivalents()
512 nfd.normalize(temp, decompString, status); in extract()
576 nfd.normalize(temp, trial, status); in extract()
/third_party/icu/icu4c/source/common/
Duprops.cpp220 UnicodeString nfd; in changesWhenCasefolded() local
226 if(nfcNorm2->getDecomposition(c, nfd)) { in changesWhenCasefolded()
228 if(nfd.length()==1) { in changesWhenCasefolded()
229 c=nfd[0]; /* single BMP code point */ in changesWhenCasefolded()
230 } else if(nfd.length()<=U16_MAX_LENGTH && in changesWhenCasefolded()
231 nfd.length()==U16_LENGTH(c=nfd.char32At(0)) in changesWhenCasefolded()
249 nfd.getBuffer(), nfd.length(), in changesWhenCasefolded()
252 0!=u_strCompare(nfd.getBuffer(), nfd.length(), in changesWhenCasefolded()
Dcaniter.cpp76 nfd(*Normalizer2::getNFDInstance(status)), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
175 nfd.normalize(newSource, source, status); in setSource()
384 nfd.normalize(possible, attempt, status); in getEquivalents()
512 nfd.normalize(temp, decompString, status); in extract()
576 nfd.normalize(temp, trial, status); in extract()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/translit/
DTransliteratorDisorderedMarksTest.java42 Normalizer2 nfd = Normalizer2.getNFDInstance(); in disorderedMarksAddAll() local
72 String s = nfd.getDecomposition(i); in disorderedMarksAddAll()
203 Normalizer2 nfd = Normalizer2.getNFDInstance(); in TestSourceTargetSet2() local
205 String test = nfd.normalize("\u0104"); in TestSourceTargetSet2()
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DTransliteratorDisorderedMarksTest.java39 Normalizer2 nfd = Normalizer2.getNFDInstance(); in disorderedMarksAddAll() local
69 String s = nfd.getDecomposition(i); in disorderedMarksAddAll()
200 Normalizer2 nfd = Normalizer2.getNFDInstance(); in TestSourceTargetSet2() local
202 String test = nfd.normalize("\u0104"); in TestSourceTargetSet2()
/third_party/node/deps/icu-small/source/common/
Duprops.cpp222 UnicodeString nfd; in changesWhenCasefolded() local
228 if(nfcNorm2->getDecomposition(c, nfd)) { in changesWhenCasefolded()
230 if(nfd.length()==1) { in changesWhenCasefolded()
231 c=nfd[0]; /* single BMP code point */ in changesWhenCasefolded()
232 } else if(nfd.length()<=U16_MAX_LENGTH && in changesWhenCasefolded()
233 nfd.length()==U16_LENGTH(c=nfd.char32At(0)) in changesWhenCasefolded()
251 nfd.getBuffer(), nfd.length(), in changesWhenCasefolded()
254 0!=u_strCompare(nfd.getBuffer(), nfd.length(), in changesWhenCasefolded()
Dcaniter.cpp76 nfd(*Normalizer2::getNFDInstance(status)), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
175 nfd.normalize(newSource, source, status); in setSource()
384 nfd.normalize(possible, attempt, status); in getEquivalents()
512 nfd.normalize(temp, decompString, status); in extract()
576 nfd.normalize(temp, trial, status); in extract()

12345