James Carlson wrote: > On 5/1/10 11:31 AM, Joerg Schilling wrote: >> OK, let's see.... here is the code: > [...] >> #include <schily/standard.h> >> #include <schily/unistd.h> >> #include <schily/schily.h> >> >> #ifndef HAVE_STRNLEN >> >> EXPORT size_t >> strnlen(s, len) >> register const char *s; >> register size_t len; > > The above will need to be rewritten to conform with the style used in > the current OpenSolaris libc. That means:
Except that it's not needed for libc, which already has strnlen: http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/strnlen.c This seemed to be a patch for some software Dennis was porting that needed strnlen on older versions of Solaris, but unless that software was CDDL already, I doubt they'll accept the addition of a new license to their code base. -- -Alan Coopersmith- [email protected] Oracle Solaris Platform Engineering: X Window System _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
