Lines Matching defs:fp
85 int sepol_set_policydb_from_file(FILE * fp)
90 pf.fp = fp;
933 int hidden next_entry(void *buf, struct policy_file *fp, size_t bytes)
937 switch (fp->type) {
939 nread = fread(buf, bytes, 1, fp->fp);
945 if (bytes > fp->len)
947 memcpy(buf, fp->data, bytes);
948 fp->data += bytes;
949 fp->len -= bytes;
958 struct policy_file *fp)
962 switch (fp->type) {
964 return fwrite(ptr, size, n, fp->fp);
966 if (bytes > fp->len) {
971 memcpy(fp->data, ptr, bytes);
972 fp->data += bytes;
973 fp->len -= bytes;
976 fp->len += bytes;
1007 struct policy_file file, *fp;
1013 fp = &file;
1018 if (policydb_read(&newpolicydb, fp, 1)) {