1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:07:34 +00:00

Kernel+LibC: Share definitions for sys/socket.h and sys/un.h

This commit is contained in:
Andreas Kling 2021-08-14 16:34:29 +02:00
parent d277cdfd4c
commit b92e6b02e5
5 changed files with 165 additions and 214 deletions

View file

@ -1,20 +1,9 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <bits/stdint.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
#define UNIX_PATH_MAX 108
struct sockaddr_un {
uint16_t sun_family;
char sun_path[UNIX_PATH_MAX];
};
__END_DECLS
#include <Kernel/API/POSIX/sys/un.h>