Skip to contentSkip to conversation

tty_ioctl

DISCUSSION Rainer Kloud 1 participant 1 message Dec 18, 2000

lore
Share & tools
lore
#0 lore raw

Hi,

I have a problem with the console output of my init process.

I'm useing a statically linked sash which tries to determine if the used file descriptor is associated to a terminal device. Therefore it uses isatty(STDIN). This library function invokes the kernel routine tty_ioctl with the command TCGETS. Now my problem is that this command is not defined in tty_ioctl and so this routine returns an error.

I have seen, that this command is defined in n_tty_ioctl. Whow is the relationship between this two ioctl commands? How can I solve this problem?

Also I can not print any message from the init process (neither the sash version nor the sash prompt). Any ideas?

Thank you in advance!

Rainer

PS: Im useing the kernel version 2.4.0-test10 with gcc 2.95.2 and glibc 2.1.3 on a motorola scout board (MPC750/MPC8260).

--
Rainer Kloud mailto:[email protected]
Siemens AG, PSE ECT OTN 2, Rampengasse 3-5, A-1190 Vienna
Phone: +43-(0)51707-43873 Fax: +43-(0)51707-53581

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/