Searched refs:fobj (Results 1 – 3 of 3) sorted by relevance
25 with open(self.filename) as fobj:26 result = magic.detect_from_fobj(fobj)30 with open(self.filename) as fobj:31 result = magic.detect_from_content(fobj.read(4096))
319 def detect_from_fobj(fobj): argument325 file_descriptor = fobj.fileno()
248 OBJ_T fobj;266 fobj.file_id = fid;267 fobj.obj_id = *new_pageno;268 bhp = bf_assign_buf ( ndx, &fobj, BF_PIN|BF_DIRTY|BF_EMPTY, &len );307 OBJ_T fobj; 310 fobj.file_id = (long) file_id;311 fobj.obj_id = (long) page_id;323 !OBJ_EQ (bhp->id, fobj) || !(bhp->flags & BUF_VALID);358 (!OBJ_EQ (bhp->id, fobj) || !(bhp->flags & BUF_VALID))) {369 bhp = bf_assign_buf ( ndx, &fobj, flags, len );