Lines Matching refs:f

59         fprintf(f, "%s", tmp2);					\
60 while(tabs-- > 0) fprintf(f, "\t"); \
61 fprintf(f, "/* %2d bits */\n", b); \
71 try_signed(FILE *f, int len) __attribute__ ((unused));
74 try_unsigned(FILE *f, int len) __attribute__ ((unused));
77 print_bt(FILE *f, int flag) __attribute__ ((unused));
80 try_signed(FILE *f, int len) in try_signed() argument
89 fprintf(f, "/* There is no %d bit type */\n", len); in try_signed()
93 try_unsigned(FILE *f, int len) in try_unsigned() argument
102 fprintf(f, "/* There is no %d bit type */\n", len); in try_unsigned()
106 print_bt(FILE *f, int flag) in print_bt() argument
109 fprintf(f, "/* For compatibility with various type definitions */\n"); in print_bt()
110 fprintf(f, "#ifndef __BIT_TYPES_DEFINED__\n"); in print_bt()
111 fprintf(f, "#define __BIT_TYPES_DEFINED__\n"); in print_bt()
112 fprintf(f, "\n"); in print_bt()
119 FILE *f; in main() local
131 f = stdout; in main()
142 f = fopen(argv[1], "w"); in main()
144 fprintf(f, "/* %s -- this file was generated for %s by\n", fn, HOST); in main()
145 fprintf(f, " %*s %s */\n\n", (int)strlen(fn), "", in main()
147 fprintf(f, "#ifndef %s\n", hb); in main()
148 fprintf(f, "#define %s\n", hb); in main()
149 fprintf(f, "\n"); in main()
151 fprintf(f, "#include <inttypes.h>\n"); in main()
154 fprintf(f, "#include <sys/types.h>\n"); in main()
157 fprintf(f, "#include <sys/bitypes.h>\n"); in main()
160 fprintf(f, "#include <bind/bitypes.h>\n"); in main()
163 fprintf(f, "#include <netinet/in6_machtypes.h>\n"); in main()
167 fprintf(f, "#include <sys/socket.h>\n"); in main()
169 fprintf(f, "#include <winsock2.h>\n"); in main()
170 fprintf(f, "#include <ws2tcpip.h>\n"); in main()
173 fprintf(f, "\n"); in main()
177 flag = print_bt(f, flag); in main()
178 try_signed (f, 8); in main()
181 flag = print_bt(f, flag); in main()
182 try_signed (f, 16); in main()
185 flag = print_bt(f, flag); in main()
186 try_signed (f, 32); in main()
189 flag = print_bt(f, flag); in main()
190 try_signed (f, 64); in main()
194 flag = print_bt(f, flag); in main()
195 try_unsigned (f, 8); in main()
198 flag = print_bt(f, flag); in main()
199 try_unsigned (f, 16); in main()
202 flag = print_bt(f, flag); in main()
203 try_unsigned (f, 32); in main()
206 flag = print_bt(f, flag); in main()
207 try_unsigned (f, 64); in main()
210 #define X(S) fprintf(f, "typedef uint" #S "_t u_int" #S "_t;\n") in main()
212 flag = print_bt(f, flag); in main()
216 flag = print_bt(f, flag); in main()
220 flag = print_bt(f, flag); in main()
224 flag = print_bt(f, flag); in main()
229 fprintf(f, "\n"); in main()
230 fprintf(f, "#endif /* __BIT_TYPES_DEFINED__ */\n\n"); in main()
233 fprintf(f, "\n"); in main()
235 fprintf(f, "typedef socklen_t krb5_socklen_t;\n"); in main()
237 fprintf(f, "typedef int krb5_socklen_t;\n"); in main()
241 fprintf(f, "#include <unistd.h>\n"); in main()
243 fprintf(f, "typedef ssize_t krb5_ssize_t;\n"); in main()
245 fprintf(f, "typedef int krb5_ssize_t;\n"); in main()
247 fprintf(f, "\n"); in main()
250 fprintf(f, "typedef SOCKET krb5_socket_t;\n"); in main()
252 fprintf(f, "typedef int krb5_socket_t;\n"); in main()
254 fprintf(f, "\n"); in main()
258 fprintf(f, "#ifndef HEIMDAL_DEPRECATED\n"); in main()
259 …fprintf(f, "#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )… in main()
260 fprintf(f, "#define HEIMDAL_DEPRECATED __attribute__((deprecated))\n"); in main()
261 fprintf(f, "#elif defined(_MSC_VER) && (_MSC_VER>1200)\n"); in main()
262 fprintf(f, "#define HEIMDAL_DEPRECATED __declspec(deprecated)\n"); in main()
263 fprintf(f, "#else\n"); in main()
264 fprintf(f, "#define HEIMDAL_DEPRECATED\n"); in main()
265 fprintf(f, "#endif\n"); in main()
266 fprintf(f, "#endif\n"); in main()
268 fprintf(f, "#ifndef HEIMDAL_PRINTF_ATTRIBUTE\n"); in main()
269 …fprintf(f, "#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )… in main()
270 fprintf(f, "#define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__((format x))\n"); in main()
271 fprintf(f, "#else\n"); in main()
272 fprintf(f, "#define HEIMDAL_PRINTF_ATTRIBUTE(x)\n"); in main()
273 fprintf(f, "#endif\n"); in main()
274 fprintf(f, "#endif\n"); in main()
276 fprintf(f, "#ifndef HEIMDAL_NORETURN_ATTRIBUTE\n"); in main()
277 …fprintf(f, "#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )… in main()
278 fprintf(f, "#define HEIMDAL_NORETURN_ATTRIBUTE __attribute__((noreturn))\n"); in main()
279 fprintf(f, "#else\n"); in main()
280 fprintf(f, "#define HEIMDAL_NORETURN_ATTRIBUTE\n"); in main()
281 fprintf(f, "#endif\n"); in main()
282 fprintf(f, "#endif\n"); in main()
284 fprintf(f, "#ifndef HEIMDAL_UNUSED_ATTRIBUTE\n"); in main()
285 …fprintf(f, "#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1 )… in main()
286 fprintf(f, "#define HEIMDAL_UNUSED_ATTRIBUTE __attribute__((unused))\n"); in main()
287 fprintf(f, "#else\n"); in main()
288 fprintf(f, "#define HEIMDAL_UNUSED_ATTRIBUTE\n"); in main()
289 fprintf(f, "#endif\n"); in main()
290 fprintf(f, "#endif\n"); in main()
292 fprintf(f, "#endif /* %s */\n", hb); in main()
294 if (f != stdout) in main()
295 fclose(f); in main()