Contidos dentroLocalizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (151 KB)
Part II Transition Information for DevelopersUse this part of the update to find current information for developers on transitioning from SunOS release 4 to a SunOS release 5.8 programming environment. Chapter 15 Compilers, Linkers, and DebuggersThis chapter updates information in the Solaris Transition Guide on compilers, linkers, and debuggers. The chapter contains: What's New in the Solaris 8 Operating EnvironmentFeatures added for this release include:
CompilersSee the Solaris Transition Guide for previous compiler related changes. Visit http://www.sun.com to find current information on Sun WorkshopTM and Sun Visual WorkshopTM compiler products. LinkersSee the Solaris Transition Guide for previous information on the link-editor and executable and linking format (ELF). New linker related features added to the Solaris 8 operating environment are:
Link Editor Option DifferencesSee the Solaris Transition Guide for a comparison of SunOS release 4 and SunOS release 5.7 ld options. See "Link-Editor" in Linker and Libraries Guide for current information on the link-editor. Building Shared LibrariesSee the Solaris Transition Guide or information on previous changes to shared libraries. See the section on building shared libraries in the "Link-Editor Quick Reference" in Linker and Libraries Guide for current information. Building ExecutablesSee the Solaris Transition Guide for information on creating dynamic and static executables. Examples compare the behavior of SunOS release 4 -Bdynamic and -Bstatic options with SunOS release 5-dy and -dn options in building executables. See the section on building shared libraries in the "Link-Editor Quick Reference" in Linker and Libraries Guide for current information. See the Solaris Transition Guide information on SunOS release 5.7 library search path changes and version numbering. DebuggersThe Solaris 8 Operating Environment introduces:
See the "Troubleshooting Solaris Software Topics" in System Administration Guide, Volume 2 for current information on debugging. Chapter 16 Tools and ResourcesThis chapter updates information in the Solaris Transition Guide on changes to tools and resources for the development environment. ioctl() RequestsThe section replaces information on ioctl's in the Solaris Transition Guide. All ioctl's related to filio, sockio, streamio, termio, termios, mtio, and dkio, as well as ioctl's supported by the older version 7 and 4BSD terminal drivers are supported. Otherwise, only the ioctl's pertaining to standard devices of Solaris 8 platforms are provided. Discrepancies between the ioctl numbers (for the ioctl's supported) in the two versions are handled transparently. The ioctl parameters are mapped whenever necessary. Table 16-1 shows SunOS release 4 ioctl's that are not supported for use in the Solaris 8 operating environment: Table 16-1 ioctl's Not Supported in the Solaris 8 Operating Environment
ptrace() Request ValuesSee the Solaris Transition Guide for information on changes to ptrace() request values and symbolic constants for SunOS release 5. See the Binary Compatibility Guide for current information. LibrariesSee the Solaris Transition Guide for information on libraries and dynamically allocated resources in SunOS release 5. Using makeSee the Solaris Transition Guide for information on new make utilities available in SunOS release 5 environment. Using SCCSSee the Solaris Transition Guide for information on differences in the SunOS release 5 source code control system (SCCS). Determining Application CompatibilitySee the Solaris Transition Guide for information on using the Binary Compatibility Package. Packaging ApplicationsSee the Solaris Transition Guide for information on application packaging. Packaging UtilitiesSee the Solaris Transition Guide for information on packaging utilities. ToolkitsSee the Solaris Transition Guide for information OPEN LOOKTM Intrinsics ToolKit (OLIT) and XViewTM. Finding SunOS Release 4.x ToolsSee the Solaris Transition Guide for information on where to find SunOS release 4 and SunOS release 5 programming tools. Chapter 17 Networking and InternationalizationThis chapter updates Solaris Transition Guide information on networking features related to the programming environment. It also discusses issues concerning the improved internationalization features. What's New in the Solaris 8 Operating EnvironmentNative LDAP Native Lightweight Directory Access Protocol (LDAP) provides the Naming Service switch back-end support for LDAP based directory service. For more information, see "The Name Service Switch" in Solaris Naming Administration Guide. Domain name system (DNS) has been added to the list of name services that can be configured through the system identification utilities. For more information, see "DNS". The Solaris 8 operating environment provides support for over 90 locales, a new, intuitive interface for installing languages, expanded Unicode support, and improved data interoperability utilities. See "Internationalization". NetworkingThe Solaris 8 operating environment continues to provide networking features discussed in the following sections in addition to offering support for LDAP and DNS. See NIS+ Transition Guide and NFS Administration Guide for more information. NIS, NIS+The Solaris 8 operating environment supports the network information service (NIS), the SunOS release 4 name service, and the network information services plus (NIS+), an enterprise-naming service of heterogeneous distributed systems. See "Introduction to NIS+" in Solaris Naming Administration Guide for current information on NIS+. See "Differences Between NIS and NIS+" in Solaris Naming Administration Guide or a comparison information on NIS and NIS+. nsswitch.conf FileSee "The Name Service Switch" in Solaris Naming Administration Guide for current information. Network Interface TapSee the Solaris Transition Guide for background information on network interface tap (NIT), no longer required in SunOS release 5. See the STREAMS Programming Guide for current information on STREAMS drivers that can be opened and communicated with directly. SocketsThe section replaces information on sockets in the Solaris Transition Guide. The enables you to run SunOS release 4 dynamically-linked socket applications on SunOS release 5.8 systems. In order do so:
InternationalizationSee the Solaris Transition Guide for changes to internationalization made between SunOS release 4 and SunOS release 5.7. For current and complete information on Solaris 8 internationalization support, see International Language Environments Guide. Character SupportThe SunOS release 4 software supported single-byte representation of non-ASCII characters. The Solaris 8 operating environment supports:
Message CatalogsSee the Solaris Transition Guide for a brief summary on creating message catalogs. For detailed information, see Solaris 8 internationalization support, see International Language Environments Guide. Locale DatabaseThe Solaris 8 operating environment provides support for over 90 locales. For detailed information, see Solaris 8internationalization support, see International Language Environments Guide. CommandsSee the Solaris Transition Guide for information on changes to SunOS release 4 commands. LibrariesSee the Solaris Transition Guide for information on changes to internationalization libraries in SunOS release 5. Solaris 8 CSI-enabled LibrariesNearly all functions in Solaris 8 libc (/usr/lib/libc.so) are CSI-enabled. However, the following functions in libc are not CSI-enabled because they are EUC-dependent functions:
The following macros are not CSI-enabled because they are EUC dependent
In the Solaris 8 product, libgen (/usr/ccs/lib/libgen.a) are internationalized, but not CSI enabled. In the Solaris 8 product, libcurses (/usr/ccs/lib/libcurses.a) are internationalized, but not CSI enabled. Here are the five deliverables:
Chapter 18 System and Device ConfigurationThis chapter updates information in the Solaris Transition Guide on changes in the Solaris operating environment that affect kernel and system developers. The chapter contains: What's New in the Solaris 8 Operating EnvironmentThe devfsadm command provides an improved mechanism for managing special device files. For more information, see "Device Naming From a Developer's Perspective". System ConfigurationSunOS release 5 changes related to system configuration include the dynamically loaded kernel and kernel layout, the config and boot commands, and the /etc/system file. Dynamically Loaded KernelSee the Solaris Transition Guide for information on the dynamically-loaded kernel and changes to modunload(1M) and modunload(1M) commands. See "Loading and Unloading Drivers" in Writing Device Drivers for current information on using modunload(1M) and modunload(1M) commands. Kernel LayoutFor current information, see "SunOS Kernel and Device Tree" in Writing Device Drivers Reconfiguration BootSee the Solaris Transition Guide for information on the SunOS release 5 reconfiguration boot. Note - The reconfiguration boot -r command, described in the Solaris Transition Guide, does not currently remove file system entries for devices that are physically removed from the system. For more information, see boot(1M). Device Naming From a Developer's PerspectiveThis section supersedes "Device Naming From a Developer's Perspective" in Solaris Transition Guide. It focuses on the SunOS 5.8 devfsadm command that provides an improved mechanism for managing special device files in the /dev and /devices directories, including support for dynamic reconfiguration events. In earlier SunOS 5 releases, device configuration was handled by drvconfig, which managed the physical device entries in the /devices directory, and five link generators, devlinks, disks, tapes, ports, and audlinks, which managed the logical device entries in the /dev directory. For compatibility purposes, drvconfig and the other link generators are symbolic links to the devfsadm utility. Both reconfiguration boot processing and updating the /dev and /device directories in response to dynamic reconfiguration events are handled by devfsadmd, the daemon version of the devfsadm command. This daemon is started from the /etc/rc* scripts when a system is booted. Since devfsadmd, the devfsadm daemon, automatically detects device configuration changes generated by any reconfiguration event, there is no need to run this command interactively. For more information, see "What's New in Disk Management?" in System Administration Guide, Volume 1. Chapter 19 Device Drivers and STREAMSThis chapter updates Solaris Transition Guide information on device drivers and STREAMS. Device Drivers and STREAMS Device DriversSee the Solaris Transition Guide for information on SunOS release 5 device driver interfaces, the devinfo command, porting considerations, and Solaris driver architecture. STREAMSSome areas of change for STREAMS modules are transparent I/O controls, new message types, and the autopush(1M) facility that automatically pushes a list (/etc/iu.ap) of modules on a stream. For current information on these features, see sections on the following topics in the STREAMS Programming Guide:
Transparent ioctl()sSee the Solaris Transition Guide for information on SunOS release 4 ioctl () requests. See the STREAMS Programming Guide for current information. See "ioctl() Requests" of this update for related information. autopush CommandSee the Solaris Transition Guide for information on SunOS release 5 autopush() command. See STREAMS Programming Guide for current information about pushing STREAMS modules. Device Driver CommandsSee the Solaris Transition Guide for information on SunOS release 5 device driver commands. |
||||||||||||||||||