Operating System - Linux
1757024 Members
1978 Online
108858 Solutions
New Discussion юеВ

Re: What happened to codelibs and ptyopen(3X)?

 
SOLVED
Go to solution
Bernardo Pi
Occasional Contributor

What happened to codelibs and ptyopen(3X)?

Hello everybody

I'm trying to recompile my 10.20 applications in an 11iv1 box. (It's about time we migrated to 11i!)

One of the applications calls ptyopen(3X), which is part of the C-Plus-Plus.CODELIBS fileset, which is part of the HP C++ product (p/n B3913CB), which is discontinued.

Do I have to modify my source code, or is there an 11i version of the "CODELIBS" that I can install in my 11i box?

Thanks to all!
Never get involved in a land war in Asia
3 REPLIES 3
SureshKumar_2
Valued Contributor

Re: What happened to codelibs and ptyopen(3X)?

Hi

you can install CODELIBS of HP 11i and try run the application.

Most of applications are down-ward compatibilty.

U can go ahead - It will work

Also refer this url 2.x.x chapter for C, C++

http://devrsrc1.external.hp.com/STK/partner/relnotes/11.00/relnotes_1100.txt

Hope this will help you, and make confident...

all the best



Things are very easy, when u know about it...
Mike Stroyan
Honored Contributor
Solution

Re: What happened to codelibs and ptyopen(3X)?

You will not be able to use codelibs with the current aCC compiler on 11iv1. You will need to transition to new functions. There is discussion of the cfront to aCC transition in "HP aC++ Transition Guide" at http://devrsrc1.external.hp.com/STK/partner/acc_transguide.pdf

The codelibs ptyopen functions used some really old pty mechanisms. They have be replaced a couple of times so far. I will attach an example that uses the stream pty mechanism. It has new function calls for opening a pty and setting permissions on the files. The example does not create a utmp entry like ptyopen would. You could look at "man pututxline" for functions that could manipulate utmp entries.
Bernardo Pi
Occasional Contributor

Re: What happened to codelibs and ptyopen(3X)?

Thanks very much!

Problem solved

My apologies for not assigning points 'til this late hour.

Regards
Never get involved in a land war in Asia