Porting to OS/2: Case #22 _response()
OS/2 kLIBC provides _response() to expand arguments from a response file. And this enables to pass a very long command line. Because OS/2 itself has the limit of a command line length up to 32K.
By the way, _response() has a problem. It limits characters per line up to 8192 characters. So if a line has characters more than 8192, then the line is splitted into two or more lines. This is not an expected behavior.
To overcome this, I've reimplemented _response() without a line length limit.
Here it is.
By the way, _response() has a problem. It limits characters per line up to 8192 characters. So if a line has characters more than 8192, then the line is splitted into two or more lines. This is not an expected behavior.
To overcome this, I've reimplemented _response() without a line length limit.
Here it is.
- _response(): https://github.com/komh/os2compat/blob/master/process/_response.c
- test: https://github.com/komh/os2compat/blob/master/testcase/_response-1.c
댓글
댓글 쓰기