Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: utime for symbolic links

by Fletch (Bishop)
on Apr 15, 2020 at 16:43 UTC ( [id://11115583]=note: print w/replies, xml ) Need Help??


in reply to utime for symbolic links

My guess is that touch -h is using the lutimes(3) system call (where available) which a quick ripgrep through the perl source doesn't show any reference to. You theoretically could wrap it directly yourself with Inline::C but I don't think you're otherwise going to have luck directly from perl.

Edit: derp, wrong man section fixed

The cake is a lie.
The cake is a lie.
The cake is a lie.

Replies are listed 'Best First'.
Re^2: utime for symbolic links
by haukex (Archbishop) on Apr 15, 2020 at 17:07 UTC
    My guess is that touch -h is using the lutimes(3) system call

    No (at least not in GNU coreutils), but that's an excellent hint nonetheless - a search on CPAN reveals File::lchown that does support lutimes!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-18 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found