From owner-freebsd-questions@FreeBSD.ORG Sun Nov 27 18:11:30 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 8FFFC16A420 for ; Sun, 27 Nov 2005 18:11:30 +0000 (GMT) (envelope-from javierlu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFFF243D49 for ; Sun, 27 Nov 2005 18:11:29 +0000 (GMT) (envelope-from javierlu@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so718563nzo for ; Sun, 27 Nov 2005 10:11:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:from:to:subject:date:mime-version:content-type:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=XTPIGtrzDhLjo2qtlvirigQQK5iuJoREhqLsDI48hjmPVryON54ak/SVE6xGD2glfqCVRTAbLNq8oWfUo3OqRUExrixPZzhojB91t4Ozx60Kw9Cqhk6iERrp79r8/CEouY5Y7XCciacwGokDE3U5Ie2C58y0tvboHdQhUdQyIx8= Received: by 10.64.199.1 with SMTP id w1mr616704qbf; Sun, 27 Nov 2005 10:11:29 -0800 (PST) Received: from mindcrash ( [83.53.35.84]) by mx.gmail.com with ESMTP id e15sm419944qba.2005.11.27.10.11.27; Sun, 27 Nov 2005 10:11:28 -0800 (PST) Message-ID: <002901c5f37e$ad060950$0301a8c0@mindcrash> From: "Javier Matos" To: Date: Sun, 27 Nov 2005 19:16:21 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: are there some function in C to notify about the OS used? 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: Sun, 27 Nov 2005 18:11:30 -0000 I was programming an application to work with system process that can be = found in /proc path and now I must to migrate my application to a linux = OS but the structure of status file is different. I made two procedures = to take information about status files, one for FreeBSD and another for = Linux... , now I need some function in C to notify about the OS used to = run the application to select between two procedures... but I can=B4t = find it, can anyone help me? Thanks