diff options
author | Tilman Schmidt | 2009-05-10 13:54:51 +0200 |
---|---|---|
committer | Karel Zak | 2009-06-29 22:31:15 +0200 |
commit | d5f36dec9209982576b52cbadb74c3abf4b73376 (patch) | |
tree | 645643b5f534cb3f6ff83a2743bc0f8d0e4df13c /sys-utils/ldattach.c | |
parent | libuuid: move clock state file from /var/lib to /var/run (diff) | |
download | kernel-qcow2-util-linux-d5f36dec9209982576b52cbadb74c3abf4b73376.tar.gz kernel-qcow2-util-linux-d5f36dec9209982576b52cbadb74c3abf4b73376.tar.xz kernel-qcow2-util-linux-d5f36dec9209982576b52cbadb74c3abf4b73376.zip |
ldattach: add N_PPS support
Add support for a line discipline name "PPS" selecting the
Pulse Per Second line discipline N_PPS (18). The number has been
reserved since kernel release 2.6.28, and the implementation is
finally going to be submitted for kernel release 2.6.31.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Diffstat (limited to 'sys-utils/ldattach.c')
-rw-r--r-- | sys-utils/ldattach.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c index 801dd1cb9..19f70fe62 100644 --- a/sys-utils/ldattach.c +++ b/sys-utils/ldattach.c @@ -34,6 +34,10 @@ # define N_GIGASET_M101 16 #endif +#ifndef N_PPS +# define N_PPS 18 +#endif + #ifndef ARRAY_SIZE # define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #endif @@ -65,7 +69,8 @@ ld_table[] = { { "HCI", N_HCI }, { "GIGASET_M101", N_GIGASET_M101 }, { "GIGASET", N_GIGASET_M101 }, - { "M101", N_GIGASET_M101 } + { "M101", N_GIGASET_M101 }, + { "PPS", N_PPS }, }; /* look up line discipline code */ |