General Programming Concepts

General Programming Concepts

AIX Version 7.1 General programming concepts IBM Note Before using this information and the product it supports, read the information in “Notices” on page 755 . This edition applies to AIX Version 7.1 and to all subsequent releases and modifications until otherwise indicated in new editions. © Copyright International Business Machines Corporation 2010, 2018. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents About this document.............................................................................................ix Highlighting..................................................................................................................................................ix Case-sensitivity in AIX................................................................................................................................ ix ISO 9000......................................................................................................................................................ix General programming concepts..............................................................................1 What’s new in General programming concepts.......................................................................................... 1 Tools and utilities......................................................................................................................................... 2 Curses library............................................................................................................................................... 4 Initializing curses....................................................................................................................................5 Windows in the curses environment......................................................................................................6 Manipulating window data with curses................................................................................................. 7 Controlling the cursor with curses.......................................................................................................10 Manipulating characters with curses...................................................................................................10 Understanding terminals with curses .................................................................................................18 Working with color................................................................................................................................23 Manipulating video attributes.............................................................................................................. 24 Manipulating soft labels....................................................................................................................... 26 Curses compatibility.............................................................................................................................27 List of additional curses subroutines...................................................................................................27 Debugging programs..................................................................................................................................29 adb debug program overview.............................................................................................................. 29 Getting started with the adb debug program...................................................................................... 29 Controlling program execution............................................................................................................ 31 Using adb expressions......................................................................................................................... 34 Customizing the adb debug program...................................................................................................36 Computing numbers and displaying text.............................................................................................39 Displaying and manipulating the source file with the adb program................................................... 40 adb debug program reference information......................................................................................... 47 Example adb program: adbsamp.........................................................................................................53 Example adb program: adbsamp2.......................................................................................................53 Example adb program: adbsamp3.......................................................................................................54 Example of directory and i-node dumps in adb debugging................................................................ 55 Example of data formatting in adb debugging.....................................................................................56 Example of tracing multiple functions in adb debugging....................................................................59 dbx symbolic debug program overview............................................................................................... 61 Using the dbx debug program..............................................................................................................61 Displaying and manipulating the source file with the dbx debug program........................................ 64 Examining program data...................................................................................................................... 66 Debugging at the machine level with dbx............................................................................................72 Customizing the dbx debugging environment..................................................................................... 76 Developing for the dbx plug-in framework.......................................................................................... 78 List of dbx subcommands.................................................................................................................... 94 Error-logging overview...............................................................................................................................97 Error-logging facility.............................................................................................................................98 Managing error logging.........................................................................................................................98 Error notification................................................................................................................................ 101 Error logging tasks..............................................................................................................................105 Error logging and alerts......................................................................................................................112 Error logging controls ........................................................................................................................112 iii File systems and logical volumes............................................................................................................114 File types............................................................................................................................................ 114 Working with JFS directories............................................................................................................. 117 Working with JFS2 directories...........................................................................................................119 Working with JFS i-nodes.................................................................................................................. 120 Working with JFS2 i-nodes ............................................................................................................... 122 Allocating JFS file space.................................................................................................................... 123 Allocating JFS2 file space..................................................................................................................126 JFS file system layout........................................................................................................................ 128 JFS2 file system layout...................................................................................................................... 129 Writing programs that access large files........................................................................................... 130 Linking for programmers....................................................................................................................134 Using file descriptors......................................................................................................................... 136 Creating and removing files............................................................................................................... 139 Working with file I/O.......................................................................................................................... 140 File status..........................................................................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    784 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us