/illumos-gate/usr/src/tools/onbld/Checks/ |
H A D | SpellCheck.py | 264 def check(errmsg, output, filename, line, lineno, entry): 266 output.write(errmsg % (filename, lineno, entry[1], entry[2])) 271 def spellcheck(fh, filename=None, output=sys.stderr, **opts): 275 if not filename: 276 filename = fh.name 281 ret |= check(spellMsg, output, filename, line, 284 ret |= check(altMsg, output, filename, line,
|
H A D | CmtBlk.py | 53 def cmtblkchk(fh, blk_name, blk_text, filename=None, 70 if not filename: 71 filename = fh.name 92 (filename, start, blk_name)) 99 (filename, blk_name)) 106 (filename, blk_name, 120 " '%s'\n" % (filename, e.lineno, blk_name, 126 (filename, blk_name))
|
/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/ucbcmd/touch/ |
H A D | touch.c | 197 touch(filename) 198 char *filename; 203 if (stat(filename, &stbuf)) { 212 perror(filename); 217 else if ((fd = creat(filename, 0666)) < 0) { 219 perror(filename); 224 if (stat(filename, &stbuf)) { 226 perror(filename); 246 nowrite = access(filename, R_OK|W_OK); 250 prog, filename); [all...] |
/illumos-gate/usr/src/tools/scripts/ |
H A D | copyrightchk.py | 42 for filename in sys.argv[1:]: 44 fin = open(filename, 'r') 47 (e.filename, e.strerror))
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | assert.c | 59 ** filename -- filename (can be NULL). 69 const char *filename, 74 sm_abort_defaulthandler(filename, lineno, msg) 75 const char *filename; 79 if (filename != NULL) 80 sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "%s:%d: %s\n", filename, 156 ** If filename != NULL then filename and lineno specify the line of source 160 ** filename [all...] |
/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/cmd-crypto/kmfcfg/ |
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/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/cmd/sgs/error/common/ |
H A D | errorfilter.c | 61 char filename[128]; local 77 (void) strcpy(filename, passwdentry->pw_dir); 78 (void) strcat(filename, ERRORNAME); 80 (void) strcpy(filename, auxname); 83 filename); 85 if ((fyle = fopen(filename, "r")) == NULL) { 88 processname, filename); 99 if (freopen(filename, "r", fyle) == NULL) { 102 processname, filename);
|
/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);
|
H A D | meta_tab.c | 50 Free(tabp->filename); 156 assert(tabp->filename != NULL); 157 len = strlen(tabp->filename) + 170 dgettext(TEXT_DOMAIN, "%s line %u"), tabp->filename, 251 char *filename, 262 if (filename == NULL) 263 filename = METATAB; 264 if ((fd = open(filename, O_RDONLY, 0)) < 0) { 265 (void) mdsyserror(ep, errno, filename); 269 (void) mdsyserror(ep, errno, filename); 250 meta_tab_parse( char *filename, md_error_t *ep ) argument [all...] |
/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/cmd/fwflash/common/ |
H A D | fwflash.h | 70 * fully-qualified filename in /usr/lib/fwflash/identify 77 char *filename; member in struct:fw_plugin 92 int (*fw_readfw)(struct devicelist *device, char *filename); 100 int (*fw_writefw)(struct devicelist *device, char *filename); 138 * fully qualified filename in /usr/lib/fwflash/identify 145 char *filename; member in struct:pluginlist 185 * The fully qualified filename. No default location for 188 char *filename; member in struct:fwfile 259 * fully-qualified filename in /usr/lib/fwflash/verify, 266 char *filename; member in struct:vrfyplugin [all...] |
/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'.
|
H A D | db_pickle.cc | 43 if ((filename = strdup(f)) == NULL) { 62 file = fopen(filename, "r"); 66 file = fopen(filename, "w"); 72 file = fopen(filename, "a"); 100 * dump or load data structure to/from 'filename' using function 'f'.
|
/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | lockfile.c | 26 ** filename -- the file name (for error messages). [unused] 27 ** ext -- the filename extension. [unused] 39 lockfile(fd, filename, ext, type) 41 char *filename;
|
/illumos-gate/usr/src/lib/libresolv2/common/dst/ |
H A D | support.c | 225 * filename for a key file. '/', '\' and ':' are not allowed. 228 * Returns 0 if the filename would contain either '\', '/' or ':' 254 * Builds a key filename from the key name, it's id, and a 255 * suffix. '\', '/' and ':' are not allowed. fA filename is of the 260 * if the filename would be too long for space allotted 261 * if the filename would contain a '\', '/' or ':' 266 dst_s_build_filename(char *filename, const char *name, u_int16_t id, argument 270 if (filename == NULL) 272 memset(filename, 0, filename_length); 280 sprintf(filename, " 304 dst_s_fopen(const char *filename, const char *mode, int perm) argument [all...] |
/illumos-gate/usr/src/cmd/make/lib/vroot/ |
H A D | vroot.cc | 151 get_vroot_path(register char **vroot, register char **path, register char **filename) argument 160 if (filename != NULL) 161 *filename= vroot_data.filename_start; 166 translate_with_thunk(register char *filename, int (*thunk) (char *), pathpt path_vector, pathpt vroot_vector, rwt rw) argument 198 int flen = strlen(filename); 207 (void)strcpy(vroot_data.full_path, filename); 212 if (filename[0] != '/') goto use_name; 221 (void)strcpy(vroot_data.filename_start= p, filename); 223 (void)strcpy(vroot_data.full_path, filename); 227 if (filename[ [all...] |
/illumos-gate/usr/src/cmd/lp/model/netpr/ |
H A D | netpr.c | 277 job_data->filename = alloc_str(argv[optind]); 278 syslog(LOG_DEBUG, "filename : %s", job_data->filename); 286 if ((filesize = check_file(job_data->filename)) == -1) { 288 job_data->filename ? job_data->filename : "Error NULL file"); 294 (job_data->filename ? job_data->filename : "Noname")); 300 (job_data->filename ? job_data->filename [all...] |
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/ |
H A D | print.c | 75 char *filename; local 105 filename = argv[argc-1]; 107 if (strcmp(filename, "-") == 0) { 109 filename = "stdin"; 111 file = open(filename, O_RDONLY, 0); 113 smb_error("could not open file %s\n", errno, filename); 155 ctx->ct_user, filename);
|
/illumos-gate/usr/src/test/zfs-tests/cmd/file_write/ |
H A D | file_write.c | 56 char *filename = NULL; local 81 filename = optarg; 105 if (!filename) { 168 if ((bigfd = open(filename, oflag, 0666)) == -1) { 169 (void) printf("open %s: failed [%s]%d. Aborting!\n", filename, 176 filename, offset, noffset, strerror(errno), errno); 182 "offset = %lld, data = %s%d\n", filename, block_size,
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | ctfconvert.c | 78 file_read(tdata_t *td, const char *filename, int ignore_non_c) argument 91 if ((fd = open(filename, O_RDONLY)) < 0) 92 terminate("failed to open %s", filename); 98 terminate("failed to read %s: %s\n", filename, 102 source_types = built_source_types(elf, filename); 106 debug(1, "Ignoring file %s from unknown sources\n", filename); 111 if ((rc = readers[i](td, elf, filename)) == 0) 122 if (findelfsecidx(elf, filename, ".debug") >= 0) { 124 filename); 129 filename); [all...] |
/illumos-gate/usr/src/lib/brand/solaris10/zone/ |
H A D | s10_boot.ksh | 267 filename=$ZONEROOT/lib/svc/method/net-physical 268 safe_backup $filename $filename.pre_p2v 269 safe_copy /usr/lib/brand/solaris10/s10_net_physical $filename 270 filename=$ZONEROOT/lib/svc/share/net_include.sh 271 safe_backup $filename $filename.pre_p2v 272 safe_copy /lib/svc/share/net_include.sh $filename 328 filename=$ZONEROOT/usr/sbin/add_drv 329 [ ! -f $filename [all...] |