From owner-freebsd-current@freebsd.org Fri Dec 8 13:53:13 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B02C8E83FC0 for ; Fri, 8 Dec 2017 13:53:13 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7A29E72CBB for ; Fri, 8 Dec 2017 13:53:13 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3FDED2603A1; Fri, 8 Dec 2017 14:53:10 +0100 (CET) Subject: Re: valloric YCM [header definitions] To: blubee blubeeme , FreeBSD current References: From: Hans Petter Selasky Message-ID: <91931def-9693-84dc-3252-0e2fda1f0e3d@selasky.org> Date: Fri, 8 Dec 2017 14:50:20 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2017 13:53:13 -0000 On 12/08/17 14:23, blubee blubeeme wrote: > On Wed, Dec 6, 2017 at 2:18 AM, blubee blubeeme wrote: Hi, These questions are better off at questions@freebsd.org :-) >> I'm looking for where the u_int, u_long headers are defined? Anyway, it appears you are having some fun figuring out how the FreeBSD sources are organized. Everything in /usr/include is only meant for user-space. Integer types are defined by and . grep -rE "^typedef.*u_int" /usr/include/ >> >> for instance MOD_LOAD, UNLOAD, ENOTSUP along with u_int and u_long aren't >> being picked up by libclang >> >> module_t isn't being found either but I located that header file in >> /usr/include/sys/module.h >> >> snd_modevent(module_t mod, int type, void *data) >> { >> >> switch (type) { >> case MOD_LOAD: >> break; >> case MOD_UNLOAD: >> break; >> default: >> return (ENOTSUP); >> break; >> } >> return 0; >> } >> >> Anyone here uses YCM? >> I recommend not compiling kernel code outside the Makefile environment. Examples of valid kernel-side Makefiles you find in /usr/src/sys/modules make -C /usr/src/sys/modules/sound clean make -C /usr/src/sys/modules/sound depend make -C /usr/src/sys/modules/sound all >> Here's a verbose output of my global ycm_config. I hard coded the values >> to test but still some headers like u_int, u_long and the above mentioned >> MOD_* aren't being picked up. --HPS