/freebsd-9.3-release/sys/cam/ata/ |
H A D | ata_xpt.c | 127 CAM_DEBUG((softc)->periph->path, CAM_DEBUG_PROBE, \ 176 struct cam_path *path, cam_flags flags, 182 static void ata_device_transport(struct cam_path *path); 251 CAM_DEBUG(periph->path, CAM_DEBUG_PROBE, ("Probe started\n")); 265 if ((periph->path->device->flags & CAM_DEV_UNCONFIGURED) || 266 periph->path->device->protocol == PROTO_SATAPM || 267 periph->path->device->protocol == PROTO_SEMB) 287 struct cam_path *path; local 290 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRACE, ("probestart\n")); 293 path 686 struct cam_path *path; local 1320 struct cam_path *path; local 1472 ata_scan_lun(struct cam_periph *periph, struct cam_path *path, cam_flags flags, union ccb *request_ccb) argument 1556 struct cam_path path; local 1597 ata_device_transport(struct cam_path *path) argument 2029 struct cam_path *path = periph->path; local [all...] |
/freebsd-9.3-release/tools/regression/sockets/reconnect/ |
H A D | reconnect.c | 54 prepare_ifsun(struct sockaddr_un *ifsun, const char *path) argument 59 ifsun->sun_len = strlen(path); 62 strcpy(ifsun->sun_path, path); 66 create_uds_server(const char *path) argument 71 prepare_ifsun(&ifsun, path); 86 connect_uds_server(int sock, const char *path) argument 91 prepare_ifsun(&ifsun, path);
|
/freebsd-9.3-release/usr.bin/which/ |
H A D | which.c | 49 char *p, *path; local 78 path = malloc(pathlen); 79 if (path == NULL) 83 memcpy(path, p, pathlen); 86 print_matches(path, *argv) == -1) 123 print_matches(char *path, char *filename) argument 132 while ((d = strsep(&path, ":")) != NULL) {
|
/freebsd-9.3-release/sys/cam/ |
H A D | cam_xpt.c | 84 MALLOC_DEFINE(M_CAMPATH, "CAM path", "CAM paths"); 222 struct cam_path *path, 465 * Create a path using the bus, target, and lun the 468 if (xpt_create_path(&ccb->ccb_h.path, NULL, 479 xpt_setup_ccb(&ccb->ccb_h, ccb->ccb_h.path, 485 xpt_free_path(ccb->ccb_h.path); 501 * Create a path using the bus, target, and lun the 504 if (xpt_create_path(&ccb.ccb_h.path, NULL, 514 xpt_setup_ccb(&ccb.ccb_h, ccb.ccb_h.path, 520 xpt_free_path(ccb.ccb_h.path); 859 struct cam_path *path; local 1025 struct cam_path *path = periph->path; local 1080 struct cam_path *path = periph->path; local 1109 xpt_getattr(char *buf, size_t len, const char *attr, struct cam_path *path) argument 2450 struct cam_path path; local 2482 struct cam_path path; local 2514 struct cam_path *path; local 3390 xpt_setup_ccb(struct ccb_hdr *ccb_h, struct cam_path *path, u_int32_t priority) argument 3416 struct cam_path *path; local 3439 struct cam_path *path; local 3534 xpt_release_path(struct cam_path *path) argument 3552 xpt_free_path(struct cam_path *path) argument 3561 xpt_path_counts(struct cam_path *path, uint32_t *bus_ref, uint32_t *periph_ref, uint32_t *target_ref, uint32_t *device_ref) argument 3632 xpt_path_comp_dev(struct cam_path *path, struct cam_ed *dev) argument 3666 xpt_print_path(struct cam_path *path) argument 3713 xpt_print(struct cam_path *path, const char *fmt, ...) argument 3723 xpt_path_string(struct cam_path *path, char *str, size_t str_len) argument 3766 xpt_path_path_id(struct cam_path *path) argument 3772 xpt_path_target_id(struct cam_path *path) argument 3781 xpt_path_lun_id(struct cam_path *path) argument 3790 xpt_path_sim(struct cam_path *path) argument 3797 xpt_path_periph(struct cam_path *path) argument 3805 xpt_path_legacy_ata_id(struct cam_path *path) argument 3852 struct cam_path *path; local 3899 struct cam_path *path; local 4119 xpt_async(u_int32_t async_code, struct cam_path *path, void *async_arg) argument 4195 xpt_async_bcast(struct async_list *async_head, u_int32_t async_code, struct cam_path *path, void *async_arg) argument 4227 xpt_freeze_devq(struct cam_path *path, u_int count) argument 4263 xpt_release_devq(struct cam_path *path, u_int count, int run_queue) argument 4662 xpt_dev_ccbq_resize(struct cam_path *path, int newopenings) argument 4733 xpt_start_tags(struct cam_path *path) argument 4763 xpt_stop_tags(struct cam_path *path) argument 4897 xpt_register_async(int event, ac_callback_t *cbfunc, void *cbarg, struct cam_path *path) argument [all...] |
/freebsd-9.3-release/sys/cam/scsi/ |
H A D | scsi_xpt.c | 169 CAM_DEBUG((softc)->periph->path, CAM_DEBUG_PROBE, \ 566 static void probe_purge_old(struct cam_path *path, 572 struct cam_path *path, cam_flags flags, 578 static void scsi_devise_transport(struct cam_path *path); 582 static void scsi_toggle_tags(struct cam_path *path); 641 CAM_DEBUG(periph->path, CAM_DEBUG_PROBE, ("Probe started\n")); 648 cam_periph_freeze_after_event(periph, &periph->path->bus->last_reset, 664 xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NONE); 686 if (((ccb->ccb_h.path->device->flags & CAM_DEV_UNCONFIGURED) == 0) 712 CAM_DEBUG(start_ccb->ccb_h.path, CAM_DEBUG_TRAC 1096 struct cam_path *path; local 1720 probe_purge_old(struct cam_path *path, struct scsi_report_luns_data *new) argument 1846 struct cam_path *path; local 1976 struct cam_path *path, *oldpath; local 2197 scsi_scan_lun(struct cam_periph *periph, struct cam_path *path, cam_flags flags, union ccb *request_ccb) argument 2292 struct cam_path path; local 2337 scsi_devise_transport(struct cam_path *path) argument 2833 scsi_toggle_tags(struct cam_path *path) argument 2943 struct cam_path *path = periph->path; local [all...] |
/freebsd-9.3-release/sys/compat/linux/ |
H A D | linux_stats.c | 76 linux_kern_statat(struct thread *td, int flag, int fd, char *path, argument 80 return (kern_statat_vnhook(td, flag, fd, path, pathseg, sbp, 85 linux_kern_stat(struct thread *td, char *path, enum uio_seg pathseg, argument 89 return (linux_kern_statat(td, 0, AT_FDCWD, path, pathseg, sbp)); 93 linux_kern_lstat(struct thread *td, char *path, enum uio_seg pathseg, argument 97 return (linux_kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, path, 197 char *path; local 200 LCONVPATHEXIST(td, args->path, &path); 204 printf(ARGS(newstat, "%s, *"), path); 218 char *path; local 289 char *path; local 311 char *path; local 401 char *path; local 445 char *path; local 602 char *path; local 616 printf(ARGS(fstatat64, "%i, %s, %i"), args->dfd, path, args->flag); local [all...] |
H A D | linux_file.c | 78 char *path; local 81 LCONVPATHEXIST(td, args->path, &path); 85 printf(ARGS(creat, "%s, %d"), path, args->mode); 87 error = kern_open(td, path, UIO_SYSSPACE, O_WRONLY | O_CREAT | O_TRUNC, 89 LFREEPATH(path); 95 linux_common_open(struct thread *td, int dirfd, char *path, int l_flags, int mode) argument 139 error = kern_openat(td, dirfd, path, UIO_SYSSPACE, bsd_flags, mode); 176 LFREEPATH(path); 183 char *path; local 194 path, args->flags, args->mode); local 202 char *path; local 563 char *path; local 585 char *path; local 610 char *path; local 634 char *path; local 665 char *path; local 682 char *path; local 699 char *path; local 718 char *path; local 735 char *path; local 753 char *path; local 820 char *path, *to; local 844 char *path, *to; local 910 char *path; local 928 char *path; local 959 char *path, *to; local 983 char *path, *to; local 1005 printf(ARGS(linkat, "%i, %s, %i, %s, %i"), args->olddfd, path, local 1477 char *path; local 1494 char *path; local 1519 char *path; local [all...] |
/freebsd-9.3-release/contrib/wpa/src/wps/ |
H A D | wps_ufd.c | 58 static int wps_get_dev_pwd_e_file_name(char *path, char *file_name) argument 63 file_num = scandir(path, &namelist, &dev_pwd_e_file_filter, 84 const char *path, char *file_name) 93 os_snprintf(temp, sizeof(temp), UFD_DIR2, path); 115 static int ufd_mkdir(const char *path) argument 117 if (mkdir(path, S_IRWXU) < 0 && errno != EEXIST) { 119 "'%s': %d (%s)", path, errno, strerror(errno)); 131 char *path = oob_dev->device_path; local 136 if (path == NULL) 142 if (get_file_name(wps, registrar, path, filenam 83 get_file_name(struct wps_context *wps, int registrar, const char *path, char *file_name) argument [all...] |
/freebsd-9.3-release/libexec/rtld-aout/ |
H A D | shlib.c | 85 add_search_path(char *path) argument 89 if (path == NULL) 92 /* Add search directories from `path' */ 93 path = dup = strdup(path); 94 while ((cp = strsep(&path, ":")) != NULL) 188 char *path; local 190 path = search_lib_dir(search_dirs[i], name, majorp, minorp, 192 if(path != NULL) 193 return path; 212 char *path = concat(search_dirs[i], "/", name); local [all...] |
/freebsd-9.3-release/usr.sbin/cpucontrol/ |
H A D | via.c | 77 via_update(const char *dev, const char *path) argument 99 assert(path); 139 fd = open(path, O_RDONLY, 0); 141 WARN(0, "open(%s)", path); 146 WARN(0, "fstat(%s)", path); 150 WARNX(2, "file too short: %s", path); 160 WARN(0, "mmap(%s)", path); 167 path); 173 WARNX(2, "file too short: %s", path); 185 WARNX(2, "%s: update data checksum invalid", path); [all...] |
/freebsd-9.3-release/lib/libz/ |
H A D | gzlib.c | 94 local gzFile gz_open(path, fd, mode) 95 const void *path; 110 if (path == NULL) 193 /* save the path name for error messages */ 196 len = wcstombs(NULL, path, 0); 202 len = strlen((const char *)path); 203 state->path = (char *)malloc(len + 1); 204 if (state->path == NULL) { 211 wcstombs(state->path, path, le 291 char *path; /* identifier for error messages */ local [all...] |
/freebsd-9.3-release/sys/boot/uboot/lib/ |
H A D | devicename.c | 38 const char **path); 42 * path in (devspec). If it contains an explicit device specification, 46 uboot_getdev(void **vdev, const char *devspec, const char **path) argument 52 * If it looks like this is just a path and no 59 && (path != NULL)) 60 *path = devspec; 67 return (uboot_parsedev(dev, devspec, path)); 73 * text in (path). 86 const char **path) 118 err = disk_parsedev((struct disk_devdesc *)idev, np, path); 85 uboot_parsedev(struct uboot_devdesc **dev, const char *devspec, const char **path) argument [all...] |
/freebsd-9.3-release/sys/boot/userboot/userboot/ |
H A D | devicename.c | 37 static int userboot_parsedev(struct disk_devdesc **dev, const char *devspec, const char **path); 41 * path in (devspec). If it contains an explicit device specification, 45 userboot_getdev(void **vdev, const char *devspec, const char **path) argument 51 * If it looks like this is just a path and no 59 (path != NULL)) 60 *path = devspec; 67 return(userboot_parsedev(dev, devspec, path)); 73 * text in (path). 85 userboot_parsedev(struct disk_devdesc **dev, const char *devspec, const char **path) argument 115 err = disk_parsedev(idev, np, path); [all...] |
/freebsd-9.3-release/contrib/ofed/libibverbs/src/ |
H A D | sysfs.c | 59 * Only follow use path passed in through the calling user's 83 char *path, *s; local 87 if (asprintf(&path, "%s/%s", dir, file) < 0) 90 for (s = &path[0]; *s != '\0'; s++) 95 if (sysctlbyname(&path[1], buf, &len, NULL, 0) == -1) 98 free(path);
|
/freebsd-9.3-release/contrib/tcp_wrappers/ |
H A D | tcpd.c | 51 char path[MAXPATHNAMELEN]; local 60 * If argv[0] is an absolute path name, ignore REAL_DAEMON_DIR, and strip 65 strcpy(path, argv[0]); 68 sprintf(path, "%s/%s", REAL_DAEMON_DIR, argv[0]); 132 (void) execv(path, argv); 133 syslog(LOG_ERR, "error: cannot execute %s: %m", path);
|
/freebsd-9.3-release/sys/compat/svr4/ |
H A D | svr4_stat.c | 168 char *path; local 171 CHECKALTEXIST(td, uap->path, &path); 173 error = kern_stat(td, path, UIO_SYSSPACE, &st); 174 free(path, M_TEMP); 180 (void) svr4_add_socket(td, uap->path, &st); 193 char *path; local 196 CHECKALTEXIST(td, uap->path, &path); 198 error = kern_lstat(td, path, UIO_SYSSPAC 236 char *path; local 263 char *path; local 307 char *path; local 333 char *path; local 569 char *path; local 596 char *path; local 659 char *path; local [all...] |
/freebsd-9.3-release/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 74 struct ipoib_path path; member in struct:ipoib_path_iter 320 struct ipoib_path *path; local 324 path = rb_entry(n, struct ipoib_path, rb_node); 326 ret = memcmp(gid, path->pathrec.dgid.raw, 334 return path; 341 __path_add(struct ipoib_dev_priv *priv, struct ipoib_path *path) argument 352 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, 362 rb_link_node(&path->rb_node, pn, n); 363 rb_insert_color(&path->rb_node, &priv->path_tree); 365 list_add_tail(&path 371 ipoib_path_free(struct ipoib_dev_priv *priv, struct ipoib_path *path) argument 411 struct ipoib_path *path; local 437 ipoib_path_iter_read(struct ipoib_path_iter *iter, struct ipoib_path *path) argument 447 struct ipoib_path *path, *tp; local 464 struct ipoib_path *path, *tp; local 490 struct ipoib_path *path = path_ptr; local 563 struct ipoib_path *path; local 589 path_rec_start(struct ipoib_dev_priv *priv, struct ipoib_path *path) argument 649 struct ipoib_path *path; local [all...] |
/freebsd-9.3-release/usr.bin/csup/ |
H A D | misc.c | 112 MD5_File(char *path, char *md) argument 119 fd = open(path, O_RDONLY); 187 /* One path is a prefix of the other/ */ 205 pathlast(const char *path) argument 209 s = strrchr(path, '/'); 211 return (path); 277 * pathname to the checkout file made from the prefix and the path 284 char *path; local 289 xasprintf(&path, "%s/%.*s", prefix, (int)len - 2, file); 290 return (path); 302 char *path; local 322 char *path; local 333 mkdirhier(char *path, mode_t mask) argument 395 tempname(const char *path) argument [all...] |
/freebsd-9.3-release/contrib/bmake/mk/ |
H A D | meta2deps.py | 74 def resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 76 Return an absolute path, resolving via cwd or last_dir if needed. 78 if path.endswith('/.'): 79 path = path[0:-2] 80 if len(path) > 0 and path[0] == '/': 81 return path 82 if path == '.': 84 if path [all...] |
/freebsd-9.3-release/contrib/openbsm/bin/auditdistd/ |
H A D | openat.h | 40 openat(int fd, const char *path, int flags, ...) argument 63 ffd = open(path, flags, mode); 65 ffd = open(path, flags);
|
/freebsd-9.3-release/lib/libc/iconv/ |
H A D | citrus_module.c | 180 static char path[PATH_MAX]; local 187 path[0] = '\0'; 241 snprintf(path, sizeof(path), "%s/%s", search_dirs[i], 255 return (path[0] ? path : NULL); 258 return (path[0] ? path : NULL); 278 char path[PATH_MAX]; local 292 (void)snprintf(path, sizeo [all...] |
/freebsd-9.3-release/lib/libutil/ |
H A D | _secure_path.c | 34 * Check for common security problems on a given path 46 _secure_path(const char *path, uid_t uid, gid_t gid) argument 52 if (lstat(path, &sb) < 0) { 72 syslog(LOG_ERR, msg, "_secure_path", path, uid);
|
/freebsd-9.3-release/tools/regression/lib/libc/nss/ |
H A D | test-getusershell.c | 45 char *path; member in struct:usershell 76 if (src->path != NULL) { 77 dest->path = strdup(src->path); 78 assert(dest->path != NULL); 96 rv = strcmp(us1->path, us2->path); 109 free(us->path); 115 snprintf(buffer, buflen, "%s", us->path); 132 us->path [all...] |
/freebsd-9.3-release/usr.bin/unzip/ |
H A D | unzip.c | 204 /* duplicate a path name, possibly converting to lower case */ 206 pathdup(const char *path) argument 211 len = strlen(path); 212 while (len && path[len - 1] == '/') 220 str[i] = tolower((unsigned char)path[i]); 222 memcpy(str, path, len); 229 /* concatenate two path names */ 231 pathcat(const char *prefix, const char *path) argument 237 len = strlen(path) + 1; 246 memcpy(str + prelen, path, le 317 make_dir(const char *path, int mode) argument 350 make_parent(char *path) argument 386 extract_dir(struct archive *a, struct archive_entry *e, const char *path) argument 419 handle_existing_file(char **path) argument 470 extract_file(struct archive *a, struct archive_entry *e, char **path) argument [all...] |
/freebsd-9.3-release/crypto/openssh/ |
H A D | sftp-glob.c | 48 fudge_opendir(const char *path) argument 54 if (do_readdir(cur.conn, (char *)path, &r->dir)) { 67 /* Solaris needs sizeof(dirent) + path length (see below) */ 111 fudge_lstat(const char *path, struct stat *st) argument 115 if (!(a = do_lstat(cur.conn, (char *)path, 1))) 124 fudge_stat(const char *path, struct stat *st) argument 128 if (!(a = do_stat(cur.conn, (char *)path, 1)))
|