ladybird/Userland/Libraries/LibC/sys/stat.h

30 lines
822 B
C
Raw Normal View History

/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
2018-11-06 13:40:23 +01:00
#pragma once
#include <Kernel/API/POSIX/sys/stat.h>
2018-11-06 13:40:23 +01:00
#include <sys/cdefs.h>
#include <sys/types.h>
#include <time.h>
2018-11-06 13:40:23 +01:00
__BEGIN_DECLS
mode_t umask(mode_t);
2022-04-01 20:58:27 +03:00
int chmod(char const* pathname, mode_t);
int fchmodat(int fd, char const* path, mode_t mode, int flag);
int fchmod(int fd, mode_t);
2022-04-01 20:58:27 +03:00
int mkdir(char const* pathname, mode_t);
int mkdirat(int dirfd, char const* pathname, mode_t);
2022-04-01 20:58:27 +03:00
int mkfifo(char const* pathname, mode_t);
int fstat(int fd, struct stat* statbuf);
2022-04-01 20:58:27 +03:00
int lstat(char const* path, struct stat* statbuf);
int stat(char const* path, struct stat* statbuf);
int fstatat(int fd, char const* path, struct stat* statbuf, int flags);
int futimens(int fd, struct timespec const times[2]);
2018-11-06 13:40:23 +01:00
__END_DECLS