[SERVER-19444] Add polyfill for strnlen for systems that lack it Created: 16/Jul/15 Updated: 21/Sep/15 Resolved: 27/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 3.1.8 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andrew Morrow (Inactive) | Assignee: | Jonathan Reams |
| Resolution: | Done | Votes: | 0 |
| Labels: | build-jbr | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Build 7 08/10/15, Build 8 08/31/15 |
| Participants: |
| Description |
|
Some systems we target (sometimes) like Solaris 10 don't have strnlen. We should add a configure check and optional polyfill for this function. The legacy C++ driver already does this, see: In the server repo, this function should probably live in mongo/stdx/string and be called stdx::strnlen. |
| Comments |
| Comment by Githook User [ 27/Aug/15 ] |
|
Author: {u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}Message: |