Lines Matching refs:ans
393 char ans[80 + 1], *outfile = NULL, *path, *fstype; in main() local
718 FGETS(ans, sizeof(ans), stdin); in main()
719 switch (ans[0]) { in main()
722 FGETS(ans, sizeof(ans), stdin); in main()
723 ssid = atoi(ans); in main()
726 FGETS(ans, sizeof(ans), stdin); in main()
727 tsid = atoi(ans); in main()
730 FGETS(ans, sizeof(ans), stdin); in main()
731 if (isdigit(ans[0])) { in main()
732 tclass = atoi(ans); in main()
741 ans[strlen(ans) - 1] = 0; in main()
746 ans); in main()
794 FGETS(ans, sizeof(ans), stdin); in main()
795 ssid = atoi(ans); in main()
815 FGETS(ans, sizeof(ans), stdin); in main()
816 scontext_len = strlen(ans); in main()
817 ans[scontext_len - 1] = 0; in main()
818 ret = sepol_context_to_sid(ans, scontext_len, &ssid); in main()
836 ch = ans[0]; in main()
839 FGETS(ans, sizeof(ans), stdin); in main()
840 ssid = atoi(ans); in main()
842 FGETS(ans, sizeof(ans), stdin); in main()
843 tsid = atoi(ans); in main()
846 FGETS(ans, sizeof(ans), stdin); in main()
847 if (isdigit(ans[0])) { in main()
848 tclass = atoi(ans); in main()
855 ans[strlen(ans) - 1] = 0; in main()
860 ans); in main()
897 FGETS(ans, sizeof(ans), stdin); in main()
898 pathlen = strlen(ans); in main()
899 ans[pathlen - 1] = 0; in main()
900 fd = open(ans, O_RDONLY); in main()
903 ans, strerror(errno)); in main()
908 ans, strerror(errno)); in main()
916 ans, strerror(errno)); in main()
936 FGETS(ans, sizeof(ans), stdin); in main()
937 ans[strlen(ans) - 1] = 0; in main()
938 sepol_fs_sid(ans, &ssid, &tsid); in main()
943 FGETS(ans, sizeof(ans), stdin); in main()
944 ans[strlen(ans) - 1] = 0; in main()
945 if (!strcmp(ans, "tcp") || !strcmp(ans, "TCP")) in main()
947 else if (!strcmp(ans, "udp") || !strcmp(ans, "UDP")) in main()
949 else if (!strcmp(ans, "dccp") || !strcmp(ans, "DCCP")) in main()
951 else if (!strcmp(ans, "sctp") || !strcmp(ans, "SCTP")) in main()
958 FGETS(ans, sizeof(ans), stdin); in main()
959 port = atoi(ans); in main()
965 FGETS(ans, sizeof(ans), stdin); in main()
966 ans[strlen(ans) - 1] = 0; in main()
967 sepol_netif_sid(ans, &ssid, &tsid); in main()
977 FGETS(ans, sizeof(ans), stdin); in main()
978 ans[strlen(ans) - 1] = 0; in main()
979 if (!strcasecmp(ans, "ipv4")) in main()
981 else if (!strcasecmp(ans, "ipv6")) in main()
989 FGETS(ans, sizeof(ans), stdin); in main()
990 ans[strlen(ans) - 1] = 0; in main()
1000 if (inet_pton(family, ans, p) < 1) { in main()
1011 FGETS(ans, sizeof(ans), stdin); in main()
1012 ans[strlen(ans) - 1] = 0; in main()
1013 sepol_fs_use(ans, &uret, &ssid); in main()
1035 FGETS(ans, sizeof(ans), stdin); in main()
1036 ans[strlen(ans) - 1] = 0; in main()
1037 fstype = strdup(ans); in main()
1039 FGETS(ans, sizeof(ans), stdin); in main()
1040 ans[strlen(ans) - 1] = 0; in main()
1041 path = strdup(ans); in main()
1043 FGETS(ans, sizeof(ans), stdin); in main()
1044 if (isdigit(ans[0])) { in main()
1045 tclass = atoi(ans); in main()
1052 ans[strlen(ans) - 1] = 0; in main()
1057 ans); in main()
1071 FGETS(ans, sizeof(ans), stdin); in main()
1072 ans[strlen(ans) - 1] = 0; in main()
1073 ssid = atoi(ans); in main()
1076 FGETS(ans, sizeof(ans), stdin); in main()
1077 ans[strlen(ans) - 1] = 0; in main()
1079 ret = sepol_get_user_sids(ssid, ans, &sids, &nel); in main()
1107 FGETS(ans, sizeof(ans), stdin); in main()
1108 ans[strlen(ans) - 1] = 0; in main()
1110 name = malloc((strlen(ans) + 1) * sizeof(char)); in main()
1115 strcpy(name, ans); in main()
1118 FGETS(ans, sizeof(ans), stdin); in main()
1119 ans[strlen(ans) - 1] = 0; in main()
1121 if (atoi(ans)) in main()
1131 FGETS(ans, sizeof(ans), stdin); in main()
1132 ssid = atoi(ans); in main()
1135 FGETS(ans, sizeof(ans), stdin); in main()
1136 tsid = atoi(ans); in main()
1139 FGETS(ans, sizeof(ans), stdin); in main()
1140 if (isdigit(ans[0])) { in main()
1141 tclass = atoi(ans); in main()
1150 ans[strlen(ans) - 1] = 0; in main()
1155 ans); in main()
1180 FGETS(ans, sizeof(ans), stdin); in main()
1181 oldsid = atoi(ans); in main()
1184 FGETS(ans, sizeof(ans), stdin); in main()
1185 newsid = atoi(ans); in main()
1188 FGETS(ans, sizeof(ans), stdin); in main()
1189 tasksid = atoi(ans); in main()
1192 FGETS(ans, sizeof(ans), stdin); in main()
1193 if (isdigit(ans[0])) { in main()
1194 tclass = atoi(ans); in main()
1203 ans[strlen(ans) - 1] = 0; in main()
1208 ans); in main()
1240 FGETS(ans, sizeof(ans), stdin); in main()
1241 ans[strlen(ans) - 1] = 0; in main()
1244 if (inet_pton(AF_INET6, ans, p) < 1) { in main()
1251 FGETS(ans, sizeof(ans), stdin); in main()
1252 pkey = atoi(ans); in main()
1259 FGETS(ans, sizeof(ans), stdin); in main()
1260 ans[strlen(ans) - 1] = 0; in main()
1262 name = malloc((strlen(ans) + 1) * sizeof(char)); in main()
1267 strcpy(name, ans); in main()
1270 FGETS(ans, sizeof(ans), stdin); in main()
1271 port = atoi(ans); in main()
1287 printf("\nUnknown option %s.\n", ans); in main()