Lines Matching refs:fprintf
38 fprintf(stderr, "%s: out of memory\n", progname); in stoupperx()
62 fprintf(stderr, "Could not open %s for writing: %s\n", in main()
78 fprintf(fout, "/* This file is automatically generated. Do not edit. */\n"); in main()
79 fprintf(fout, "#ifndef _SELINUX_FLASK_H_\n#define _SELINUX_FLASK_H_\n\n"); in main()
83 fprintf(fout, "#define SECCLASS_%s", map->name); in main()
85 fprintf(fout, " "); in main()
86 fprintf(fout, "%2d\n", i+1); in main()
89 fprintf(fout, "\n"); in main()
93 fprintf(fout, "#define SECINITSID_%s", s); in main()
95 fprintf(fout, " "); in main()
96 fprintf(fout, "%2d\n", i); in main()
98 fprintf(fout, "\n#define SECINITSID_NUM %d\n", i-1); in main()
99 fprintf(fout, "\nstatic inline bool security_is_socket_class(u16 kern_tclass)\n"); in main()
100 fprintf(fout, "{\n"); in main()
101 fprintf(fout, "\tbool sock = false;\n\n"); in main()
102 fprintf(fout, "\tswitch (kern_tclass) {\n"); in main()
107 fprintf(fout, "\tcase SECCLASS_%s:\n", map->name); in main()
109 fprintf(fout, "\t\tsock = true;\n"); in main()
110 fprintf(fout, "\t\tbreak;\n"); in main()
111 fprintf(fout, "\tdefault:\n"); in main()
112 fprintf(fout, "\t\tbreak;\n"); in main()
113 fprintf(fout, "\t}\n\n"); in main()
114 fprintf(fout, "\treturn sock;\n"); in main()
115 fprintf(fout, "}\n"); in main()
117 fprintf(fout, "\n#endif\n"); in main()
122 fprintf(stderr, "Could not open %s for writing: %s\n", in main()
127 fprintf(fout, "/* This file is automatically generated. Do not edit. */\n"); in main()
128 fprintf(fout, "#ifndef _SELINUX_AV_PERMISSIONS_H_\n#define _SELINUX_AV_PERMISSIONS_H_\n\n"); in main()
134 fprintf(stderr, "Too many permissions to fit into an access vector at (%s, %s).\n", in main()
138 fprintf(fout, "#define %s__%s", map->name, in main()
141 fprintf(fout, " "); in main()
142 fprintf(fout, "0x%08xU\n", (1<<j)); in main()
146 fprintf(fout, "\n#endif\n"); in main()