LibC: add errno NAMETOOLONG
This commit is contained in:
		
							parent
							
								
									efe73caf1b
								
							
						
					
					
						commit
						d6e4430692
					
				|  | @ -12,6 +12,7 @@ | ||||||
| #define EBADF 8 | #define EBADF 8 | ||||||
| #define EEXISTS 9 | #define EEXISTS 9 | ||||||
| #define ENOTEMPTY 10 | #define ENOTEMPTY 10 | ||||||
|  | #define ENAMETOOLONG 11 | ||||||
| 
 | 
 | ||||||
| __BEGIN_DECLS | __BEGIN_DECLS | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -40,6 +40,9 @@ char* strerror(int error) | ||||||
| 	case ENOTEMPTY: | 	case ENOTEMPTY: | ||||||
| 		strcpy(buffer, "Directory not empty"); | 		strcpy(buffer, "Directory not empty"); | ||||||
| 		break; | 		break; | ||||||
|  | 	case ENAMETOOLONG: | ||||||
|  | 		strcpy(buffer, "Filename too long"); | ||||||
|  | 		break; | ||||||
| 	default: | 	default: | ||||||
| 		{ | 		{ | ||||||
| 			// FIXME: sprintf
 | 			// FIXME: sprintf
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue