octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57439] handles to private functions may fail


From: Rik
Subject: [Octave-bug-tracker] [bug #57439] handles to private functions may fail after "clear functions"
Date: Thu, 12 Mar 2020 14:40:38 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #47, bug #57439 (project octave):

On Linux, if we don't need the rest of the information, we could try using
access().  This checks file permissions, rather than grabbing all of the
stat() data from the inode.


#include <unistd.h>

int access(const char *pathname, int mode);


Importantly, mode can be F_OK, which means just test for the existence of the
file, rather than actually checking permissions.

We would want to benchmark it to make sure it was faster.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57439>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]