Home
last modified time | relevance | path

Searched refs:ofile (Results 1 – 25 of 55) sorted by relevance

123

/titanic_41/usr/src/uts/common/fs/smbsrv/
H A Dsmb_opipe.c212 smb_ofile_t *ofile; in smb_opipe_open() local
237 ofile = smb_ofile_open(sr, NULL, op, in smb_opipe_open()
240 if (ofile == NULL) { in smb_opipe_open()
246 opipe->p_ofile = ofile; in smb_opipe_open()
255 op->fileid = ofile->f_fid; in smb_opipe_open()
257 sr->smb_fid = ofile->f_fid; in smb_opipe_open()
258 sr->fid_ofile = ofile; in smb_opipe_open()
303 smb_ofile_t *ofile; in smb_opipe_write() local
309 ofile = sr->fid_ofile; in smb_opipe_write()
310 ASSERT(ofile->f_ftype == SMB_FTYPE_MESG_PIPE); in smb_opipe_write()
[all …]
H A Dsmb_nt_transact_quota.c124 smb_ofile_t *ofile; in smb_nt_transact_query_quota() local
154 ofile = sr->fid_ofile; in smb_nt_transact_query_quota()
155 if (ofile == NULL) { in smb_nt_transact_query_quota()
160 if ((ofile->f_node == NULL) || (ofile->f_ftype != SMB_FTYPE_DISK)) { in smb_nt_transact_query_quota()
188 status = smb_quota_init_sids(xa, &request, ofile); in smb_nt_transact_query_quota()
197 &request, &reply, ofile); in smb_nt_transact_query_quota()
208 smb_ofile_set_quota_resume(ofile, NULL); in smb_nt_transact_query_quota()
258 smb_ofile_t *ofile; in smb_nt_transact_set_quota() local
287 ofile = sr->fid_ofile; in smb_nt_transact_set_quota()
288 if (ofile == NULL) { in smb_nt_transact_set_quota()
[all …]
H A Dsmb_flush.c43 static void smb_flush_file(struct smb_request *sr, struct smb_ofile *ofile);
120 smb_flush_file(struct smb_request *sr, struct smb_ofile *ofile) in smb_flush_file() argument
122 sr->user_cr = smb_ofile_getcred(ofile); in smb_flush_file()
124 if ((ofile->f_node->flags & NODE_FLAGS_WRITE_THROUGH) == 0) in smb_flush_file()
125 (void) smb_fsop_commit(sr, sr->user_cr, ofile->f_node); in smb_flush_file()
H A Dsmb_write.c462 smb_ofile_t *ofile = sr->fid_ofile; in smb_common_write() local
471 node = ofile->f_node; in smb_common_write()
503 ofile->f_written = B_TRUE; in smb_common_write()
526 mutex_enter(&ofile->f_mutex); in smb_common_write()
527 ofile->f_seek_pos = param->rw_offset + param->rw_count; in smb_common_write()
528 mutex_exit(&ofile->f_mutex); in smb_common_write()
546 smb_ofile_t *ofile = sr->fid_ofile; in smb_write_truncate() local
547 smb_node_t *node = ofile->f_node; in smb_write_truncate()
571 rc = smb_node_setattr(sr, node, sr->user_cr, ofile, &attr); in smb_write_truncate()
575 mutex_enter(&ofile->f_mutex); in smb_write_truncate()
[all …]
H A Dsmb_locking_andx.c244 smb_ofile_t *ofile; in smb_com_locking_andx() local
257 ofile = sr->fid_ofile; in smb_com_locking_andx()
258 if (ofile->f_node == NULL) { in smb_com_locking_andx()
276 smb_oplock_ack(ofile->f_node, ofile, brk); in smb_com_locking_andx()
H A Dsmb_oplock.c196 smb_oplock_acquire(smb_request_t *sr, smb_node_t *node, smb_ofile_t *ofile) in smb_oplock_acquire() argument
206 SMB_OFILE_VALID(ofile); in smb_oplock_acquire()
208 ASSERT(node == SMB_OFILE_GET_NODE(ofile)); in smb_oplock_acquire()
212 tree = SMB_OFILE_GET_TREE(ofile); in smb_oplock_acquire()
213 session = SMB_OFILE_GET_SESSION(ofile); in smb_oplock_acquire()
231 smb_vop_other_opens(node->vp, ofile->f_mode)) { in smb_oplock_acquire()
251 og = smb_oplock_set_grant(ofile, op->op_oplock_level); in smb_oplock_acquire()
776 smb_oplock_get_grant(smb_oplock_t *ol, smb_ofile_t *ofile) in smb_oplock_get_grant() argument
780 if (SMB_OFILE_OPLOCK_GRANTED(ofile)) in smb_oplock_get_grant()
781 return (&ofile->f_oplock_grant); in smb_oplock_get_grant()
H A Dsmb_ofile.c1280 smb_ofile_set_quota_resume(smb_ofile_t *ofile, char *resume) in smb_ofile_set_quota_resume() argument
1282 ASSERT(ofile); in smb_ofile_set_quota_resume()
1283 mutex_enter(&ofile->f_mutex); in smb_ofile_set_quota_resume()
1285 bzero(ofile->f_quota_resume, SMB_SID_STRSZ); in smb_ofile_set_quota_resume()
1287 (void) strlcpy(ofile->f_quota_resume, resume, SMB_SID_STRSZ); in smb_ofile_set_quota_resume()
1288 mutex_exit(&ofile->f_mutex); in smb_ofile_set_quota_resume()
1292 smb_ofile_get_quota_resume(smb_ofile_t *ofile, char *buf, int bufsize) in smb_ofile_get_quota_resume() argument
1294 ASSERT(ofile); in smb_ofile_get_quota_resume()
1295 mutex_enter(&ofile->f_mutex); in smb_ofile_get_quota_resume()
1296 (void) strlcpy(buf, ofile->f_quota_resume, bufsize); in smb_ofile_get_quota_resume()
[all …]
/titanic_41/usr/src/cmd/sgs/elfwrap/common/
H A Dlintsup.c43 input32(int argc, char **argv, const char *prog, const char *ofile, in input32() argument
46 return (input64(argc, argv, prog, ofile, odp)); in input32()
50 output32(const char *prog, int fd, const char *ofile, ushort_t mach, in output32() argument
53 return (output64(prog, fd, ofile, mach, odp)); in output32()
57 input64(int argc, char **argv, const char *prog, const char *ofile, in input64() argument
60 return (input32(argc, argv, prog, ofile, odp)); in input64()
63 output64(const char *prog, int fd, const char *ofile, ushort_t mach, in output64() argument
66 return (output32(prog, fd, ofile, mach, odp)); in output64()
H A Dmain.c52 const char *prog, *ofile = NULL, *pstr = NULL; in main() local
87 ofile = optarg; in main()
120 if (ofile == NULL) in main()
121 ofile = MSG_ORIG(MSG_STR_AWRAPO); in main()
153 if (input64(argc, argv, prog, ofile, &odesc) == 1) in main()
156 if (input32(argc, argv, prog, ofile, &odesc) == 1) in main()
163 if ((fd = open(ofile, (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
166 ofile, strerror(err)); in main()
179 return (output64(prog, fd, ofile, mach, &odesc)); in main()
181 return (output32(prog, fd, ofile, mach, &odesc)); in main()
/titanic_41/usr/src/cmd/dtrace/test/tst/common/misc/
H A Dtst.include.ksh39 ofile=$2
59 echo $inc failed: `cat $errfile | head -1` > $ofile
61 echo $inc succeeded > $ofile
125 ofile=${TMPDIR:-/tmp}/inc.$file.$$.out
127 doit $file $ofile $errfile &
147 ofile=${TMPDIR:-/tmp}/inc.$file.$$.out
149 if [ -f $ofile ]; then
150 cat $ofile >> $bigofile
151 rm $ofile
/titanic_41/usr/src/cmd/krb5/kadmin/dbutil/
H A Ddump.c92 FILE *ofile; member
594 fprintf(arglist->ofile, k5beta_dump_header);
722 fprintf(arg->ofile, "%d\t%d\t%d\t%d\t%d\t%d\t%s\t%d\t", strlen(name),
731 fprintf(arg->ofile, "%02x", pkey->key_data_contents[0][i]);
737 fprintf(arg->ofile,
748 fprintf(arg->ofile, "%02x", pkey->key_data_contents[1][i]);
751 fprintf(arg->ofile, "\t%u\t", akey->key_data_type[0]);
753 fprintf(arg->ofile, "%02x", akey->key_data_contents[0][i]);
756 fprintf(arg->ofile, "\t%u\t", akey->key_data_type[1]);
758 fprintf(arg->ofile, "%02x", akey->key_data_contents[1][i]);
[all …]
/titanic_41/usr/src/cmd/print/conv_fix/
H A Dconv_fix.c92 char file[80], ofile[80]; in main() local
110 (void) strlcpy(ofile, optarg, sizeof (ofile)); in main()
122 fd = open(ofile, O_RDWR|O_APPEND); in main()
124 fd = open(ofile, O_RDWR|O_CREAT|O_EXCL, 0644); in main()
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Ddebug.c86 const char *ofile; in dbg_setup() local
99 if (Dbg_setup(DBG_CALLER_LD, options, dbg_desc, &ofile) == 0) in dbg_setup()
106 if (ofile) { in dbg_setup()
108 if (*ofile != '\0') { in dbg_setup()
109 FILE *fptr = fopen(ofile, MSG_ORIG(MSG_DBG_FOPEN_MODE)); in dbg_setup()
114 MSG_INTL(MSG_SYS_OPEN), ofile, in dbg_setup()
H A Dresolve.c559 Half ofile = sdp->sd_file->ifl_ehdr->e_type; in sym_tworeals() local
567 if ((ofile == ET_REL) && (nfile == ET_REL) && (obind != STB_WEAK) && in sym_tworeals()
632 } else if ((nfile == ET_REL) && ((ofile == ET_DYN) || in sym_tworeals()
662 Half ofile = sdp->sd_file->ifl_ehdr->e_type; in sym_realtent() local
681 if ((ofile == ET_REL) && (nfile == ET_REL) && (obind == nbind) && in sym_realtent()
699 } else if (ofile != nfile) { in sym_realtent()
702 if ((ofile == ET_DYN) && (otype == STT_FUNC)) { in sym_realtent()
748 if (((ofile == ET_REL) && (nfile == ET_REL) && in sym_realtent()
792 if ((ofile == ET_REL) && (nfile == ET_DYN) && (otent == TRUE) && in sym_realtent()
797 if ((ofile == ET_DYN) && (nfile == ET_REL) && (ntent == TRUE) && in sym_realtent()
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_chmod_inherit_002_neg.ksh69 if [[ -f $ofile ]]; then
70 log_must $RM -f $ofile
96 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir
224 compare_acls $node $ofile
247 compare_acls $node $ofile
317 log_must usr_exec $TOUCH $ofile
333 log_must usr_exec $RM -rf $ofile $odir $basedir
H A Dzfs_acl_chmod_inherit_002_pos.ksh69 if [[ -f $ofile ]]; then
70 log_must $RM -f $ofile
94 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir
262 compare_acls $node $ofile
335 log_must usr_exec $TOUCH $ofile
351 log_must usr_exec $RM -rf $ofile $odir $basedir
H A Dzfs_acl_chmod_inherit_003_pos.ksh65 if [[ -f $ofile ]]; then
66 log_must $RM -f $ofile
92 basedir=$TESTDIR/basedir; ofile=$TESTDIR/ofile; odir=$TESTDIR/odir
297 compare_acls $node $ofile
384 log_must usr_exec $TOUCH $ofile
400 log_must usr_exec $RM -rf $ofile $odir $basedir
/titanic_41/usr/src/grub/grub-0.97/
H A Dcompile74 ofile=$2
96 if test -z "$ofile" || test -z "$cfile"; then
127 mv "$cofile" "$ofile"
129 mv "${cofile}bj" "$ofile"
/titanic_41/usr/src/cmd/refer/
H A Drefer1.c117 sprintf(ofile, "/tmp/rj%db", getpid()); in main()
118 ftemp = fopen(ofile, "w"); in main()
163 recopy(ofile); in main()
196 if (ofile[0]) in cleanup()
197 unlink(ofile); in cleanup()
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Ddebug.c58 const char *ofile; in dbg_setup() local
80 if (Dbg_setup(DBG_CALLER_RTLD, options, dbp, &ofile) == 0) in dbg_setup()
105 if (ofile && (*ofile != '\0')) in dbg_setup()
106 dbg_file = ofile; in dbg_setup()
/titanic_41/usr/src/tools/scripts/
H A Dwebrev.sh3076 ofile=old/$PDIR/$PF
3080 cmp $ofile $nfile > /dev/null 2>&1
3103 if [ ! -f "$ofile" ]; then
3107 diff -u $ofile /dev/null | sh -c "$cleanse_rmfile" \
3110 diff -u $ofile $nfile > $WDIR/$DIR/$F.patch
3113 diff -u $ofile /dev/null | sh -c "$cleanse_rmfile" \
3127 if [[ -f $ofile && -f $nfile && -z $mv_but_nodiff ]]; then
3128 ${CDIFFCMD:-diff -bt -C 5} $ofile $nfile > $WDIR/$DIR/$F.cdiff
3133 ${UDIFFCMD:-diff -bt -U 5} $ofile $nfile > $WDIR/$DIR/$F.udiff
3140 -t "$WNAME Wdiff $DIR/$F" $ofile $nfile > \
[all …]
/titanic_41/usr/src/lib/libipsecutil/common/
H A Dipsec_util.c2806 save_lifetime(struct sadb_lifetime *lifetime, FILE *ofile) in save_lifetime() argument
2822 if (putc('\t', ofile) == EOF) in save_lifetime()
2825 if (lifetime->sadb_lifetime_allocations != 0 && fprintf(ofile, in save_lifetime()
2829 if (lifetime->sadb_lifetime_bytes != 0 && fprintf(ofile, in save_lifetime()
2833 if (lifetime->sadb_lifetime_addtime != 0 && fprintf(ofile, in save_lifetime()
2838 if (lifetime->sadb_lifetime_usetime != 0 && fprintf(ofile, in save_lifetime()
2850 save_address(struct sadb_address *addr, FILE *ofile) in save_address() argument
2891 if (fprintf(ofile, " %s ", prefix) < 0) in save_address()
2903 if (fprintf(ofile, "%s", printable_addr) < 0) in save_address()
2908 if (fprintf(ofile, "/%d", addr->sadb_address_prefixlen) < 0) in save_address()
[all …]
/titanic_41/usr/src/cmd/msgfmt/
H A Doption.c96 flag->ofile = ++arg; in parse_option()
101 flag->ofile = *++argv; in parse_option()
179 flag->ofile = arg; in parse_option()
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_kmod.c294 smb_netfileinfo_t *ofile; in smb_kmod_enum_fini() local
319 ofile = &item->nsi_un.nsi_ofile; in smb_kmod_enum_fini()
320 free(ofile->fi_path); in smb_kmod_enum_fini()
321 free(ofile->fi_username); in smb_kmod_enum_fini()
346 smb_netfileinfo_t *ofile; in smb_kmod_enum() local
382 ofile = &items->nsi_un.nsi_ofile; in smb_kmod_enum()
383 rc = smb_netfileinfo_decode(ofile, data, len, &nbytes); in smb_kmod_enum()
/titanic_41/usr/src/cmd/modload/
H A Dplcysubr.c253 char ofile[MAXPATHLEN]; in delete_one_entry() local
290 (void) snprintf(ofile, sizeof (ofile), "%s%s", filename, ".old"); in delete_one_entry()
414 if (rename(filename, ofile) != 0) { in delete_one_entry()
416 (void) fprintf(stderr, gettext(ERR_UPDATE), ofile); in delete_one_entry()
417 (void) unlink(ofile); in delete_one_entry()
422 (void) fprintf(stderr, gettext(ERR_UPDATE), ofile); in delete_one_entry()
423 (void) rename(ofile, filename); in delete_one_entry()
427 (void) unlink(ofile); in delete_one_entry()

123