/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | remove.c | 39 remove(const char *filename) argument 44 * If filename is not a directory, call unlink(filename) 45 * Otherwise, call rmdir(filename) 48 if (lstat64(filename, &statb) != 0) 51 return (unlink(filename)); 52 return (rmdir(filename));
|
H A D | opendir.c | 49 opendir(const char *filename) argument 54 if ((fd = openat(AT_FDCWD, filename,
|
H A D | assert.c | 48 _assert(const char *assertion, const char *filename, int line_num) argument 54 assertion, filename, line_num); 62 * function name in addition to the filename and line number 66 _assert_c99(const char *assertion, const char *filename, int line_num, argument 74 assertion, filename, line_num, funcname);
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | utimes.c | 31 __utimes(char *filename, struct timeval *tvp) { argument 36 return (utime(filename, &utb));
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | vpfopen.c | 42 vpfopen(char *filename, char *type) argument 48 if ((returncode = fopen(filename, type)) == NULL && 49 filename[0] != '/' && strcmp(type, "r") == 0) { 52 (void) sprintf(buf, "%s/%s", vpdirs[i], filename);
|
/illumos-gate/usr/src/cmd/cmd-crypto/kmfcfg/ |
H A D | delete.c | 44 char *filename = NULL; local 50 filename = get_string(optarg_av, &rv); 51 if (filename == NULL) { 84 if (filename == NULL) { 85 filename = strdup(KMF_DEFAULT_POLICY_FILE); 86 if (filename == NULL) { 101 } else if (strcmp(filename, KMF_DEFAULT_POLICY_FILE) == 0 && 111 if (access(filename, W_OK) < 0) { 115 filename, strerror(err)); 120 kmfrv = kmf_delete_policy_from_db(policyname, filename); [all...] |
H A D | export.c | 43 char *filename = NULL; local 55 filename = get_string(optarg_av, &rv); 56 if (filename == NULL) { 95 if (filename == NULL) { 96 filename = strdup(KMF_DEFAULT_POLICY_FILE); 97 if (filename == NULL) { 126 rv = load_policies(filename, &plclist); 151 policyname, filename); 156 if (filename != NULL) 157 free(filename); [all...] |
H A D | import.c | 44 char *filename = NULL; local 56 filename = get_string(optarg_av, &rv); 57 if (filename == NULL) { 97 if (filename == NULL) { 98 filename = strdup(KMF_DEFAULT_POLICY_FILE); 99 if (filename == NULL) { 119 if (strcmp(filename, KMF_DEFAULT_POLICY_FILE) == 0 && 144 rv = kmf_add_policy_to_db(&pnode->plc, filename, 158 if (filename != NULL) 159 free(filename); [all...] |
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lastcomm.c | 42 char *filename = NULL; local 50 filename = optarg; 57 gettext("Usage:\tlastcomm [-x] [-f filename]" 67 if (filename) { 68 return (lc_exacct(filename, argc, argv, optind)); 80 if (filename == NULL) { 96 if ((res = ea_open(&ef, filename, EXACCT_CREATOR, 101 return (lc_pacct(filename, argc, argv, optind)); 103 return (lc_exacct(filename, argc, argv, optind));
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_ctf_open.c | 45 mdb_ctf_open(const char *filename, int *errp) argument 47 return (ctf_open(filename, errp)); 57 mdb_ctf_write(const char *filename, ctf_file_t *fp) argument 61 if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644)) < 0)
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_stat.c | 48 meta_stat(const char *filename, struct stat *sbp) argument 55 for (cp = (char *)filename; *cp != 0; cp++) 61 if (strcmp(filename, scp->sc_filename) == 0) 68 if (stat(filename, sbp) != 0) 78 scp->sc_filename = strdup(filename);
|
/illumos-gate/usr/src/lib/nsswitch/user/common/ |
H A D | user_common.h | 52 const char *filename; member in struct:user_backend 72 const char *filename,
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | keyfile.c | 47 pkcs11_read_data(char *filename, void **dbuf, size_t *dlen) argument 56 if (filename == NULL || dbuf == NULL || dlen == NULL) 59 if ((fd = open(filename, O_RDONLY | O_NONBLOCK)) == -1) { 61 cryptoerror(LOG_STDERR, gettext("cannot open %s"), filename); 67 cryptoerror(LOG_STDERR, gettext("cannot stat %s"), filename); 105 gettext("error reading file %s: %s"), filename, 132 filename, strerror(ret));
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_pickle.h | 55 char *filename; member in class:pickle_file 62 ~pickle_file() { delete filename; DESTROYRW(pickle); } 74 * dump or load data structure to/from 'filename' using function 'f'.
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_open.c | 38 pr_open(struct ps_prochandle *Pr, const char *filename, int flags, mode_t mode) argument 46 return (open(filename, flags, mode)); 55 adp++; /* filename argument */ 57 adp->arg_object = (void *)filename; 60 adp->arg_size = strlen(filename)+1; 89 pr_creat(struct ps_prochandle *Pr, const char *filename, mode_t mode) argument 97 return (creat(filename, mode)); 106 adp++; /* filename argument */ 108 adp->arg_object = (void *)filename; 111 adp->arg_size = strlen(filename) [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/sys5/ |
H A D | assert.c | 46 _assert(char *assertion, char *filename, int line_num) argument 59 WRITESTR(", file ", 7, filename);
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | readlink.c | 53 char *filename, local 83 filename = argv[0]; 87 len = resolvepath(filename, buf, sizeof(buf)-2); 91 len = readlink(filename, buf, sizeof(buf)-2); 100 error(ERROR_system(1),"%s: readlink failed", filename);
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | friendly.c | 46 ldap_friendly_name( char *filename, char *name, FriendlyMap *map ) argument 62 if ( (fp = fopen( filename, "rF" )) == NULL )
|
/illumos-gate/usr/src/grub/grub-0.97/util/ |
H A D | mbchk.c | 56 check_multiboot (const char *filename, FILE *fp) argument 64 fprintf (stderr, "%s: Read error.\n", filename); 81 fprintf (stderr, "%s: No Multiboot header.\n", filename); 87 filename, i); 94 filename, mbh->checksum); 103 filename, mbh->flags); 110 filename, (mbh->flags & 0x1)? "on" : "off"); 112 filename, (mbh->flags & 0x2)? "on" : "off"); 114 filename, (mbh->flags & 0x10000)? "on" : "off"); 125 filename, mb [all...] |
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | fcns.c | 46 ar_sym_read(Elf *elf, char *filename) argument 54 prog_name, filename); 59 (void) printf("%s:\n", filename); 81 * and the filename. 84 dump_exec_header(Elf *elf_file, unsigned nseg, char *filename) argument 117 prog_name, filename);
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | systat.c | 49 char filename[MAXFULLNAME], line[S_SIZE]; local 57 STATNAME(filename, name); 59 fp = fopen(filename, "r"); 113 fp = fopen(filename, "w"); 116 errent(Ct_OPEN, filename, errno, __FILE__, __LINE__); 119 (void) chmod(filename, PUB_FILEMODE); 141 char filename[MAXFULLNAME], line[S_SIZE]; local 144 STATNAME(filename, name); 145 fp = fopen(filename, "r"); 153 (void) unlink(filename); [all...] |
/illumos-gate/usr/src/cmd/tsol/getlabel/ |
H A D | getlabel.c | 46 get_label(char *filename, uint_t opt_flag) argument 54 } else if (getlabel(filename, fl) != 0) { 55 perror(filename); 60 (void) printf("%s:\t", filename); 98 (void) fprintf(stderr, gettext("\t%s [-S | -s] filename ...\n"),
|
/illumos-gate/usr/src/cmd/tsol/setlabel/ |
H A D | setlabel.c | 89 set_label(char *filename, char *label) argument 97 perror(filename); 100 rval = getlabel(filename, blabel); 103 perror(filename); 109 filename); 116 rval = setlabel(filename, blabel); 123 setlabel(char *filename, bslabel_t *label) argument 127 rval = setflabel(filename, label); 131 perror(filename); 173 " %s newlabel filename [ [all...] |
/illumos-gate/usr/src/test/zfs-tests/cmd/randfree_file/ |
H A D | randfree_file.c | 45 "[-n section-len] filename\n", progname); 52 char *filename = NULL; local 79 filename = argv[optind]; 85 if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, mode)) < 0) {
|
/illumos-gate/usr/src/test/zfs-tests/cmd/readmmap/ |
H A D | readmmap.c | 31 * Usage: readmmap <filename> 34 * filename is an absolute path to the file name. 51 char *filename = "badfile"; local 70 filename = argv[optind]; 72 (void) remove(filename); 74 fd = open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
|