From owner-freebsd-questions@FreeBSD.ORG Sat May 23 21:19:21 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F2111065717 for ; Sat, 23 May 2009 21:19:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 39B658FC12 for ; Sat, 23 May 2009 21:19:21 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-65-8.dynamic.qsc.de [92.195.65.8]) by mx01.qsc.de (Postfix) with ESMTP id 191143CCC5; Sat, 23 May 2009 23:19:18 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n4NLJCgj004299; Sat, 23 May 2009 23:19:12 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 23 May 2009 23:19:12 +0200 From: Polytropon To: francis keyes Message-Id: <20090523231912.74eaea58.freebsd@edvax.de> In-Reply-To: References: <20090520000137.3d46fcb2.freebsd@edvax.de> <4A135119.8010007@telenix.org> <20090520192011.GA97805@slackbox.xs4all.nl> <20090522075840.GA94412@slackbox.xs4all.nl> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 23 May 2009 22:17:56 +0000 Cc: freebsd-questions@freebsd.org, Roland Smith , Polytropon , Chuck, Robey Subject: Re: compiling FreeBSD date on Linux X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2009 21:19:21 -0000 Te strlcpy function is part of the system's C library, libc. It is declared in string.h. Did you #include and check if the Linux C library has this function included? If it has, "man strlcpy" should mention it. Oh wait, when talking about Linux, it's possible that there is no manpage for this library function. The *l* string functions have been introduced in OpenBSD and FreeBSD to get rid of "overflow problems" when using strcpy and strcat, because they take a length parameter, which is size_t size. These are their signatures: size_t strlcpy(char *dst, const char *src, size_t size); size_t strlcat(char *dst, const char *src, size_t size); Check if Linux has them, too, and if yes, that they have the same parameter definition. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...