NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: _res value related query



On Mar 12, 11:25am, channa.kad%gmail.com@localhost (Channa) wrote:
-- Subject: Re: _res value related query

| Hi,
| 
| Yes, thank you very much.
| I have one doubt regarding '_res' state.
| In the functions '__res_get_state_nothread(void)'
| in res_init.c the initialization is taken care using res_ninit().
| 
| Is it really required for '_res' to be initialized in the library? or
| User application
| should take care of initializing?
| 
| Is there any specification which says _res has to be initialized?
| 
| Hope my doubt makes some sense to you.
| 
| Thanks in Advance,
| Channa

These days you should not use the global _res. You should be creating
and initializing one with res_ninit().

christos


Home | Main Index | Thread Index | Old Index