summaryrefslogtreecommitdiffstats
path: root/src/basic/chattr-util.h
blob: 7570bba2fa44d96ea01cf61a3ddbff06c5297b0e (plain)
1
2
3
4
5
6
7
8
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once

int chattr_fd(int fd, unsigned value, unsigned mask, unsigned *previous);
int chattr_path(const char *p, unsigned value, unsigned mask, unsigned *previous);

int read_attr_fd(int fd, unsigned *ret);
int read_attr_path(const char *p, unsigned *ret);