Re: String Question
Re: String Question
- Subject: Re: String Question
- From: Quinn <email@hidden>
- Date: Mon, 10 Nov 2003 09:54:55 +0000
At 1:33 -0500 10/11/03, Steve Milner wrote:
The other night I was perusing through some of the kernel source
when I noticed strcat and strcpy is used quite a bit in kernel. I
also notices string.h didn't have an definition for strl*. Why are
strl* functions not in the kernel but are in the provided C library?
The kernel does not implement the standard C library. Rather,
specific standard C library routines are implemented for use in
kernel. This duplication tends to occur on a case-by-case basis, as
routines are needed. strlcpy/cat are relatively new routines, and so
this hasn't happened for them yet.
Apple is in the process of nailing down the binary compatibility
story for the BSD parts of the kernel (the Kernel Programming
Interfaces effort we introduced at WWDC 2003). Feedback from
developers about missing routines is an important part of that
effort. I'm sure you could make an argument that access to these
routines is even more important for kernel code than for user space
code. You should feel free to file a bug to request them to be
included in the KPI.
<
http://developer.apple.com/bugreporter/>
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.