Date: Mon, 23 Oct 2000 23:09:53 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: mjacob@feral.com Cc: John Baldwin <jhb@FreeBSD.ORG>, freebsd-smp@FreeBSD.ORG Subject: Re: cvs commit: src/sys/sys mutex.h Message-ID: <14203.972335393@critter> In-Reply-To: Your message of "Mon, 23 Oct 2000 11:59:32 PDT." <Pine.LNX.4.21.0010231159200.9395-100000@zeppo.feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.LNX.4.21.0010231159200.9395-100000@zeppo.feral.com>, Matthew J acob writes: >> > >> >I have to have the type. The function returns a type. >> >> You can do that simply with: >> >> struct proc; >> struct proc *getcurproc(); >> >> You don't need the contents of a struct fiddle a pointer to it. > >Right- but you get all the whining compile errors. Only if you bogusly redeclare struct proc... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14203.972335393>