head: sys: Add sys/status.h for error codes

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-04-17 00:00:11 -04:00
parent 0ee1a24a92
commit ea453d8bff
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright (c) 2026, Mirocom Laboratories
* All rights reserved.
*
* The following sources are CONFIDENTIAL and PROPRIETARY
* property of Mirocom Laboratories. Unauthorized copying,
* use, distribution or modification of this file, in whole
* and in part, is strictly prohibited without the prior written
* consent from Mirocom Laboratories.
*/
#ifndef _SYS_STATUS_H_
#define _SYS_STATUS_H_ 1
#include <stdint.h>
/* Status return type */
typedef uint16_t status_t;
/* Valid status codes */
#define STATUS_SUCCESS 0 /* Success! :3 */
#define STATUS_FAILURE 1 /* Failure :( */
#define STATUS_NOT_FOUND 2 /* Resource not found */
#define STATUS_NO_MEMORY 3 /* Out of memory */
#define STATUS_INVALID_PARAM 4 /* Invalid parameter */
#define STATUS_IO_ERROR 5 /* I/O error */
#define STATUS_NO_DEV 6 /* No such device */
#endif /* !_SYS_STATUS_H_ */