Esempio n. 1
0
File: auth.c Progetto: knu/FDclone
char *authgetpass(VOID_A)
{
	char *cp;

#ifdef	FD
	cp = inputpass();
#else	/* !FD */
# ifdef	NOGETPASS
	VOID_C Xfputs("Password:"******"Password:"))) cp = vnullstr;
	cp = Xstrdup(cp);
# endif
#endif	/* !FD */

	return(cp);
}
Esempio n. 2
0
int fflushTIMEOUT_FL(FL_PAR,FILE *fp)
{	int rcode;

	if( feof(fp) )
		return EOF;
	if( ferror(fp) ){
		if( !isNULLFP(fp) )
		if( !lMULTIST() )
		porting_dbg("+++EPIPE[%d] fflushTIMEOUT() for EOF",fileno(fp));
		return EOF;
	}

	{
	fRETURN_ONTIMEOUTX(fp,-1,EOF,LIN_TIMEOUT+1);
	/*
	rcode = fflush(fp);
	*/
	rcode = Xfflush(FL_BAR,fp);
	DONE_SUCCESSFULLY();
	return rcode;
	}
}