version 1.10, 2004/09/28 15:10:51 |
version 1.11, 2007/07/26 16:10:16 |
|
|
/* |
/* |
* Copyright (c) 1996, 1998-2004 Todd C. Miller <Todd.Miller@courtesan.com> |
* Copyright (c) 1996, 1998-2005 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
# include <floss.h> |
# include <floss.h> |
#endif |
#endif |
|
|
#include "config.h" |
#include <config.h> |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/param.h> |
#include <sys/param.h> |
|
|
#include "sudo.h" |
#include "sudo.h" |
|
|
#ifndef lint |
#ifndef lint |
static const char rcsid[] = "$Sudo: tgetpass.c,v 1.111 2004/06/06 23:58:11 millert Exp $"; |
__unused static const char rcsid[] = "$Sudo: tgetpass.c,v 1.111.2.2 2007/06/12 01:26:35 millert Exp $"; |
#endif /* lint */ |
#endif /* lint */ |
|
|
#ifndef TCSASOFT |
#ifndef TCSASOFT |
|
|
# define TERM termios |
# define TERM termios |
# define tflags c_lflag |
# define tflags c_lflag |
# define term_getattr(f, t) tcgetattr(f, t) |
# define term_getattr(f, t) tcgetattr(f, t) |
# define term_setattr(f, t) tcsetattr(f, TCSAFLUSH|TCSASOFT, t) |
# define term_setattr(f, t) tcsetattr(f, TCSADRAIN|TCSASOFT, t) |
#else |
#else |
# ifdef HAVE_TERMIO_H |
# ifdef HAVE_TERMIO_H |
# define TERM termio |
# define TERM termio |