- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with launching pseudo terminal..
Operating System - HP-UX
1752679
Members
5476
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 10:52 PM
тАО10-13-2010 10:52 PM
Problem with launching pseudo terminal..
Getting errors while executing the attached program
ERRORs:-
first got this device busy
second got this Cannot get the slave name
O/S-> HP-UX 11.23 (on IA platform)
same program executed with another OS its working fine..
ERRORs:-
first got this device busy
second got this Cannot get the slave name
O/S-> HP-UX 11.23 (on IA platform)
same program executed with another OS its working fine..
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 09:47 AM
тАО10-14-2010 09:47 AM
Re: Problem with launching pseudo terminal..
> first got this device busy
Well, duh.
> if ((fdm = open("/dev/ptmx", O_RDWR)) < 0){
> printf("device busy");
> return(-1);
> }
With code this lame, _any_ problem opening
that file will lead to a "device busy"
message. (Interesting placement of "\n",
too.)
man open
man errno
> second got this Cannot get the slave name
"second" after you did what?
> [...] with another OS it[']s working fine..
_Which_ "another OS"?
Other than the horrible message format, it
seems to work on my system:
dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license
dyi # cc -o 363230 363230.c
"363230.c", line 42: warning #2940-D: missing return statement at end of
non-void function "ptym_open"
}
^
dyi # ./363230
starting
slave names = /dev/pts/1
enddyi #
You might start with:
ls -l /dev/ptmx
Well, duh.
> if ((fdm = open("/dev/ptmx", O_RDWR)) < 0){
> printf("device busy");
> return(-1);
> }
With code this lame, _any_ problem opening
that file will lead to a "device busy"
message. (Interesting placement of "\n",
too.)
man open
man errno
> second got this Cannot get the slave name
"second" after you did what?
> [...] with another OS it[']s working fine..
_Which_ "another OS"?
Other than the horrible message format, it
seems to work on my system:
dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license
dyi # cc -o 363230 363230.c
"363230.c", line 42: warning #2940-D: missing return statement at end of
non-void function "ptym_open"
}
^
dyi # ./363230
starting
slave names = /dev/pts/1
enddyi #
You might start with:
ls -l /dev/ptmx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2011 03:09 AM
тАО01-24-2011 03:09 AM
Re: Problem with launching pseudo terminal..
Thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP