[gnu.bash.bug] Bash port to HP9000s835?

baze@nmtsun.nmt.edu (Jody Baze) (10/05/89)

I'm having some problems porting bash (1.03) over to our HP9000 series 835.
We're running HP-UX version 3.10.  I keep getting nasty messages complaining
about undefined symbols (TIOCSETN is among them.  It's correct in complaining
about it though - nowhere else on the system do we have anything called
TIOCSETN.  This is, of course, only one example).  Anybody got a clue?

                 Thanks,

                          JLB

-- 
Jody Baze (baze@jupiter.nmt.edu)    |   Petroleum Recovery Research Center 
"You can lead a camel to a          |   New Mexico Tech, Campus Station    
 neddle, but you can't make         |   Socorro, NM 8781                   
 him thread it..."                  |   (505) 835-5812                     

bd@hp-ses.SDE.HP.COM (Bob Desinger) (10/09/89)

Jody Baze (baze@nmtsun.nmt.edu) writes:
> nowhere else on the system do we have anything called TIOCSETN.

TIOCSETN is a Berkeleyism for the System V TCSETA parameter.  My cheat
sheet on porting BSD code to SysV sez:

    Terminal IO calls:
        --- BSD ---                     --- SysV ---
        #include <sgtty.h>              #include <termio.h>
        struct sgttyb tty;              struct termio tty;
        TIOCSETN                        TCSETA [not TCSETAW or TCSETAF]
        CBREAK                          ICANON and c_cc[VMIN] etc.
        ttyflags = tty.sg_flag;         tty_iflag, tty_oflag, tty_lflag

Marc Rochkind's book _Advanced_Unix_Programming_ treats terminal IO
under System V pretty thoroughly.  HP ships a copy with each Series
800, so you should have one in your manual set.  Rochkind doesn't
cover BSD in much depth, but the principles are the same.

Hope this helps.
-- bd