Add getprogname/setprogname for BSD compatibility.

This is one less change we have to make when porting BSD code.

Bug: https://code.google.com/p/android/issues/detail?id=34898
Change-Id: If9b1a8d16996c7a19abcce8d3a456afc3e105a41
This commit is contained in:
Elliott Hughes
2014-02-28 16:23:27 -08:00
parent d51db86aaf
commit 692207eb45
4 changed files with 64 additions and 2 deletions

View File

@@ -153,6 +153,10 @@ typedef struct {
extern lldiv_t lldiv(long long, long long);
/* BSD compatibility. */
extern const char* getprogname(void);
extern void setprogname(const char*);
#if 1 /* MISSING FROM BIONIC - ENABLED FOR STLPort and libstdc++-v3 */
/* make STLPort happy */
extern int mblen(const char *, size_t);