mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:32:45 +00:00 
			
		
		
		
	 182016d7c0
			
		
	
	
		182016d7c0
		
	
	
	
	
		
			
			This function is an extended version of `chmod(2)` that lets one control whether to dereference symlinks, and specify a file descriptor to a directory that will be used as the base for relative paths.
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			714 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			714 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <Kernel/API/POSIX/sys/stat.h>
 | |
| #include <sys/cdefs.h>
 | |
| #include <sys/types.h>
 | |
| #include <time.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| mode_t umask(mode_t);
 | |
| int chmod(const char* pathname, mode_t);
 | |
| int fchmodat(int fd, char const* path, mode_t mode, int flag);
 | |
| int fchmod(int fd, mode_t);
 | |
| int mkdir(const char* pathname, mode_t);
 | |
| int mkfifo(const char* pathname, mode_t);
 | |
| int fstat(int fd, struct stat* statbuf);
 | |
| int lstat(const char* path, struct stat* statbuf);
 | |
| int stat(const char* path, struct stat* statbuf);
 | |
| int fstatat(int fd, const char* path, struct stat* statbuf, int flags);
 | |
| 
 | |
| __END_DECLS
 |