[C/Linux]Help in replacing obsolete function

Hi guys,
I need help on some function replacement cause I get obsolete function warning(and I must remove it):
-gethostbyaddr(arg1,arg2,arg3)
-gethostbyname(arg1)
-getservbyname(arg1,arg2)
can be replaced with getaddrinfo(arg1,arg2,arg3,arg4) but I'm not able to undestand how(libraries #include <sys/socket.h> #include <netdb.h>)

-inet_ntoa(arg1) to inet_ntop(arg1,arg2,arg3) <arpa/inet.h>

-settimer(arg1,arg2,arg3) to timer_settime(arg1,arg2,arg3) <time.h>

-sigblock(arg1)
-sigsetmask(arg1)
can be replaced to sigprocmask(arg1,arg2,arg3)
-sigmask(arg1) to sigaddset(arg1,arg2) lib:<signal.h>

Please help me as soon as you can:I googled but I dind't find anything useful.Thanks a lot.
Fracche