/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | realpath.c | 48 realpath_impl(const char *file_name, char *resolved_name) in realpath_impl() argument 53 if (file_name == NULL) { in realpath_impl() 63 if ((len = resolvepath(file_name, resolved_name, PATH_MAX)) < 0) { in realpath_impl() 64 (void) strlcpy(resolved_name, file_name, PATH_MAX); in realpath_impl() 82 (void) strlcpy(resolved_name, file_name, PATH_MAX); in realpath_impl() 110 file_name, PATH_MAX); in realpath_impl() 129 realpath(const char *file_name, char *resolved_name) in realpath() argument 134 return (realpath_impl(file_name, resolved_name)); in realpath() 136 if (realpath_impl(file_name, buffer) != NULL) in realpath()
|
H A D | ttyname.c | 486 char file_name[MAX_DEV_PATH]; in srch_dir() local 493 file.name = file_name; in srch_dir() 514 (void) strcpy(file_name, path.name); in srch_dir() 515 last_comp = file_name + path_len; in srch_dir() 538 if (stat64(file_name, &tsb) < 0) in srch_dir() 541 if (strcmp(file_name, "/dev/vt/active") == 0) in srch_dir() 548 if (strcmp(file_name, "/dev/syscon") == 0) in srch_dir()
|
/illumos-gate/usr/src/cmd/acct/lib/ |
H A D | devtolin.c | 61 char file_name[MAX_DEV_PATH]; /* name being returned */ variable 107 CPYN(tp->tname, file_name+5); in devtolin() 110 return (file_name+5); in devtolin() 160 strcpy(file_name, path); in srch_dir() 161 last_comp = file_name + path_len; in srch_dir() 187 if (lintodev(file_name+5) == device) { in srch_dir() 193 (stat(file_name, &sb) != -1) && in srch_dir() 195 found = srch_dir(device, file_name, depth+1, in srch_dir()
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | files.cc | 215 wchar_t file_name[MAXPATHLEN]; in vpath_exists() local 230 name_p = file_name; in vpath_exists() 237 alias = GETNAME(file_name, FIND_LENGTH); in vpath_exists() 289 wchar_t file_name[MAXPATHLEN]; in read_dir() local 290 wchar_t *file_name_p = file_name; in read_dir() 329 (void) wcscpy(file_name, wcb.get_string()); in read_dir() 331 (void) wcscat(file_name, wcs_buffer); in read_dir() 332 file_name_p = file_name + wcslen(file_name); in read_dir() 358 file = enter_file_name(file_name, library); in read_dir() 442 file_name, in read_dir() [all …]
|
/illumos-gate/usr/src/cmd/krb5/ldap_util/ |
H A D | kdb5_ldap_services.c | 58 char *file_name, 1067 rem_service_entry_from_file(argc, argv, file_name, service_object) in rem_service_entry_from_file() argument 1070 char *file_name; 1084 if (access(file_name, W_OK) == -1) { 1090 com_err(me, errno, gettext("while deleting entry from file %s", file_name)); 1097 pfile = fopen(file_name, "r+F"); 1099 com_err(me, errno, gettext("while deleting entry from file %s"), file_name); 1104 tmp_file = (char *)malloc(strlen(file_name) + 4 + 1); 1110 snprintf (tmp_file, strlen(file_name) + 4 + 1, "%s%s", file_name, ".tmp"); 1139 if (unlink(file_name) == 0) { [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/ |
H A D | rsend.kshlib | 452 file_name="/$fs/file-$i" 454 if [[ -e $file_name ]]; then 456 rm $file_name || \ 457 log_fail "Failed to remove $file_name" 471 file_name="/$fs/file-$i" 488 if [[ -e $file_name ]]; then 495 attr -qr $attrname $file_name || \ 498 -V "$attrvalue" $file_name || \ 501 dd if=/dev/urandom of=$file_name \ 503 log_fail "Failed to overwrite $file_name" [all …]
|
/illumos-gate/usr/src/cmd/tail/ |
H A D | forward.c | 247 file->file_name); in show() 257 ierr(file->file_name); in show() 313 name = file->file_name; in associate() 405 file->file_name); in follow() 406 forward(file->fp, file->file_name, style, off, in follow() 429 file->fp = fopen(file->file_name, "r"); in follow() 442 if (stat(file->file_name, &sb2) == -1) { in follow() 444 ierr(file->file_name); in follow() 457 file->fp = freopen(file->file_name, "r", in follow() 463 ierr(file->file_name); in follow()
|
H A D | tail.c | 171 file->file_name = strdup(fn); in main() 172 if (! file->file_name) in main() 174 if ((file->fp = fopen(file->file_name, "r")) == NULL || in main() 181 ierr(file->file_name); in main() 186 free(file->file_name); in main()
|
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lc_utils.c | 154 char file_name[PATHNAMLEN]; in srch_dir() local 163 (void) strcpy(file_name, path); in srch_dir() 164 (void) strcat(file_name, "/"); in srch_dir() 165 (void) strcat(file_name, direntp->d_name); in srch_dir() 166 if (stat((const char *)file_name, &st) < 0) in srch_dir() 170 file_name + strlen("/dev/")); in srch_dir()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | adm.c | 446 char *file_name = NULL; in main() local 547 file_name = optarg; in main() 556 file_name = optarg; in main() 612 if ((file_name != NULL) && (Options & OPTION_F)) { in main() 613 if ((temp_fd = open(file_name, O_RDONLY)) == -1) { in main() 614 perror(file_name); in main() 647 adm_download(&argv[path_index], file_name); in main() 722 if (adm_fcode(Options & PVERBOSE, file_name) != 0) { in main() 733 if (q_qlgc_update(Options & PVERBOSE, file_name) != 0) { in main() 744 exit_code = fcal_update(Options & PVERBOSE, file_name); in main() [all …]
|
/illumos-gate/usr/src/tools/ndrgen/ |
H A D | ndr_lex.c | 85 static ndr_symbol_t *file_name; variable 186 file_name = sym_enter(name); in set_lex_input() 243 file_name = sym_enter(sv[1]); in yylex() 478 file_name->name, line_number, buf); in compile_error() 516 np->file_name = file_name; in n_cons()
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | protocmp.c | 543 read_in_file(const char *file_name, elem_list *list) in read_in_file() argument 548 if (stat(file_name, &st_buf) == 0) { in read_in_file() 552 "as protolist...\n", file_name); in read_in_file() 554 count = read_in_protolist(file_name, list, verbose); in read_in_file() 558 "process as protodir...\n", file_name); in read_in_file() 559 count = read_in_protodir(file_name, list, verbose); in read_in_file() 562 "%s not a file or a directory.\n", file_name); in read_in_file() 567 perror(file_name); in read_in_file()
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplfile.c | 615 const char *file_name; /* The lastest filename being compared */ in cf_complete_entry() local 681 while((file_name = _dr_next_file(cf->dr)) != NULL && !waserr) { in cf_complete_entry() 682 int name_len = strlen(file_name); in cf_complete_entry() 686 if(name_len >= prefix_len && strncmp(prefix, file_name, prefix_len)==0) { in cf_complete_entry() 691 if(prefix_len > 0 || file_name[0] != '.') { in cf_complete_entry() 696 if(cf_prepare_suffix(cf, file_name + prefix_len, escaped)) { in cf_complete_entry() 709 if(_pn_append_to_path(cf->path, file_name + prefix_len, in cf_complete_entry()
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_restore_writer.c | 354 char *file_name; in tar_getdir() local 529 file_name = (*longname == 0) ? in tar_getdir() 532 if (!is_file_wanted(file_name, sels, exls, in tar_getdir() 546 file_name); in tar_getdir() 550 file_name); in tar_getdir() 571 file_name, pos); in tar_getdir() 797 file_name = (*longname == 0) ? thname_buf : in tar_getdir() 801 file_name, file_size, acls, local_commands, in tar_getdir() 806 file_name = (*longname == 0) ? thname_buf : in tar_getdir() 810 NDMP_LOG(LOG_DEBUG, "file_name[%s]", file_name); in tar_getdir() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsmdb/ |
H A D | smdb.c | 324 char file_name[MAXPATHLEN]; local 326 result = smdb_add_extension(file_name, sizeof file_name, db_name, 331 *lock_fd = safeopen(file_name, mode & ~O_TRUNC, DBMMODE, sff);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgproto/ |
H A D | main.c | 344 char *file_name; /* name of the file in link_name */ in scan_raw_ln() local 356 (file_name = strrchr(link_name, '/')) != NULL) { in scan_raw_ln() 369 file_name++; /* point to the name not the '/' */ in scan_raw_ln() 437 } while (link_name != file_name); /* at file name */ in scan_raw_ln()
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 309 char file_name[MAXPATHLEN]; in _list_device() local 344 bytes = snprintf(file_name, MAXPATHLEN, "%s/%s", DAC_DIR, in _list_device() 355 fname = file_name; in _list_device() 1006 char file_name[MAXPATHLEN]; in _deallocate_dev() local 1036 bytes = snprintf(file_name, MAXPATHLEN, "%s/%s", DAC_DIR, in _deallocate_dev() 1047 fname = file_name; in _deallocate_dev() 1120 (void) _newdac(file_name, DA_UID, DA_GID, in _deallocate_dev() 1157 char file_name[MAXPATHLEN]; in _allocate_dev() local 1183 bytes = snprintf(file_name, MAXPATHLEN, "%s/%s", DAC_DIR, in _allocate_dev() 1194 fname = file_name; in _allocate_dev() [all …]
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | drvsubr.c | 84 char *file_name); 573 get_major_no(char *driver_name, char *file_name) in get_major_no() argument 577 if (get_name_to_major_entry(&major, driver_name, file_name) == ERROR) in get_major_no() 588 get_driver_name(int major, char *file_name, char *buf) in get_driver_name() argument 592 return (get_name_to_major_entry(&major, buf, file_name)); in get_driver_name() 738 get_max_major(char *file_name) in get_max_major() argument 742 return (get_cached_n_to_m_file(file_name, &n_to_m_cache)); in get_max_major() 756 get_name_to_major_entry(int *major_no, char *driver_name, char *file_name) in get_name_to_major_entry() argument 768 size = get_cached_n_to_m_file(file_name, &n_to_m_cache); in get_name_to_major_entry() 1988 unique_driver_name(char *driver_name, char *file_name, int *is_unique) in unique_driver_name() argument [all …]
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | getprinter.c | 39 ctx->file_name = "/etc/printers.conf"; in printer_init_ctx()
|
H A D | getauth.c | 38 ctx->file_name = "/etc/security/auth_attr"; in auth_init_ctx()
|
H A D | getbootp.c | 38 ctx->file_name = "/etc/bootparams"; in bootp_init_ctx()
|
H A D | getnetmasks.c | 40 ctx->file_name = "/etc/inet/netmasks"; in netmask_init_ctx()
|
H A D | getprof.c | 38 ctx->file_name = "/etc/security/prof_attr"; in prof_init_ctx()
|
H A D | getuser.c | 38 ctx->file_name = "/etc/user_attr"; in user_init_ctx()
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_line.c | 166 char *file_name = 0; in create_fullest_file_path() local 169 file_name = (char *) fe->fi_file_name; in create_fullest_file_path() 170 if (!file_name) { in create_fullest_file_path() 174 if (_dwarf_file_name_is_full_path((Dwarf_Small *)file_name)) { in create_fullest_file_path() 175 { unsigned len = strlen(file_name); in create_fullest_file_path() 180 special_cat(tmp,file_name,len); in create_fullest_file_path() 191 Dwarf_Unsigned filenamelen = strlen(file_name); in create_fullest_file_path() 228 special_cat(full_name,file_name,filenamelen); in create_fullest_file_path() 237 special_cat(full_name,file_name,filenamelen); in create_fullest_file_path() 250 special_cat(full_name,file_name,filenamelen); in create_fullest_file_path()
|