Date: Sat, 25 Oct 2008 10:17:21 +0100 From: "N.J. Mann" <njm@njm.f2s.com> To: en0f <en0f@bokey.mine.nu> Cc: freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Re: neophyte: tcsetattr() gives 22 error in i386, not in amd64? Message-ID: <20081025091721.GA86967@oberon.njm.f2s.com> In-Reply-To: <4902CC86.8030408@bokey.mine.nu> References: <539c60b90810241534l6bedc5e3s1c2e3162c2a7ff38@mail.gmail.com> <Pine.GSO.4.64.0810241626430.16737@zeno.ucsd.edu> <4902CC86.8030408@bokey.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <4902CC86.8030408@bokey.mine.nu>, en0f (en0f@bokey.mine.nu) wrote: > Nate Eldredge wrote: > > On Fri, 24 Oct 2008, Steve Franks wrote: > > > >> Hi, > >> > >> I'm getting a 22 errno from tcsetattr() on 7-STABLE i386 in code which > >> was working under 7-STABLE amd64. Serial device is a ucom (silabs > >> cp2103). Permissions on /dev/cuaU0 look fine. Cutecom/Minicom > >> appears to open the port without error... > > > > I don't see anything obviously wrong, but I'd bet a bug related to > > 32/64-bit types. Can you post a complete piece of code that can be > > compiled and run and demonstrates the problem? Also, try compiling with > > -Wall -W and investigate any warnings that are produced. > > > > By the way, errno 22 is EINVAL, "Invalid argument". perror() is your > > friend. > > Strange freebsd doesnt document error numbers. man errno Cheers, Nick. --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081025091721.GA86967>