Home
last modified time | relevance | path

Searched refs:readgood (Results 1 – 1 of 1) sorted by relevance

/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpassprompt.c31 int readgood, wstat; in promptpass() local
82 readgood = 0; in promptpass()
84 red = read(p[0], passwd + readgood, MAXSECRETLEN-1 - readgood); in promptpass()
91 readgood = -1; in promptpass()
94 readgood += red; in promptpass()
95 } while (readgood < MAXSECRETLEN - 1); in promptpass()
96 passwd[readgood] = 0; in promptpass()
107 if (readgood < 0) in promptpass()
109 if (readgood > 0 && passwd[--readgood] == '\n') in promptpass()
110 passwd[readgood] = '\0'; in promptpass()