Searched refs:readgood (Results 1 – 2 of 2) sorted by relevance
35 int readgood, red; in pwfd_passwd() local48 readgood = 0; in pwfd_passwd()50 red = read (passwdfd, passwd + readgood, MAXSECRETLEN - 1 - readgood); in pwfd_passwd()55 readgood = -1; in pwfd_passwd()58 readgood += red; in pwfd_passwd()59 } while (readgood < MAXSECRETLEN - 1); in pwfd_passwd()63 if (readgood < 0) in pwfd_passwd()66 passwd[readgood] = 0; in pwfd_passwd()
32 int readgood, wstat; in promptpass() local71 readgood = 0; in promptpass()73 red = read(p[0], passwd + readgood, MAXSECRETLEN-1 - readgood); in promptpass()80 readgood = -1; in promptpass()83 readgood += red; in promptpass()84 } while (readgood < MAXSECRETLEN - 1); in promptpass()95 if (readgood < 0) in promptpass()97 passwd[readgood] = 0; in promptpass()