Skip to contentSkip to conversation

pts having the same device number.

DISCUSSION matthieu 2 participants 2 messages Apr 20, 2004 – Apr 21, 2004

lore
Share & tools
lore

matthieu

author
#0 lore raw

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 ?

#1 lore raw
Followup to:  <[email protected]>
By author:    matthieu <[email protected]>
In newsgroup: linux.dev.kernel
Quoted 10 lines

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