/external/elfutils/tests/ |
D | elfstrmerge.c | 95 fail (const char *msg, const char *fname) in fail() argument 98 if (fname != NULL) in fail() 99 error (1, 0, "%s: %s", fname, msg); in fail() 106 fail_errno (const char *msg, const char *fname) in fail_errno() argument 109 if (fname != NULL) in fail_errno() 110 error (1, errno, "%s: %s", fname, msg); in fail_errno() 117 fail_idx (const char *msg, const char *fname, size_t idx) in fail_idx() argument 120 if (fname != NULL) in fail_idx() 121 error (1, 0, "%s: %s %zd", fname, msg, idx); in fail_idx() 128 fail_elf (const char *msg, const char *fname) in fail_elf() argument [all …]
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify01.c | 59 static char fname[BUF_SIZE]; variable 81 FAN_CLOSE | FAN_OPEN, AT_FDCWD, fname) < 0) { in main() 85 "failed", fd_notify, fname); in main() 91 fd = SAFE_OPEN(cleanup, fname, O_RDONLY); in main() 110 fd = SAFE_OPEN(cleanup, fname, O_RDWR | O_CREAT, 0700); in main() 114 SAFE_WRITE(cleanup, 1, fd, fname, strlen(fname)); in main() 136 FAN_ACCESS, AT_FDCWD, fname) < 0) { in main() 140 "AT_FDCWD, %s) failed", fd_notify, fname); in main() 143 fd = SAFE_OPEN(cleanup, fname, O_RDWR); in main() 159 SAFE_WRITE(cleanup, 1, fd, fname, 1); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl10.c | 127 char fname[255]; variable 165 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 170 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 184 fname, TEST_ERRNO, in main() 190 fname, TEST_RETURN); in main() 212 sprintf(fname, "tfile_%d", getpid()); in setup() 213 if ((fd = creat(fname, 0644)) == -1) { in setup() 215 "creat(%s, 0644) Failed, errno=%d : %s", fname, errno, in setup() 219 fname, errno, strerror(errno)); in setup() 220 } else if ((fd = open(fname, O_RDWR, 0700)) == -1) { in setup() [all …]
|
D | fcntl09.c | 127 char fname[255]; variable 165 fname, type ? "F_RDLCK" : "F_WRLCK", in main() 171 fname, in main() 186 fname, TEST_ERRNO, in main() 191 fname, TEST_RETURN); in main() 213 sprintf(fname, "./file_%d", getpid()); in setup() 214 if ((fd = creat(fname, 0644)) == -1) { in setup() 216 "creat(%s, 0644) Failed, errno=%d : %s", fname, errno, in setup() 220 fname, errno, strerror(errno)); in setup() 221 } else if ((fd = open(fname, O_RDWR, 0700)) == -1) { in setup() [all …]
|
D | fcntl23.c | 103 char fname[255]; variable 142 fname, TEST_ERRNO, strerror(TEST_ERRNO)); in main() 149 fname, TEST_RETURN); in main() 155 fname, TEST_RETURN); in main() 159 fname); in main() 165 fname, errno, strerror(errno)); in main() 189 sprintf(fname, "tfile_%d", getpid()); in setup() 190 if ((fd = open(fname, O_RDONLY | O_CREAT, 0777)) == -1) { in setup() 193 fname, errno, strerror(errno)); in setup() 206 tst_resm(TWARN, "close(%s) Failed, errno=%d : %s", fname, errno, in cleanup()
|
/external/zlib/src/contrib/untgz/ |
D | untgz.c | 98 char *fname; member 206 int setfiletime (char *fname,time_t ftime) in setfiletime() argument 234 hFile = CreateFile(fname, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, in setfiletime() 246 return utime(fname,&settime); in setfiletime() 253 void push_attr(struct attr_item **list,char *fname,int mode,time_t time) in push_attr() argument 260 item->fname = strdup(fname); in push_attr() 276 setfiletime(item->fname,item->time); in restore_attr() 277 chmod(item->fname,item->mode); in restore_attr() 371 int matchname (int arg,int argc,char **argv,char *fname) in matchname() argument 377 if (ExprMatch(fname,argv[arg++])) in matchname() [all …]
|
/external/ltp/testcases/kernel/syscalls/inotify/ |
D | inotify01.c | 60 static char fname[BUF_SIZE]; variable 83 if (chmod(fname, 0755) < 0) { in main() 85 "chmod(%s, 0755) failed", fname); in main() 90 if ((fd = open(fname, O_RDONLY)) == -1) { in main() 92 "open(%s, O_RDWR|O_CREAT,0700) failed", fname); in main() 105 tst_brkm(TBROK, cleanup, "close(%s) failed", fname); in main() 110 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) { in main() 112 "open(%s, O_RDWR|O_CREAT,0700) failed", fname); in main() 119 "write(%d, %s, 1) failed", fd, fname); in main() 125 tst_brkm(TBROK, cleanup, "close(%s) failed", fname); in main() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | radattr.c | 70 char fname[512]; in print_attributes() local 75 slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ifname); in print_attributes() 76 fp = fopen(fname, "w"); in print_attributes() 78 warn("radattr plugin: Could not open %s for writing: %m", fname); in print_attributes() 90 dbglog("RADATTR plugin wrote %d line(s) to file %s.", cnt, fname); in print_attributes() 106 char fname[512]; in cleanup() local 108 slprintf(fname, sizeof(fname), "/var/run/radattr.%s", ifname); in cleanup() 109 (void) remove(fname); in cleanup() 110 dbglog("RADATTR plugin removed file %s.", fname); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/link/ |
D | link05.c | 58 static char fname[255]; variable 94 sprintf(lname, "%s%d", fname, cnt); in main() 95 TEST(link(fname, lname)); in main() 100 fname, lname, TEST_ERRNO, in main() 105 SAFE_STAT(cleanup, fname, &fbuf); in main() 108 sprintf(lname, "%s%d", fname, cnt); in main() 117 fname, fname, nlinks, in main() 127 fname, fname, nlinks, TEST_RETURN, in main() 132 sprintf(lname, "%s%d", fname, cnt); in main() 154 sprintf(fname, "%s_%d", BASENAME, getpid()); in setup() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | SIPObject.java | 111 String fname = fieldType.toString(); in equals() local 112 if (fname.compareTo("int") == 0) { in equals() 115 } else if (fname.compareTo("short") == 0) { in equals() 118 } else if (fname.compareTo("char") == 0) { in equals() 121 } else if (fname.compareTo("long") == 0) { in equals() 124 } else if (fname.compareTo("boolean") == 0) { in equals() 127 } else if (fname.compareTo("double") == 0) { in equals() 130 } else if (fname.compareTo("float") == 0) { in equals() 201 String fname = fieldType.toString(); in match() local 202 if (fname.compareTo("int") == 0) { in match() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/address/ |
D | NetObject.java | 109 String fname = fieldType.toString(); in equals() local 110 if (fname.compareTo("int") == 0) { in equals() 113 } else if (fname.compareTo("short") == 0) { in equals() 116 } else if (fname.compareTo("char") == 0) { in equals() 119 } else if (fname.compareTo("long") == 0) { in equals() 122 } else if (fname.compareTo("boolean") == 0) { in equals() 125 } else if (fname.compareTo("double") == 0) { in equals() 128 } else if (fname.compareTo("float") == 0) { in equals() 199 String fname = fieldType.toString(); in match() local 200 if (fname.compareTo("int") == 0) { in match() [all …]
|
/external/strace/tests-m32/ |
D | chmod.c | 42 static const char fname[] = "chmod_test_file"; in main() local 44 if (open(fname, O_CREAT|O_RDONLY, 0400) < 0) in main() 47 long rc = syscall(__NR_chmod, fname, 0600); in main() 48 printf("chmod(\"%s\", 0600) = %s\n", fname, sprintrc(rc)); in main() 50 if (unlink(fname)) in main() 53 rc = syscall(__NR_chmod, fname, 051); in main() 54 printf("chmod(\"%s\", 051) = %s\n", fname, sprintrc(rc)); in main() 56 rc = syscall(__NR_chmod, fname, 004); in main() 57 printf("chmod(\"%s\", 004) = %s\n", fname, sprintrc(rc)); in main()
|
D | readlinkat.c | 44 const char * const fname = tail_memdup(LINKPATH, sizeof(LINKPATH)); in main() local 46 hexquote_strndup(fname, sizeof(LINKPATH) - 1); in main() 51 (void) unlink(fname); in main() 53 long rc = syscall(__NR_readlinkat, -100, fname, buf, size); in main() 57 if (symlink(TARGET, fname)) in main() 60 rc = syscall(__NR_readlinkat, -100, fname, buf, size); in main() 63 (void) unlink(fname); in main() 70 if (unlink(fname)) in main()
|
/external/strace/tests-mx32/ |
D | chmod.c | 42 static const char fname[] = "chmod_test_file"; in main() local 44 if (open(fname, O_CREAT|O_RDONLY, 0400) < 0) in main() 47 long rc = syscall(__NR_chmod, fname, 0600); in main() 48 printf("chmod(\"%s\", 0600) = %s\n", fname, sprintrc(rc)); in main() 50 if (unlink(fname)) in main() 53 rc = syscall(__NR_chmod, fname, 051); in main() 54 printf("chmod(\"%s\", 051) = %s\n", fname, sprintrc(rc)); in main() 56 rc = syscall(__NR_chmod, fname, 004); in main() 57 printf("chmod(\"%s\", 004) = %s\n", fname, sprintrc(rc)); in main()
|
/external/strace/tests/ |
D | chmod.c | 42 static const char fname[] = "chmod_test_file"; in main() local 44 if (open(fname, O_CREAT|O_RDONLY, 0400) < 0) in main() 47 long rc = syscall(__NR_chmod, fname, 0600); in main() 48 printf("chmod(\"%s\", 0600) = %s\n", fname, sprintrc(rc)); in main() 50 if (unlink(fname)) in main() 53 rc = syscall(__NR_chmod, fname, 051); in main() 54 printf("chmod(\"%s\", 051) = %s\n", fname, sprintrc(rc)); in main() 56 rc = syscall(__NR_chmod, fname, 004); in main() 57 printf("chmod(\"%s\", 004) = %s\n", fname, sprintrc(rc)); in main()
|
D | readlinkat.c | 44 const char * const fname = tail_memdup(LINKPATH, sizeof(LINKPATH)); in main() local 46 hexquote_strndup(fname, sizeof(LINKPATH) - 1); in main() 51 (void) unlink(fname); in main() 53 long rc = syscall(__NR_readlinkat, -100, fname, buf, size); in main() 57 if (symlink(TARGET, fname)) in main() 60 rc = syscall(__NR_readlinkat, -100, fname, buf, size); in main() 63 (void) unlink(fname); in main() 70 if (unlink(fname)) in main()
|
/external/dtc/ |
D | srcpos.c | 71 static char *try_open(const char *dirname, const char *fname, FILE **fp) in try_open() argument 75 if (!dirname || fname[0] == '/') in try_open() 76 fullname = xstrdup(fname); in try_open() 78 fullname = join_path(dirname, fname); in try_open() 98 static char *fopen_any_on_path(const char *fname, FILE **fp) in fopen_any_on_path() argument 108 fullname = try_open(cur_dir, fname, fp); in fopen_any_on_path() 112 fullname = try_open(node->dirname, fname, fp); in fopen_any_on_path() 117 FILE *srcfile_relative_open(const char *fname, char **fullnamep) in srcfile_relative_open() argument 122 if (streq(fname, "-")) { in srcfile_relative_open() 126 fullname = fopen_any_on_path(fname, &f); in srcfile_relative_open() [all …]
|
/external/ltp/testcases/kernel/syscalls/rename/ |
D | rename13.c | 76 char fname[255], mname[255]; variable 108 TEST(rename(fname, mname)); in main() 111 tst_resm(TFAIL, "rename(%s, %s) failed", fname, mname); in main() 123 if (stat(fname, &buf1) == -1) { in main() 125 "%s in rename()", fname); in main() 166 sprintf(fname, "./tfile_%d", getpid()); in setup() 169 SAFE_TOUCH(cleanup, fname, 0700, NULL); in setup() 171 if (stat(fname, &buf1) == -1) { in setup() 173 "in rename()", fname); in setup() 182 if (link(fname, mname) == -1) { in setup() [all …]
|
/external/autotest/client/cros/ |
D | kernel_trace.py | 78 fname = os.path.join(self._TRACE_ROOT, 'tracing_on') 79 result = int(utils.read_one_line(fname).strip()) 101 fname = os.path.join(self._TRACE_ROOT, 'tracing_on') 102 result = int(utils.read_one_line(fname).strip()) 125 fname = os.path.join(self._TRACE_ROOT, 'events', event_path, 'enable') 127 if not os.path.exists(fname): 128 logging.warning("Unable to locate tracing event %s", fname) 130 utils.write_one_line(fname, val) 132 fname = os.path.join(self._TRACE_ROOT, "set_event") 134 with open(fname) as fd: [all …]
|
/external/ipsec-tools/src/racoon/ |
D | logger.c | 64 log_open(siz, fname) in log_open() argument 66 char *fname; 91 if (fname) 92 p->fname = racoon_strdup(fname); 128 if (p->fname == NULL) 130 fp = fopen(p->fname, "a"); 146 if (p->fname == NULL) in log_vprint() 148 fp = fopen(p->fname, "a"); in log_vprint() 165 if (p->fname == NULL) in log_vaprint() 167 fp = fopen(p->fname, "a"); in log_vaprint() [all …]
|
/external/ltp/tools/pounder21/ |
D | run.c | 50 static inline int is_executable(const char *fname); 51 static inline int is_directory(const char *fname); 60 static int process_dir(const char *fname); 61 static pid_t spawn_test(char *fname); 62 static void note_child(pid_t pid, char *fname, char type); 217 static inline int is_executable(const char *fname) in is_executable() argument 221 if (stat(fname, &tmp) < 0) { in is_executable() 240 static inline int is_directory(const char *fname) in is_directory() argument 244 if (stat(fname, &tmp) < 0) { in is_directory() 464 static pid_t spawn_test(char *fname) in spawn_test() argument [all …]
|
/external/elfutils/src/ |
D | size.c | 96 static int process_file (const char *fname); 99 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname); 102 static void handle_elf (Elf *elf, const char *fullname, const char *fname); 107 #define INTERNAL_ERROR(fname) \ argument 109 fname, __LINE__, PACKAGE_VERSION, elf_errmsg (-1)) 284 process_file (const char *fname) in process_file() argument 286 int fd = open (fname, O_RDONLY); in process_file() 289 error (0, errno, gettext ("cannot open '%s'"), fname); in process_file() 299 handle_elf (elf, NULL, fname); in process_file() 302 INTERNAL_ERROR (fname); in process_file() [all …]
|
/external/nist-sip/java/gov/nist/core/ |
D | GenericObject.java | 239 String fname = fieldType.toString(); in merge() local 243 if (fname.compareTo("int") == 0) { in merge() 246 } else if (fname.compareTo("short") == 0) { in merge() 249 } else if (fname.compareTo("char") == 0) { in merge() 252 } else if (fname.compareTo("long") == 0) { in merge() 255 } else if (fname.compareTo("boolean") == 0) { in merge() 258 } else if (fname.compareTo("double") == 0) { in merge() 261 } else if (fname.compareTo("float") == 0) { in merge() 436 String fname = fieldType.toString(); in equals() local 437 if (fname.compareTo("int") == 0) { in equals() [all …]
|
/external/llvm/utils/release/ |
D | findRegressions-nightly.py | 22 fname = '' 33 fname = tmp[1].strip('\r\n') 35 fname = tmp[0].strip('\r\n') 37 if not test.has_key(fname) : 38 test[fname] = {} 41 test[fname][k] = 'NA' 42 test[fname][t[1]] = t[0] 44 print test[fname][t[1]] 53 test[fname][tp + n] = float(t[2].split(' ')[2]) 55 print test[fname][tp + n] [all …]
|
/external/skia/infra/bots/ |
D | test_utils.py | 30 def write(self, fname, mode=0640): argument 32 fname = os.path.join(self._cwd, fname) 33 with open(fname, 'w') as f: 35 os.chmod(fname, mode) 37 def remove(self, fname): argument 39 fname = os.path.join(self._cwd, fname) 40 if os.path.isfile(fname): 41 os.remove(fname) 43 os.rmdir(fname)
|