Home | History | Annotate | Download | only in EGL

Lines Matching refs:fd

55         int fd = open(mFilename.c_str(), O_RDONLY, 0);
56 if (fd == -1) {
65 if (fstat(fd, &statBuf) == -1) {
67 close(fd);
76 close(fd);
81 PROT_READ, MAP_PRIVATE, fd, 0));
85 close(fd);
93 close(fd);
99 close(fd);
108 close(fd);
113 close(fd);
125 int fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0);
126 if (fd == -1) {
136 fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0);
138 if (fd == -1) {
151 close(fd);
161 close(fd);
171 if (write(fd, buf, fileSize) == -1) {
175 close(fd);
181 fchmod(fd, S_IRUSR);
182 close(fd);