[uClibc]c++ and __write()

Fabio Parodi fabio.parodi at fredreggiane.com
Tue Aug 28 09:25:02 UTC 2001


In order to link a C++ program with uClibc, I had to define the system call
__write.
It is used by the C++ runtime library (gcc 2.95.2) when the program uses
pure virtual functions.
I added the following lines in
$(UCLIBC)/libc/sysdeps/linux/common/syscalls.c, line 64:

	ssize_t __write(int fd, const __ptr_t buf, size_t count)
	{
		return write(fd, buf, count);
	}

Fabio Parodi






More information about the uClibc mailing list