LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-28-2006, 04:53 AM   #1
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 115

Rep: Reputation: 0
Where is /dev/ttyp* and /dev/pty* on RH 4.0 ?


I use them in my software and have realised they are non existing in CentOS 4.3 and Redhat 4.0. Is there a script to make them ?

They existed i earlier releases of both CentOS and RH ! eg. RH 3.0!
 
Old 08-29-2006, 02:08 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,015
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
These are pseudo ttys.

I'm used to seeing pseudo ttys as /dev/pts#. For the heck of it I did man pts and it has the following note at the bottom:

FILES
/dev/ptmx, /dev/pts/*

NOTES
The Linux support for the above (known as Unix98 pty naming) is done
using the devpts filesystem, that should be mounted on /dev/pts.

Before this Unix98 scheme, master ptys were called /dev/ptyp0, ... and
slave ptys /dev/ttyp0, ... and one needed lots of preallocated device
nodes.

Same note in both the release 3 and 4 man pages but oddly enough I do see /dev/ttyp* entries on 3 but not on 4. However the connections all seem to use /dev/pts/* as I'm used to.
 
Old 08-30-2006, 12:59 AM   #3
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 115

Original Poster
Rep: Reputation: 0
yes, but our software expects and uses theese devices. expect they exist in /dev.

Isn't there a workaround in creating the devices ?

Alternatively the software have to bee rewritten, just because a new release of Redhat...
 
Old 08-30-2006, 01:56 PM   #4
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,015
Blog Entries: 5

Rep: Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787Reputation: 787
You could just make symbolic links to the devices you're really using. Or you could use "mknod" to make the devices you want but you'd have to know the major/minor number for each.

The deal is since this was in the RH man page for 3 but the devices were still there it means it had likely been deprecated but still left there for 3 then completely removed for 4. You'd be much better off doing a rewrite to deal with the way it is supposed to be than to trick it into looking the way you originally wrote it. Its also possible whatever utility you're used to expects ioctl or something else to change ownership/permissions which it would still do for the /dev/pts/* stuff but probably wouldn't for what you do your mknod for. The symlinks would have the permission of the /dev/pts/* it pointed to so might be the way to go.

To create a symbolic link named /dev/ttyp1 that points to /dev/pts/1 just type:

ln -s /dev/pts/1 /dev/ttyp1

By the way. The /dev/pts/* entries seem to be created on use rather than staying there. The links can be created even if the /dev/pts/* you link to isn't there yet.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
/dev/tty0, /dev/tty1, /dev/tty10...and so on...which should be used for a device ??? b0nd Slackware 2 04-02-2006 08:14 AM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 02:09 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM


All times are GMT -5. The time now is 03:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration