mirror of
				https://github.com/jart/cosmopolitan.git
				synced 2025-10-25 02:30:57 +00:00 
			
		
		
		
	You can now call functions like fork() from Lua and it'll work across
all supported platforms, including Windows. This gives you a level of
control of the system that Lua traditionally hasn't been able to have
due to its focus on old portable stdio rather modern POSIX APIs. Demo
code has been added to redbean-demo.com to show how it works.
This change also modifies Lua so that integer literals with a leading
zero will be interpreted as octal. That should help avoid shooting in
the foot with POSIX APIs that frequently use octal mode bits.
This change fixes a bug in opendir(".") on New Technology.
Lastly, redbean will now serve crash reports to private network IPs.
This is consistent with other frameworks. However that isn't served
to public IPs unless the -E flag is passed to redbean at startup.
		
	
			
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			606 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			606 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_
 | |
| #define COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_
 | |
| #include "libc/stdio/stdio.h"
 | |
| #if !(__ASSEMBLER__ + __LINKER__ + 0)
 | |
| COSMOPOLITAN_C_START_
 | |
| 
 | |
| struct CxaAtexitBlocks {
 | |
|   struct CxaAtexitBlock {
 | |
|     unsigned mask;
 | |
|     struct CxaAtexitBlock *next;
 | |
|     struct CxaAtexit {
 | |
|       void *fp;
 | |
|       void *arg;
 | |
|       void *pred;
 | |
|     } p[ATEXIT_MAX];
 | |
|   } * p, root;
 | |
| };
 | |
| 
 | |
| extern struct CxaAtexitBlocks __cxa_blocks;
 | |
| 
 | |
| void __cxa_printexits(FILE *, void *);
 | |
| 
 | |
| COSMOPOLITAN_C_END_
 | |
| #endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
 | |
| #endif /* COSMOPOLITAN_LIBC_RUNTIME_CXAATEXIT_H_ */
 |