Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #158651

Re: Finding the name of a file

Path csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups comp.lang.c
Subject Re: Finding the name of a file
Date Wed, 27 Jan 2021 07:55:44 -0800
Organization A noiseless patient Spider
Lines 34
Message-ID <86bldal6gv.fsf@linuxsc.com> (permalink)
References <0fca7756-4bc1-4972-83a2-ee108a4e6ab2n@googlegroups.com> <1bpn2ayun0.fsf@pfeifferfamily.net> <SwkLH.205335$JT57.84806@fx31.ams4> <rtkvr1$erd$2@z-news.wcss.wroc.pl> <EEnLH.205339$JT57.142931@fx31.ams4> <rtl6vf$kgg$1@z-news.wcss.wroc.pl> <87eeip696t.fsf@nosuchdomain.example.com> <slrns02hp7.2ptb.grahn+nntp@frailea.sa.invalid> <864kjiozlz.fsf@linuxsc.com> <slrns040ms.2ptb.grahn+nntp@frailea.sa.invalid> <1bsg71y8gk.fsf@pfeifferfamily.net> <slrns056fl.2ptb.grahn+nntp@frailea.sa.invalid> <868s8no7n7.fsf@linuxsc.com> <chine.bleu-EE24D3.09391920012021@reader.eternal-september.org> <86r1mbmw8n.fsf@linuxsc.com> <rune2h$f4q$3@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Injection-Info reader02.eternal-september.org; posting-host="a3a7a3546220eb2a4a7cfe4d4683198c"; logging-data="13758"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iubKNxBim2T248Z4Misq97xOeLpSIybg="
User-Agent Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock sha1:qFRP7Ok78WkXBGI+uIZD6tBWDWs= sha1:mfPwJYvyPft4sqgAT3ZL76bbzjc=
Xref csiph.com comp.lang.c:158651

Show key headers only | View raw


Vir Campestris <vir.campestris@invalid.invalid> writes:

> On 23/01/2021 16:52, Tim Rentsch wrote:
>
>> Siri Cruise <chine.bleu@yahoo.com> writes:
>>
>>> In article <868s8no7n7.fsf@linuxsc.com>,
>>>   Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
>>>
>>>> I suggest something like this:  "What I think you're asking is
>>>> for any function that will give you the information you're
>>>> looking for.  There is no such function in purely standard C,
>>>> but there are some functions that may be what you're looking
>>>> for in Unix or Posix environments.  Some examples are (names
>>>> of candidates here).  Does this help answer your question, or
>>>> if not is there more you can say about what it is you're trying
>>>> to do?"
>>>
>>> Hint:  Not really in unix.  [..elaboration..]
>>
>> Understood.  Note that I said there are functions "that _may_ be"
>> what is being looked for.  I think it's possible that some Unix
>> functions could supply a satisfactory answer, but of course we
>> don't know since it isn't clear what the OP's requirements are.
>
> Just to point out that the file handle you have in you hand might not
> have a name.
>
> On Unix-like systems it's possible to rename or even "delete" a file
> while it is open - which will remove the filename from the
> filesystem.  But not the inode and the data.

Yes, I knew all that.  I don't think it changes any of what
I said.

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Finding the name of a file emanuele cannizzo <emacannizzo@gmail.com> - 2021-01-12 07:26 -0800
  Re: Finding the name of a file Bart <bc@freeuk.com> - 2021-01-12 16:14 +0000
    Re: Finding the name of a file scott@slp53.sl.home (Scott Lurndal) - 2021-01-12 17:02 +0000
  Re: Finding the name of a file Christian Hanné <the.hanne@gmail.com> - 2021-01-12 17:29 +0100
    Re: Finding the name of a file scott@slp53.sl.home (Scott Lurndal) - 2021-01-12 17:03 +0000
    Re: Finding the name of a file antispam@math.uni.wroc.pl - 2021-01-12 19:52 +0000
  Re: Finding the name of a file Mark Bluemel <mark.bluemel@gmail.com> - 2021-01-12 08:37 -0800
  Re: Finding the name of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-12 19:41 +0300
    Re: Finding the name of a file Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-01-12 09:34 -0800
      Re: Finding the name of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-12 20:56 +0300
  Re: Finding the name of a file Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2021-01-12 09:42 -0700
    Re: Finding the name of a file Bart <bc@freeuk.com> - 2021-01-12 16:56 +0000
      Re: Finding the name of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-12 19:58 +0300
      Re: Finding the name of a file Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2021-01-12 11:25 -0700
      Re: Finding the name of a file antispam@math.uni.wroc.pl - 2021-01-12 20:12 +0000
        Re: Finding the name of a file Bart <bc@freeuk.com> - 2021-01-12 20:29 +0000
          Re: Finding the name of a file antispam@math.uni.wroc.pl - 2021-01-12 22:14 +0000
            Re: Finding the name of a file Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-01-12 15:12 -0800
              Re: Finding the name of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2021-01-15 07:41 +0000
                Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-15 09:54 -0800
                Re: Finding the name of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2021-01-15 21:02 +0000
                Re: Finding the name of a file Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2021-01-15 18:30 -0700
                Re: Finding the name of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2021-01-16 07:47 +0000
                Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-20 09:11 -0800
                Re: Finding the name of a file Siri Cruise <chine.bleu@yahoo.com> - 2021-01-20 09:39 -0800
                Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 08:52 -0800
                Re: Finding the name of a file Vir Campestris <vir.campestris@invalid.invalid> - 2021-01-25 21:43 +0000
                Re: Finding the name of a file scott@slp53.sl.home (Scott Lurndal) - 2021-01-25 23:47 +0000
                Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-27 07:55 -0800
                Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-20 09:06 -0800
  Re: Finding the name of a file Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-12 18:18 +0000
  Re: Finding the name of a file Manfred <noname@add.invalid> - 2021-01-15 20:12 +0100
    Re: Finding the name of a file scott@slp53.sl.home (Scott Lurndal) - 2021-01-15 19:55 +0000
      Re: Finding the name of a file Manfred <noname@add.invalid> - 2021-01-16 02:06 +0100

csiph-web