Recreating /dev/null
#1
Recreating /dev/null
Hi SGI/IRIX'ers,

best wishes for 2024 , may the SGI/IRIX expiry gremlin stay away for another 12 months ;-)

Heading toward end of Christmas holidays... and I have re-looked at FreeBSD Ports on IRIX, that I had to put aside to focus on main work project.

Since starting there have been a couple of new upstream bmake releases and so I did regression test on this to make sure current version still works on IRIX.

This uncovered some build problems which I am working to get fixed.

It also brought to focus the on going problem that FreeBSD Ports has with /dev/null clobbering.

So now I need to remove and re-create /dev/null special file.

I have tried to do:
- MAKEDEV null
- MAKEDEV /dev/null
- mknod /dev/null c 1 3

but these either fail or do not create a /dev/null that behaves correctly
- ie when I do "cat /dev/null | od" I should see empty dump as cat /dev/null should return EOF

Can IRIX guru please advise how I can correctly re-create /dev/null ?

Thanks in advance.

Cheer from Oz,


jwhat/John
(This post was last modified: 01-03-2024, 12:41 AM by jwhat.)
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
01-03-2024, 12:40 AM
#2
RE: Recreating /dev/null
(01-03-2024, 12:40 AM)jwhat Wrote:  - mknod /dev/null c 1 3

That should be 'mknod /dev/null c 1 2' on IRIX. You've created a duplicate of /dev/mmem instead. (Whatever that is!)

SGI:  Indigo, Indigo2, Octane, Origin 300
Sun:  SPARCstation 20 (x4), Ultra 2, Blade 2500, T5240
HP:  9000/380, 425e, C8000
Digital: DECstation 5000/125, PWS 600au
jpstewart
Developer

Trade Count: (1)
Posts: 444
Threads: 6
Joined: May 2018
Location: SW Ontario, CA
Find Reply
01-03-2024, 01:43 AM
#3
RE: Recreating /dev/null
Thanks jpstewart,

that did the trick !

Cheers from Oz,


jwhat/John.
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
01-03-2024, 04:58 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)