/src/sys/external/bsd/acpica/dist/generate/lint/ |
lset.bat | 1 set path=%PATH%;$G variable
|
/src/usr.bin/make/unit-tests/ |
varmod-path.mk | 1 # $NetBSD: varmod-path.mk,v 1.4 2023/05/10 15:53:32 rillig Exp $ 3 # Tests for the :P variable modifier, which looks up the path for a given 6 # The phony target does not have a corresponding path, therefore ... oops, 7 # as of 2020-08-23 it is nevertheless resolved to a path. This is probably 11 # path is returned. If it had been in the current directory, the difference 12 # between its path and its name would not be visible. 19 _!= rm -rf varmod-path.subdir 20 _!= mkdir varmod-path.subdir 21 _!= > varmod-path.subdir/varmod-path.phon [all...] |
/src/games/cribbage/ |
instr.c | 64 const char *path; local in function:instructions 75 path = "cat"; 77 if (!(path = getenv("PAGER")) || (*path == 0)) 78 path = _PATH_MORE; 88 execl("/bin/sh", "sh", "-c", path, (char *) NULL);
|
/src/tests/lib/libc/stdio/ |
t_clearerr.c | 36 static const char path[] = "/etc/passwd"; variable in typeref:typename:const char[] 49 fp = fopen(path, "r"); 75 fp = fopen(path, "r");
|
t_fflush.c | 39 static const char *path = "fflush"; variable in typeref:typename:const char * 51 f = fopen(path, "w"); 57 f = fopen(path, "r"); 73 (void)unlink(path); 78 (void)unlink(path); 105 f = fopen(path, "w"); 111 f = fopen(path, "r+"); 130 ATF_REQUIRE(unlink(path) == 0); 135 (void)unlink(path); 148 f = fopen(path, "w") [all...] |
/src/tests/lib/libc/sys/ |
t_getsockname.c | 46 const char *path = "sock.unix"; local in function:ATF_TC_BODY 63 strcpy(sun.sun_path, path); 70 ATF_CHECK(strcmp(sun.sun_path, path) == 0); 73 ATF_REQUIRE(unlink(path) != -1);
|
t_access.c | 45 static const char path[] = "access"; variable in typeref:typename:const char[] 61 fd = open(path, O_RDONLY | O_CREAT, 0600); 72 ATF_REQUIRE(access(path, mode[i]) != 0); 81 (void)unlink(path); 140 * "A component of the path prefix is not a directory, 141 * or the path argument contains at least one non-<slash>
|
t_mknod.c | 45 static char path[] = "node"; variable in typeref:typename:char[] 62 ATF_REQUIRE_ERRNO(EINVAL, mknod(path, S_IFCHR, -1) == -1); 76 (void)unlink(path); 101 ATF_REQUIRE(mknod(path, S_IFCHR, 0) == 0); 104 ATF_REQUIRE_ERRNO(EEXIST, mknod(path, S_IFCHR, 0) == -1); 106 ATF_REQUIRE(unlink(path) == 0); 111 (void)unlink(path); 125 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFCHR, 0) == -1); 128 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFBLK, 0) == -1); 133 (void)unlink(path); [all...] |
t_truncate.c | 44 static const char path[] = "truncate"; variable in typeref:typename:const char[] 59 fd = open(path, O_RDWR | O_CREAT, 0600); 76 (void)unlink(path); 81 (void)unlink(path); 119 fd = open(path, O_RDWR | O_CREAT, 0600); 126 ATF_REQUIRE(truncate(path, sizes[i]) == 0); 136 (void)unlink(path); 141 (void)unlink(path);
|
t_unlink.c | 43 static char path[] = "unlink"; variable in typeref:typename:char[] 59 fd = open(path, O_RDWR | O_CREAT, 0666); 63 ATF_REQUIRE(unlink(path) == 0); 66 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1); 72 (void)unlink(path); 99 (void)unlink(path); 111 ATF_REQUIRE(mkfifo(path, 0666) == 0); 112 ATF_REQUIRE(unlink(path) == 0); 115 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1); 120 (void)unlink(path); [all...] |
/src/usr.bin/mkdep/ |
findcc.c | 55 const char *path, *dir; local in function:findcc 70 if ((path = getenv("PATH")) == NULL) 73 for (dir = path; *dir != '\0'; ) {
|
/src/usr.bin/sort/ |
tmp.c | 90 char path[MAXPATHLEN]; local in function:ftmp 92 (void)snprintf(path, sizeof(path), "%s%s%s", tmpdir, 97 if ((fd = mkstemp(path)) < 0) 98 err(2, "ftmp: mkstemp(\"%s\")", path); 100 err(2, "ftmp: fdopen(\"%s\")", path); 102 (void)unlink(path);
|
/src/usr.bin/patch/ |
pch.h | 39 char *path; member in struct:file_name
|
/src/lib/libc/gen/ |
posix_spawnp.c | 55 const char *path, *p; local in function:posix_spawnp 61 /* "" is not a valid filename; check this before traversing PATH. */ 71 /* Get the path we're searching. */ 72 if ((path = getenv("PATH")) == NULL) 73 path = _PATH_DEFPATH; 76 * Find an executable image with the given name in the PATH 82 /* Find the end of this path element. */ 83 for (p = path; *path != 0 && *path != ':'; path++ [all...] |
/src/lib/libc/citrus/ |
citrus_lc_ctype.c | 81 char path[PATH_MAX + 1]; local in function:_citrus_LC_CTYPE_create_impl 89 snprintf(path, sizeof(path), 91 ret = _citrus_map_file(&r, path);
|
citrus_lc_template.h | 36 char path[PATH_MAX + 1]; local in function:_PREFIX 43 snprintf(path, sizeof(path), 45 ret = _map_file(&file, path);
|
/src/lib/libc/db/db/ |
dbfile.c | 85 char path[PATH_MAX]; local in function:__dbtemp 92 len = snprintf(path, sizeof(path), "%s/%sXXXXXX", 94 if ((size_t)len >= sizeof(path)) { 102 if ((fd = mkstemp(path)) != -1) { 103 if (unlink(path) == -1)
|
/src/lib/libc/db/hash/ |
ndbm.c | 66 char path[MAXPATHLEN]; local in function:dbm_open 74 (void)strncpy(path, file, sizeof(path) - 1); 75 (void)strncat(path, DBM_SUFFIX, sizeof(path) - strlen(path) - 1); 80 return ((DBM *)__hash_open(path, flags, mode, &info, 0));
|
/src/sbin/veriexecctl/ |
veriexecctl_parse.y | 59 %token <string> PATH 66 | statement path type fingerprint flags eol { 115 path : PATH { label
|
/src/sys/arch/hppa/stand/cdboot/ |
cdboot.c | 89 char path[128]; local in function:boot 96 devboot(boot_dev, path); 98 strncpy(path + strlen(path), ":/netbsd", 9); 100 printf(">> Booting %s: ", path); 108 if ((fd = loadfile(path, marks, LOAD_KERNEL)) == -1)
|
/src/sys/compat/common/ |
compat_util.c | 137 * If the path is exactly "/usr/libexec/ld.elf_so", first 144 char *path; local in function:compat_elf_check_interp 146 path = PNBUF_GET(); 147 snprintf(path, MAXPATHLEN, "%s-%s", interp, interp_suffix); 148 error = namei_simple_kernel(path, 156 snprintf(interp, MAXPATHLEN, "%s", path); 158 PNBUF_PUT(path);
|
/src/tests/fs/ptyfs/ |
t_nullpts.c | 67 char path[MAXPATHLEN]; local in function:ATF_TC_BODY 100 * Build nullfs path to slave. 102 strcpy(path, "/null"); 103 strcat(path, ptg.sn); 108 if (rump_sys_open(path, O_RDWR) == -1) 117 rump_sys_revoke(path);
|
/src/tests/lib/libc/stdlib/ |
t_system.c | 40 static const char *path = "system"; variable in typeref:typename:const char * 60 fd = open(path, O_RDONLY); 69 ATF_REQUIRE(unlink(path) == 0); 74 (void)unlink(path);
|
/src/usr.bin/find/ |
ls.c | 65 char *accpath, /* current valid path to filename */ 116 char path[MAXPATHLEN + 1]; local in function:printlink 118 if ((lnklen = readlink(name, path, sizeof(path) - 1)) == -1) { 122 path[lnklen] = '\0'; 123 (void)printf(" -> %s", path);
|
/src/usr.bin/write/ |
term_chk.c | 62 char path[MAXPATHLEN]; local in function:term_chk 70 i = snprintf(path, sizeof path, _PATH_DEV "%s", tty); 71 if (i < 0 || i >= (int)sizeof(path)) { 77 fd = open(path, O_WRONLY, 0);
|