(disassoc): Rewrite for POSIX, return status. Caller changed.
Problems with the old code: * Insufficient error checking. * It used TIOCNOTTY (obsolete BSDism) to get rid of the controlling tty, except for hpux || Rel4, where it attempted to use the POSIX way, but screwed up. * It left file descriptors 0, 1, 2 in a somewhat weird state.
This commit is contained in:
parent
551263cb07
commit
a6a87af6ed
4 changed files with 44 additions and 34 deletions
|
@ -371,7 +371,7 @@ extern void print_config(FILE * fp);
|
|||
extern int roll(int);
|
||||
extern int roundavg(double);
|
||||
extern int chance(double);
|
||||
extern void disassoc(void);
|
||||
extern int disassoc(void);
|
||||
extern int diffx(int, int);
|
||||
extern int diffy(int, int);
|
||||
extern int deltax(int, int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue