Lines Matching defs:state
88 struct listattr_callback_state *state);
1648 struct listattr_callback_state state;
1772 state.fileID = cp->c_fileid;
1773 state.result = 0;
1774 state.uio = uio;
1775 state.size = 0;
1777 state.showcompressed = !compressed || ap->a_options & XATTR_SHOWCOMPRESSION;
1778 state.ctx = ap->a_context;
1779 state.vp = vp;
1786 (IterateCallBackProcPtr)listattr_callback, &state);
1789 *ap->a_size += state.size;
1792 if (state.result || result == btNotFound)
1793 result = state.result;
1812 listattr_callback(const HFSPlusAttrKey *key, __unused const HFSPlusAttrData *data, struct listattr_callback_state *state)
1818 if (state->fileID != key->fileID) {
1819 state->result = 0;
1833 state->result = result;
1842 if (!state->showcompressed && hfs_hides_xattr(state->ctx, VTOC(state->vp), attrname, 1) ) /* 1 == don't take the cnode lock */
1846 if (state->uio == NULL) {
1847 state->size += bytecount;
1849 if (bytecount > uio_resid(state->uio)) {
1850 state->result = ERANGE;
1853 result = uiomove((caddr_t) attrname, bytecount, state->uio);
1855 state->result = result;
1952 hfs_set_volxattr(struct hfsmount *hfsmp, unsigned int xattrtype, int state)
1999 if (state == 0) {
2032 /* Update the state in the mount point */
2034 if (state == 0) {