- 25 Apr, 2012 4 commits
-
-
Pekka Paalanen authored
Some system C libraries do not have epoll_create1() nor EPOLL_CLOEXEC, provide a fallback. Add tests for the wrapper. Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
Pekka Paalanen authored
Some system C libraries do not have MSG_CMSG_CLOEXEC. This flag would automatically set O_CLOEXEC flag on any received file descriptors. Provide a fallback that does it manually. If setting CLOEXEC fails, the file descriptor is closed immediately, which will lead to failures but avoid leaks. However, setting CLOEXEC is not really expected to fail occasionally. Add tests for the wrapper. The setup is copied from connection-test.c. Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
Pekka Paalanen authored
Some system C libraries do not have F_DUPFD_CLOEXEC. Provide a fallback. Add tests for the new wl_os_dupfd_cloexec() wrapper. Add per-wrapper call counters in os_wrappers-test.c. Makes it easier to determine the minimum required number of wrapped calls. Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
Pekka Paalanen authored
If it's not already defined, and we are on Linux, #define it. This gets rid of a load of #ifdefs. This should also allow to use it when the kernel supports it, but the libc does not define it. Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
- 20 Apr, 2012 3 commits
-
-
Pekka Paalanen authored
Some system C libraries do not offer SOCK_CLOEXEC flag. Add a new header for OS compatibility wrappers. Wrap socket() calls into wl_os_socket_cloexec() which makes sure the O_CLOEXEC flag gets set on the file descriptor. On systems having SOCK_CLOEXEC this uses the old socket() call, and falls back if it fails due to the flag (kernel not supporting it). wayland-os.h is private and not exported. Add close-on-exec tests for both normal and forced fallback paths. Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
Pekka Paalanen authored
Add facility for testing how (many) file descriptors survive an exec. This allows implementing O_CLOEXEC tests. Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
Pekka Paalanen authored
Detect file descriptor leaks in tests. Add a sanity test to verify that we catch the leaks. Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
- 19 Apr, 2012 3 commits
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
-
Pekka Paalanen authored
Test the testing framework itself, so that it catches the errors we expect it to. Signed-off-by:
Pekka Paalanen <ppaalanen@gmail.com>
-
- 12 Apr, 2012 1 commit
-
-
Neil Roberts authored
This adds a public header so that applications can get the Wayland version number at compile time. This can be used to make applications that support compiling against multiple versions of Wayland. There is a separate installed header called cogl-version.h which gets included by both wayland-client.h and wayland-server.h The canonical place for the version number is the configure.ac script which splits it into three separate m4 defines for the major, minor and micro version. These are copied into the generated wayland-version.h header using AC_SUBST. There is also a string form of the complete version number. The version number is now also automatically copied into the two .pc files. Because the major, minor and micro parts are required it is no longer possible to leave the version number as 'master' when building from git. Most projects seem to immediately bump the git repo to a fake version number (usually odd) after making a release so that there is always a relative number that can be used for comparison. This patch sets the git version to 0.99.0 under the assumption that the next release will be 1.0.0.
-
- 31 Aug, 2011 1 commit
-
-
Kristian Høgsberg authored
The visual interface was meant to be a generic mechanism for specifying the content of a buffer. It goes back to before we had the buffer factory interfaces (like wl_drm and wl_shm) and we wanted to keep it open-ended enough that yuv, png or even svg buffer or so would be possible. Now that we have the buffer abstraction, we can add different buffer types by introducing new interfaces that create buffers. It only makes sense to leave it to those interfaces to specify the contents of the buffers. For wl_shm, this means that we now just specify the pixel format using an enum. For EGL buffers, the exact pixel formats are controlled by the implementation (part of wl_drm and similar), and from the client point of view, everything is controlled using EGLConfigs.
-
- 12 Aug, 2011 1 commit
-
-
Kristian Høgsberg authored
-
- 18 Apr, 2011 1 commit
-
-
Kristian Høgsberg authored
-
- 09 Feb, 2011 1 commit
-
-
Kristian Høgsberg authored
This indicates that we're using the wayland egl platform and will make eglplatform.h typedef the native types correctly.
-
- 08 Feb, 2011 1 commit
-
-
Kristian Høgsberg authored
We don't need it in the mesa implementation, but other implementations might and it's symmetric with wl_egl_pixmap_create().
-
- 07 Feb, 2011 1 commit
-
-
Benjamin Franzke authored
This header defines native EGL wayland types and affiliated initialization, processing and destruction routines. EGL implementations must implement this API in order to allow applications using this native types for the EGL implementation.
-