/freebsd/contrib/ofed/libibumad/ |
H A D | sysfs.c | 58 int sys_read_string(const char *dir_name, const char *file_name, char *str, int max_len) in sys_read_string() argument 63 snprintf(path, sizeof(path), "%s/%s", dir_name, file_name); in sys_read_string() 77 int sys_read_guid(const char *dir_name, const char *file_name, __be64 *net_guid) in sys_read_guid() argument 83 if ((r = sys_read_string(dir_name, file_name, buf, sizeof(buf))) < 0) in sys_read_guid() 99 int sys_read_gid(const char *dir_name, const char *file_name, in sys_read_gid() argument 106 if ((r = sys_read_string(dir_name, file_name, buf, sizeof(buf))) < 0) in sys_read_gid() 118 int sys_read_uint64(const char *dir_name, const char *file_name, uint64_t * u) in sys_read_uint64() argument 123 if ((r = sys_read_string(dir_name, file_name, buf, sizeof(buf))) < 0) in sys_read_uint64() 131 int sys_read_uint(const char *dir_name, const char *file_name, unsigned *u) in sys_read_uint() argument 136 if ((r = sys_read_string(dir_name, file_name, buf, sizeof(buf))) < 0) in sys_read_uint()
|
H A D | sysfs.h | 44 extern int sys_read_string(const char *dir_name, const char *file_name, char *str, int len); 45 extern int sys_read_guid(const char *dir_name, const char *file_name, __be64 * net_guid); 46 extern int sys_read_gid(const char *dir_name, const char *file_name, 48 extern int sys_read_uint64(const char *dir_name, const char *file_name, uint64_t * u); 49 extern int sys_read_uint(const char *dir_name, const char *file_name, unsigned *u);
|
H A D | umad.c | 383 char dir_name[256]; in get_ca() local 392 snprintf(dir_name, sizeof(dir_name), "%s/%s", SYS_INFINIBAND, in get_ca() 395 if ((r = sys_read_uint(dir_name, SYS_NODE_TYPE, &ca->node_type)) < 0) in get_ca() 397 if (sys_read_string(dir_name, SYS_CA_FW_VERS, ca->fw_ver, in get_ca() 400 if (sys_read_string(dir_name, SYS_CA_HW_VERS, ca->hw_ver, in get_ca() 403 if ((r = sys_read_string(dir_name, SYS_CA_TYPE, ca->ca_type, in get_ca() 406 if ((r = sys_read_guid(dir_name, SYS_CA_NODE_GUID, &ca->node_guid)) < 0) in get_ca() 409 sys_read_guid(dir_name, SYS_CA_SYS_GUID, &ca->system_guid)) < 0) in get_ca() 412 snprintf(dir_name, sizeof(dir_name), "%s/%s/%s", in get_ca() 415 if ((r = sys_scandir(dir_name, &namelist, NULL, alphasort)) < 0) { in get_ca() [all …]
|
/freebsd/bin/pax/ |
H A D | pat_rep.c | 766 fix_path( char *or_name, int *or_len, char *dir_name, int dir_len) in fix_path() argument 787 paxwarn(1, "File name %s/%s, too long", dir_name, start); in fix_path() 797 src = dir_name + dir_len - 1; in fix_path() 802 while (src >= dir_name) in fix_path()
|
/freebsd/contrib/diff/lib/ |
H A D | dirname.h | 37 char *dir_name (char const *path);
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | ibstat.c | 113 int sys_read_string(const char *dir_name, const char *file_name, char *str, int max_len) in sys_read_string() argument 118 snprintf(path, sizeof(path), "%s/%s", dir_name, file_name); in sys_read_string()
|
/freebsd/include/rpcsvc/ |
H A D | nis.x | 255 nis_name dir_name; /* The directory we're looking for */ member
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 452 #define __sanitizer_syscall_pre_mount(dev_name, dir_name, type, flags, data) \ argument 453 __sanitizer_syscall_pre_impl_mount((long)(dev_name), (long)(dir_name), \ 456 #define __sanitizer_syscall_post_mount(res, dev_name, dir_name, type, flags, \ argument 458 __sanitizer_syscall_post_impl_mount(res, (long)(dev_name), (long)(dir_name), \ 2279 void __sanitizer_syscall_pre_impl_mount(long dev_name, long dir_name, long type, 2281 void __sanitizer_syscall_post_impl_mount(long res, long dev_name, long dir_name,
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 856 (void *dev_name, void *dir_name, void *type, long flags, void *data) {} 859 (long res, void *dev_name, void *dir_name, void *type, long flags, void *data) { 864 if (dir_name) 865 POST_WRITE(dir_name, 866 __sanitizer::internal_strlen((const char *)dir_name) + 1);
|