Serial ports, and their access, are implementation dependent. Some implementations don't even have them. You don't bother to give any information, so there is no information to give you.