Get rid of bzero and replace it with memset.

Registered by Elliot Murphy

Get rid of bzero and replace it with memset.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
Mats Kindahl
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Mats Kindahl
Completed by
Mats Kindahl

Sprints

Whiteboard

I have been told that the current approach is to follow C99 and POSIX as far as possible. As such, there is a number of other BSD:isms that are deprecated in POSIX.1-2001 and have C99 equivalents, these will be removed as well.

bcopy() can be replaced with memmove(), but looking at the implementation of bcopy() in the strings/ directory I see that it does not handle overlapping memory correctly. In that case, I assume that most calls can be replaced with memcpy() instead.

bfill() can be replaced with memset()

bmove() (which is non-standard) can be replaced with memcpy()

bcmp() can be replaced with memcmp()

memcpy_fixed() seems to be a "fix" for a gcc problem in Alpha, which then proceeded to use bcopy() instead. I assume that the problem is fixed by now, and in anyway, we should fix the problem by re-defining memcpy() instead, if it is faulty. I will remove memcpy_fixed() and replace it with memcpy() instead.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.