Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / sys / sysnec810 / write.c
blob96c1e49ce612d3e728377be0b7bf2050e28ea706
1 static volatile char *data = (char *)(0x20);
2 static volatile char *control = (char *)(0x24);
4 extern void _outb (volatile char*, unsigned char);
5 extern unsigned char _inb (volatile char*);
7 static unsigned char
8 read_scc_reg (unsigned char n)
10 _outb (control, n);
11 return _inb(control);
14 static void write_scc_data (unsigned char n)
16 _outb (data, n);
19 int
20 _write (int dev, void *buf, unsigned int len)
22 int i;
23 char *string = (char*)buf;
25 for (i = 0; i < len; i++)
27 int j;
29 for (j = 0 ; j < 5000; j++)
31 write_scc_data (string[i]);
34 return len;