diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2017-12-06 08:51:08 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2017-12-06 08:51:08 +0100 |
| commit | 45c32bd7e50adde4119b7a25b580cf3f77d5b91f (patch) | |
| tree | 09facb41ad63b6795801acc323a619b412943d38 | |
| parent | 614f8cc1c3e0065bff2de9e7ab625d710a94ffd4 (diff) | |
syscalls: Define 'input-flags' for 'tcgetattr' and friends.
* guix/build/syscalls.scm (input-flags): New macro.
| -rw-r--r-- | guix/build/syscalls.scm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm index e5779cbd0b0..0cb630cfb3d 100644 --- a/guix/build/syscalls.scm +++ b/guix/build/syscalls.scm | |||
| @@ -119,6 +119,7 @@ | |||
| 119 | termios-input-speed | 119 | termios-input-speed |
| 120 | termios-output-speed | 120 | termios-output-speed |
| 121 | local-flags | 121 | local-flags |
| 122 | input-flags | ||
| 122 | tcsetattr-action | 123 | tcsetattr-action |
| 123 | tcgetattr | 124 | tcgetattr |
| 124 | tcsetattr | 125 | tcsetattr |
| @@ -1704,6 +1705,24 @@ given an integer, returns the list of names of the constants that are or'd." | |||
| 1704 | (define IEXTEN #o0100000) | 1705 | (define IEXTEN #o0100000) |
| 1705 | (define EXTPROC #o0200000)) | 1706 | (define EXTPROC #o0200000)) |
| 1706 | 1707 | ||
| 1708 | (define-bits input-flags | ||
| 1709 | input-flags->symbols | ||
| 1710 | (define IGNBRK #o0000001) | ||
| 1711 | (define BRKINT #o0000002) | ||
| 1712 | (define IGNPAR #o0000004) | ||
| 1713 | (define PARMRK #o0000010) | ||
| 1714 | (define INPCK #o0000020) | ||
| 1715 | (define ISTRIP #o0000040) | ||
| 1716 | (define INLCR #o0000100) | ||
| 1717 | (define IGNCR #o0000200) | ||
| 1718 | (define ICRNL #o0000400) | ||
| 1719 | (define IUCLC #o0001000) | ||
| 1720 | (define IXON #o0002000) | ||
| 1721 | (define IXANY #o0004000) | ||
| 1722 | (define IXOFF #o0010000) | ||
| 1723 | (define IMAXBEL #o0020000) | ||
| 1724 | (define IUTF8 #o0040000)) | ||
| 1725 | |||
| 1707 | ;; "Actions" values for 'tcsetattr'. | 1726 | ;; "Actions" values for 'tcsetattr'. |
| 1708 | (define-bits tcsetattr-action | 1727 | (define-bits tcsetattr-action |
| 1709 | %unused-tcsetattr-action->symbols | 1728 | %unused-tcsetattr-action->symbols |
