/**
* $Id: k10sensor_link.c 743 2012-06-18 06:10:35Z elkner $
*
* * 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
* 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.
* 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]
*
* All Rights reserved.
* CDDL HEADER END
*/
/*
* Copyright (c) 2012 by Jens Elkner,
* Otto-von-Guericke Universitaet Magdeburg. All rights reserved.
*/
/*
* Admins like to just 'cat /dev/$device/$xy' and get all related info -
* no need for extra utils or to keep more garbage in their head ;-)
*/
#include <strings.h>
#include <stdio.h>
#ifdef HAVE_DEVFSADM_H
#include <devfsadm.h>
#else
/* duplicate required stuff from usr/src/cmd/devfsadm/devfsadm.h */
#include <libdevinfo.h>
typedef struct devfsadm_create {
typedef struct _devfsadm_create_reg {
/* structures */
#define ILEVEL_0 0
#define DEVFSADM_V0 0
#define DEVFSADM_CONTINUE 0
((devfsadm_create_t *)(tbl)) \
}
#endif
};
static int
{
char *mn;
return (DEVFSADM_CONTINUE);
}
return (DEVFSADM_CONTINUE);
}
devname[0] = '\0';
>= MAXDEVCHARS)
{
return (DEVFSADM_CONTINUE); /* not enough space */
}
/* devfsadm_mklink() one is actually part of devfsadm - we use mapfile-vars
to make ld happy */
return (DEVFSADM_CONTINUE);
}