public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pts having the same device number.
@ 2004-04-20 21:39 matthieu
  2004-04-21  2:51 ` H. Peter Anvin
  0 siblings, 1 reply; 2+ messages in thread
From: matthieu @ 2004-04-20 21:39 UTC (permalink / raw)
  To: linux-kernel

Hello,
on 2.6.4 I have seen that two pts device can have the same number :
$ls -l /dev/pts/
total 0
crw--w----    1 mat      tty      136,   2 2004-04-20 23:15 2562
crw--w----    1 mat      tty      136,   2 2004-04-20 23:15 2818

Is that normal ?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pts having the same device number.
  2004-04-20 21:39 pts having the same device number matthieu
@ 2004-04-21  2:51 ` H. Peter Anvin
  0 siblings, 0 replies; 2+ messages in thread
From: H. Peter Anvin @ 2004-04-21  2:51 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <40859891.8080208@dlfp.org>
By author:    matthieu <mat_@dlfp.org>
In newsgroup: linux.dev.kernel
>
> Hello,
> on 2.6.4 I have seen that two pts device can have the same number :
> $ls -l /dev/pts/
> total 0
> crw--w----    1 mat      tty      136,   2 2004-04-20 23:15 2562
> crw--w----    1 mat      tty      136,   2 2004-04-20 23:15 2818
> 
> Is that normal ?
> 

Your libc or ls is old.  They actually have the device numbers
136,2562 and 136,2818 but you only see the bottom 8 bits:

	2562 & 255 = 2
	2818 & 255 = 2

This doesn't affect proper operation, it just affects the output from
ls.

	-hpa


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-21  2:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-20 21:39 pts having the same device number matthieu
2004-04-21  2:51 ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox