mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	 740140a661
			
		
	
	
		740140a661
		
	
	
	
	
		
			
			This patch begins the work of sharing types and macros between Kernel and LibC instead of duplicating them via the kludge in UnixTypes.h. The basic idea is that the Kernel vends various POSIX headers via Kernel/API/POSIX/ and LibC simply #include's them to get the macros.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			614 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			614 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | |
|  * Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <Kernel/API/POSIX/fcntl.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| int creat(const char* path, mode_t);
 | |
| int open(const char* path, int options, ...);
 | |
| int openat(int dirfd, const char* path, int options, ...);
 | |
| 
 | |
| int fcntl(int fd, int cmd, ...);
 | |
| int create_inode_watcher(unsigned flags);
 | |
| int inode_watcher_add_watch(int fd, const char* path, size_t path_length, unsigned event_mask);
 | |
| int inode_watcher_remove_watch(int fd, int wd);
 | |
| 
 | |
| __END_DECLS
 |