New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nunc-stans malloc should be pluggable #1370
Comments
Comment from rmeggins (@richm) at 2015-02-26 23:31:42 Sorry - I forgot that the dirsrv signatures for slapi_ch_malloc etc. were non-standard. I think it would be better, more portable, more interoperable if nunc-stans used the standard signatures e.g.
Then dirsrv would need to provide functions using these signatures, and cast parameters and return values to size_t and char *. |
Comment from mreynolds (@mreynolds389) at 2015-02-27 01:08:33 New patches attached... |
Comment from rmeggins (@richm) at 2015-02-27 01:49:10
Please use 4 spaces for indentation in nunc-stans.
These functions should use the exact same signatures as nunc-stans (and system malloc, etc.) - so something like this:
etc. |
Comment from mreynolds (@mreynolds389) at 2015-02-27 01:58:30 Replying to [comment:5 richm]:
Whoops.
My C book states that "char *", not "void *" is used for the alloc functions. But the linux man page says otherwise. I'll change it... |
Comment from mreynolds (@mreynolds389) at 2015-02-27 02:04:09 nunc-stans patch - revision |
Comment from rmeggins (@richm) at 2015-02-27 02:05:29 Not sure what book you have. http://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf - 7.20.3 Memory |
Comment from mreynolds (@mreynolds389) at 2015-02-27 02:06:46 DS patch - revision |
Comment from mreynolds (@mreynolds389) at 2015-02-27 02:11:15 Replying to [comment:7 richm]:
I have "C: A reference manual" 5th edition. It states its C99 compliant, etc. I just bought it not that long ago, err. Anyway, new patches are attached... |
Comment from mreynolds (@mreynolds389) at 2015-02-27 02:13:53 To git+ssh://git.engineering.redhat.com/srv/git/users/mareynol/ds.git To git+ssh://git.engineering.redhat.com/srv/git/users/mareynol/nunc-stans.git |
Comment from rmeggins (@richm) at 2015-04-30 23:21:10 nunc-stans part is now https://fedorahosted.org/nunc-stans/ticket/5 |
Comment from mreynolds (@mreynolds389) at 2017-02-11 23:02:14 Metadata Update from @mreynolds389:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/48039
apps need to be able to pass in malloc, calloc, etc. functions to use. For example, 389 needs nunc-stans to use slapi_ch_malloc, etc.
The text was updated successfully, but these errors were encountered: