Add getdelim(3) and getline(3) to bionic

Some userspace programs (e.g. perf) need getline.

() add getdelim.c, getline.c from NetBSD ( under the
NetBSD Foundation's (TNF) license ("2 clause" Berkeley-style license).
() add stub for reentrant.h header that is needed by getdelim.c
() add tests for getdelim(3) and getline(3).
() update NOTICE file.

Change-Id: I22ed82dd5904b9d7a3695535c04f502be3c27c5d
Signed-off-by: Irina Tirdea <>
8 files changed