mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 15:43:24 +00:00
Align buffer for read() with flag O_DIRECT
This commit is contained in:
parent
de2f2c471b
commit
55518fa690
7 changed files with 124 additions and 34 deletions
10
sycls.c
10
sycls.c
|
@ -23,6 +23,16 @@
|
|||
|
||||
#if WITH_SYCLS
|
||||
|
||||
#if HAVE_PROTOTYPE_LIB_posix_memalign
|
||||
int Posix_memalign(void **memptr, size_t alignment, size_t size) {
|
||||
int result;
|
||||
Debug3("posix_memalign(%p, "F_Zu", F_Zu)", memptr, alignment, size);
|
||||
result = posix_memalign(memptr, alignment, size);
|
||||
Debug1("posix_memalign(...) -> %d", result);
|
||||
return result;
|
||||
}
|
||||
#endif /* HAVE_PROTOTYPE_LIB_posix_memalign */
|
||||
|
||||
mode_t Umask(mode_t mask) {
|
||||
mode_t result;
|
||||
int _errno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue