/external/ltp/testcases/kernel/security/dirtyc0w/ |
dirtyc0w.c | 50 #define FNAME "test" 72 fd = SAFE_OPEN(FNAME, O_WRONLY|O_CREAT|O_EXCL, 0444); 88 SAFE_FILE_SCANF(FNAME, "%c", &c); 98 SAFE_UNLINK(FNAME);
|
/external/ltp/testcases/kernel/syscalls/creat/ |
creat05.c | 58 char fname[PATH_MAX]; local 67 snprintf(fname, sizeof(fname), "creat05_%d", num_opened_fds); 68 fd = SAFE_CREAT(fname, 0666);
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
fanotify06.c | 73 static char fname[BUF_SIZE]; variable 111 FAN_MODIFY, AT_FDCWD, fname); 118 fd_notify[p][i], fname); 170 fd = SAFE_OPEN(fname, O_RDWR); 171 SAFE_WRITE(1, fd, fname, strlen(fname)); 228 sprintf(fname, "tfile_%d", getpid()); 229 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700); 230 SAFE_WRITE(1, fd, fname, 1);
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl12.c | 52 char fname[20]; variable 80 if ((fd = open(fname, O_CREAT | O_RDONLY, 112 sprintf(fname, "fcnlt12.%d", getpid()); 118 unlink(fname);
|
/external/ltp/testcases/kernel/syscalls/lstat/ |
lstat01.c | 126 char fname[255], lname[255], symlnk[255], buf[255]; variable 185 sprintf(fname, "tfile_%d", getpid()); 186 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) { 189 fname, errno, strerror(errno)); 192 fname, errno, strerror(errno)); 196 if (symlink(fname, symlnk) == -1) { 198 fname, symlnk, errno, strerror(errno)); 202 } else if (strcmp(buf, fname) != 0) { 205 fname, buf);
|
/external/ltp/testcases/kernel/syscalls/setxattr/ |
setxattr02.c | 76 char *fname; member in struct:test_case 85 .fname = FILENAME, 93 .fname = DIRNAME, 101 .fname = SYMLINK, 109 .fname = FIFO, 117 .fname = CHR, 125 .fname = BLK, 133 .fname = SOCK, 144 TEST(setxattr(tc[i].fname, tc[i].key, tc[i].value, tc[i].size, tc[i].flags));
|
/external/ltp/testcases/kernel/syscalls/stat/ |
stat05.c | 126 char fname[255]; variable 143 * Call stat(2) with F_CLRALF argument on fname 145 TEST(stat(fname, &statter)); 149 tst_resm(TFAIL, "stat(%s, &statter) failed", fname); 153 fname, TEST_RETURN); 174 sprintf(fname, "tfile_%d", getpid()); 175 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) { 178 fname, errno, strerror(errno)); 182 tst_resm(TWARN | TERRNO, "close(%s) failed", fname);
|
/external/nist-sip/java/gov/nist/javax/sip/message/ |
MessageObject.java | 85 String fname = fieldType.toString(); local 86 sprint(fname + ":"); 87 if (fname.compareTo("int") == 0) { 90 } else if (fname.compareTo("short") == 0) { 93 } else if (fname.compareTo("char") == 0) { 96 } else if (fname.compareTo("long") == 0) { 99 } else if (fname.compareTo("boolean") == 0) { 102 } else if (fname.compareTo("double") == 0) { 105 } else if (fname.compareTo("float") == 0) {
|
/external/skia/bench/ |
AAClipBench.cpp | 20 SkString fName; 32 fName.printf("aaclip_%s_%s", 46 virtual const char* onGetName() { return fName.c_str(); } 90 SkString fName; 102 fName.printf("nested_aaclip_%s", doAA ? "AA" : "BW"); 116 virtual const char* onGetName() { return fName.c_str(); } 175 SkString fName; 187 fName.printf("aaclip_build_%s_%s", doPath ? "path" : "rect", 197 virtual const char* onGetName() { return fName.c_str(); }
|
BlurRoundRectBench.cpp | 26 : fName("blurroundrect") { 27 fName.appendf("_WH_%ix%i_cr_%i", width, height, cornerRadius); 33 return fName.c_str(); 77 SkString fName;
|
ColorCodecBench.h | 30 SkString fName;
|
MipMapBench.cpp | 14 SkString fName; 23 fName.printf("mipmap_build_%dx%d_%d_gamma", w, h, static_cast<int>(colorMode)); 25 fName.append("_f16"); 34 const char* onGetName() override { return fName.c_str(); }
|
TextBench.cpp | 46 SkString fName; 93 fName.printf("text_%g", SkScalarToFloat(fPaint.getTextSize())); 95 fName.append("_pos"); 97 fName.appendf("_%s", fontQualityName(fPaint)); 99 fName.append("_BK"); 101 fName.append("_WT"); 103 fName.appendf("_%02X", fPaint.getAlpha()); 107 fName.append("_ColorEmoji"); 110 return fName.c_str();
|
pack_int_uint16_t_Bench.cpp | 37 fName.append("pack_int_uint16_t_"); 38 fName.append(impl); 42 const char* onGetName() override { return fName.c_str(); } 54 SkString fName;
|
/external/skia/tools/trace/ |
SkEventTracingPriv.h | 34 const char* fName;
|
/external/skqp/bench/ |
AAClipBench.cpp | 20 SkString fName; 32 fName.printf("aaclip_%s_%s", 46 virtual const char* onGetName() { return fName.c_str(); } 90 SkString fName; 102 fName.printf("nested_aaclip_%s", doAA ? "AA" : "BW"); 116 virtual const char* onGetName() { return fName.c_str(); } 175 SkString fName; 187 fName.printf("aaclip_build_%s_%s", doPath ? "path" : "rect", 197 virtual const char* onGetName() { return fName.c_str(); }
|
BlurRoundRectBench.cpp | 26 : fName("blurroundrect") { 27 fName.appendf("_WH_%ix%i_cr_%i", width, height, cornerRadius); 33 return fName.c_str(); 77 SkString fName;
|
ColorCodecBench.h | 30 SkString fName;
|
MipMapBench.cpp | 14 SkString fName; 23 fName.printf("mipmap_build_%dx%d_%d_gamma", w, h, static_cast<int>(colorMode)); 25 fName.append("_f16"); 34 const char* onGetName() override { return fName.c_str(); }
|
TextBench.cpp | 46 SkString fName; 93 fName.printf("text_%g", SkScalarToFloat(fPaint.getTextSize())); 95 fName.append("_pos"); 97 fName.appendf("_%s", fontQualityName(fPaint)); 99 fName.append("_BK"); 101 fName.append("_WT"); 103 fName.appendf("_%02X", fPaint.getAlpha()); 107 fName.append("_ColorEmoji"); 110 return fName.c_str();
|
pack_int_uint16_t_Bench.cpp | 37 fName.append("pack_int_uint16_t_"); 38 fName.append(impl); 42 const char* onGetName() override { return fName.c_str(); } 54 SkString fName;
|
/external/skqp/tools/trace/ |
SkEventTracingPriv.h | 34 const char* fName;
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
round_trip_packed_literal_test.cc | 55 string fname = tensorflow::testing::TmpDir() + "/RoundTripsR1F32Length2.data"; local 57 tensorflow::WriteStringToFile(tensorflow::Env::Default(), fname, data) 61 TF_CHECK_OK(tensorflow::Env::Default()->NewRandomAccessFile(fname, &f)); 81 string fname = local 84 tensorflow::WriteStringToFile(tensorflow::Env::Default(), fname, data) 90 TF_CHECK_OK(tensorflow::Env::Default()->NewRandomAccessFile(fname, &f)); 116 string fname = local 119 tensorflow::WriteStringToFile(tensorflow::Env::Default(), fname, data) 125 TF_CHECK_OK(tensorflow::Env::Default()->NewRandomAccessFile(fname, &f));
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
tfprof_utils.h | 45 Status ReadProtoFile(Env* env, const string& fname, T* proto, 48 Status s = ReadFileToString(env, fname, &out); 52 if (ReadBinaryProto(tensorflow::Env::Default(), fname, proto).ok()) { 60 } else if (ReadBinaryProto(tensorflow::Env::Default(), fname, proto).ok()) {
|
/frameworks/native/opengl/libs/EGL/ |
FileBlobCache.cpp | 121 const char* fname = mFilename.c_str(); local 125 int fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); 129 if (unlink(fname) == -1) { 131 ALOGE("error unlinking cache file %s: %s (%d)", fname, 136 fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); 139 ALOGE("error creating cache file %s: %s (%d)", fname, 152 unlink(fname); 162 unlink(fname); 176 unlink(fname);
|