[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting the port of a file name.
From: |
Thomas Bushnell, BSG |
Subject: |
Re: Getting the port of a file name. |
Date: |
20 Jul 2002 10:13:07 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
ams@kemisten.nu (Alfred M. Szmidt) writes:
> Is there a function like getdport() but instead of taking an FD as an
> argument, it takes a file name? I looked (quickly I might add) around
> the libc sources and couldn't find anything that does this. Doing an
> open() and then doing getdport() seems a bit like a kludge to me.
You want file_name_lookup.
The place to look, rather than plowing through the sources, is the
header files.