Home
last modified time | relevance | path

Searched refs:fhp (Results 1 – 3 of 3) sorted by relevance

/external/tcpdump/
Dparsenfsfh.c114 register const unsigned char *fhp = fh; in Parse_fh() local
157 else if ((fhp[0] == 0) && (fhp[1] == 0)) { in Parse_fh()
160 if ((fhp[2] == 0) && (fhp[3] == 0)) { in Parse_fh()
170 if ((fhp[4] != 0) && (fhp[5] == 0) && in Parse_fh()
171 (fhp[8] == 12) && (fhp[9] == 0)) { in Parse_fh()
178 if ((fhp[4] == 0) && (fhp[5] == 8) && (fhp[6] == 0) && in Parse_fh()
179 (fhp[7] == 0)) { in Parse_fh()
196 if ((fhp[2] == 0) && (fhp[3] == 0)) { in Parse_fh()
203 if ((fhp[6] == 0) && (fhp[7] == 0)) { in Parse_fh()
207 else if ((len >= 24/4) && (fhp[21] == 0) && (fhp[23] == 0)) { in Parse_fh()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dcgroup_helpers.c197 struct file_handle *fhp, *fhp2; in get_cgroup_id() local
204 fhsize = sizeof(*fhp); in get_cgroup_id()
205 fhp = calloc(1, fhsize); in get_cgroup_id()
206 if (!fhp) { in get_cgroup_id()
210 err = name_to_handle_at(dirfd, cgroup_workdir, fhp, &mount_id, flags); in get_cgroup_id()
211 if (err >= 0 || fhp->handle_bytes != 8) { in get_cgroup_id()
216 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id()
217 fhp2 = realloc(fhp, fhsize); in get_cgroup_id()
223 fhp = fhp2; in get_cgroup_id()
229 memcpy(id.raw_bytes, fhp->f_handle, 8); in get_cgroup_id()
[all …]
/external/python/cpython2/Modules/
Dfmmodule.c25 fhobject *fhp; in newfhobject() local
31 fhp = PyObject_New(fhobject, &Fhtype); in newfhobject()
32 if (fhp == NULL) in newfhobject()
34 fhp->fh_fh = fh; in newfhobject()
35 return (PyObject *)fhp; in newfhobject()
134 fh_getattr(fhobject *fhp, char *name) in fh_getattr() argument
136 return Py_FindMethod(fh_methods, (PyObject *)fhp, name); in fh_getattr()
140 fh_dealloc(fhobject *fhp) in fh_dealloc() argument
142 fmfreefont(fhp->fh_fh); in fh_dealloc()
143 PyObject_Del(fhp); in fh_dealloc()