Home
last modified time | relevance | path

Searched refs:fdobj (Results 1 – 10 of 10) sorted by relevance

/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_client_posix.cc255 grpc_fd** fdobj) { in grpc_tcp_client_prepare_fd() argument
261 *fdobj = nullptr; in grpc_tcp_client_prepare_fd()
285 *fdobj = grpc_fd_create(fd, name, true); in grpc_tcp_client_prepare_fd()
292 grpc_pollset_set* interested_parties, grpc_closure* closure, grpc_fd* fdobj, in grpc_tcp_client_create_from_prepared_fd() argument
295 const int fd = grpc_fd_wrapped_fd(fdobj); in grpc_tcp_client_create_from_prepared_fd()
304 *ep = grpc_tcp_client_create_from_fd(fdobj, channel_args, addr_str); in grpc_tcp_client_create_from_prepared_fd()
310 grpc_fd_orphan(fdobj, nullptr, nullptr, "tcp_client_connect_error"); in grpc_tcp_client_create_from_prepared_fd()
315 grpc_pollset_set_add_fd(interested_parties, fdobj); in grpc_tcp_client_create_from_prepared_fd()
320 ac->fd = fdobj; in grpc_tcp_client_create_from_prepared_fd()
331 ac->addr_str, fdobj); in grpc_tcp_client_create_from_prepared_fd()
[all …]
Dtcp_client_posix.h51 grpc_fd** fdobj);
64 grpc_pollset_set* interested_parties, grpc_closure* closure, grpc_fd* fdobj,
Dtcp_server_posix.cc229 grpc_fd* fdobj = grpc_fd_create(fd, name, true); in on_read() local
236 grpc_pollset_add_fd(read_notifier_pollset, fdobj); in on_read()
247 grpc_tcp_create(fdobj, sp->server->channel_args, addr_str), in on_read()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dtcp_client_posix.cc287 grpc_fd* fdobj = grpc_fd_create(fd, name.c_str(), true); in grpc_tcp_client_create_from_prepared_fd() local
290 *ep = grpc_tcp_client_create_from_fd(fdobj, channel_args, in grpc_tcp_client_create_from_prepared_fd()
300 grpc_fd_orphan(fdobj, nullptr, nullptr, "tcp_client_connect_error"); in grpc_tcp_client_create_from_prepared_fd()
305 grpc_pollset_set_add_fd(interested_parties, fdobj); in grpc_tcp_client_create_from_prepared_fd()
310 ac->fd = fdobj; in grpc_tcp_client_create_from_prepared_fd()
321 ac->addr_str.c_str(), fdobj); in grpc_tcp_client_create_from_prepared_fd()
Dtcp_server_posix.cc248 grpc_fd* fdobj = grpc_fd_create(fd, name.c_str(), true); in on_read() local
255 grpc_pollset_add_fd(read_notifier_pollset, fdobj); in on_read()
267 grpc_tcp_create(fdobj, sp->server->channel_args, addr_str.c_str()), in on_read()
594 grpc_fd* fdobj = grpc_fd_create(fd, name.c_str(), true); in Handle() local
599 grpc_pollset_add_fd(read_notifier_pollset, fdobj); in Handle()
609 grpc_tcp_create(fdobj, s_->channel_args, addr_str.c_str()), in Handle()
/external/python/cpython3/Modules/_io/
Dfileio.c395 PyObject *fdobj; local
402 fdobj = PyObject_CallFunction(opener, "Oi", nameobj, flags);
403 if (fdobj == NULL)
405 if (!PyLong_Check(fdobj)) {
406 Py_DECREF(fdobj);
412 self->fd = _PyLong_AsInt(fdobj);
413 Py_DECREF(fdobj);
/external/python/cpython3/Modules/
Dsignalmodule.c679 PyObject *fdobj; in signal_set_wakeup_fd() local
687 &fdobj, &warn_on_full_buffer)) in signal_set_wakeup_fd()
690 sockfd = PyLong_AsSocket_t(fdobj); in signal_set_wakeup_fd()
Dsocketmodule.c5136 PyObject *fdobj = NULL; local
5150 &family, &type, &proto, &fdobj))
5155 if (fdobj == NULL || fdobj == Py_None)
5164 if (fdobj != NULL && fdobj != Py_None) {
5167 if (PyBytes_Check(fdobj)) {
5169 if (PyBytes_GET_SIZE(fdobj) != sizeof(info)) {
5175 memcpy(&info, PyBytes_AS_STRING(fdobj), sizeof(info));
5199 if (PyFloat_Check(fdobj)) {
5205 fd = PyLong_AsSocket_t(fdobj);
5970 socket_close(PyObject *self, PyObject *fdobj) argument
[all …]
D_posixsubprocess.c194 PyObject* fdobj = PyTuple_GET_ITEM(py_fds_to_keep, i); in make_inheritable() local
195 long fd = PyLong_AsLong(fdobj); in make_inheritable()
/external/python/cpython2/Modules/
Dposixmodule.c859 posix_fildes(PyObject *fdobj, int (*func)(int)) in posix_fildes() argument
863 fd = PyObject_AsFileDescriptor(fdobj); in posix_fildes()
1842 posix_fchdir(PyObject *self, PyObject *fdobj) in posix_fchdir() argument
1844 return posix_fildes(fdobj, fchdir); in posix_fchdir()
2038 posix_fsync(PyObject *self, PyObject *fdobj) in posix_fsync() argument
2040 return posix_fildes(fdobj, fsync); in posix_fsync()
2056 posix_fdatasync(PyObject *self, PyObject *fdobj) in posix_fdatasync() argument
2058 return posix_fildes(fdobj, fdatasync); in posix_fdatasync()