Changes as suggested by nickm

- char* to const char* and name refactoring
- workaround for accept4 syscall