/external/llvm/lib/Support/ |
DataStream.cpp | 55 int Fd; 57 DataFileStreamer() : Fd(0) {} 58 ~DataFileStreamer() override { close(Fd); } 61 return read(Fd, buf, len); 66 Fd = 0; 71 return sys::fs::openFileForRead(Filename, Fd);
|
/system/extras/mmap-perf/ |
mmapPerf.cpp | 20 class Fd { 24 void set(int fd) { m_fd = fd; } 25 Fd() {} 26 Fd(int fd) : m_fd{fd} {} 27 ~Fd() { 50 Fd m_fileFd; 58 int fd = open(name.c_str(), O_CREAT | O_RDWR, S_IRWXU) variable [all...] |
/prebuilts/go/darwin-x86/src/os/ |
file_unix.go | 33 fd int 39 // Fd returns the integer Unix file descriptor referencing the open file. 41 func (f *File) Fd() uintptr { 45 return uintptr(f.fd) 49 func NewFile(fd uintptr, name string) *File { 50 fdi := int(fd) 54 f := &File{&file{fd: fdi, name: name}} 122 if file == nil || file.fd < 0 { 126 if e := syscall.Close(file.fd); e != nil { 129 file.fd = -1 // so it can't be closed agai [all...] |
file_plan9.go | 23 fd int 28 // Fd returns the integer Plan 9 file descriptor referencing the open file. 30 func (f *File) Fd() uintptr { 34 return uintptr(f.fd) 38 func NewFile(fd uintptr, name string) *File { 39 fdi := int(fd) 43 f := &File{&file{fd: fdi, name: name}} 84 fd int 109 fd, e = syscall.Create(name, flag, syscallMode(perm)) 111 fd, e = syscall.Open(name, flag [all...] |
file_windows.go | 28 fd syscall.Handle 39 // Fd returns the Windows handle referencing the open file. 41 func (file *File) Fd() uintptr { 45 return uintptr(file.fd) 51 f := &File{&file{fd: h, name: name}} 53 if syscall.GetConsoleMode(f.fd, &m) == nil { 61 func NewFile(fd uintptr, name string) *File { 62 h := syscall.Handle(fd) 173 if file.fd == syscall.InvalidHandle { 178 e = syscall.FindClose(syscall.Handle(file.fd)) [all...] |
/prebuilts/go/linux-x86/src/os/ |
file_unix.go | 33 fd int 39 // Fd returns the integer Unix file descriptor referencing the open file. 41 func (f *File) Fd() uintptr { 45 return uintptr(f.fd) 49 func NewFile(fd uintptr, name string) *File { 50 fdi := int(fd) 54 f := &File{&file{fd: fdi, name: name}} 122 if file == nil || file.fd < 0 { 126 if e := syscall.Close(file.fd); e != nil { 129 file.fd = -1 // so it can't be closed agai [all...] |
file_plan9.go | 23 fd int 28 // Fd returns the integer Plan 9 file descriptor referencing the open file. 30 func (f *File) Fd() uintptr { 34 return uintptr(f.fd) 38 func NewFile(fd uintptr, name string) *File { 39 fdi := int(fd) 43 f := &File{&file{fd: fdi, name: name}} 84 fd int 109 fd, e = syscall.Create(name, flag, syscallMode(perm)) 111 fd, e = syscall.Open(name, flag [all...] |
file_windows.go | 28 fd syscall.Handle 39 // Fd returns the Windows handle referencing the open file. 41 func (file *File) Fd() uintptr { 45 return uintptr(file.fd) 51 f := &File{&file{fd: h, name: name}} 53 if syscall.GetConsoleMode(f.fd, &m) == nil { 61 func NewFile(fd uintptr, name string) *File { 62 h := syscall.Handle(fd) 173 if file.fd == syscall.InvalidHandle { 178 e = syscall.FindClose(syscall.Handle(file.fd)) [all...] |
/art/runtime/base/unix_file/ |
fd_file.cc | 42 FdFile::FdFile(int fd, bool check_usage) 44 fd_(fd), auto_close_(true), read_only_mode_(false) { 47 FdFile::FdFile(int fd, const std::string& path, bool check_usage) 48 : FdFile(fd, path, check_usage, false) { 51 FdFile::FdFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) 53 fd_(fd), file_path_(path), auto_close_(true), read_only_mode_(read_only_mode) { 191 int FdFile::Fd() const { 207 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { 209 return read(fd, buf, count); 213 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) [all...] |
/external/llvm/lib/Target/Mips/ |
MipsSEISelLowering.cpp | [all...] |