[rtems commit] pppd: Remove unused get_pty() function

Sebastian Huber sebh at rtems.org
Mon Oct 1 10:34:06 UTC 2018


Module:    rtems
Branch:    master
Commit:    ac9f80874fc8e252bb8e5184c455f02e4ba7816a
Changeset: http://git.rtems.org/rtems/commit/?id=ac9f80874fc8e252bb8e5184c455f02e4ba7816a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep 25 15:19:08 2018 +0200

pppd: Remove unused get_pty() function

Update #3526.

---

 cpukit/pppd/pppd.h      |  1 -
 cpukit/pppd/sys-rtems.c | 14 --------------
 2 files changed, 15 deletions(-)

diff --git a/cpukit/pppd/pppd.h b/cpukit/pppd/pppd.h
index 98c49e8..d1408a1 100644
--- a/cpukit/pppd/pppd.h
+++ b/cpukit/pppd/pppd.h
@@ -365,7 +365,6 @@ void sys_cleanup(void);	/* Restore system state before exiting */
 int  sys_check_options(void); /* Check options specified */
 void sys_close(void);	/* Clean up in a child before execing */
 int  ppp_available(void);	/* Test whether ppp kernel support exists */
-int  get_pty(int *, int *, char *, int);	/* Get pty master/slave */
 int  open_ppp_loopback(void); /* Open loopback for demand-dialling */
 int  establish_ppp(int);	/* Turn serial port into a ppp interface */
 void restore_loop(void);	/* Transfer ppp unit back to loopback */
diff --git a/cpukit/pppd/sys-rtems.c b/cpukit/pppd/sys-rtems.c
index 3fdca9e..f973795 100644
--- a/cpukit/pppd/sys-rtems.c
+++ b/cpukit/pppd/sys-rtems.c
@@ -443,20 +443,6 @@ setdtr(
     ioctl(fd, (on? TIOCMBIS: TIOCMBIC), &modembits);
 }
 
-/*
- * get_pty - get a pty master/slave pair and chown the slave side
- * to the uid given.  Assumes slave_name points to >= 12 bytes of space.
- */
-int
-get_pty(
-    int *master_fdp,
-    int *slave_fdp,
-    char *slave_name,
-    int uid)
-{
-    return 1;
-}
-
 
 /*
  * open_ppp_loopback - open the device we use for getting



More information about the vc mailing list