mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
AIX-7 uses an extended O_ACCMODE
This commit is contained in:
parent
7da1766048
commit
26dbed0f28
2 changed files with 4 additions and 1 deletions
3
CHANGES
3
CHANGES
|
@ -61,6 +61,9 @@ porting:
|
||||||
OpenSSL: Use RAND_status to determine PRNG state
|
OpenSSL: Use RAND_status to determine PRNG state
|
||||||
Thanks to Adam Langley for providing a patch
|
Thanks to Adam Langley for providing a patch
|
||||||
|
|
||||||
|
AIX-7 uses an extended O_ACCMODE that does not fit socat's internal
|
||||||
|
requirements. Thanks to Garrick Trowsdale for providing a patch
|
||||||
|
|
||||||
testing:
|
testing:
|
||||||
socks4echo.sh and socks4a-echo.sh hung with new bash with read -n
|
socks4echo.sh and socks4a-echo.sh hung with new bash with read -n
|
||||||
|
|
||||||
|
|
2
xio.h
2
xio.h
|
@ -26,7 +26,7 @@ struct opt;
|
||||||
#define XIO_RDONLY O_RDONLY /* asserted to be 0 */
|
#define XIO_RDONLY O_RDONLY /* asserted to be 0 */
|
||||||
#define XIO_WRONLY O_WRONLY /* asserted to be 1 */
|
#define XIO_WRONLY O_WRONLY /* asserted to be 1 */
|
||||||
#define XIO_RDWR O_RDWR /* asserted to be 2 */
|
#define XIO_RDWR O_RDWR /* asserted to be 2 */
|
||||||
#define XIO_ACCMODE O_ACCMODE /* must be 3 */
|
#define XIO_ACCMODE (XIO_RDONLY|XIO_WRONLY|XIO_RDWR) /* must be 3 */
|
||||||
#define XIO_MAYFORK 4 /* address is allowed to fork the program (fork) */
|
#define XIO_MAYFORK 4 /* address is allowed to fork the program (fork) */
|
||||||
#define XIO_MAYCHILD 8 /* address is allowed to fork off a child (exec)*/
|
#define XIO_MAYCHILD 8 /* address is allowed to fork off a child (exec)*/
|
||||||
#define XIO_MAYEXEC 16 /* address is allowed to exec a prog (exec+nofork) */
|
#define XIO_MAYEXEC 16 /* address is allowed to exec a prog (exec+nofork) */
|
||||||
|
|
Loading…
Reference in a new issue