mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-15 05:23:40 +00:00
Some checks failed
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-mingw32-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / xserver-build-freebsd (push) Has been cancelled
Build X servers / xserver-build-dragonflybsd (push) Has been cancelled
check PRs for merge conflicts / notify (push) Has been cancelled
delete old workflow runs / delete_old_workflow_runs (push) Has been cancelled
delete old workflow runs / purge_deleted_branch_workflows (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
Move this to a little function (which also has a better name now) inside the already platform specific ossock.c Also removing the EMSGSIZE check: we're using TCP or local unix socket, so EMSGSIZE is never returned. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
30 lines
595 B
C
30 lines
595 B
C
/* SPDX-License-Identifier: MIT OR X11
|
|
*
|
|
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
|
*/
|
|
#ifndef _XSERVER_OS_OSSOCK_H_
|
|
#define _XSERVER_OS_OSSOCK_H_
|
|
|
|
#include <errno.h>
|
|
|
|
/*
|
|
* os specific initialization of the socket layer
|
|
*/
|
|
void ossock_init(void);
|
|
|
|
/*
|
|
* os specific socket ioctl function
|
|
*/
|
|
int ossock_ioctl(int fd, unsigned long request, void *arg);
|
|
|
|
/*
|
|
* os specific socket close function
|
|
*/
|
|
int ossock_close(int fd);
|
|
|
|
/*
|
|
* os specific check for errno indicating operation would block
|
|
*/
|
|
int ossock_wouldblock(int err);
|
|
|
|
#endif /* _XSERVER_OS_OSSOCK_H_ */
|