mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:42:44 +00:00 
			
		
		
		
	 b2c952a6fa
			
		
	
	
		b2c952a6fa
		
	
	
	
	
		
			
			`set_process_name` has a getter pair (which it links to); lets document it. Solves #6007.
		
			
				
	
	
	
	
		
			534 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			534 B
		
	
	
	
	
	
	
	
Name
get_process_name - get the process name
Synopsis
#include <unistd.h>
int get_process_name(char* buffer, int buffer_length);
Description
get_process_name() places the current process name into the provided buffer.
Pledge
In pledged programs, the stdio promise is required for this system call.
Errors
- EFAULT: the process name could not be copied into the buffer.
- ENAMETOOLONG:- buffer_lengthis too short.