def set_buf_size(fd):
 if (OS_PIPE_SZ and hasattr(fcntl, 'F_SETPIPE_SZ')):
  fcntl.fcntl(fd, fcntl.F_SETPIPE_SZ, OS_PIPE_SZ)

def set_buf_size ( fd ) : if ( OS_PIPE_SZ and hasattr ( fcntl , 'F_SETPIPE_SZ' ) ) : fcntl . fcntl ( fd , fcntl . F_SETPIPE_SZ , OS_PIPE_SZ )
set up os pipe buffer size .