summaryrefslogtreecommitdiff
path: root/usr/src/lib/libfoo/common
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libfoo/common')
-rw-r--r--usr/src/lib/libfoo/common/foo.h31
-rw-r--r--usr/src/lib/libfoo/common/getcnt.c36
-rw-r--r--usr/src/lib/libfoo/common/llib-lfoo6
-rw-r--r--usr/src/lib/libfoo/common/mapfile-vers25
4 files changed, 0 insertions, 98 deletions
diff --git a/usr/src/lib/libfoo/common/foo.h b/usr/src/lib/libfoo/common/foo.h
deleted file mode 100644
index f88b468..0000000
--- a/usr/src/lib/libfoo/common/foo.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * This file and its contents are supplied under the terms of the
- * Common Development and Distribution License ("CDDL"), version 1.0.
- * You may only use this file in accordance with the terms of version
- * 1.0 of the CDDL.
- *
- * A full copy of the text of the CDDL should have accompanied this
- * source. A copy of the CDDL is also available via the Internet at
- * http://www.illumos.org/license/CDDL.
- */
-
-/*
- * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
- */
-#ifndef _FOO_H
-#define _FOO_H
-
-#include <sys/types.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int foo_getcnt(uint32_t *);
-const char *foo_message(uint32_t);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _FOO_H */
diff --git a/usr/src/lib/libfoo/common/getcnt.c b/usr/src/lib/libfoo/common/getcnt.c
deleted file mode 100644
index c97ac28..0000000
--- a/usr/src/lib/libfoo/common/getcnt.c
+++ /dev/null
@@ -1,36 +0,0 @@
-
-#include <stdio.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <libintl.h>
-#include <unistd.h>
-
-#include <sys/types.h>
-#include <sys/foo.h>
-
-int
-foo_getcnt(uint32_t *cntp)
-{
- const char *devnm = "/dev/foo";
- int fd, rc;
-
- fd = open(devnm, O_RDONLY, 0);
- if (fd == -1)
- return (errno);
- rc = ioctl(fd, FOO_IOC_GETCNT, cntp);
- close(fd);
-
- if (rc == -1)
- return (errno);
-
- return (0);
-}
-
-const char *
-foo_message(int cnt)
-{
- const char *msg;
-
- msg = gettext("This is just an example");
- return (msg);
-}
diff --git a/usr/src/lib/libfoo/common/llib-lfoo b/usr/src/lib/libfoo/common/llib-lfoo
deleted file mode 100644
index 4bf876f..0000000
--- a/usr/src/lib/libfoo/common/llib-lfoo
+++ /dev/null
@@ -1,6 +0,0 @@
-
-/*LINTLIBRARY*/
-/*PROTOLIB1*/
-
-#include <sys/types.h>
-#include <sys/foo.h>
diff --git a/usr/src/lib/libfoo/common/mapfile-vers b/usr/src/lib/libfoo/common/mapfile-vers
deleted file mode 100644
index e99c4fc..0000000
--- a/usr/src/lib/libfoo/common/mapfile-vers
+++ /dev/null
@@ -1,25 +0,0 @@
-
-#
-# This file and its contents are supplied under the terms of the
-# Common Development and Distribution License ("CDDL"), version 1.0.
-# You may only use this file in accordance with the terms of version
-# 1.0 of the CDDL.
-#
-# A full copy of the text of the CDDL should have accompanied this
-# source. A copy of the CDDL is also available via the Internet at
-# http://www.illumos.org/license/CDDL.
-#
-
-#
-# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
-#
-
-
-$mapfile_version 2
-
-SYMBOL_VERSION FOOprivate_1.1 {
- global:
- foo_getcnt;
- local:
- *;
-};