summaryrefslogtreecommitdiff
path: root/usr/src/lib/libfoo
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libfoo')
-rw-r--r--usr/src/lib/libfoo/Makefile75
-rw-r--r--usr/src/lib/libfoo/Makefile.com52
-rw-r--r--usr/src/lib/libfoo/amd64/Makefile19
-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
-rw-r--r--usr/src/lib/libfoo/i386/Makefile18
-rw-r--r--usr/src/lib/libfoo/sparc/Makefile18
-rw-r--r--usr/src/lib/libfoo/sparcv9/Makefile19
10 files changed, 0 insertions, 299 deletions
diff --git a/usr/src/lib/libfoo/Makefile b/usr/src/lib/libfoo/Makefile
deleted file mode 100644
index d803339..0000000
--- a/usr/src/lib/libfoo/Makefile
+++ /dev/null
@@ -1,75 +0,0 @@
-#
-# 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
-# or http://www.opensolaris.org/os/licensing.
-# 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 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
-#
-
-# include library definitions
-include ../Makefile.lib
-
-SUBDIRS = $(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
-
-all := TARGET= all
-clean := TARGET= clean
-clobber := TARGET= clobber
-install := TARGET= install
-lint := TARGET= lint
-
-HDRS= foo.h
-HDRDIR = common
-ROOTHDRDIR= $(ROOT)/usr/include/libfoo
-POFILE = libfoo.po
-MSGFILES = `$(GREP) -l gettext common/*.[ch]`
-
-.KEEP_STATE:
-
-install: all .WAIT $(SUBDIRS)
-
-all clean clobber lint: $(SUBDIRS)
-
-install_h: $(ROOTHDRS)
-
-# need to make libfoo dir
-$(ROOTHDRS) : $(ROOTHDRDIR)
-$(ROOTHDRDIR) :
- $(INS.dir) $@
-
-check: $(CHECKHDRS)
-
-_msg: $(MSGDOMAINPOFILE)
-
-$(POFILE): pofile_MSGFILES
-
-# install rule for install_h target
-$(ROOTHDRDIR)/%: %
- $(INS.file)
-
-$(SUBDIRS): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
-
-include ../Makefile.targ
-include ../../Makefile.msg.targ
diff --git a/usr/src/lib/libfoo/Makefile.com b/usr/src/lib/libfoo/Makefile.com
deleted file mode 100644
index 074be62..0000000
--- a/usr/src/lib/libfoo/Makefile.com
+++ /dev/null
@@ -1,52 +0,0 @@
-#
-# 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
-# or http://www.opensolaris.org/os/licensing.
-# 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.
-#
-# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
-#
-
-LIBRARY= libfoo.a
-VERS= .1
-OBJECTS= getcnt.o
-
-include ../../Makefile.lib
-
-LIBS = $(DYNLIB) $(LINTLIB)
-
-SRCDIR = ../common
-SRCS = $(OBJECTS:%.o=$(SRCDIR)/%.c)
-
-$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
-
-CPPFLAGS += -I$(SRCDIR) \
- -I$(SRC)/uts/common
-CFLAGS += $(CCVERBOSE)
-LDLIBS += -lc
-
-all : $(LIBS)
-
-lint : lintcheck
-
-include ../../Makefile.targ
-
-.KEEP_STATE:
diff --git a/usr/src/lib/libfoo/amd64/Makefile b/usr/src/lib/libfoo/amd64/Makefile
deleted file mode 100644
index 05988f5..0000000
--- a/usr/src/lib/libfoo/amd64/Makefile
+++ /dev/null
@@ -1,19 +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.
-#
-
-include ../Makefile.com
-include ../../Makefile.lib.64
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)
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:
- *;
-};
diff --git a/usr/src/lib/libfoo/i386/Makefile b/usr/src/lib/libfoo/i386/Makefile
deleted file mode 100644
index b4dc36b..0000000
--- a/usr/src/lib/libfoo/i386/Makefile
+++ /dev/null
@@ -1,18 +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.
-#
-
-include ../Makefile.com
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
diff --git a/usr/src/lib/libfoo/sparc/Makefile b/usr/src/lib/libfoo/sparc/Makefile
deleted file mode 100644
index b4dc36b..0000000
--- a/usr/src/lib/libfoo/sparc/Makefile
+++ /dev/null
@@ -1,18 +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.
-#
-
-include ../Makefile.com
-
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
diff --git a/usr/src/lib/libfoo/sparcv9/Makefile b/usr/src/lib/libfoo/sparcv9/Makefile
deleted file mode 100644
index 05988f5..0000000
--- a/usr/src/lib/libfoo/sparcv9/Makefile
+++ /dev/null
@@ -1,19 +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.
-#
-
-include ../Makefile.com
-include ../../Makefile.lib.64
-
-install: all $(ROOTLIBS64) $(ROOTLINKS64)