On Wed 05 Dec 2007 at 09:48PM, Dennis Clarke wrote:
> /*
>  * Return the platform tag ("i86pc") for the invoking system.
>  */
> /*ARGSUSED*/
> static PyObject *
> arch_platform(PyObject *self, PyObject *args)
> {
>         char *buf = NULL;
>         PyObject *robj;
> 
>         buf = get_sysinfo(SI_PLATFORM);
>         if (buf == NULL)
>                 return (NULL);
> 
>         robj = Py_BuildValue("s", buf);
>         free(buf);
> 
>         return (robj);
> }

I believe ("i86pc") is intended to be an example of the output.

This function returns the same value as the output of 'uname -i', I
believe.

        -dp

-- 
Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to