[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] [PATCH 3/6] libc: Mehr Konstanten
+ libc: errno.h: Mehr Fehlerkonstanten
+ libc: POSIX: SOCK_DGRAM und SOCK_RAW
Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
src/include/errno.h | 5 +++++
src/modules/include/sys/socket.h | 6 ++++++
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/include/errno.h b/src/include/errno.h
index 5067ea4..14c3722 100644
--- a/src/include/errno.h
+++ b/src/include/errno.h
@@ -76,6 +76,11 @@
#define EFBIG 42
#define EDEADLK 43
#define EADDRNOTAVAIL 44
+#define ENOSYS 45
+#define ENAMETOOLONG 46
+#define ESPIPE 47
+#define EMLINK 48
+#define ENOTEMPTY 49
extern int errno;
diff --git a/src/modules/include/sys/socket.h b/src/modules/include/sys/socket.h
index 44abb40..90c7e15 100644
--- a/src/modules/include/sys/socket.h
+++ b/src/modules/include/sys/socket.h
@@ -58,6 +58,12 @@ struct sockaddr_storage {
enum {
/// Verbindungsoriertierter Socket (z.B. TCP)
SOCK_STREAM,
+
+ /// Datagramm-Socket (z.B. UDP)
+ SOCK_DGRAM,
+
+ /// Rohdaten (direkt IP-Pakete)
+ SOCK_RAW,
};
/// Adressfamilien
--
1.6.0.2