Searched refs:dfile (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/mail/
H A Dlegal.c54 char dfile[MAXFILENAME]; local
67 strcpy(dfile, ".");
69 strcpy(dfile, "/");
73 strncpy(dfile, file, sp - file);
74 dfile[sp - file] = '\0';
76 if (access(dfile, A_WRITE) == CERROR)
/illumos-gate/usr/src/lib/libc/port/rt/
H A Dpos4obj.c131 char *dfile; local
176 if ((dfile = malloc(len)) == NULL)
179 (void) memset(dfile, 0, len);
180 (void) strcpy(dfile, objroot);
183 (void) strcat(dfile, type);
184 (void) strcat(dfile, path + 1);
185 return (dfile);
195 free(dfile);
201 (void) strcat(dfile, ".");
202 (void) strcat(dfile, (cons
297 char *dfile; local
348 char *dfile; local
370 char *dfile; local
[all...]
/illumos-gate/usr/src/uts/common/io/usb/
H A Dusbdevs2h.awk198 function dump_dfile(dfile)
200 printf("\n") > dfile
201 printf("const struct usb_knowndev usb_knowndevs[] = {\n") > dfile
203 printf("\t{\n") > dfile
205 products[i, 1], products[i, 1], products[i, 2]) > dfile
206 printf("\t ") > dfile
207 printf("0") > dfile
208 printf(",\n") > dfile
211 printf("\t \"") > dfile
216 printf(" ") > dfile
[all...]
/illumos-gate/usr/src/cmd/look/
H A Dlook.c21 FILE *dfile; variable
74 dfile = fopen(filenam,"r");
75 if(dfile==NULL) {
87 fseek(dfile,0L,2);
88 top = ftell(dfile);
91 fseek(dfile,mid,0);
93 c = getc(dfile);
114 fseek(dfile,bot,0);
115 while(ftell(dfile)<top) {
164 c = getc(dfile);
[all...]
/illumos-gate/usr/src/lib/auditd_plugins/remote/
H A Daudit_remote.c94 FILE *dfile; /* debug file */ variable
110 DPRINT((dfile, "Transmission queue max length set to %ld\n",
115 DPRINT((dfile, "Setting the transmission queue max length failed\n"));
133 DPRINT((dfile, "unable to get default port number\n"));
136 DPRINT((dfile, "low on buffer\n"));
142 DPRINT((dfile, "default port: %d\n", *port_default));
224 DPRINT((dfile, "parsing %s\n", hosts_str));
234 DPRINT((dfile, "parsing host:port:mech %s\n", hostportmech));
277 DPRINT((dfile, "resolving address for %s\n", hostname));
294 DPRINT((dfile, "hostentr
[all...]
H A Dtransport.c187 DPRINT((dfile, "Protocol version proposal (size=%d): %.*s\n",
191 DPRINT((dfile, "Sending protocol version token failed\n"));
196 DPRINT((dfile, "Receiving protocol version token failed\n"));
207 DPRINT((dfile, "Verification of the protocol version strings "
224 DPRINT((dfile, "Memory allocation failed: %s\n",
232 DPRINT((dfile, "Concatenated version strings: %s\n", ver_str_concat));
234 DPRINT((dfile, "Protocol version agreed.\n"));
253 DPRINT((dfile, "Creating socket for %s\n", host->h_name));
280 DPRINT((dfile, "Socket created, fd=%d, connecting..\n", sock));
288 DPRINT((dfile, "Connecte
[all...]
H A Daudit_remote.h124 #define DPRINT(x) { (void) fprintf x; (void) fflush(dfile); }
130 extern FILE *dfile;
/illumos-gate/usr/src/cmd/bnu/
H A Duux.c87 char dfile[NAMESIZE]; /* used for all data files from here */ local
454 gename(DATAPRE, Myname, 'B', dfile);
456 ASSERT(access(dfile, 0) != 0, Fl_EXISTS, dfile, errno);
457 fpd = fdopen(ret = creat(dfile, DFILEMODE), "w");
458 ASSERT(ret >= 0 && fpd != NULL, Ct_OPEN, dfile, errno);
466 dfile, errno);
468 ASSERT(fflush(fpd) != EOF && ferror(fpd) == 0, Ct_WRITE, dfile, errno); local
476 GENSEND(fpc, dfile, dfile, dfil
756 ASSERT(fflush(fp) != EOF && ferror(fp) == 0, Ct_WRITE, dfile, errno); local
831 ASSERT(fflush(fp) != EOF && ferror(fp) == 0, Ct_WRITE, dfile, errno); local
[all...]
H A Duucp.c488 char dfile[NAMESIZE]; local
586 gename(DATAPRE, s2, Grade, dfile);
596 0777, Nuser, dfile);
638 gename(DATAPRE, s2, Grade, dfile);
642 if (uidxcp(file1, dfile))
645 (void) chmod(dfile, DFILEMODE);
650 file1, file2, User, Optns, dfile,
H A Duuxqt.c833 char dfile[MAXFULLNAME], cfile[MAXFULLNAME], incmd[BUFSIZ]; local
1034 (void) strcpy(dfile, "/dev/null");
1037 (void) snprintf(dfile, sizeof (dfile), "%s/%s", WORKSPACE,
1136 ret = shio(_Cmd, fin, dfile, errDfile);
1190 if ((xmv(dfile, fout)) != 0) {
1196 if (putinpub(fout, dfile, origuser) == 0)
1216 bname = BASENAME(dfile, '/');
1223 wfcommit(dfile, BASENAME(dfile, '/'), sendsy
[all...]
H A Dcntrl.c202 Pname(fileid, dfile, direct)
204 char *dfile;
220 if (p = strrchr(dfile, '/')) { /* find the last slash */
225 DEBUG(7, "Point file (direct) =%s\n", dfile);
229 strcpy(dfile, RemSpool);
230 strcat(dfile, "/");
231 p = dfile + strlen(Dfile);
232 strcat(dfile, fileid);
234 DEBUG(7, "Point file=%s\n", dfile);
/illumos-gate/usr/src/cmd/fmthard/
H A Dfmthard.c138 char *dfile; local
151 dfile = NULL;
188 dfile = optarg;
258 if (eflag && ((dfile == NULL) || qflag)) {
291 if (!dfile && !vname)
297 if (dfile) {
298 if (strcmp(dfile, "-") == 0) {
305 if ((fp = fopen(dfile, "r")) == NULL) {
307 dfile);
/illumos-gate/usr/src/cmd/pcidr/
H A Dpcidr.c540 char *dfile = NULL, *plugin_path = NULL; local
583 dfile = optarg;
594 if (dfile != NULL) {
595 if (strcmp(dfile, "-") == 0) {
602 dfp = fopen(dfile, "a");
605 dfile, strerror(errno));
/illumos-gate/usr/src/ucbcmd/ls/
H A Dls.c584 static char dfile[BUFSIZ]; local
591 (void) strcpy(dfile, file);
592 return (dfile);
594 (void) strcpy(dfile, dir);
596 (void) strcat(dfile, "/");
597 (void) strcat(dfile, file);
598 return (dfile);
/illumos-gate/usr/src/cmd/file/
H A Dfile.c104 static char *dfile; variable
241 add_to_mlist(dfile, 0);
303 if (f_mkmtab(dfile, cflg, 0) == -1) {
324 if (f_mkmtab(dfile, cflg, 0) == -1) {
1716 if ((dfile = malloc(strlen(msg_locale) + 35)) == NULL) {
1722 (void) snprintf(dfile, strlen(msg_locale) + 35,
1724 if (stat(dfile, &statbuf) != 0) {
1725 (void) strcpy(dfile, "/etc/magic");
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dbindings.c202 Dbg_bind_pltpad_to(Rt_map *lmp, Addr pltpad, const char *dfile, argument
211 NAME(lmp), dfile, sname);
H A Drelocate.c442 const char *dfile, const char *symname)
450 dfile, symname);
441 Dbg64_pltpad_to(Lm_list *lml, const char *file, Addr pltpad, const char *dfile, const char *symname) argument
/illumos-gate/usr/src/cmd/csh/
H A Dsh.glob.c921 * dfile is static as this is returned
924 static char dfile[MAXNAMLEN]; local
928 dp = dfile;
932 if (dp > dfile && *(dp - 1) != '/')
939 * dfile points to the absolute pathname. We are
942 return (rindex(dfile, '/') + 1);
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dcollect.c748 char *dfile; local
752 dfile = queuename(e, DATAFL_LETTER);
753 if (stat(dfile, &st) < 0)
757 dfile, (long) st.st_size);
/illumos-gate/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c79 FILE *dfile; local
83 dfile = fopen(config_file, "r");
84 if (dfile == NULL) {
90 if (fscanf(dfile, "%s %x", name[i], (uint_t *)&pattern[i]) ==
100 (void) fclose(dfile);
/illumos-gate/usr/src/cmd/lms/
H A DProtocol.cpp1771 std::ofstream dfile(inFileName, std::ios_base::out | std::ios_base::trunc);
1772 if (!dfile.is_open()) {
1777 dfile << sfile.rdbuf();
1778 if (dfile.bad()) {
1780 dfile.close();
1789 dfile.close();
/illumos-gate/usr/src/cmd/units/
H A Dunits.c23 char *dfile = "/usr/share/lib/unittab"; variable
108 file = dfile;
/illumos-gate/usr/src/cmd/ls/
H A Dls.c2156 * dfile is static as this is returned by makename().
2158 static char dfile[PATH_MAX + 1 + MAXNAMLEN + 1]; local
2161 dp = dfile;
2165 if (dp > dfile && *(dp - 1) != '/')
2171 return (dfile);
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dst.c15634 int dfile = un->un_pos.fileno; /* save current file */ local
15642 st_cmd(un, SCMD_SPACE, Fmk(dfile), SYNC_CMD))) {
15658 st_cmd(un, SCMD_SPACE, Fmk(dfile), SYNC_CMD) ||

Completed in 142 milliseconds