linux port: write send data with fprintf