Lines Matching defs:current

580   char        current[MAX_REALM_LN];
581 char exp[MAX_REALM_LN]; /* Expanded current realm name */
584 int clst, nlst; /* count of last character in current and next */
619 /* read field into current */
631 current[i++] = *otrans++;
637 current[i] = '\0';
644 while (current[0]) {
646 /* figure out expanded form of current name */
648 clst = strlen(current) - 1;
649 if (current[0] == ' ') {
650 strncpy(exp, current+1, sizeof(exp) - 1);
653 else if ((current[0] == '/') && (prev[0] == '/')) {
656 if (strlen(exp) + strlen(current) + 1 >= MAX_REALM_LN) {
660 strncat(exp, current, sizeof(exp) - 1 - strlen(exp));
662 else if (current[clst] == '.') {
663 strncpy(exp, current, sizeof(exp) - 1);
672 strncpy(exp, current, sizeof(exp) - 1);
704 /* realm is a subrealm of the current realm, compress */
706 /* current one. Note that we can not do this if the next*/
720 current[sizeof(current) - 1] = '\0';
721 if (strlen(current) + (pl>0?pl:-pl) + 2 >= MAX_REALM_LN) {
725 strncat(current, ",", sizeof(current) - 1 - strlen(current));
727 strncat(current, realm, (unsigned) pl);
730 strncat(current, realm+strlen(realm)+pl, (unsigned) (-pl));
735 /* realm to be added is a superrealm of the current realm,*/
736 /* then the current realm can be compressed. First the */
738 /* previous realm (if possible), and then the current */
746 current[0] = '\0';
748 if (strlen(current) + (pl1>0?pl1:-pl1) + 1 >= MAX_REALM_LN) {
753 strncat(current, realm, (unsigned) pl1);
756 strncat(current, realm+strlen(realm)+pl1, (unsigned) (-pl1));
761 if (strlen(current) + 2 >= MAX_REALM_LN) {
765 strncat(current, " ", sizeof(current) - 1 - strlen(current));
766 current[sizeof(current) - 1] = '\0';
768 if (strlen(current) + strlen(realm) + 1 >= MAX_REALM_LN) {
772 strncat(current, realm, sizeof(current) - 1 - strlen(current));
773 current[sizeof(current) - 1] = '\0';
775 if (strlen(current) + (pl>0?pl:-pl) + 2 >= MAX_REALM_LN) {
779 strncat(current,",", sizeof(current) - 1 - strlen(current));
780 current[sizeof(current) - 1] = '\0';
782 strncat(current, exp, (unsigned) pl);
785 strncat(current, exp+strlen(exp)+pl, (unsigned)(-pl));
797 if (strlen(trans) + strlen(current) + 1 >= MAX_REALM_LN) {
801 strcat(trans, current);
806 strncpy(current, next, sizeof(current) - 1);
807 current[sizeof(current) - 1] = '\0';