Installation guide

6.10.3
Creating Locale-Specific Information ......................... 6–23
6.10.4
The iconv Command ............................................. 6–23
6.11
Event-Logging Software ............................................. 6–23
6.12
Security ................................................................. 6–24
6.13
Curses Libraries ...................................................... 6–24
7 Migrating Your ULTRIX Application to a DIGITAL UNIX System
7.1
Modifying Your Makefile ............................................ 7–1
7.2
Migrating References to Header Files ............................ 7–2
7.3
Migrating to a 64-Bit Environment ............................... 7–5
7.3.1
Pointers ............................................................ 7–6
7.3.1.1
Controlling Pointer Size and Allocation ................. 7–7
7.3.1.2
Correcting the Pointer-to-int Assignment Problem ... 7–7
7.3.1.3
Use and Effects of the taso Option ..................... 7–8
7.3.1.4
Limits on the Effects of the taso Option ............... 7–10
7.3.2
Constants .......................................................... 7–12
7.3.2.1
Integer and Long Constants—Assignment and
Argument Passing .......................................... 7–12
7.3.2.2
Integer and Long Constants—Shift Operations ....... 7–13
7.3.3
Structures ......................................................... 7–13
7.3.3.1
Size ............................................................ 7–13
7.3.3.2
Member Alignment ......................................... 7–14
7.3.3.3
Alignment .................................................... 7–14
7.3.3.4
Bit Fields ..................................................... 7–15
7.3.4
Variables ........................................................... 7–16
7.3.4.1
Declarations .................................................. 7–16
7.3.4.2
Assignments and Function Arguments .................. 7–16
7.3.4.3
The sizeof Operator ......................................... 7–18
7.3.4.4
Pointer Subtraction ......................................... 7–18
7.3.4.5
Functions with a Variable Number of Arguments ..... 7–18
7.3.5
Library Calls ...................................................... 7–19
7.3.5.1
The printf and scanf Functions ........................... 7–19
7.3.5.2
The malloc and calloc Functions ......................... 7–20
7.3.5.3
The lseek System Call ...................................... 7–20
7.3.5.4
The fsetpos and fgetpos Functions ....................... 7–20
7.4
Correcting C Syntax Errors ......................................... 7–20
7.4.1
Differences Between DIGITAL UNIX and ULTRIX
Predefined Symbols .............................................. 7–20
7.4.2
Differences Between DIGITAL UNIX C and ULTRIX C
on RISC Systems ................................................. 7–22
7.4.2.1
Differences that Apply to All Modes ..................... 7–23
Contents vii