summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-06-18 19:03:08 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-06-18 19:03:08 +0300
commitfd914239dce82231effd9aeb0b30f989129d60a0 (patch)
tree71c12bee057c2b4d6889a18a6a0e2395b48b5299
parent198465e4df10c8d2d13549ceeba3143ec4646d32 (diff)
downloadillumos-packaging-fd914239dce82231effd9aeb0b30f989129d60a0.tar.gz
libc: add cfsetspeed
-rw-r--r--libc/debian/libc1-illumos-i386.symbols1
-rw-r--r--libc/debian/libc1.symbols.illumos-amd641
-rw-r--r--libc/debian/patches/libc-add-cfsetspeed.patch67
-rw-r--r--libc/debian/patches/series1
4 files changed, 70 insertions, 0 deletions
diff --git a/libc/debian/libc1-illumos-i386.symbols b/libc/debian/libc1-illumos-i386.symbols
index 4af0d40..fbaf8f1 100644
--- a/libc/debian/libc1-illumos-i386.symbols
+++ b/libc/debian/libc1-illumos-i386.symbols
@@ -1155,6 +1155,7 @@ libc.so.1 libc1-illumos-i386 #MINVER#
cfree@SUNWprivate_1.1 2.10-1
cfsetispeed@SYSVABI_1.3 2.10-1
cfsetospeed@SYSVABI_1.3 2.10-1
+ cfsetspeed@DYSON_1 5.10.19
cftime@SUNW_0.7 2.10-1
chdir@SYSVABI_1.3 2.10-1
chmod@SYSVABI_1.3 2.10-1
diff --git a/libc/debian/libc1.symbols.illumos-amd64 b/libc/debian/libc1.symbols.illumos-amd64
index 5e0086f..9f67663 100644
--- a/libc/debian/libc1.symbols.illumos-amd64
+++ b/libc/debian/libc1.symbols.illumos-amd64
@@ -1069,6 +1069,7 @@ libc.so.1 libc1 #MINVER#
cfree@SUNWprivate_1.1 2.10-1
cfsetispeed@SUNW_0.7 2.10-1
cfsetospeed@SUNW_0.7 2.10-1
+ cfsetspeed@DYSON_1 5.10.19
cftime@SUNW_0.7 2.10-1
chdir@SUNW_0.7 2.10-1
chmod@SUNW_0.7 2.10-1
diff --git a/libc/debian/patches/libc-add-cfsetspeed.patch b/libc/debian/patches/libc-add-cfsetspeed.patch
new file mode 100644
index 0000000..0bde235
--- /dev/null
+++ b/libc/debian/patches/libc-add-cfsetspeed.patch
@@ -0,0 +1,67 @@
+Index: libc/usr/src/head/termios.h
+===================================================================
+--- libc.orig/usr/src/head/termios.h
++++ libc/usr/src/head/termios.h
+@@ -36,6 +36,7 @@ __BEGIN_DECLS
+
+ #if defined(_BSD_SOURCE) || defined(__EXTENSIONS__)
+ void cfmakeraw (struct termios *);
++int cfsetspeed(struct termios *, speed_t);
+ #endif
+
+ __END_DECLS
+Index: libc/usr/src/lib/libc/amd64/Makefile
+===================================================================
+--- libc.orig/usr/src/lib/libc/amd64/Makefile
++++ libc/usr/src/lib/libc/amd64/Makefile
+@@ -360,6 +360,7 @@ PORTGEN= \
+ cfgetispeed.o \
+ cfgetospeed.o \
+ cfmakeraw.o \
++ cfsetspeed.o \
+ cfree.o \
+ cfsetispeed.o \
+ cfsetospeed.o \
+Index: libc/usr/src/lib/libc/i386/Makefile.com
+===================================================================
+--- libc.orig/usr/src/lib/libc/i386/Makefile.com
++++ libc/usr/src/lib/libc/i386/Makefile.com
+@@ -395,6 +395,7 @@ PORTGEN= \
+ cfree.o \
+ cfsetispeed.o \
+ cfsetospeed.o \
++ cfsetspeed.o \
+ cftime.o \
+ clock.o \
+ closedir.o \
+Index: libc/usr/src/lib/libc/port/gen/cfsetspeed.c
+===================================================================
+--- /dev/null
++++ libc/usr/src/lib/libc/port/gen/cfsetspeed.c
+@@ -0,0 +1,14 @@
++/*
++ * Public Domain.
++ */
++
++#include "termios.h"
++
++int cfsetspeed (struct termios *termios_p, speed_t speed)
++{
++ int rc;
++ rc = cfsetispeed (termios_p, speed);
++ if (0 == rc)
++ rc = cfsetospeed (termios_p, speed);
++ return rc;
++}
+Index: libc/usr/src/lib/libc/port/mapfile-vers
+===================================================================
+--- libc.orig/usr/src/lib/libc/port/mapfile-vers
++++ libc/usr/src/lib/libc/port/mapfile-vers
+@@ -268,6 +268,7 @@ SYMBOL_VERSION DYSON_1 {
+ __gnu_timegm;
+ _so_accept4;
+ cfmakeraw;
++ cfsetspeed;
+ error;
+ error_at_line;
+ error_message_count;
diff --git a/libc/debian/patches/series b/libc/debian/patches/series
index 1b760cc..0067aac 100644
--- a/libc/debian/patches/series
+++ b/libc/debian/patches/series
@@ -140,3 +140,4 @@ head-make-secondary.patch
librpcsvc-uts-rpcsvc.patch
localedef-prog-only.patch
illumos-6993.patch
+libc-add-cfsetspeed.patch