/freebsd-9.3-release/contrib/file/src/ |
H A D | apptype.c | 49 char path[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR], local 62 (void)sprintf(path, "%s%s%s%s", drive, 68 if ((fp = fopen(path, "wb")) == NULL) { 69 file_error(ms, errno, "cannot open tmp file `%s'", path); 74 path); 80 rc = DosQueryAppType((unsigned char *)path, &type); 83 unlink(path);
|
/freebsd-9.3-release/contrib/ntp/lib/isc/win32/ |
H A D | file.c | 48 gettemp(char *path, int *doopen) { argument 53 trv = strrchr(path, 'X'); 66 if (trv <= path) 70 if (stat(path, &sbuf)) 84 open(path, O_CREAT|O_EXCL|O_RDWR, 89 } else if (stat(path, &sbuf)) 111 mkstemp(char *path) { argument 114 return (gettemp(path, &fd) ? fd : -1); 258 isc_file_mktemplate(const char *path, char *buf, size_t buflen) { argument 259 return (isc_file_template(path, TEMPLAT 263 isc_file_template(const char *path, const char *templet, char *buf, size_t buflen) argument 509 isc_file_absolutepath(const char *filename, char *path, size_t pathlen) argument 582 isc_file_splitpath(isc_mem_t *mctx, char *path, char **dirname, char **basename) argument [all...] |
/freebsd-9.3-release/contrib/openpam/lib/libpam/ |
H A D | openpam_dynamic.c | 129 (module->path = strdup(modpath)) == NULL || 161 if (module->path != NULL) 162 FREE(module->path); 183 const char **path, *p; local 188 * Simple case: module name contains path separator(s) 226 for (path = openpam_module_path; *path != NULL; ++path) { 228 * Assemble the full path, including the version suffix. Take 233 *path, modnam [all...] |
/freebsd-9.3-release/crypto/heimdal/appl/afsutil/ |
H A D | pagsh.c | 107 char *path; local 195 path = getenv("SHELL"); 196 if(path == NULL){ 198 path = strdup(pw->pw_shell); 201 path = strdup(*argv++); 203 if (path == NULL) 204 errx (1, "Out of memory copying path"); 206 p=strrchr(path, '/'); 210 args[i] = strdup(path); 224 execvp(path, arg [all...] |
/freebsd-9.3-release/share/mk/ |
H A D | bsd.symver.mk | 17 # Compute the make's -m path. 30 .for path in ${_mpath} 32 .if exists(${path}/${VERSION_GEN}) 33 _vgen= ${path}/${VERSION_GEN} 38 .error ${VERSION_GEN} not found in the search path.
|
/freebsd-9.3-release/usr.bin/csup/ |
H A D | detailer.c | 234 char *attr, *cmd, *file, *line, *msg, *path, *target; local 322 path = cvspath(coll->co_prefix, file, 0); 323 rcsattr = fattr_frompath(path, FATTR_NOFOLLOW); 325 path, rcsattr); 328 free(path); 358 detailer_dofile_regular(struct detailer *d, char *name, char *path) argument 366 error = stat(path, &st); 374 error = MD5_File(path, md5); 389 detailer_dofile_rsync(struct detailer *d, char *name, char *path) argument 395 rf = rsync_open(path, 415 detailer_dofile_rcs(struct detailer *d, struct coll *coll, char *name, char *path) argument 458 char *path; local 532 char *attr, *path; local 569 detailer_send_details(struct detailer *d, struct coll *coll, char *name, char *path, struct fattr *fa) argument [all...] |
/freebsd-9.3-release/usr.bin/locate/code/ |
H A D | locate.code.c | 129 u_char *cp, *oldpath, *path; local 167 path = buf2; 170 while (fgets(path, sizeof(buf2), stdin) != NULL) { 173 if (*path == '\n') 177 for (cp = path; *cp != '\0'; cp++) { 191 for (cp = path; *cp == *oldpath; cp++, oldpath++) 195 count = cp - path; 243 if (path == buf1) { /* swap pointers */ 244 path = buf2; 247 path [all...] |
/freebsd-9.3-release/contrib/libarchive/libarchive/test/ |
H A D | test_write_compress.c | 42 char path[16]; local 59 sprintf(path, "file%03d", i); 61 archive_entry_copy_pathname(ae, path); 87 sprintf(path, "file%03d", i); 90 assertEqualString(path, archive_entry_pathname(ae));
|
H A D | test_write_compress_lzma.c | 41 char path[16]; local 74 sprintf(path, "file%03d", i); 75 archive_entry_copy_pathname(ae, path); 96 sprintf(path, "file%03d", i); 100 assertEqualString(path, archive_entry_pathname(ae)); 126 sprintf(path, "file%03d", i); 128 archive_entry_copy_pathname(ae, path); 150 sprintf(path, "file%03d", i); 151 failure("Trying to read %s", path); 155 assertEqualString(path, archive_entry_pathnam [all...] |
H A D | test_write_compress_xz.c | 42 char path[16]; local 75 sprintf(path, "file%03d", i); 76 archive_entry_copy_pathname(ae, path); 97 sprintf(path, "file%03d", i); 101 assertEqualString(path, archive_entry_pathname(ae)); 127 sprintf(path, "file%03d", i); 129 archive_entry_copy_pathname(ae, path); 158 sprintf(path, "file%03d", i); 159 failure("Trying to read %s", path); 163 assertEqualString(path, archive_entry_pathnam [all...] |
H A D | test_write_compress_bzip2.c | 42 char path[16]; local 75 sprintf(path, "file%03d", i); 76 archive_entry_copy_pathname(ae, path); 90 sprintf(path, "file%03d", i); 93 assertEqualString(path, archive_entry_pathname(ae)); 118 sprintf(path, "file%03d", i); 120 archive_entry_copy_pathname(ae, path); 143 sprintf(path, "file%03d", i); 146 assertEqualString(path, archive_entry_pathname(ae)); 164 sprintf(path, "fil [all...] |
/freebsd-9.3-release/contrib/wpa/wpa_supplicant/examples/ |
H A D | wpas-test.py | 37 path = None 39 path = wpas.getInterface(ifname) 44 path = wpas.addInterface(ifname, {'driver': dbus.Variant('wext')}) 49 if_obj = bus.get_object(WPAS_DBUS_SERVICE, path) 85 wpas.removeInterface(dbus.ObjectPath(path))
|
/freebsd-9.3-release/lib/libnetgraph/ |
H A D | msg.c | 57 static int NgDeliverMsg(int cs, const char *path, 66 NgSendMsg(int cs, const char *path, argument 83 if (NgDeliverMsg(cs, path, &msg, args, arglen) < 0) 93 NgSendAsciiMsg(int cs, const char *path, const char *fmt, ...) argument 133 if (NgSendMsg(cs, path, NGM_GENERIC_COOKIE, NGM_ASCII2BINARY, 151 path, binary, binary->data, binary->header.arglen) < 0) { 165 NgSendReplyMsg(int cs, const char *path, argument 175 return (NgDeliverMsg(cs, path, &rep, args, arglen)); 183 NgDeliverMsg(int cs, const char *path, argument 215 strlcpy(sg->sg_data, path, NG_PATHSI 267 NgRecvMsg(int cs, struct ng_mesg *rep, size_t replen, char *path) argument 305 NgAllocRecvMsg(int cs, struct ng_mesg **rep, char *path) argument 323 NgRecvAsciiMsg(int cs, struct ng_mesg *reply, size_t replen, char *path) argument 368 NgAllocRecvAsciiMsg(int cs, struct ng_mesg **reply, char *path) argument [all...] |
/freebsd-9.3-release/usr.bin/nohup/ |
H A D | nohup.c | 98 char path[MAXPATHLEN]; local 113 (size_t)snprintf(path, sizeof(path), "%s/%s", p, FILENAME) < 114 sizeof(path)) { 115 fd = open(p = path, O_RDWR | O_CREAT | O_APPEND,
|
/freebsd-9.3-release/sys/i386/ibcs2/ |
H A D | ibcs2_stat.c | 111 char *path; local 114 CHECKALTEXIST(td, uap->path, &path); 115 error = kern_statfs(td, path, UIO_SYSSPACE, &sf); 116 free(path, M_TEMP); 143 char *path; local 146 CHECKALTEXIST(td, uap->path, &path); 148 error = kern_stat(td, path, UIO_SYSSPACE, &st); 149 free(path, M_TEM 164 char *path; local [all...] |
H A D | ibcs2_fcntl.c | 182 char *path; local 189 CHECKALTCREAT(td, uap->path, &path); 191 CHECKALTEXIST(td, uap->path, &path); 192 ret = kern_open(td, path, UIO_SYSSPACE, flags, uap->mode); 196 if (!strcmp(path, "/compat/ibcs2/dev/spx")) 198 free(path, M_TEMP); 201 free(path, M_TEMP); 227 char *path; local 242 char *path; local [all...] |
/freebsd-9.3-release/usr.sbin/cpucontrol/ |
H A D | intel.c | 77 intel_update(const char *dev, const char *path) argument 104 assert(path); 145 fd = open(path, O_RDONLY, 0); 147 WARN(0, "open(%s)", path); 152 WARN(0, "fstat(%s)", path); 156 WARNX(2, "file too short: %s", path); 166 WARN(0, "mmap(%s)", path); 173 path); 188 WARNX(2, "file too short: %s", path); 200 WARNX(2, "%s: update data checksum invalid", path); [all...] |
/freebsd-9.3-release/usr.sbin/mount_portalfs/ |
H A D | conf.c | 54 typedef struct path path; typedef in typeref:struct:path 55 struct path { struct 67 static path *curp; /* XXX for regerror */ 106 * Insert the path in the list. 109 * not found then the path is added to the end of the list 112 static int pinsert(path *p0, qelem *q0) 120 path *p = (path *) q; 129 static path *pallo [all...] |
/freebsd-9.3-release/usr.sbin/makefs/ |
H A D | walk.c | 78 char path[MAXPATHLEN + 1]; local 86 len = snprintf(path, sizeof(path), "%s/%s", root, dir); 87 if (len >= (int)sizeof(path)) 90 printf("walk_dir: %s %p\n", path, parent); 91 if ((dirp = opendir(path)) == NULL) 92 err(1, "Can't opendir `%s'", path); 93 rp = path + strlen(root) + 1; 121 if (snprintf(path + len, sizeof(path) 218 create_fsnode(const char *root, const char *path, const char *name, struct stat *stbuf) argument 326 char path[MAXPATHLEN + 1]; local 551 char path[MAXPATHLEN + 1]; local [all...] |
/freebsd-9.3-release/contrib/bmake/ |
H A D | dir.c | 105 * Dir_Expand Given a pattern and a path, return a Lst of names 106 * which match the pattern on the search path. 108 * Dir_FindFile Searches for a file on a given search path. 109 * If it exists, the entire path is returned. 112 * Dir_FindHereOrAbove Search for a path in the current directory and 114 * the path is found or we reach the root ("/"). 117 * is searched for along the default search path. 118 * The path and mtime fields of the node are filled 121 * Dir_AddDir Add a directory to a search path. 123 * Dir_MakeFlags Given a search path an 587 DirExpandCurly(const char *word, const char *brace, Lst path, Lst expansions) argument 699 DirExpandInt(const char *word, Lst path, Lst expansions) argument 756 Dir_Expand(const char *word, Lst path, Lst expansions) argument 1055 Dir_FindFile(const char *name, Lst path) argument 1546 Dir_AddDir(Lst path, const char *name) argument 1652 Dir_MakeFlags(const char *flag, Lst path) argument 1729 Dir_ClearPath(Lst path) argument 1802 Dir_PrintPath(Lst path) argument [all...] |
/freebsd-9.3-release/contrib/libarchive/libarchive/ |
H A D | archive_read_disk_entry_from_file.c | 90 const char *path, *name; local 96 path = archive_entry_sourcepath(entry); 97 if (path == NULL) 98 path = archive_entry_pathname(entry); 133 if (lstat(path, &s) != 0) { 135 "Can't lstat %s", path); 140 if (stat(path, &s) != 0) { 142 "Can't lstat %s", path); 167 int lnklen = readlink(path, linkbuffer, PATH_MAX); 376 const char *path; local 498 const char *path; local [all...] |
/freebsd-9.3-release/lib/libiconv_modules/mapper_646/ |
H A D | citrus_mapper_646.c | 97 parse_file(struct _citrus_mapper_646 *m6, const char *path) argument 107 ret = _map_file(&r, path); 144 char path[PATH_MAX]; local 153 /* get description file path */ 155 snprintf(path, sizeof(path), "%s/%.*s", 158 path[_bcs_skip_nonws(path)-path] = '\0'; 159 return (parse_file(m6, path)); [all...] |
/freebsd-9.3-release/sys/boot/ofw/libofw/ |
H A D | ofw_net.c | 183 char path[64]; local 187 pathlen = OF_getprop(chosen, "bootpath", path, 64); 188 if ((ch = index(path, ':')) != NULL) 190 netdev = OF_finddevice(path); 200 if ((netinstance = OF_open(path)) == -1) { 226 printf("Could not boot from %s.\n", path); 242 ofwn_getunit(const char *path) 247 OF_canon(path, newpath, 254); 251 if (strcmp(path, ofwninfo[i].ofwn_path) == 0)
|
/freebsd-9.3-release/sys/sys/ |
H A D | syscallsubr.h | 63 int kern_access(struct thread *td, char *path, enum uio_seg pathseg, 65 int kern_accessat(struct thread *td, int fd, char *path, 69 int kern_alternate_path(struct thread *td, const char *prefix, const char *path, 72 int kern_chdir(struct thread *td, char *path, enum uio_seg pathseg); 73 int kern_chmod(struct thread *td, char *path, enum uio_seg pathseg, 75 int kern_chown(struct thread *td, char *path, enum uio_seg pathseg, int uid, 87 int kern_eaccess(struct thread *td, char *path, enum uio_seg pathseg, 91 int kern_fchmodat(struct thread *td, int fd, char *path, 93 int kern_fchownat(struct thread *td, int fd, char *path, 124 int kern_lchown(struct thread *td, char *path, enu [all...] |
/freebsd-9.3-release/bin/getfacl/ |
H A D | getfacl.c | 178 print_acl(char *path, acl_type_t type, int hflag, int iflag, int nflag, argument 187 error = lstat(path, &sb); 189 error = stat(path, &sb); 191 warn("%s: stat() failed", path); 196 ret = lpathconf(path, _PC_ACL_NFS4); 198 ret = pathconf(path, _PC_ACL_NFS4); 202 path); 207 warn("%s: pathconf(..., _PC_ACL_NFS4) failed", path); 217 printf("# file: %s\n# owner: %s\n# group: %s\n", path, 221 acl = acl_get_link_np(path, typ [all...] |