/build/kati/ |
H A D | file.cc | 31 int fd = open(filename.c_str(), O_RDONLY); local 32 if (fd < 0) { 37 if (fstat(fd, &st) < 0) { 45 ssize_t r = HANDLE_EINTR(read(fd, &buf_[0], len)); 52 if (close(fd) < 0) {
|
H A D | fileutil.cc | 119 int fd = open("/dev/null", O_WRONLY); local 120 if (dup2(fd, 2) < 0) 122 close(fd);
|
H A D | func.cc | 703 int fd = open(filename.c_str(), O_RDONLY); local 704 if (fd < 0) { 719 if (fstat(fd, &st) < 0) { 726 ssize_t r = HANDLE_EINTR(read(fd, &out[0], len)); 731 if (close(fd) < 0) {
|
H A D | ninja.cc | 756 for (StringPiece fd : cr->find->finddirs) { 757 const string& d = ConcatDir(cr->find->chdir, fd);
|
/build/core/ |
H A D | checktree | 53 fd = os.popen(command); 54 lines = fd.readlines() 55 status = fd.close()
|
/build/make/core/ |
H A D | checktree | 53 fd = os.popen(command); 54 lines = fd.readlines() 55 status = fd.close()
|
/build/make/tools/makeparallel/ |
H A D | makeparallel.cpp | 48 // Throw an error if fd is not valid. 49 static void CheckFd(int fd) { argument 50 int ret = fcntl(fd, F_GETFD); 166 // Read a single byte from fd, with timeout in milliseconds. Returns true if 173 // read the read could block forever, so read from a dup'd fd and close it from 179 static bool ReadByteTimeout(int fd, int timeout_ms) { argument 183 // dup the fd so the signal handler can close it without losing the real one 184 dup_fd = dup(fd); 226 // clean up the dup'd fd in case the signal never fired
|
/build/tools/makeparallel/ |
H A D | makeparallel.cpp | 48 // Throw an error if fd is not valid. 49 static void CheckFd(int fd) { argument 50 int ret = fcntl(fd, F_GETFD); 166 // Read a single byte from fd, with timeout in milliseconds. Returns true if 173 // read the read could block forever, so read from a dup'd fd and close it from 179 static bool ReadByteTimeout(int fd, int timeout_ms) { argument 183 // dup the fd so the signal handler can close it without losing the real one 184 dup_fd = dup(fd); 226 // clean up the dup'd fd in case the signal never fired
|
/build/make/tools/zipalign/ |
H A D | ZipFile.cpp | 1150 time_t ZipFile::getModTime(int fd) argument 1154 if (fstat(fd, &sb) < 0) { 1155 ALOGD("HEY: fstat on fd %d failed\n", fd); 1177 int fd; 1178 fd = dup(fileno(mZipFp)); 1179 if (fd < 0) { 1183 return fd;
|
H A D | ZipFile.h | 236 time_t getModTime(int fd);
|
/build/tools/zipalign/ |
H A D | ZipFile.cpp | 1150 time_t ZipFile::getModTime(int fd) argument 1154 if (fstat(fd, &sb) < 0) { 1155 ALOGD("HEY: fstat on fd %d failed\n", fd); 1177 int fd; 1178 fd = dup(fileno(mZipFp)); 1179 if (fd < 0) { 1183 return fd;
|
H A D | ZipFile.h | 236 time_t getModTime(int fd);
|
/build/make/tools/droiddoc/templates-pdk/assets/ |
H A D | prettify.js | 7 bd="c",cd="cc",dd="cpp",ed="cxx",fd="cyc",gd="m",hd="null true false",id="json",jd="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ", 28 [$c]);y(C({keywords:ad,hashComments:o,cStyleComments:o}),[bd,cd,dd,ed,fd,gd]);y(C({keywords:hd}),[id]);y(C({keywords:jd,hashComments:o,cStyleComments:o}),[kd]);y(C({keywords:ld,cStyleComments:o}),[md]);y(C({keywords:nd,hashComments:o,multiLineStrings:o}),[od,pd,qd]);y(C({keywords:rd,hashComments:o,multiLineStrings:o,tripleQuotedStrings:o}),[sd,td]);y(C({keywords:ud,hashComments:o,multiLineStrings:o,regexLiterals:o}),[vd,wd,xd]);y(C({keywords:yd,hashComments:o,multiLineStrings:o,regexLiterals:o}),
|
/build/tools/droiddoc/templates-pdk/assets/ |
H A D | prettify.js | 7 bd="c",cd="cc",dd="cpp",ed="cxx",fd="cyc",gd="m",hd="null true false",id="json",jd="break continue do else for if return while auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile catch class delete false import new operator private protected public this throw true try boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params partial readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ", 28 [$c]);y(C({keywords:ad,hashComments:o,cStyleComments:o}),[bd,cd,dd,ed,fd,gd]);y(C({keywords:hd}),[id]);y(C({keywords:jd,hashComments:o,cStyleComments:o}),[kd]);y(C({keywords:ld,cStyleComments:o}),[md]);y(C({keywords:nd,hashComments:o,multiLineStrings:o}),[od,pd,qd]);y(C({keywords:rd,hashComments:o,multiLineStrings:o,tripleQuotedStrings:o}),[sd,td]);y(C({keywords:ud,hashComments:o,multiLineStrings:o,regexLiterals:o}),[vd,wd,xd]);y(C({keywords:yd,hashComments:o,multiLineStrings:o,regexLiterals:o}),
|
/build/make/tools/releasetools/ |
H A D | sparse_img.py | 170 def WriteRangeDataToFd(self, ranges, fd): 172 fd.write(data)
|
H A D | blockimgdiff.py | 68 def WriteRangeDataToFd(self, ranges, fd): 95 def WriteRangeDataToFd(self, ranges, fd): 179 def WriteRangeDataToFd(self, ranges, fd): 181 fd.write(data) 896 with open(src_file, "wb") as fd: 897 self.src.WriteRangeDataToFd(src_ranges, fd) 900 with open(tgt_file, "wb") as fd: 901 self.tgt.WriteRangeDataToFd(tgt_ranges, fd)
|
H A D | common.py | 1039 fd, fn = tempfile.mkstemp(prefix=prefix, suffix=suffix) 1040 os.close(fd)
|
/build/tools/releasetools/ |
H A D | sparse_img.py | 170 def WriteRangeDataToFd(self, ranges, fd): 172 fd.write(data)
|
H A D | blockimgdiff.py | 68 def WriteRangeDataToFd(self, ranges, fd): 95 def WriteRangeDataToFd(self, ranges, fd): 179 def WriteRangeDataToFd(self, ranges, fd): 181 fd.write(data) 896 with open(src_file, "wb") as fd: 897 self.src.WriteRangeDataToFd(src_ranges, fd) 900 with open(tgt_file, "wb") as fd: 901 self.tgt.WriteRangeDataToFd(tgt_ranges, fd)
|
H A D | common.py | 1039 fd, fn = tempfile.mkstemp(prefix=prefix, suffix=suffix) 1040 os.close(fd)
|