Opened 5 months ago

Closed 4 months ago

#921 closed request (fixed)

wrapper around getcwd

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.17
Component: utility Version:
Keywords: Cc:

Description

We have a wrapper around chrdir. It would be convenient to have a wrapper that returns a string and takes care of new/delete the char* needed for C-API.

Change History (4)

comment:1 Changed 5 months ago by Peter

https://linux.die.net/man/3/getcwd

says opening "." and calling fchdir is usually faster and more reliable.

comment:2 Changed 4 months ago by Peter

Owner: changed from Jari Häkkinen to Peter
Status: newaccepted

comment:3 in reply to:  1 Changed 4 months ago by Peter

Replying to Peter:

https://linux.die.net/man/3/getcwd

says opening "." and calling fchdir is usually faster and more reliable.

I cannot figure out how to do that, so I'll follow the straightforward way instead.

comment:4 Changed 4 months ago by Peter

Resolution: fixed
Status: acceptedclosed

In 3803:

implement wrapper function around getcwd. closes #921.

Note: See TracTickets for help on using tickets.