mirror of
https://github.com/OpenRC/openrc.git
synced 2026-01-26 16:29:07 +00:00
helpers: remove existss, unused internal function
This commit is contained in:
parent
83253aa2b1
commit
ec00ad771d
@ -124,13 +124,6 @@ RC_UNUSED static const char *basename_c(const char *path)
|
||||
return (path);
|
||||
}
|
||||
|
||||
RC_UNUSED static bool existss(const char *pathname)
|
||||
{
|
||||
struct stat buf;
|
||||
|
||||
return (stat(pathname, &buf) == 0 && buf.st_size != 0);
|
||||
}
|
||||
|
||||
RC_UNUSED static FILE *do_fopenat(int dirfd, const char *pathname, int mode)
|
||||
{
|
||||
int fd = openat(dirfd, pathname, mode, 0666);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user