I try wrote a application to access serial port: /dev/ttyS0.

But application return failure if open the /dev/ttyS0.  I already disable the login shell in the /etc/inittab

What should I do to for the serial port?