Searched defs:tfp (Results 1 - 6 of 6) sorted by relevance

/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_mdcf.c55 FILE *tfp = NULL; local
66 if ((tfp = fopen(tname, "w")) == NULL)
69 (void) fchmod(fileno(tfp), (sbuf.st_mode & 0777));
70 (void) fchown(fileno(tfp), sbuf.st_uid, sbuf.st_gid);
76 "# do not hand edit\n"), tfp) == EOF) {
82 if (meta_print_all(sp, tname, NULL, tfp, options, NULL, ep) != 0)
86 if (fclose(tfp) != 0) {
90 tfp = NULL;
99 if ((tfp = fopen(tname, "r")) == NULL) {
105 while (fgets(line, 1000, tfp) !
[all...]
H A Dmeta_patch.c65 FILE *tfp = NULL; local
107 if ((tfp = fopen(*tname, "w")) == NULL) {
111 if (fchmod(fileno(tfp), (sbuf.st_mode & 0777)) != 0) {
115 if (fchown(fileno(tfp), sbuf.st_uid, sbuf.st_gid) != 0) {
136 if (fputs(buf, tfp) == EOF) {
158 if (fprintf(tfp, "%s\t%s\t%s\t%s\t%s\t%s\t%s\n",
183 if ((fflush(tfp) != 0) ||
184 (fsync(fileno(tfp)) != 0) ||
185 (fclose(tfp) != 0)) {
189 tfp
[all...]
H A Dmeta_systemfile.c60 FILE **tfp, /* returned open FILE */
73 assert(tfp != NULL);
76 *tfp = NULL;
90 if ((*tfp = fopen(*tname, "w")) == NULL) {
106 if ((*tfp = fopen(*tname, "w")) == NULL) {
112 if ((fchmod(fileno(*tfp), (sbuf.st_mode & 0777))
114 (fchown(fileno(*tfp), sbuf.st_uid, sbuf.st_gid)
153 if (fputs(buf, *tfp) == EOF) {
178 if ((fflush(*tfp) != 0) ||
179 (fsync(fileno(*tfp)) !
53 meta_systemfile_copy( char *sname, int doroot, int domddb, int doit, int verbose, char **tname, FILE **tfp, md_error_t *ep ) argument
205 meta_systemfile_append_mdroot( mdname_t *rootnp, char *sname, char *tname, FILE *tfp, int ismeta, int doit, int verbose, md_error_t *ep ) argument
334 meta_systemfile_append_mddb( char *cname, char *sname, char *tname, FILE *tfp, int doit, int verbose, int check, md_error_t *ep ) argument
[all...]
/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_file.c46 topo_file_unload(topo_file_t *tfp) argument
49 if (tfp == NULL)
52 if (tfp->tf_filenm != NULL)
53 topo_mod_strfree(tfp->tf_mod, tfp->tf_filenm);
55 if (tfp->tf_tmap != NULL)
56 tf_info_free(tfp->tf_mod, tfp->tf_tmap);
58 topo_mod_free(tfp->tf_mod, tfp, sizeo
65 topo_file_t *tfp; local
[all...]
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo_pca.c552 FILE *tfp; local
567 tfp = fopen(unique_name, "w+");
568 if (tfp == NULL) {
573 di_pca_rec_print(tfp, r);
574 (void) fclose(tfp);
/osnet-11/usr/src/cmd/sendmail/src/
H A Dqueue.c352 register SM_FILE_T *tfp; local
384 tfp = e->e_lockfp;
385 if (tfp == NULL && newid)
399 (tfp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT,
408 tf, (int) geteuid(), tfd, tfp);
411 e->e_lockfp = tfp;
468 if (tfd < 0 || (tfp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT,
498 sm_dprintf(" tfp=");
499 dumpfd(sm_io_getinfo(tfp, SM_IO_WHAT_FD, NULL), true, false);
610 (void) sm_io_fprintf(tfp, SM_TIME_DEFAUL
[all...]

Completed in 33 milliseconds