Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: Gentoo-dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] ebuild question
Date: Fri, 19 Sep 2003 15:26:55
Message-Id: 20030919152651.GB17901%chutz@gg3.net
In Reply to: Re: [gentoo-dev] ebuild question by "Philippe Lafoucrière"
1 On 19/09/2003 at 17:12:41(+0200), Philippe Lafoucri鑽e used 0.6K just to say:
2 >
3 > > I get this error when I don't have a /dev/stdout file. For example emerging in
4 > > a chrooted environment, that doesn't have a /dev mounted. I also get it on a
5 > > system where I don't have devfsd installed. Doesn't hurt that much, though.
6 >
7 > $ ll /dev/stdout
8 > lr-xr-xr-x 1 root root 4 Sep 19 09:17 /dev/stdout ->
9 > fd/1
10 >
11 >
12 > $ ll /dev/fd/1
13 > lrwx------ 1 root root 64 Sep 19 17:10 /dev/fd/1 ->
14 > /dev/pts/3
15 >
16 > ll /dev/pts/3
17 > crw--w---- 1 gravis tty 136, 3 Sep 19 17:10 /dev/pts/3
18 >
19 > its own by gravis (my username). It's probably an access problem. Should
20 > I submit a bug report for this ?
21
22 I didn't get the idea of your post.... This cannot be a permissions problem,
23 because:
24
25 $ ll /dev/fd
26 lr-xr-xr-x 1 root root 13 Sep 17 00:43 /dev/fd -> /proc/self/fd
27 $ ll /proc/self
28 lrwxrwxrwx 1 root root 64 Sep 20 00:14 /proc/self -> 18278
29
30 You get the idea. The /dev/fd link always points to the file descriptors of the
31 process looking at that directory. For example
32
33 chutz@lion chutz $ ll /dev/fd/
34 total 0
35 lrwx------ 1 chutz users 64 Sep 20 00:22 0 -> /dev/pts/1
36 lrwx------ 1 chutz users 64 Sep 20 00:22 1 -> /dev/pts/1
37 lrwx------ 1 chutz users 64 Sep 20 00:22 2 -> /dev/pts/1
38 lr-x------ 1 chutz users 64 Sep 20 00:22 3 -> /proc/18381/fd
39
40 chutz@lion chutz $ ll /dev/fd/ 7>&1
41 total 0
42 lrwx------ 1 chutz users 64 Sep 20 00:22 0 -> /dev/pts/1
43 lrwx------ 1 chutz users 64 Sep 20 00:22 1 -> /dev/pts/1
44 lrwx------ 1 chutz users 64 Sep 20 00:22 2 -> /dev/pts/1
45 lr-x------ 1 chutz users 64 Sep 20 00:22 3 -> /proc/18382/fd
46 lrwx------ 1 chutz users 64 Sep 20 00:22 7 -> /dev/pts/1
47
48 chutz@lion chutz $ find /dev/fd/
49 /dev/fd/
50 /dev/fd/0
51 /dev/fd/1
52 /dev/fd/2
53 /dev/fd/3
54 /dev/fd/4
55
56 chutz@lion chutz $ echo /dev/fd/*
57 /dev/fd/0 /dev/fd/1 /dev/fd/2 /dev/fd/255 /dev/fd/3
58
59 The /dev/fd link is maintained by devfsd.
60
61 --
62 ( Georgi Georgiev ( If only one could get that wonderful feeling (
63 ) chutz@×××.net ) of accomplishment without having to )
64 ( +81(90)6266-1163 ( accomplish anything. (
65
66 --
67 gentoo-dev@g.o mailing list