Adding system call connections
Ralf Corsepius
ralf.corsepius@rtems.org
Thu Dec 8 20:55:00 GMT 2005
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
More information about the Newlib
mailing list