Re: [PATCH] sim: use socklen_t with accept()

Tom Tromey
2010-03-30T16:11:03Z

>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:

Mike> The accept() function takes a socklen_t, not an int.

I thought there were still platforms where accept took an int*.

gnulib at least implies it:

http://www.gnu.org/software/gnulib/manual/html_node/accept.html

... but doesn't mention which ones.

Given that both gdb and gdbserver check for socklen_t and typedef it if
it does not exist, I think sim ought to as well.

Tom