mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	This function behaves like allocate_shm_file, except it also returns a read-only FD. This is useful to share the same segment of memory with many Wayland clients.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			198 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			198 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef UTIL_SHM_H
 | 
						|
#define UTIL_SHM_H
 | 
						|
 | 
						|
#include <stdbool.h>
 | 
						|
 | 
						|
int create_shm_file(void);
 | 
						|
int allocate_shm_file(size_t size);
 | 
						|
bool allocate_shm_file_pair(size_t size, int *rw_fd, int *ro_fd);
 | 
						|
 | 
						|
#endif
 |