Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 67) sorted by relevance

123

/illumos-gate/usr/src/lib/libc/port/gen/
H A Drealpath.c48 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 Dttyname.c486 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 Ddevtolin.c61 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 Dfiles.cc215 wchar_t file_name[MAXPATHLEN]; in vpath_exists() local
230 name_p = file_name; in vpath_exists()
289 wchar_t file_name[MAXPATHLEN]; in read_dir() local
290 wchar_t *file_name_p = file_name; in read_dir()
332 file_name_p = file_name + wcslen(file_name); in read_dir()
442 file_name, in read_dir()
443 file_name_p - file_name); in read_dir()
454 if (file_name_p - file_name > 0) { in read_dir()
457 WCSTOMBS(mbs_buffer, file_name); in read_dir()
466 (void) wcscpy(file_name, path); in read_dir()
[all …]
/illumos-gate/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_services.c58 char *file_name,
1070 char *file_name;
1110 snprintf (tmp_file, strlen(file_name) + 4 + 1, "%s%s", file_name, ".tmp");
1140 link(tmp_file, file_name);
1643 if (file_name == NULL) {
1889 if (file_name)
1890 free(file_name);
1968 if (file_name == NULL) {
2005 if (file_name == NULL) {
2200 if (file_name)
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend.kshlib452 file_name="/$fs/file-$i"
454 if [[ -e $file_name ]]; then
456 rm $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 || \
508 truncate -s 0 $file_name || \
511 rm $file_name || \
519 dd if=/dev/urandom of=$file_name \
[all …]
/illumos-gate/usr/src/cmd/tail/
H A Dforward.c247 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 Dtail.c171 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 Dlc_utils.c154 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 Dadm.c446 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 Dndr_lex.c85 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 Dprotocmp.c543 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 Dcplfile.c615 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 Dtlm_restore_writer.c354 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()
825 job_stats, file_name, pos); in tar_getdir()
835 file_name = *longname == 0 ? thname_buf : in tar_getdir()
852 job_stats, file_name, pos); in tar_getdir()
887 file_name = *longname == 0 ? thname_buf : in tar_getdir()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb.c324 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 Dmain.c344 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 Dallocate3.c309 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
1194 fname = file_name; in _allocate_dev()
1308 if ((error = _newdac(file_name, uid, getgid(), in _allocate_dev()
[all …]
/illumos-gate/usr/src/cmd/modload/
H A Ddrvsubr.c84 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()
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
1992 if ((ret = get_major_no(driver_name, file_name)) == ERROR) { in unique_driver_name()
[all …]
/illumos-gate/usr/src/cmd/nscd/
H A Dgetauth.c38 ctx->file_name = "/etc/security/auth_attr"; in auth_init_ctx()
H A Dgetbootp.c38 ctx->file_name = "/etc/bootparams"; in bootp_init_ctx()
H A Dgetnetmasks.c40 ctx->file_name = "/etc/inet/netmasks"; in netmask_init_ctx()
H A Dgetprinter.c39 ctx->file_name = "/etc/printers.conf"; in printer_init_ctx()
H A Dgetprof.c38 ctx->file_name = "/etc/security/prof_attr"; in prof_init_ctx()
H A Dgetuser.c38 ctx->file_name = "/etc/user_attr"; in user_init_ctx()
H A Dgettnrhtp.c44 ctx->file_name = TNRHTP_PATH; in tnrhtp_init_ctx()

123