commit | 692207eb457f9b4bf6cb4301d710d19b6e85c902 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Feb 28 16:23:27 2014 -0800 |
committer | Elliott Hughes <enh@google.com> | Fri Feb 28 16:23:27 2014 -0800 |
tree | 4a915e398d7e0819d7ee5d0a424f4a7689c0eab9 | |
parent | d51db86aafb988aea04355f2b6a6c925d67e5976 [diff] [blame] |
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
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index 9c04059..9595170 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h
@@ -153,6 +153,10 @@ 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);