lundi 4 avril 2016

[cmdline] MoreUtils

The errno util


Just a quick note to praise the moreutils package.

When programming userspace application that communicate with drivers, you will always get some errno number or somme perror formated strings.

errno is just the tool that make it easy to get the information about the error.

$ errno 12
ENOMEM 12 Cannot allocate memory



$ errno -s memory
ENOMEM 12 Cannot allocate memory
EHWPOISON 133 Memory page has hardware error



You don't need this site anymore.

Source:

https://joeyh.name/code/moreutils/

Aucun commentaire:

Enregistrer un commentaire