Re: Windows and DLLs
- From: John Kodis <kodis jagunet com>
- To: gnome-list gnome org
- Subject: Re: Windows and DLLs
- Date: Wed, 7 Oct 1998 20:00:10 -0400
On Wed, Oct 07, 1998 at 12:46:05AM -0700, David Jeske wrote:
> > After some poking around, I noticed that Linux (at least the 2.1.120
> > release) offers such a mechanism already if the /proc filesystem is
> > built into the kernel.
> >
> > $ ls -l /proc/self/exe
> > lrwx------ 1 kodis kodis 0 Oct 4 19:13 /proc/self/exe-> /bin/ls*
>
> I looked into this a bit more carefully, and at least on my system,
> this is not a 'standard' symbolic link, in that it gives back the
> inode number, not the string 'path'. This makes it difficult to get
> the full path of the executable back. For example, on my system:
>
> Linux mozart 2.0.31 #1 Sun Nov 9 21:45:23 EST 1997 i586 unknown
>
> [jeske@mozart self]$ /bin/ls -l /proc/self/exe
> lrwx------ 1 jeske jeske 64 Oct 6 23:45 /proc/self/exe -> [0801]:18385
>
> According to the man page, this is exactly what it is supposed to give
> back:
Yes, it seems that this is a fairly recent change in behavior. I'd
guess that it came about as a result of the change to dentry based fs
code that went into the kernel around version 2.1.70 or so. Too bad.
Using `readlink("/proc/self/exe", buf, sizeof(buf))' is certainly a
convenient mechanism when it's available.
-- John Kodis.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]