| /openbsd-src/usr.bin/cvs/ |
| H A D | repository.c | 33 char fpath[PATH_MAX]; in cvs_repository_unlock() local 37 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", repo, CVS_LOCK); in cvs_repository_unlock() 39 if (unlink(fpath) == -1 && errno != ENOENT) in cvs_repository_unlock() 40 cvs_log(LP_ERR, "warning: failed to unlink %s", fpath); in cvs_repository_unlock() 49 char fpath[PATH_MAX]; in cvs_repository_lock() local 57 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", repo, CVS_LOCK); in cvs_repository_lock() 65 if (stat(fpath, &st) == -1) in cvs_repository_lock() 85 if ((i = open(fpath, O_WRONLY|O_CREAT|O_TRUNC, 0755)) == -1) { in cvs_repository_lock() 90 fpath, strerror(errno)); in cvs_repository_lock() 94 worklist_add(fpath, &repo_locks); in cvs_repository_lock() [all …]
|
| H A D | history.c | 72 char revbuf[CVS_REV_BUFSZ], repo[PATH_MAX], fpath[PATH_MAX]; in cvs_history_add() local 99 if (getcwd(fpath, sizeof(fpath)) == NULL) in cvs_history_add() 101 p = fpath; in cvs_history_add() 104 if (strlcat(fpath, "/", sizeof(fpath)) >= in cvs_history_add() 105 sizeof(fpath) || strlcat(fpath, argument, in cvs_history_add() 106 sizeof(fpath)) >= sizeof(fpath)) in cvs_history_add() 111 if (strncmp(cvs_homedir, fpath, len) == 0 && in cvs_history_add() 112 fpath[len] == '/') { in cvs_history_add() 163 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", in cvs_history_add() 166 if ((fd = open(fpath, O_WRONLY|O_APPEND)) == -1) { in cvs_history_add()
|
| H A D | client.c | 408 char *d, *date, fpath[PATH_MAX], repo[PATH_MAX], *tag; in cvs_client_senddir() local 420 (void)xsnprintf(fpath, PATH_MAX, "%s/%s", in cvs_client_senddir() 423 if (stat(fpath, &st) == 0 && (st.st_mode & (S_IRUSR|S_IRGRP|S_IROTH))) in cvs_client_senddir() 704 char sticky[CVS_ENT_MAXLINELEN], fpath[PATH_MAX]; in cvs_client_updated() local 726 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", data, p); in cvs_client_updated() 770 (void)unlink(fpath); in cvs_client_updated() 771 if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1) in cvs_client_updated() 773 fpath, strerror(errno)); in cvs_client_updated() 804 char *len, *fpath, *wdir, wdirbuf[PATH_MAX]; in cvs_client_merged() local 824 fpath = rpath + strlen(repo) + 1; in cvs_client_merged() [all …]
|
| H A D | logmsg.c | 102 char *fpath, *logmsg, repo[PATH_MAX]; in cvs_logmsg_create() local 113 (void)xasprintf(&fpath, "%s/cvsXXXXXXXXXX", cvs_tmpdir); in cvs_logmsg_create() 115 if ((fd = mkstemp(fpath)) == -1) in cvs_logmsg_create() 118 worklist_add(fpath, &temp_files); in cvs_logmsg_create() 122 (void)unlink(fpath); in cvs_logmsg_create() 217 (void)unlink(fpath); in cvs_logmsg_create() 224 if (cvs_logmsg_edit(fpath) == -1) in cvs_logmsg_create() 229 (void)unlink(fpath); in cvs_logmsg_create() 235 logmsg = cvs_logmsg_read(fpath); in cvs_logmsg_create() 269 (void)unlink(fpath); in cvs_logmsg_create() [all …]
|
| H A D | server.c | 247 char fpath[PATH_MAX]; in cvs_server_static_directory() local 249 (void)xsnprintf(fpath, PATH_MAX, "%s/%s", in cvs_server_static_directory() 252 if ((fp = fopen(fpath, "w+")) == NULL) { in cvs_server_static_directory() 253 cvs_log(LP_ERRNO, "%s", fpath); in cvs_server_static_directory() 399 char *mode, *len, fpath[PATH_MAX]; in cvs_server_modified() local 418 (void)xsnprintf(fpath, PATH_MAX, "%s/%s", server_currentdir, data); in cvs_server_modified() 420 if ((fd = open(fpath, O_WRONLY | O_CREAT | O_TRUNC)) == -1) in cvs_server_modified() 421 fatal("cvs_server_modified: %s: %s", fpath, strerror(errno)); in cvs_server_modified() 439 char fpath[PATH_MAX]; in cvs_server_unchanged() local 451 (void)xsnprintf(fpath, PATH_MAX, "%s/%s", server_currentdir, data); in cvs_server_unchanged() [all …]
|
| H A D | file.c | 230 cvs_file_get_cf(const char *d, const char *f, const char *fpath, int fd, in cvs_file_get_cf() argument 236 for (p = fpath; p[0] == '.' && p[1] == '/';) in cvs_file_get_cf() 269 char repo[PATH_MAX], fpath[PATH_MAX]; in cvs_file_walklist() local 322 (void)xsnprintf(fpath, PATH_MAX, "%s/%s", in cvs_file_walklist() 325 if ((fd = open(fpath, O_RDONLY)) == -1) { in cvs_file_walklist() 326 strlcat(fpath, RCS_FILE_EXT, PATH_MAX); in cvs_file_walklist() 327 fd = open(fpath, O_RDONLY); in cvs_file_walklist() 333 fpath, strerror(errno)); in cvs_file_walklist() 411 char *buf, *ebuf, *cp, repo[PATH_MAX], fpath[PATH_MAX]; in cvs_file_walkdir() local 438 (void)xsnprintf(fpath, PATH_MAX, "%s/%s", cf->file_path, in cvs_file_walkdir() [all …]
|
| H A D | modules.c | 58 char *dirname, fpath[PATH_MAX], *prog; in modules_parse_line() local 190 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", in modules_parse_line() 192 cvs_file_get(fpath, 0, in modules_parse_line() 195 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", in modules_parse_line() 197 cvs_file_get(fpath, 0, in modules_parse_line()
|
| H A D | checkout.c | 242 char repo[PATH_MAX], fpath[PATH_MAX], path[PATH_MAX], *f[1]; in checkout_check_repository() local 343 (void)xsnprintf(fpath, sizeof(fpath), in checkout_check_repository() 351 strlcpy(fpath, fl->file_path, in checkout_check_repository() 352 sizeof(fpath)); in checkout_check_repository() 358 f[0] = fpath; in checkout_check_repository() 401 char *d, dbuf[PATH_MAX], *f, fbuf[PATH_MAX], fpath[PATH_MAX]; in checkout_classify() local 417 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s%s", d, f, RCS_FILE_EXT); in checkout_classify() 418 if (stat(fpath, &sb) == 0) { in checkout_classify() 426 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s/%s%s", in checkout_classify() 428 if (stat(fpath, &sb) == 0) { in checkout_classify()
|
| H A D | config.c | 85 char *p, *buf, *lbuf, fpath[PATH_MAX]; in cvs_read_config() local 87 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", in cvs_read_config() 90 if ((fp = fopen(fpath, "r")) == NULL) in cvs_read_config()
|
| H A D | util.c | 368 char fpath[PATH_MAX]; in cvs_rmdir() local 386 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", in cvs_rmdir() 390 if (lstat(fpath, &st) == -1) in cvs_rmdir() 391 fatal("'%s': %s", fpath, strerror(errno)); in cvs_rmdir() 402 fpath); in cvs_rmdir() 414 fpath); in cvs_rmdir() 419 if (cvs_rmdir(fpath) == -1) in cvs_rmdir() 423 if (cvs_unlink(fpath) == -1 && errno != ENOENT) in cvs_rmdir() 457 char fpath[PATH_MAX]; in cvs_get_repository_name() local 484 (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", in cvs_get_repository_name() [all …]
|
| H A D | admin.c | 250 char fpath[PATH_MAX], repo[PATH_MAX]; in cvs_admin_local() local 264 (void)xsnprintf(fpath, PATH_MAX, "%s/%s", repo, f); in cvs_admin_local() 266 if (strlcat(fpath, RCS_FILE_EXT, PATH_MAX) >= PATH_MAX) in cvs_admin_local() 269 if ((ofd = open(fpath, O_RDONLY)) == -1) in cvs_admin_local() 270 fatal("cvs_admin_local: open: `%s': %s", fpath, in cvs_admin_local() 276 ocf->file_rcs = rcs_open(fpath, ofd, RCS_READ, 0444); in cvs_admin_local()
|
| /openbsd-src/usr.sbin/config/ |
| H A D | mkmakefile.c | 308 const char *fpath; in emitobjs() local 317 if ((fpath = srcpath(fi)) == NULL) in emitobjs() 370 const char *fpath; in emitfiles() local 380 if ((fpath = srcpath(fi)) == NULL) in emitfiles() 382 len = strlen(fpath); in emitfiles() 383 if (fpath[len - 1] != suffix && fpath[len - 1] != uppersuffix) in emitfiles() 385 if (*fpath != '/') in emitfiles() 393 if (fprintf(fp, "%c%s%s", sp, *fpath != '/' ? "$S/" : "", in emitfiles() 394 fpath) < 0) in emitfiles() 408 emit_1rule(FILE *fp, struct files *fi, const char *fpath, const char *suffix) in emit_1rule() argument [all …]
|
| /openbsd-src/usr.bin/rcs/ |
| H A D | rcsmerge.c | 41 char fpath[PATH_MAX], r1[RCS_REV_BUFSZ], r2[RCS_REV_BUFSZ]; in rcsmerge_main() local 121 if ((fd = rcs_choosefile(argv[0], fpath, sizeof(fpath))) < 0) in rcsmerge_main() 122 err(status, "%s", fpath); in rcsmerge_main() 125 (void)fprintf(stderr, "RCS file: %s\n", fpath); in rcsmerge_main() 127 if ((file = rcs_open(fpath, fd, RCS_READ)) == NULL) in rcsmerge_main()
|
| H A D | rcsclean.c | 138 char fpath[PATH_MAX], numb[RCS_REV_BUFSZ]; in rcsclean_file() local 147 if ((fd = rcs_choosefile(fname, fpath, sizeof(fpath))) < 0) in rcsclean_file() 150 if ((file = rcs_open(fpath, fd, RCS_RDWR)) == NULL) in rcsclean_file() 161 warnx("%s: Symbolic name `%s' is undefined.", fpath, rev_str); in rcsclean_file() 195 fpath); in rcsclean_file()
|
| H A D | rcsprog.c | 187 char fpath[PATH_MAX]; in rcs_main() local 315 fd = rcs_choosefile(argv[i], fpath, sizeof(fpath)); in rcs_main() 317 warn("%s", fpath); in rcs_main() 322 (void)fprintf(stderr, "RCS file: %s\n", fpath); in rcs_main() 324 if ((file = rcs_open(fpath, fd, flags, fmode)) == NULL) { in rcs_main() 444 warnx("%s contains no revisions", fpath); in rcs_main() 463 "revision %s", fpath, rev_str); in rcs_main() 476 warnx("%s contains no revisions", fpath); in rcs_main() 495 "revision %s", fpath, rev_str); in rcs_main() 498 warnx("%s: warning: No locks are set.", fpath); in rcs_main() [all …]
|
| H A D | rcsutil.c | 217 char fpath[PATH_MAX]; in rcs_choosefile() local 238 if (strlcpy(fpath, rcspath, sizeof(fpath)) >= sizeof(fpath) || in rcs_choosefile() 239 strlcat(fpath, ext, sizeof(fpath)) >= sizeof(fpath)) in rcs_choosefile() 243 if (strcmp(fpath, filename) == 0) in rcs_choosefile() 246 if ((fd = open(fpath, O_RDONLY)) == -1) in rcs_choosefile() 250 err(1, "%s", fpath); in rcs_choosefile() 252 if (strlcpy(out, fpath, len) >= len) in rcs_choosefile()
|
| H A D | co.c | 53 char fpath[PATH_MAX]; in checkout_main() local 157 fd = rcs_choosefile(argv[i], fpath, sizeof(fpath)); in checkout_main() 159 warn("%s", fpath); in checkout_main() 166 (void)fprintf(stderr, "%s --> %s\n", fpath, in checkout_main() 170 warnx("%s: cannot combine -kv and -l", fpath); in checkout_main() 175 if ((file = rcs_open(fpath, fd, in checkout_main()
|
| H A D | rlog.c | 81 char fpath[PATH_MAX]; in rlog_main() local 166 fd = rcs_choosefile(argv[i], fpath, sizeof(fpath)); in rlog_main() 168 warn("%s", fpath); in rlog_main() 173 if ((file = rcs_open(fpath, fd, in rlog_main() 185 printf("%s\n", fpath); in rlog_main()
|
| H A D | rcsdiff.c | 54 char fpath[PATH_MAX], *rev_str1, *rev_str2; in rcsdiff_main() local 213 fd = rcs_choosefile(argv[i], fpath, sizeof(fpath)); in rcsdiff_main() 215 warn("%s", fpath); in rcsdiff_main() 219 if ((file = rcs_open(fpath, fd, in rcsdiff_main() 236 fprintf(stderr, "RCS file: %s\n", fpath); in rcsdiff_main()
|
| /openbsd-src/gnu/llvm/llvm/utils/ |
| H A D | wciia.py | 76 def find_owners(fpath): argument 86 if fpath == path: 93 if len(fpath) < len(path): 94 rpos = path.find(fpath)
|
| /openbsd-src/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/ |
| H A D | utils.py | 26 fpath = os.path.realpath(path) 28 if not os.path.isfile(fpath): 32 mode = os.stat(fpath).st_mode 45 return os.access(fpath, os.X_OK)
|
| /openbsd-src/usr.bin/libtool/LT/Mode/Link/ |
| H A D | Program.pm | 46 my $fpath = $self->{outfilepath}; 49 my $odir = dirname($fpath); 50 my $fname = basename($fpath);
|
| /openbsd-src/gnu/llvm/llvm/utils/release/ |
| H A D | bump-version.py | 18 def process_file(self, fpath: Path, version: packaging.version.Version) -> None: 26 data = fpath.read_text() 38 fpath.write_text("".join(new_data), newline="\n")
|
| /openbsd-src/bin/ksh/ |
| H A D | exec.c | 554 if (!tp->u.fpath) { in comexec() 569 if (include(tp->u.fpath, 0, NULL, 0) < 0) { in comexec() 572 cp, tp->u.fpath, strerror(errno)); in comexec() 580 cp, tp->u.fpath); in comexec() 843 char *fpath; /* for function autoloading */ in findcom() local 861 if ((fpath = str_val(global("FPATH"))) == null) { in findcom() 862 tp->u.fpath = NULL; in findcom() 865 tp->u.fpath = search(name, fpath, R_OK, in findcom() 917 (fpath = str_val(global("FPATH"))) != null && in findcom() 918 (npath = search(name, fpath, R_OK, in findcom() [all …]
|
| /openbsd-src/gnu/llvm/lldb/packages/Python/lldbsuite/test/ |
| H A D | dotest.py | 51 def is_exe(fpath): argument 53 if fpath == None: 56 if not fpath.endswith(".exe"): 57 fpath += ".exe" 58 return os.path.isfile(fpath) and os.access(fpath, os.X_OK) 63 fpath, _ = os.path.split(program) 64 if fpath:
|