Sigrid Solveig Haflínudóttirproper mounting/unmounting and group file reading7c4ed936 years agoHistory
31 lines · 909 B · C
RawDownload
#include <ext4.h> char *errno2s(int err){	switch(err){	case EROFS:	case EPERM:	case EACCES:    return "permission denied";	case ENOMEM:    return "out of memory";	case ENOENT:    return "file not found";	case EISDIR:    return "is a directory";	case EIO:       return "i/o error";	case ENODEV:	case ENXIO:     return "no such device";	case E2BIG:     return "argument list too long";	case EFAULT:    return "bad address";	case EEXIST:    return "file exists";	case ENOTDIR:   return "not a directory";	case EINVAL:    return "invalid argument";	case EFBIG:     return "file too large";	case ENOSPC:    return "no space left on device";	case EMLINK:    return "too many links";	case ERANGE:    return "math result not representable";	case ENOTEMPTY: return "directory not empty";	case ENODATA:   return "no data available";	case ENOTSUP:   return "not supported";	} 	return "???";}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t