Lines Matching refs:ans
384 char ans[80 + 1], *file = txtfile, *outfile = NULL, *path, *fstype;
654 FGETS(ans, sizeof(ans), stdin);
655 switch (ans[0]) {
658 FGETS(ans, sizeof(ans), stdin);
659 ssid = atoi(ans);
662 FGETS(ans, sizeof(ans), stdin);
663 tsid = atoi(ans);
666 FGETS(ans, sizeof(ans), stdin);
667 if (isdigit(ans[0])) {
668 tclass = atoi(ans);
677 ans[strlen(ans) - 1] = 0;
682 ans);
730 FGETS(ans, sizeof(ans), stdin);
731 ssid = atoi(ans);
751 FGETS(ans, sizeof(ans), stdin);
752 scontext_len = strlen(ans);
753 ans[scontext_len - 1] = 0;
754 ret = sepol_context_to_sid(ans, scontext_len, &ssid);
772 ch = ans[0];
775 FGETS(ans, sizeof(ans), stdin);
776 ssid = atoi(ans);
778 FGETS(ans, sizeof(ans), stdin);
779 tsid = atoi(ans);
782 FGETS(ans, sizeof(ans), stdin);
783 if (isdigit(ans[0])) {
784 tclass = atoi(ans);
791 ans[strlen(ans) - 1] = 0;
796 ans);
833 FGETS(ans, sizeof(ans), stdin);
834 pathlen = strlen(ans);
835 ans[pathlen - 1] = 0;
837 argv[0], ans);
838 fd = open(ans, O_RDONLY);
841 ans, strerror(errno));
846 ans, strerror(errno));
854 ans, strerror(errno));
874 FGETS(ans, sizeof(ans), stdin);
875 ans[strlen(ans) - 1] = 0;
876 sepol_fs_sid(ans, &ssid, &tsid);
881 FGETS(ans, sizeof(ans), stdin);
882 ans[strlen(ans) - 1] = 0;
883 if (!strcmp(ans, "tcp") || !strcmp(ans, "TCP"))
885 else if (!strcmp(ans, "udp") || !strcmp(ans, "UDP"))
892 FGETS(ans, sizeof(ans), stdin);
893 port = atoi(ans);
899 FGETS(ans, sizeof(ans), stdin);
900 ans[strlen(ans) - 1] = 0;
901 sepol_netif_sid(ans, &ssid, &tsid);
911 FGETS(ans, sizeof(ans), stdin);
912 ans[strlen(ans) - 1] = 0;
913 if (!strcasecmp(ans, "ipv4"))
915 else if (!strcasecmp(ans, "ipv6"))
923 FGETS(ans, sizeof(ans), stdin);
924 ans[strlen(ans) - 1] = 0;
934 if (inet_pton(family, ans, p) < 1) {
945 FGETS(ans, sizeof(ans), stdin);
946 ans[strlen(ans) - 1] = 0;
947 sepol_fs_use(ans, &uret, &ssid);
969 FGETS(ans, sizeof(ans), stdin);
970 ans[strlen(ans) - 1] = 0;
971 fstype = strdup(ans);
973 FGETS(ans, sizeof(ans), stdin);
974 ans[strlen(ans) - 1] = 0;
975 path = strdup(ans);
977 FGETS(ans, sizeof(ans), stdin);
978 if (isdigit(ans[0])) {
979 tclass = atoi(ans);
986 ans[strlen(ans) - 1] = 0;
991 ans);
1005 FGETS(ans, sizeof(ans), stdin);
1006 ans[strlen(ans) - 1] = 0;
1007 ssid = atoi(ans);
1010 FGETS(ans, sizeof(ans), stdin);
1011 ans[strlen(ans) - 1] = 0;
1013 ret = sepol_get_user_sids(ssid, ans, &sids, &nel);
1041 FGETS(ans, sizeof(ans), stdin);
1042 ans[strlen(ans) - 1] = 0;
1044 name = malloc((strlen(ans) + 1) * sizeof(char));
1049 strcpy(name, ans);
1052 FGETS(ans, sizeof(ans), stdin);
1053 ans[strlen(ans) - 1] = 0;
1055 if (atoi(ans))
1074 printf("\nUnknown option %s.\n", ans);