Skip to content

Commit

Permalink
Fix wrong argument size causing ioctl calls to return "bad address" o…
Browse files Browse the repository at this point in the history
…n linux 32bit, fixes #108
  • Loading branch information
gnodet committed Apr 6, 2017
1 parent 02ed6bf commit 7ef2abb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface CLibrary extends com.sun.jna.Library {

void tcsetattr(int fd, int cmd, termios termios) throws LastErrorException;

void ioctl(int fd, long cmd, winsize data) throws LastErrorException;
void ioctl(int fd, int cmd, winsize data) throws LastErrorException;

// int isatty(int fd);

Expand Down Expand Up @@ -265,8 +265,8 @@ private <T extends Enum<T>> void addFlag(int value, EnumSet<T> flags, T flag, in

// CONSTANTS

long TIOCGWINSZ = 0x00005413L;
long TIOCSWINSZ = 0x00005414L;
int TIOCGWINSZ = 0x00005413;
int TIOCSWINSZ = 0x00005414;

int VINTR = 0;
int VQUIT = 1;
Expand Down

0 comments on commit 7ef2abb

Please sign in to comment.