View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000659 | LDMud 3.5 | Portability | public | 2009-06-12 15:19 | 2010-07-13 14:04 |
Reporter | zesstra | Assigned To | zesstra | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Target Version | 3.5.0 | Fixed in Version | 3.5.0 | ||
Summary | 0000659: Legacy functions / checks for C99/POSIX functions | ||||
Description | I think, we should get rid of non-standard/legacy functions (such as bcopy), if there is a standard function (like memmove). Right now I noticed bcopy which is used if there is no memmove(). If there is also no bcopy, we provide our own definition. As we anyway require ISO C99 and POSIX compatibility, we should just require memmove(). Similar thing to memcpy(): remove check for it and require it. I guess, a) there may be other functions which are nowadays 'legacy' and superseded by their equivalents in C90/C99/POSIX and b) checks for functions from these standards and fallbacks. Does anybody argue for keeping these in 3.5.x? | ||||
Additional Information | http://www.opengroup.org/onlinepubs/000095399/functions/bcopy.html | ||||
Tags | No tags attached. | ||||
|
Another one: bzero -> memset. |
|
Next candidates: * strtol * memset * strcspn * strdup * getrusage |
|
Ok, now I noticed, that we already unconditionally use memmove() at many places and use only sometimes the move_memory() from ports.c. I think, we can just remove the abstraction move_memory() then as well. ;-) |
|
Removed the ones mentioned until now in r2648 - r2658. |
|
Closing until I (or someone else) find more candidates. |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-06-12 15:19 | zesstra | New Issue | |
2009-06-12 15:19 | zesstra | Status | new => assigned |
2009-06-12 15:19 | zesstra | Assigned To | => zesstra |
2009-06-12 15:21 | zesstra | Note Added: 0001200 | |
2009-06-12 15:38 | zesstra | Note Added: 0001201 | |
2009-06-12 15:44 | zesstra | Note Added: 0001202 | |
2009-06-16 16:11 | zesstra | Note Added: 0001212 | |
2010-07-13 14:04 | zesstra | Note Added: 0001871 | |
2010-07-13 14:04 | zesstra | Status | assigned => resolved |
2010-07-13 14:04 | zesstra | Fixed in Version | => 3.5.0 |
2010-07-13 14:04 | zesstra | Resolution | open => fixed |