mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:02:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			412 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			412 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
| mkdir - create a directory
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| ```**c++
 | |
| #include <sys/stat.h>
 | |
| 
 | |
| int mkdir(const char* path, mode_t mode);
 | |
| ```
 | |
| 
 | |
| ## Description
 | |
| 
 | |
| Create a new empty directory at the given *path* using the given *mode*.
 | |
| 
 | |
| ## Return value
 | |
| 
 | |
| If the directory was created successfully, `mkdir()` returns 0. Otherwise,
 | |
| it returns -1 and sets `errno` to describe the error.
 | |
| 
 | |
| ## See also
 | |
| 
 | |
| * [`mkdir`(1)](../man1/mkdir.md)
 | 
