/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/systeminfo.h>
#include <limits.h>
#include <strings.h>
#include "_conv.h"
/*
* Isalist(1) expansion.
*
* Obtain the native instruction sets executable on this platform and unpack
* each element into the isalist descriptor.
*/
Isa_desc *
conv_isalist(void)
{
long size;
int no;
return (0);
/*
* If we can't get the isalist() perhaps we've gone back to a release
* too old to support it - silently ignore.
*/
return (desc);
/*
* Duplicate the isalist string in preparation for breaking it up.
*/
return (desc);
/*
* Determine the number of instruction sets and use this to size the
* isalist option table.
*/
if (*ptr == ' ')
no++;
}
return (desc);
/*
* Unpack the instruction set list.
*/
if (*ptr != ' ')
continue;
opt++;
*ptr = '\0';
}
return (desc);
}
/*
* uname(2) expansion.
*
* Obtain the information that identifies the current operating system and
* unpack those elements we're interested in (presently name and release).
*/
Uts_desc *
conv_uts(void)
{
return (0);
/*
* If we can't get the uname(2) silently ignore.
*/
return (desc);
/*
* Duplicate the operating system name and release components.
*/
return (desc);
return (0);
return (desc);
}