From owner-freebsd-current@FreeBSD.ORG Tue Aug 2 07:03:09 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 953D716A41F for ; Tue, 2 Aug 2005 07:03:09 +0000 (GMT) (envelope-from snort_sam@yahoo.com) Received: from web54409.mail.yahoo.com (web54409.mail.yahoo.com [206.190.49.139]) by mx1.FreeBSD.org (Postfix) with SMTP id ECBCC43D45 for ; Tue, 2 Aug 2005 07:03:08 +0000 (GMT) (envelope-from snort_sam@yahoo.com) Received: (qmail 50968 invoked by uid 60001); 2 Aug 2005 07:03:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ZJ828QvSUwRQOM31SlRnYvJTY7DE0RbOwKraH6D+24iITrlAOIw3VwLIP6rGz3DUiB4nlzmExn5Pk2oqhnZvta4C40eifUA+f5PaGCUI8ALRpeR80A8LTj0jZPXn+nXnjOLABrH/XbnEtQKuv7J0eaGWVRyD/XEF7GhmlMhsDmo= ; Message-ID: <20050802070308.50966.qmail@web54409.mail.yahoo.com> Received: from [203.201.97.48] by web54409.mail.yahoo.com via HTTP; Tue, 02 Aug 2005 00:03:08 PDT Date: Tue, 2 Aug 2005 00:03:08 -0700 (PDT) From: Bsderss To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org Subject: Where are these function definition X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 02 Aug 2005 07:03:09 -0000 Hi, I cd into pppd directory in folder /usr/src and found the following functions declared in the pppd.h header file, but I couldn't found where these APIs are defined. /* Procedures exported from demand.c */ void demand_conf __P((void)); /* config interface(s) for demand-dial */ void demand_block __P((void)); /* set all NPs to queue up packets */ void demand_unblock __P((void)); /* set all NPs to pass packets */ void demand_discard __P((void)); /* set all NPs to discard packets */ void demand_rexmit __P((int)); /* retransmit saved frames for an NP */ int loop_chars __P((unsigned char *, int)); /* process chars from loopback */ int loop_frame __P((unsigned char *, int)); /* process frame from loopback */ /* Procedures exported from sys-*.c */ void sys_init __P((void)); /* Do system-dependent initialization */ void sys_cleanup __P((void)); /* Restore system state before exiting */ void sys_check_options __P((void)); /* Check options specified */ void sys_close __P((void)); /* Clean up in a child before execing */ int ppp_available __P((void)); /* Test whether ppp kernel support exists */ void open_ppp_loopback __P((void)); /* Open loopback for demand-dialling */ void establish_ppp __P((int)); /* Turn serial port into a ppp interface */ void restore_loop __P((void)); /* Transfer ppp unit back to loopback */ void disestablish_ppp __P((int)); /* Restore port to normal operation */ void clean_check __P((void)); /* Check if line was 8-bit clean */ void set_up_tty __P((int, int)); /* Set up port's speed, parameters, etc. */ void restore_tty __P((int)); /* Restore port's original parameters */ void setdtr __P((int, int)); /* Raise or lower port's DTR line */ void output __P((int, u_char *, int)); /* Output a PPP packet */ void wait_input __P((struct timeval *)); Can anyone please tell me how to find out where these APIs are defined in freebsd src? Thanks Sam __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com