| 6 |
details. |
details. |
| 7 |
|
|
| 8 |
Utility functions |
Utility functions |
| 9 |
$Id: util.c,v 1.2.2.6 2002/12/16 22:38:13 rabbi Exp $ */ |
$Id: util.c,v 1.2.2.7 2003/01/12 22:21:26 colintu Exp $ */ |
| 10 |
|
|
| 11 |
|
|
| 12 |
#include "mix3.h" |
#include "mix3.h" |
| 147 |
return p; |
return p; |
| 148 |
} |
} |
| 149 |
|
|
| 150 |
int |
int file_to_out(const char *filename) |
|
file_to_out(const char *filename) |
|
| 151 |
{ |
{ |
| 152 |
int len; |
int len; |
| 153 |
FILE *fp; |
FILE *fp; |
| 440 |
static int getuserpass(BUFFER *b, int mode) |
static int getuserpass(BUFFER *b, int mode) |
| 441 |
{ |
{ |
| 442 |
char p[LINELEN]; |
char p[LINELEN]; |
| 443 |
|
#ifdef UNIX |
| 444 |
int fd; |
int fd; |
| 445 |
int n; |
int n; |
| 446 |
|
#endif |
| 447 |
|
|
| 448 |
#ifdef HAVE_TERMIOS |
#ifdef HAVE_TERMIOS |
| 449 |
struct termios attr; |
struct termios attr; |