Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Aug 2008 21:11:41 -0400
From:      Chuck Robey <chuckr@telenix.org>
To:        FreeBSD-Hackers <freebsd-hackers@freebsd.org>
Subject:   read with timeout ??
Message-ID:  <489B9D4D.4010009@telenix.org>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have my head lost in a code problem.  I just hit a point where I need to do a
 read from an fd, but I need to associate it with a timeout, on the order of 1
second, something like that.  I had the feeling that there's a function in
FreeBSD's libc that makes that simple, but I forget the function name.  If
anyone can remember something like what I'm talking about, I sure would
appreciate a function name.  I can figure out how it works, if I could only
dredge up that name.

I just wouldn't like to come up with 4 pounds of code where it ought to be done
with a 1-liner.

If you're curious, I'm still working on that tablet driver for FreeBSD.  It's
taken me this long to figure out that Xorg driver code.  The Xorg folks have
been helpful, but basically, there's almost no docs, nearly no comments, and
testing a driver isn't the easiest thing in the world.  Regardless, I'm getting
really close on this, finally.

Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkibnQoACgkQz62J6PPcoOlIaQCdG5R0p0X/hXVYh/qkX/zK63/E
y+EAn3ahlXnPGPzqSdVdhbx1YsEjT4qr
=bA6Z
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?489B9D4D.4010009>