tech-userlevel archive

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

Re: Reuse strtonum(3) and reallocarray(3) from OpenBSD



On Dec 28,  6:26am, n54%gmx.com@localhost ("Kamil Rytarowski") wrote:
-- Subject: Re: Reuse strtonum(3) and reallocarray(3) from OpenBSD

| It's not about being aggressive about clearing errno.
| 
| It's a good style of cooperating with external libs, for the same reason
| it's a bad attitude to e.g. take mutex before calling an external function
| from a slimsy module... we never know what can happen.

The cost of taking a mutex is not 0 and it is absolutely useless
in non-parallel code.

| What do you think about deal with estrtoi() and efullstrtoi(),
| two new entries in efun(3)? I think it's a good compromise.

Then we drag in util.h and -lutil. This is not desirable.

christos


Home | Main Index | Thread Index | Old Index