Короче пишу следующее:
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <linux/kd.h>
int errno;
int main()
{
int auf;
int tone=1190000/10000;
auf=open("/dev/console",O_RDWR);
fprintf(stderr,"error %i \n", errno);
ioctl(auf, KDMKTONE, 0xff000000+tone);
sleep(1);
close(auf);
return 0;
}
Компилится, запускается, но молчит как партизан....
Где вилы?
Заранее спасибо,
roux
Форум —
Development
