From owner-freebsd-questions@FreeBSD.ORG Thu Oct 13 05:38:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EAD316A41F for ; Thu, 13 Oct 2005 05:38:55 +0000 (GMT) (envelope-from bsdmaillist@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB1BB43D45 for ; Thu, 13 Oct 2005 05:38:54 +0000 (GMT) (envelope-from bsdmaillist@gmail.com) Received: by xproxy.gmail.com with SMTP id t4so199867wxc for ; Wed, 12 Oct 2005 22:38:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ArYXGcmmafRFmSBu2J0dwvpxnILKCnakQEEEEOkuaidcjjY2ipPwKGpxW/KtjEnhYsWEtApgbjtmmcR5mpDamQNrTGF2N83FZ42B4nTgGPVBDaaQwvEjQrHJm+5HNO3ZoGf7rn0BHae294XLn9sUi0GH7zlOAt3ilnT44zQi4bk= Received: by 10.70.25.13 with SMTP id 13mr41228wxy; Wed, 12 Oct 2005 22:38:54 -0700 (PDT) Received: by 10.70.36.17 with HTTP; Wed, 12 Oct 2005 22:38:54 -0700 (PDT) Message-ID: Date: Thu, 13 Oct 2005 13:38:54 +0800 From: lin shane To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: How to call my system call by it's name? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 05:38:55 -0000 Hello, Recent I add a simple system call - syshello() to my kernel. Then recompile the kernel. And I can call my system call by: syscall(455,parameter); But how do I do if I want call it by: syshello(parameter); Actually I recompile /usr/src/lib, but after doing that, I nearly cannot do anything! Becasue my screen always shows: /libexec/ld-elf.so.1: /lib/libc.so.5: Undefined symbol "SYS_syshello" Help me! Plase, thanks in advance. ^_^