This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Adding system call connections
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Thu, 08 Dec 2005 21:27:57 +0100
- Subject: Re: Adding system call connections
- References: <7f45d9390512081018r2d66c76ci@mail.gmail.com>
On Thu, 2005-12-08 at 11:18 -0700, Shaun Jackman wrote:
> I'd like to add the following libc functions to newlib/libc/syscalls
> that call the corresponding underscore prepended _xxx or _xxx_r
> function.
> chdir, chmod, chown, dup, dup2, lstat, readlink, symlink, utime
> alarm, mkdir, mknod, rmdir, stime, truncate, umask
Without having checked details, this will very likely conflict with
toolchains which use newlib as part of an OS (RTEMS, probably also
Cygwin).
These OSes treat these functions as "part of the OS" and not of
"newlib's business".
Or to put it conversely: These functions' implementations require an
amount of knowledge about an OS's internals newlib has no possibility to
know about.
> Comments? I'll probably send up a patch in the next week or so.
Without having seen your work, I fail to see the benefits.
To me this all sounds as if you are going to shift the level of
"OS-bindings" from "xxx" to "_xxx" and thereby introduce
incompatibilities.
Am I missing something?
Ralf