mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:12:44 +00:00 
			
		
		
		
	 04b9dc2d30
			
		
	
	
		04b9dc2d30
		
	
	
	
	
		
			
			Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			578 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			578 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <Kernel/Syscall.h>
 | |
| #include <assert.h>
 | |
| #include <errno.h>
 | |
| #include <stdio.h>
 | |
| #include <sys/stat.h>
 | |
| 
 | |
| extern "C" {
 | |
| 
 | |
| mode_t umask(mode_t mask)
 | |
| {
 | |
|     return syscall(SC_umask, mask);
 | |
| }
 | |
| 
 | |
| int mkdir(const char* pathname, mode_t mode)
 | |
| {
 | |
|     int rc = syscall(SC_mkdir, pathname, mode);
 | |
|     __RETURN_WITH_ERRNO(rc, rc, -1);
 | |
| }
 | |
| 
 | |
| int chmod(const char* pathname, mode_t mode)
 | |
| {
 | |
|     int rc = syscall(SC_chmod, pathname, mode);
 | |
|     __RETURN_WITH_ERRNO(rc, rc, -1);
 | |
| }
 | |
| 
 | |
| int fchmod(int fd, mode_t mode)
 | |
| {
 | |
|     int rc = syscall(SC_fchmod, fd, mode);
 | |
|     __RETURN_WITH_ERRNO(rc, rc, -1);
 | |
| }
 | |
| }
 |