diff --git a/4366.pdf b/4366.pdf new file mode 100644 index 0000000..623d43c Binary files /dev/null and b/4366.pdf differ diff --git a/4367.pdf b/4367.pdf new file mode 100644 index 0000000..d23f092 Binary files /dev/null and b/4367.pdf differ diff --git a/9781430218913.jpg b/9781430218913.jpg new file mode 100644 index 0000000..edcd37b Binary files /dev/null and b/9781430218913.jpg differ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..d1dffa2 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,27 @@ +Freeware License, some rights reserved + +Copyright (c) 2009 Harry Foxwell and Hung Tran + +Permission is hereby granted, free of charge, to anyone obtaining a copy +of this software and associated documentation files (the "Software"), +to work with the Software within the limits of freeware distribution and fair use. +This includes the rights to use, copy, and modify the Software for personal use. +Users are also allowed and encouraged to submit corrections and modifications +to the Software for the benefit of other users. + +It is not allowed to reuse, modify, or redistribute the Software for +commercial use in any way, or for a user’s educational materials such as books +or blog articles without prior permission from the copyright holder. + +The above copyright notice and this permission notice need to be included +in all copies or substantial portions of the software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + diff --git a/ProOpenSolarisFiles/Chapter01/cddl_header.txt b/ProOpenSolarisFiles/Chapter01/cddl_header.txt new file mode 100644 index 0000000..a6d3174 --- /dev/null +++ b/ProOpenSolarisFiles/Chapter01/cddl_header.txt @@ -0,0 +1,22 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (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 + */ + diff --git a/ProOpenSolarisFiles/Chapter05/mysql.xml b/ProOpenSolarisFiles/Chapter05/mysql.xml new file mode 100644 index 0000000..56dd6c3 --- /dev/null +++ b/ProOpenSolarisFiles/Chapter05/mysql.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + diff --git a/ProOpenSolarisFiles/Chapter08/subversion.xml b/ProOpenSolarisFiles/Chapter08/subversion.xml new file mode 100644 index 0000000..4167d1d --- /dev/null +++ b/ProOpenSolarisFiles/Chapter08/subversion.xml @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProOpenSolarisFiles/Chapter08/tomcat5.xml b/ProOpenSolarisFiles/Chapter08/tomcat5.xml new file mode 100644 index 0000000..eb2d2e1 --- /dev/null +++ b/ProOpenSolarisFiles/Chapter08/tomcat5.xml @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProOpenSolarisFiles/Chapter09/example1.d b/ProOpenSolarisFiles/Chapter09/example1.d new file mode 100644 index 0000000..2ef5231 --- /dev/null +++ b/ProOpenSolarisFiles/Chapter09/example1.d @@ -0,0 +1,6 @@ +#!/usr/sbin/dtrace –s +/* this is example1.d */ +fbt:zfs:zfs_write:entry +{ +trace(execname); +} diff --git a/ProOpenSolarisFiles/Chapter09/example2.d b/ProOpenSolarisFiles/Chapter09/example2.d new file mode 100644 index 0000000..e89b76a --- /dev/null +++ b/ProOpenSolarisFiles/Chapter09/example2.d @@ -0,0 +1,6 @@ +#!/usr/sbin/dtrace -s +syscall::pollsys:entry +/ execname == "java" / +{ +jstack(16); +} diff --git a/ProOpenSolarisFiles/Chapter09/new_slim_cd.xml b/ProOpenSolarisFiles/Chapter09/new_slim_cd.xml new file mode 100644 index 0000000..a31c31a --- /dev/null +++ b/ProOpenSolarisFiles/Chapter09/new_slim_cd.xml @@ -0,0 +1,366 @@ + + + + + + + true + + + + true + + + + +
+ + + + + + + +
+ + + + + + + + rpool/dc + + + + + + + + + + + + + + + + + + + + with magnifier + kernel$ /platform/i86pc/kernel/$ISADIR/unix -B assistive_tech=magnifier + module /boot/boot_archive + + + with screen reader + kernel$ /platform/i86pc/kernel/$ISADIR/unix -B assistive_tech=reader + module /boot/boot_archive + + + + + false + + + + usr/sbin/pmadm + usr/sbin/lofiadm + usr/sbin/devfsadm + usr/sbin/modload + usr/sbin/i86/modload + usr/sbin/mount + usr/sbin/hostconfig + usr/sbin/chroot + usr/sbin/syslogd + usr/bin/coreadm + usr/bin/bash + usr/bin/ksh + usr/bin/cat + usr/bin/echo + usr/bin/false + usr/bin/grep + usr/bin/ls + usr/bin/rm + usr/bin/svcprop + usr/bin/true + usr/bin/cd + usr/bin/test + usr/bin/sleep + usr/bin/expr + usr/lib/fs/hsfs/fstyp + usr/lib/fs/hsfs/fstyp.so.1 + usr/lib/fs/hsfs/mount + usr/lib/fs/ufs/fstyp + usr/lib/fs/ufs/fstyp.so.1 + usr/lib/fs/ufs/mount + usr/lib/libfstyp.so.1 + usr/lib/platexec + usr/lib/devfsadm/devfsadmd + usr/lib/libm.so.2 + usr/lib/libm.so + usr/lib/libfstyp.so + usr/lib/libz.so + usr/lib/libz.so.1 + usr/bin/i86/ksh93 + usr/lib/isaexec + usr/lib/libast.so.1 + usr/lib/libcmd.so.1 + usr/lib/libdll.so.1 + usr/lib/libshell.so.1 + usr/share/lib/xml/dtd/service_bundle.dtd.1 + var/sadm/install/admin/default + var/sadm/system/admin/default_java + var/sadm/install/contents + var/adm/utmpx + var/adm/wtmpx + var/adm/aculog + var/lib/postrun/postrun-runq + var/lib/postrun/postrun + var/log/postrun.log + var/log/authlog + var/log/syslog + var/saf/zsmon/log + var/spool/cron/crontabs/adm + var/spool/cron/crontabs/root + var/nis/NIS+LDAPmapping.template + var/yp/aliases + var/yp/nicknames + kernel + boot + platform + system + lib + sbin + dev + devices + usr/lib/devfsadm/linkmod + root + jack + var/svc/manifest + var/svc/profile + var/pkg/catalog + var/pkg/cfg_cache + etc + etc/gconf + etc/brltty + etc/gtk-2.0 + etc/notices + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProOpenSolarisFiles/README.txt b/ProOpenSolarisFiles/README.txt new file mode 100644 index 0000000..2317834 --- /dev/null +++ b/ProOpenSolarisFiles/README.txt @@ -0,0 +1,20 @@ +This directory contains source code and other files for +Pro OpenSolaris by Harry J Foxwell and Christine Tran. +Most of the chapters do not reference source files and +so are not included here. + +Chapter01: +cddl_header.txt The CDDL header file + +Chapter05: +mysql.xml Sample MySQL SMF manifest file + +Chapter08: +subversion.xml Subversion SMF manifest file +tomcat5.xml Tomcat5 SMF manifest file + +Chapter09: +example1.d DTrace example file +example2.d DTrace example file +new_slim_cd.xml Distro Constructor sample file + diff --git a/README.md b/README.md new file mode 100644 index 0000000..2471c6d --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +#Apress Source Code + +This repository accompanies [*Pro OpenSolaris*](http://www.apress.com/9781430218913) by Harry Foxwell and Hung Tran (Apress, 2009). + +![Cover image](9781430218913.jpg) + +Download the files as a zip using the green button, or clone the repository to your machine using Git. + +##Releases + +Release v1.0 corresponds to the code in the published book, without corrections or updates. + +##Contributions + +See the file Contributing.md for more information on how you can contribute to this repository. diff --git a/__MACOSX/ProOpenSolarisFiles/Chapter08/._subversion.xml b/__MACOSX/ProOpenSolarisFiles/Chapter08/._subversion.xml new file mode 100644 index 0000000..8adc23d Binary files /dev/null and b/__MACOSX/ProOpenSolarisFiles/Chapter08/._subversion.xml differ diff --git a/__MACOSX/ProOpenSolarisFiles/Chapter08/._tomcat5.xml b/__MACOSX/ProOpenSolarisFiles/Chapter08/._tomcat5.xml new file mode 100644 index 0000000..759588a Binary files /dev/null and b/__MACOSX/ProOpenSolarisFiles/Chapter08/._tomcat5.xml differ diff --git a/contributing.md b/contributing.md new file mode 100644 index 0000000..f6005ad --- /dev/null +++ b/contributing.md @@ -0,0 +1,14 @@ +# Contributing to Apress Source Code + +Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers. + +## How to Contribute + +1. Make sure you have a GitHub account. +2. Fork the repository for the relevant book. +3. Create a new branch on which to make your change, e.g. +`git checkout -b my_code_contribution` +4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted. +5. Submit a pull request. + +Thank you for your contribution! \ No newline at end of file