blob: 2b86206d21a2eba687989dff09c1096e50bd3807 (
plain) (
tree)
|
|
/* See LICENSE file for copyright and license details. */
#include "../libsyscalls.h"
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#if defined(__clang__)
# pragma clang diagnostic ignored "-Wunsafe-buffer-usage" /* clang is just being silly */
#endif
int
main(int argc, char **argv)
{
int sec;
if (argc != 2) {
fprintf(stderr, "usage error\n");
return 3;
}
sec = atoi(argv[1]);
printf("%u\n", LIBSYSCALLS_GET_SECTION_FRACTION((enum libsyscalls_datatype_section)sec));
if (fflush(stdout) || fclose(stdout)) {
perror(NULL);
return 1;
}
return 0;
}
|