mirror of
				https://github.com/tailix/libkernaux.git
				synced 2025-10-30 23:47:50 -04:00 
			
		
		
		
	Main: libc/include/errno.h: Added
This commit is contained in:
		
							parent
							
								
									dee94468b1
								
							
						
					
					
						commit
						1e8ab9080b
					
				
					 6 changed files with 30 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
2022-06-12  Alex Kotov  <kotovalexarian@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* libc/include/errno.h: Added
 | 
			
		||||
 | 
			
		||||
2022-06-10  Alex Kotov  <kotovalexarian@gmail.com>
 | 
			
		||||
 | 
			
		||||
	* libc/include/string.h: Add funcs "memchr", "strcat", "strncat", "strchr"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
# FIXME: dependencies are not built automatically with --enable-split-*
 | 
			
		||||
# FIXME: dependencies are not built automatically without --enable-split-*
 | 
			
		||||
 | 
			
		||||
include $(top_srcdir)/shared.am
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,5 +10,6 @@ endif
 | 
			
		|||
 | 
			
		||||
libc_la_SOURCES = \
 | 
			
		||||
	src/ctype.c \
 | 
			
		||||
	src/errno.c \
 | 
			
		||||
	src/stdlib.c \
 | 
			
		||||
	src/string.c
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,6 @@
 | 
			
		|||
nobase_include_HEADERS = \
 | 
			
		||||
	ctype.h \
 | 
			
		||||
	errno.h \
 | 
			
		||||
	inttypes.h \
 | 
			
		||||
	stdlib.h \
 | 
			
		||||
	string.h \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										16
									
								
								libc/include/errno.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								libc/include/errno.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
#ifndef _ERRNO_H
 | 
			
		||||
#define _ERRNO_H 1
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define ERANGE 1
 | 
			
		||||
 | 
			
		||||
extern int errno;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
							
								
								
									
										7
									
								
								libc/src/errno.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								libc/src/errno.c
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
#ifdef HAVE_CONFIG_H
 | 
			
		||||
#include "config.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#include <errno.h>
 | 
			
		||||
 | 
			
		||||
int errno = 0;
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue