lkml.org 
[lkml]   [1996]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Missing file ???
On Tue, 5 Nov 1996, David C. Wright wrote:

> in /proc/self/fd the files 0, 1, 2, and 255 are showen linked to
> [0811]:9271. [0811]:9271 does not exist.
>
> Please tell me how to find out what it should be.
>
> The program 'Yard' needs it for some reason.

Do not believe in anything on /proc to be real at all! I'd explain this entry
to be the file represented by inode 9271 on the file system mounted from
block device #0811 (hex; should be sda10, I think). And /proc tells you
that unix file descriptors 0, 1, 2 and 255 are redirected to this file.

BTW, actually the file descriptors of the calling process itself (probably
the ls command you used). Yard or your shell or any other process will see
completely different files in /proc/self (namely its own). Check
/proc/<process id> to find out about other processes.

It's not easy to find the/one filename pointing to an inode (if one exits
at all). You should be able to find it by scanning the filesystem with ls or
find (both have options to list inode numbers).

Apart from that (given proper access rights) you should be able to simply
read/write from these faked links in /proc/self/fd even if there is no
[0811]9271 file at all (because /proc is even more magic than an ordinary
UNIX fs is already).

Probably you should ask the maintainers of Yard or give some more details
what you actually want to do to the list s.t. we can find out what goes on.

Michael.

(eowmob@exp-math.uni-essen.de or eowmob@pollux.exp-math.uni-essen.de
Please do not use my vm or de0hrz1a accounts anymore. In case of real
problems reaching me try mat42b@spi.power.uni-essen.de instead.)


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.023 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site