comparison error.c @ 819:616a36d39703

error: add EEOF errno Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sun, 06 Sep 2020 23:28:12 -0400
parents dfbcf2a05902
children ceb71a7a96f6
comparison
equal deleted inserted replaced
818:4e86cf312d6c 819:616a36d39703
1 /* 1 /*
2 * Copyright (c) 2013-2018 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> 2 * Copyright (c) 2013-2020 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal 5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights 6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
316 return "Success"; 316 return "Success";
317 case -ECKSUM: 317 case -ECKSUM:
318 return "Checksum mismatch"; 318 return "Checksum mismatch";
319 case -ENOTUNIQ: 319 case -ENOTUNIQ:
320 return "Name, identifier, or object not unique"; 320 return "Name, identifier, or object not unique";
321 case -EEOF:
322 return "End of file";
321 } 323 }
322 324
323 return strerror(-e); 325 return strerror(-e);
324 } 326 }
325 327