This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Adding system call connections


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]