[C/Linux]Help in replacing obsolete function

view full story

http://www.unix.com – 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, (HowTos)