def _configure_buffer_sizes():
global PIPE_BUF_BYTES<EOL>global OS_PIPE_SZ<EOL>PIPE_BUF_BYTES = <NUM_LIT><EOL>OS_PIPE_SZ = None<EOL>if not hasattr(fcntl, '<STR_LIT>'):<EOL><INDENT>import platform<EOL>if platform.system() == '<STR_LIT>':<EOL><INDENT>fcntl.F_SETPIPE_SZ = <NUM_LIT><EOL><DEDENT><DEDENT>try:<EOL><INDENT>with open('<STR_LIT>', '<STR_LIT:r>') as f:<EOL><INDENT>OS_PIPE_SZ = min(int(f.read()), <NUM_LIT> * <NUM_LIT>)<EOL>PIPE_BUF_BYTES = max(OS_PIPE_SZ, PIPE_BUF_BYTES)<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>
Set up module globals controlling buffer sizes