Searched defs:fid (Results 1 - 25 of 65) sorted by relevance

123

/illumos-gate/usr/src/test/smbclient-tests/cmd/close_wr/
H A Dclose_wr.c44 int fid; local
54 fid = open(argv[1], O_RDWR | O_CREAT | O_TRUNC,
56 if (fid == -1) {
63 if (ftruncate(fid, filesize) == -1) {
70 PROT_READ | PROT_WRITE, MAP_SHARED, fid, 0);
80 if (close(fid) == -1) {
/illumos-gate/usr/src/test/smbclient-tests/cmd/no_close/
H A Dno_close.c41 int fid; local
51 fid = open(argv[1], O_RDWR | O_CREAT | O_TRUNC,
53 if (fid == -1) {
60 if (ftruncate(fid, filesize) == -1) {
67 PROT_READ | PROT_WRITE, MAP_SHARED, fid, 0);
/illumos-gate/usr/src/test/smbclient-tests/cmd/rw_mmap/
H A Drw_mmap.c52 int c, fid; local
105 fid = open(filename, O_RDWR | O_CREAT | O_TRUNC,
107 if (fid == -1) {
114 if (ftruncate(fid, filesize) == -1) {
121 PROT_READ | PROT_WRITE, MAP_SHARED, fid, 0);
136 lseek(fid, 2013, SEEK_SET);
138 blksize = read(fid, buf, blksize);
155 lseek(fid, 2013, SEEK_SET);
161 blksize = read(fid, buf, blksize);
178 lseek(fid, 201
[all...]
/illumos-gate/usr/src/test/smbclient-tests/cmd/mkfile_mmap/
H A Dmkfile_mmap.c56 int c, fid; local
108 fid = open(filename, O_RDWR | O_CREAT | O_TRUNC,
110 if (fid == -1) {
118 if (ftruncate(fid, filesize) == -1) {
136 PROT_READ | PROT_WRITE, MAP_SHARED, fid, offset);
173 close(fid);
/illumos-gate/usr/src/cmd/pools/poold/libjlgrp/
H A Djlgrp.c45 jfieldID fid; local
47 fid = (*env)->GetFieldID(env, clazz, "cookie", "J");
48 return ((lgrp_cookie_t)(*env)->GetLongField(env, obj, fid));
135 jfieldID fid; local
146 fid = (*env)->GetFieldID(env, clazz, "domain",
148 domain = (*env)->GetObjectField(env, obj, fid);
151 fid = (*env)->GetFieldID(env, clazz, "id", "J");
152 id = (*env)->GetLongField(env, obj, fid);
191 jfieldID fid; local
202 fid
[all...]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_pipesvc.c82 np_new(struct pipe_listener *pl, int fid) argument
103 np->np_fid = fid;
/illumos-gate/usr/src/lib/fm/libfmd_agent/common/
H A Dfmd_agent.c90 fm_ioc_data_t fid; local
122 fid.fid_version = ver;
123 fid.fid_insz = insz;
124 fid.fid_inbuf = inbuf;
125 fid.fid_outsz = outsz;
126 fid.fid_outbuf = outbuf;
128 if (ioctl(hdl->agent_devfd, cmd, &fid) < 0) {
143 err = nvlist_unpack(fid.fid_outbuf, fid.fid_outsz,
/illumos-gate/usr/src/cmd/fs.d/smbclnt/fksmbcl/
H A Dshares.c149 do_bind(int fid) argument
155 err = smb_fh_xactnp(fid,
167 len = smb_fh_read(fid, 0,
180 do_enum(char *server, int fid) argument
219 wlen = smb_fh_write(fid, 0, len, (char *)sendbuf);
230 rlen = smb_fh_read(fid, 0,
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_acl.c76 smb_fh_t *fid = NULL; local
89 error = smbfs_smb_tmpopen(np, rights, &scred, &fid);
97 error = smbfs_smb_getsec(smi->smi_share, fid,
117 smbfs_smb_tmpclose(np, fid);
140 smb_fh_t *fid = NULL; local
164 error = smbfs_smb_tmpopen(np, rights, &scred, &fid);
180 error = smbfs_smb_setsec(smi->smi_share, fid,
183 smbfs_smb_tmpclose(np, fid);
H A Dsmbfs_smb2.c118 smbfs_smb2_query_info(struct smb_share *ssp, smb2fid_t *fid, argument
148 mb_put_uint64le(mbp, fid->fid_persistent);
149 mb_put_uint64le(mbp, fid->fid_volatile);
207 smbfs_smb2_qfileinfo(struct smb_share *ssp, smb2fid_t *fid, argument
216 error = smbfs_smb2_query_info(ssp, fid, mdp, &iolen,
240 smb2fid_t fid; local
259 scrp, &fid, NULL, NULL);
264 error = smbfs_smb2_query_info(ssp, &fid, mdp, &iolen,
269 (void) smb2_smb_close(ssp, &fid, scrp);
332 smbfs_smb2_flush(struct smb_share *ssp, smb2fid_t *fid, argument
366 smbfs_smb2_set_info(struct smb_share *ssp, smb2fid_t *fid, struct mbchain *info_mbp, uint8_t type, uint8_t level, uint32_t addl_info, struct smb_cred *scrp) argument
420 smbfs_smb2_seteof(struct smb_share *ssp, smb2fid_t *fid, uint64_t newsize, struct smb_cred *scrp) argument
437 smbfs_smb2_setdisp(struct smb_share *ssp, smb2fid_t *fid, uint8_t newdisp, struct smb_cred *scrp) argument
458 smbfs_smb2_setfattr(struct smb_share *ssp, smb2fid_t *fid, struct mbchain *mbp, struct smb_cred *scrp) argument
473 smbfs_smb2_rename(struct smbnode *np, struct smbnode *tdnp, const char *tname, int tnlen, int overwrite, smb2fid_t *fid, struct smb_cred *scrp) argument
845 smbfs_smb2_getsec(struct smb_share *ssp, smb2fid_t *fid, uint32_t selector, mblk_t **res, uint32_t *reslen, struct smb_cred *scrp) argument
880 smbfs_smb2_setsec(struct smb_share *ssp, smb2fid_t *fid, uint32_t selector, mblk_t **mp, struct smb_cred *scrp) argument
[all...]
H A Dsmbfs_smb1.c137 smbfs_smb1_trans2_query(struct smbnode *np, uint16_t fid, argument
152 if (fid != SMB_FID_UNUSED)
164 mb_put_uint16le(mbp, fid);
293 smbfs_smb1_flush(struct smb_share *ssp, uint16_t fid, struct smb_cred *scrp) argument
304 mb_put_uint16le(mbp, fid);
318 smbfs_smb1_setinfo_file(struct smb_share *ssp, uint16_t fid, argument
326 ASSERT(fid != SMB_FID_UNUSED);
333 mb_put_uint16le(mbp, fid);
355 smbfs_smb1_seteof(struct smb_share *ssp, uint16_t fid, argument
371 error = smbfs_smb1_setinfo_file(ssp, fid, mb
379 smbfs_smb1_setdisp(struct smb_share *ssp, uint16_t fid, uint8_t newdisp, struct smb_cred *scrp) argument
409 smbfs_smb1_setfattr(struct smb_share *ssp, uint16_t fid, struct mbchain *mbp, struct smb_cred *scrp) argument
437 smbfs_smb1_t2rename(struct smbnode *np, const char *tname, int tnlen, uint16_t fid, struct smb_cred *scrp) argument
820 smbfs_smb1_getsec(struct smb_share *ssp, uint16_t fid, uint32_t selector, mblk_t **res, uint32_t *reslen, struct smb_cred *scrp) argument
894 smbfs_smb1_setsec(struct smb_share *ssp, uint16_t fid, uint32_t selector, mblk_t **mp, struct smb_cred *scrp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_locking_andx.c426 uint16_t fid; local
451 fid = ofile->f_fid;
466 fid,
H A Dsmb_mangle_name.c229 smb_generate_mangle(uint64_t fid, char *buf, size_t buflen) argument
235 if (fid == 0)
236 fid = (uint64_t)-1;
239 for (i = 2; (i < buflen) && (fid > 0); fid /= 36, ++i)
240 *p++ = base36[fid % 36];
295 * fid inode number to generate unique mangle
299 smb_mangle(const char *name, ino64_t fid, char *buf, size_t buflen) argument
310 smb_generate_mangle(fid, mangle_buf, SMB_NAME83_BASELEN);
H A Dsmb_odir.c733 * NULL as the sr to skip sr->fid-ofile checks.
1168 ino64_t fid; local
1237 fid = attr.sa_vattr.va_nodeid;
1239 smb_mangle(name, fid, fileinfo->fi_shortname,
/illumos-gate/usr/src/common/zfs/
H A Dzfeature_common.c123 zfeature_depends_on(spa_feature_t fid, spa_feature_t check) argument
125 zfeature_info_t *feature = &spa_feature_table[fid];
145 zfeature_register(spa_feature_t fid, const char *guid, const char *name, argument
148 zfeature_info_t *feature = &spa_feature_table[fid];
155 ASSERT3U(fid, <, SPA_FEATURES);
164 feature->fi_feature = fid;
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/
H A Dx86pi_subr.c566 fm_ioc_data_t fid; local
591 fid.fid_version = 1;
592 fid.fid_insz = insz;
593 fid.fid_inbuf = ibuf;
594 fid.fid_outsz = outsz;
595 fid.fid_outbuf = obuf;
598 rv = ioctl(fd, FM_IOC_GENTOPO_LEGACY, &fid);
607 (void) nvlist_unpack(fid.fid_outbuf, fid.fid_outsz, &nvl, 0);
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dvfs.h45 kmem_free((caddr_t)(fidp), sizeof (struct fid) - MAXFIDSZ + (fidp)->fid_len)
47 struct fid { struct
93 int (*vfs_vget)(); /* get vnode from fid */
/illumos-gate/usr/src/uts/common/io/
H A Ddevfm.c236 fm_ioc_data_t fid; local
261 fid.fid_version = fid32.fid_version;
262 fid.fid_insz = fid32.fid_insz;
263 fid.fid_inbuf = (caddr_t)(uintptr_t)fid32.fid_inbuf;
264 fid.fid_outsz = fid32.fid_outsz;
265 fid.fid_outbuf = (caddr_t)(uintptr_t)fid32.fid_outbuf;
270 if (ddi_copyin((void *)data, &fid, sizeof (fm_ioc_data_t),
276 fid.fid_version != vers)
279 if (fid.fid_insz > FM_IOC_MAXBUFSZ)
281 if (fid
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dkiconv.h54 uint16_t fid; /* fromcode id. */ member in struct:__anon62
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfeature.c388 feature_do_action(spa_t *spa, spa_feature_t fid, feature_action_t action, argument
392 zfeature_info_t *feature = &spa_feature_table[fid];
396 ASSERT(VALID_FEATURE_FID(fid));
447 spa_feature_enable(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument
450 ASSERT(VALID_FEATURE_FID(fid));
451 feature_enable_sync(spa, &spa_feature_table[fid], tx);
455 spa_feature_incr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument
457 feature_do_action(spa, fid, FEATURE_ACTION_INCR, tx);
461 spa_feature_decr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument
463 feature_do_action(spa, fid, FEATURE_ACTION_DEC
467 spa_feature_is_enabled(spa_t *spa, spa_feature_t fid) argument
482 spa_feature_is_active(spa_t *spa, spa_feature_t fid) argument
506 spa_feature_enabled_txg(spa_t *spa, spa_feature_t fid, uint64_t *txg) argument
[all...]
/illumos-gate/usr/src/ucbhead/sys/
H A Dvfs.h72 kmem_free((caddr_t)(fidp), sizeof (struct fid) - MAXFIDSZ + (fidp)->fid_len)
74 typedef struct fid { struct
139 int (*vfs_vget)(struct vfs *, struct vnode **, struct fid *);
149 int (*vfs_vget)(); /* get vnode from fid */
/illumos-gate/usr/src/uts/common/os/
H A Dkiconv.c1059 size_t fid; local
1096 fid = normalize_codename(op->fromcode);
1112 conv_list[j].fid == fid &&
1192 size_t fid; local
1201 fid = normalize_codename(fromcode);
1202 if (fid == (size_t)-1)
1218 if (conv_list[i].tid == tid && conv_list[i].fid == fid)
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_srv_ns.c40 * returns the filehandle of vp as its fid. When nfs uses fid to set the
42 * the fid of the exported directory. This routine remaps the value of the
43 * attribute va_nodeid of vp to be the fid of vp, so that the fid can fit.
45 * We need this fid mainly for setting up NFSv4 server namespace where an
62 * XXX nfs3_fid()/nfs_fid() returns nfs filehandle as its fid
63 * which has a bigger length than local fid.
86 * Get an nfsv4 vnode of the given fid from the visible list of an
96 /* check if the given fid i
146 pseudo_exportfs(vnode_t *vp, fid_t *fid, struct exp_visible *vis_head, struct exportdata *exdata) argument
621 fid_t fid; local
953 fid_t fid; local
1011 fid_t fid; local
1087 fid_t fid; local
1172 fid_t fid; local
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Deventlib.c400 evFile *fid; local
426 fid = ctx->fdNext;
427 ctx->fdNext = fid->next;
429 fd = fid->fd;
437 eventmask &= fid->eventmask;
453 new->u.file.this = fid;
/illumos-gate/usr/src/cmd/smbsrv/testoplock/
H A Dtol_main.c136 printf(" fid=%d Lease=%s OgState=0x%x Brk=0x%x",
156 do_open(int fid, char *arg2) argument
159 smb_ofile_t *ofile = &ofile_array[fid];
165 printf("open fid %d already opened\n");
177 printf(" open %d OK\n", fid);
181 do_close(int fid) argument
184 smb_ofile_t *ofile = &ofile_array[fid];
190 printf(" close fid %d already closed\n");
205 do_req(int fid, char *arg2) argument
207 smb_ofile_t *ofile = &ofile_array[fid];
226 do_ack(int fid, char *arg2) argument
251 do_brk_parent(int fid) argument
262 do_brk_open(int fid, char *arg2) argument
277 do_brk_handle(int fid) argument
289 do_brk_read(int fid) argument
300 do_brk_write(int fid) argument
311 do_brk_setinfo(int fid, char *arg2) argument
332 do_move(int fid, char *arg2) argument
357 do_waiters(int fid, char *arg2) argument
382 int fid; local
[all...]

Completed in 348 milliseconds

123