Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 38) sorted by relevance

12

/commonlibrary/c_utils/base/test/unittest/common/
Dutils_unique_fd_test.cpp61 int fd = open("NOTHISFILE", O_RDWR, 0666); variable
76 int fd = open(testfilename, O_RDWR, 0666); variable
84 int fd = open(testfilename, O_RDWR, 0666); variable
92 int fd = open(testfilename, O_RDWR, 0666); variable
100 int fd = open(testfilename, O_RDWR, 0666); variable
108 int fd = open(testfilename, O_RDWR, 0666); variable
116 int fd = open(testfilename, O_RDWR, 0666); variable
125 static void Close(int fd) in Close()
137 int fd = open(testfilename, O_RDWR); variable
151 int fd = open(testfilename, O_RDWR); variable
Dutils_file_test.cpp87 int fd = open(filename.c_str(), O_RDONLY); variable
191 int fd = open(filename.c_str(), O_RDONLY); variable
208 int fd = open(filename.c_str(), O_RDONLY); variable
225 int fd = open(filename.c_str(), O_RDONLY); variable
242 int fd = open(filename.c_str(), O_RDONLY); variable
259 int fd = open(filename.c_str(), O_RDONLY); variable
393 …int fd = open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); variable
415 …int fd = open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); variable
437 …int fd = open(filename.c_str(), O_RDONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROT… variable
Dutils_event_test.cpp88 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
131 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
173 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
232 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
251 TimerFdHandler::TimerFdHandler(int fd, const TimerEventCallback& cb) in TimerFdHandler()
334 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
368 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
407 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
441 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
478 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); variable
[all …]
/commonlibrary/c_utils/base/test/benchmarktest/unique_fd_benchmark_test/
Dunique_fd_benchmark_test.cpp75 int fd = open("NOTHISFILE", O_RDWR, FILE_PERMISSION_READ_WRITE); in BENCHMARK_F() local
98 int fd = open(TEST_FILE_NAME, O_RDWR, FILE_PERMISSION_READ_WRITE); in BENCHMARK_F() local
110 int fd = open(TEST_FILE_NAME, O_RDWR, FILE_PERMISSION_READ_WRITE); in BENCHMARK_F() local
122 int fd = open(TEST_FILE_NAME, O_RDWR, FILE_PERMISSION_READ_WRITE); in BENCHMARK_F() local
134 int fd = open(TEST_FILE_NAME, O_RDWR, FILE_PERMISSION_READ_WRITE); in BENCHMARK_F() local
146 int fd = open(TEST_FILE_NAME, O_RDWR, FILE_PERMISSION_READ_WRITE); in BENCHMARK_F() local
158 int fd = open(TEST_FILE_NAME, O_RDWR, FILE_PERMISSION_READ_WRITE); in BENCHMARK_F() local
169 static void Close(int fd) in Close()
188 int fd = open(TEST_FILE_NAME, O_RDWR); in BENCHMARK_F() local
208 int fd = open(TEST_FILE_NAME, O_RDWR); in BENCHMARK_F() local
[all …]
/commonlibrary/c_utils/base/src/
Dio_event_reactor.cpp54 void IOEventReactor::InsertNodeFront(int fd, IOEventHandler* target) in InsertNodeFront()
93 int fd = target->fd_; in AddHandler() local
203 bool IOEventReactor::UpdateToDemultiplexer(int fd) in UpdateToDemultiplexer()
233 ErrCode IOEventReactor::HandleEvents(int fd, EventId event) in HandleEvents()
265 int fd = events[idx].first; in HandleAll() local
312 bool IOEventReactor::DoClean(int fd) in DoClean()
336 for (size_t fd = 0u; fd < ioHandlers_.size() && fd <= INT_MAX; fd++) { in CleanUp() local
346 ErrCode IOEventReactor::Clean(int fd) in Clean()
Dashmem.cpp46 int fd = AshmemCreate(name, size); in CreateAshmemStd() local
68 int fd = TEMP_FAILURE_RETRY(open("/dev/ashmem", O_RDWR | O_CLOEXEC)); in AshmemOpenLocked() local
93 int fd = AshmemOpenLocked(); in AshmemOpen() local
106 int fd = AshmemOpen(); in AshmemCreate() local
138 int AshmemSetProt(int fd, int prot) in AshmemSetProt()
143 int AshmemGetSize(int fd) in AshmemGetSize()
148 Ashmem::Ashmem(int fd, int32_t size) : memoryFd_(fd), memorySize_(size), flag_(0), startAddr_(nullp… in Ashmem()
165 int fd = AshmemCreate(name, size); in CreateAshmem() local
Dfile_ex.cpp47 bool RustLoadStringFromFd(int fd, rust::String& content) in RustLoadStringFromFd()
82 bool RustSaveStringToFd(int fd, const rust::String& content) in RustSaveStringToFd()
131 string GetFileNameByFd(const int fd) in GetFileNameByFd()
149 bool LoadStringFromFdToFile(int fd, string& content) in LoadStringFromFdToFile()
164 bool LoadStringFromFd(int fd, string& content) in LoadStringFromFd()
231 bool SaveStringToFd(int fd, const std::string& content) in SaveStringToFd()
Dio_event_epoll.cpp57 bool IOEventEpoll::OperateEpoll(int op, int fd, EPEventId epollEvents) in OperateEpoll()
83 ErrCode IOEventEpoll::ModifyEvents(int fd, REventId events) in ModifyEvents()
Devent_handler.cpp23 EventHandler::EventHandler(int fd, EventReactor* r) in EventHandler()
Devent_handler.h42 void SetHandle(int fd) { fd_ = fd; } in SetHandle()
Dio_event_handler.cpp28 IOEventHandler::IOEventHandler(int fd, EventId events, const EventCallback& cb) in IOEventHandler()
Dtimer.cpp88 uint32_t ret = DoRegister([this](int fd) { this->OnTimer(fd); }, interval, once, timerFd); in Register()
158 …std::function<void(int)> cb = [this, callback](int fd) { this->DoTimerListCallback(callback, fd); … in DoRegister()
/commonlibrary/utils_lite/hals/file/
Dhal_file.c27 int HalFileClose(int fd) in HalFileClose()
32 int HalFileRead(int fd, char *buf, unsigned int len) in HalFileRead()
37 int HalFileWrite(int fd, const char *buf, unsigned int len) in HalFileWrite()
58 int HalFileSeek(int fd, int offset, unsigned int whence) in HalFileSeek()
/commonlibrary/memory_utils/libdmabufheap/src/
Ddmabuf_alloc.c74 int fd = open(heapPath, O_RDONLY | O_CLOEXEC); in DmabufHeapOpen() local
80 int DmabufHeapClose(unsigned int fd) in DmabufHeapClose()
123 int DmabufHeapBufferSyncStart(unsigned int fd, DmabufHeapBufferSyncType syncType) in DmabufHeapBufferSyncStart()
135 int DmabufHeapBufferSyncEnd(unsigned int fd, DmabufHeapBufferSyncType syncType) in DmabufHeapBufferSyncEnd()
/commonlibrary/utils_lite/file/src/file_impl_hal/
Dfile.c31 int UtilsFileClose(int fd) in UtilsFileClose()
36 int UtilsFileRead(int fd, char* buf, unsigned int len) in UtilsFileRead()
41 int UtilsFileWrite(int fd, const char* buf, unsigned int len) in UtilsFileWrite()
56 int UtilsFileSeek(int fd, int offset, unsigned int whence) in UtilsFileSeek()
/commonlibrary/memory_utils/libpurgeablemem/cpp/src/
Dpurgeable_ashmem.cpp119 int fd = AshmemCreate("PurgeableAshmem", size); in CreatePurgeableData() local
215 bool PurgeableAshMem::ChangeAshmemData(size_t size, int fd, void *data) in ChangeAshmemData()
/commonlibrary/c_utils/base/test/unittest/rust/
Drust_utils_file_test.rs56 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_file_001() localVariable
132 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_fd_002() localVariable
145 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_fd_003() localVariable
158 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_fd_004() localVariable
171 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_fd_005() localVariable
183 let fd: i32; in test_load_string_from_fd_006() localVariable
290 let mut fd: RawFd = file.as_raw_fd(); in test_save_string_to_fd_002() localVariable
308 let mut fd: RawFd = file.as_raw_fd(); in test_save_string_to_fd_003() localVariable
327 let mut fd: RawFd = file.as_raw_fd(); in test_save_string_to_fd_004() localVariable
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/
Dwaker.rs52 let fd = unsafe { libc::eventfd(0, libc::EFD_CLOEXEC | libc::EFD_NONBLOCK) }; localVariable
/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/
Devent_benchmark_test.cpp105 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in SetFdAndCallback() local
261 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in BENCHMARK_F() local
325 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in BENCHMARK_F() local
349 TimerFdHandler::TimerFdHandler(int fd, const TimerEventCallback& cb) in TimerFdHandler()
425 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in BENCHMARK_F() local
463 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in EventLoop() local
590 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in BENCHMARK_F() local
638 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC); in BENCHMARK_F() local
1402 int fd = 10; in BENCHMARK_F() local
1427 int fd = 10; in BENCHMARK_F() local
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/
Dsys.rs41 let fd = unsafe { OwnedFd::from_raw_fd(raw) }; in open() localVariable
180 let fd = self.0.as_raw_fd(); in session_leader() localVariable
228 let fd = OwnedFd::from(pts); in ut_pty_pts_size_test() localVariable
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/
Dpipe.rs24 pub(crate) fd: File, field
29 let fd = unsafe { File::from_raw_fd(value.into_raw_fd()) }; in from() localVariable
/commonlibrary/c_utils/base/include/
Dunique_fd.h50 static void Close(int fd) in Close()
Dio_event_handler.h40 inline void SetFd(int fd) in SetFd()
/commonlibrary/memory_utils/libdmabufheap/include/
Ddmabuf_alloc.h39 unsigned int fd; member
/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/
Dfile_benchmark_test.cpp84 int fd = open(filename.c_str(), O_RDONLY); in LoadString() local
96 …int fd = open(filename.c_str(), O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in SaveString() local
125 int fd = open(filename.c_str(), O_RDONLY); in BENCHMARK_F() local
302 int fd = open(filename.c_str(), O_RDONLY); in BENCHMARK_F() local
324 int fd = open(filename.c_str(), O_RDONLY); in BENCHMARK_F() local
521 …int fd = open(filename.c_str(), O_RDONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROT… in BENCHMARK_F() local

12