Read/write stdio using svc