To me this sounds very similar to open() given a path relative to your current 
working directory.

> On Apr 5, 2024, at 2:22 PM, ron minnich <rminn...@gmail.com> wrote:
> 
> not so much what I want, I'm curious about ideas people have about 
> implementing it that I would not think of.
> 
> On Fri, Apr 5, 2024 at 1:38 PM Gorka Guardiola <pau...@gmail.com 
> <mailto:pau...@gmail.com>> wrote:
>> Hmm sorry. Now I see what you want. Not to rewalk. You can use the chan of 
>> the dirfd and walk just the remainder cloning it and creating a new one. 
>> That way the openat provides the guarantees you want.
>> 
>> On Fri, Apr 5, 2024, 22:15 Gorka Guardiola <pau...@gmail.com 
>> <mailto:pau...@gmail.com>> wrote:
>>> I mean, if you want a new syscall jus copy or call the implementation of 
>>> these.
>>> 
>>> 
>>> On Fri, Apr 5, 2024, 22:12 Gorka Guardiola <pau...@gmail.com 
>>> <mailto:pau...@gmail.com>> wrote:
>>>> ¿Isn't that fd2path, strcat and open?
>>>> Or am I misunderstanding something?
>>>> 
>>>> On Fri, Apr 5, 2024, 21:51 ron minnich <rminn...@gmail.com 
>>>> <mailto:rminn...@gmail.com>> wrote:
>>>>> One of the folks I worked with, when we pulled a big chunk of plan 9 into 
>>>>> akaros, commented that he had implemented openat on akaros. 
>>>>> 
>>>>> I don't want this to turn into a debate on the merits of openat; I am 
>>>>> more curious: if you went to implement openat on Plan 9, how would you go 
>>>>> about it? I have a few ideas but I'm more interested in your ideas.
>>>>> 
>>>>> Thanks
> 
> 9fans <https://9fans.topicbox.com/latest> / 9fans / see discussions 
> <https://9fans.topicbox.com/groups/9fans> + participants 
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options 
> <https://9fans.topicbox.com/groups/9fans/subscription>Permalink 
> <https://9fans.topicbox.com/groups/9fans/T675e737e776e5a9c-M0445ed55bee993d4cfbd3450>

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T675e737e776e5a9c-M0efc38028930341e0db8f794
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to