12-03-2004
HP-UX 11 supports 64 bit mode. Programs can be either SOM or ELF. This is why macros like that vanished. Using such a macro is non-portable. There really is no guarantee that a object called a "stack" will exist. About the best you could do is take the address of the first automatic variable.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm having a problem with a macro i put in my .exrc file.
Here's what I put: map #I ^[
^ [ is control-v and the escape key.
It places a # a the beginning of a line by simply hitting the # on the keyboard. Problem is, now when I hit "o" or "O" to move up or down a line, it places a # at... (1 Reply)
Discussion started by: Atama
1 Replies
2. Programming
Can i define a macro for a function of 10 LOC. (9 Replies)
Discussion started by: bankpro
9 Replies
3. Programming
Hi,
In my application I have some number c files. In each of the file the following line will be the first statement.
#ident "@(#) set.c 14.1.2.2 05/15/01 17:06:32"
I would like to know what is the use of the above statement.
Thanks
Sarwan (1 Reply)
Discussion started by: sarwan
1 Replies
4. Programming
I think there is no problem to use any macro in a new macro definishion, but I have a problem with that.
I can not understand why?
I have a *.mak file that inludes file with many definitions and rules.
##############################################
include dstndflt.mak
...
One of the... (2 Replies)
Discussion started by: alex_5161
2 Replies
5. Shell Programming and Scripting
Hi Experts,
i would like to get your help to do some development to the below linux commands which i run under .cmd file in windows
@echo off
call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe... (3 Replies)
Discussion started by: mustafa.abdulsa
3 Replies
6. Shell Programming and Scripting
Hi,
I just opened one old RH box and found number of "macros" in there, that how they called in how-to doc, let say you type <rx> and this does a lot of stuff.
I can't figure out how it work, how I can edit/display these macros? Can anybody point to the right directions? I have some academic... (3 Replies)
Discussion started by: trento17
3 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone,
What I am trying to do is assign a F-key a macro to save a file in vi and display said file in firefox. The details are as follows:
I am using a Win 7 laptop with and ssh program to log into a unix system.
What I am trying to do is figure out how to bring up the firefox... (1 Reply)
Discussion started by: csharp100
1 Replies
8. UNIX for Dummies Questions & Answers
Can I create a macro in UNIX? If so where do I find out how? (1 Reply)
Discussion started by: JD_Sal
1 Replies
9. UNIX for Dummies Questions & Answers
Hey guys, thanks for lookin....my question is I want to create a macro on HPUX to SFTP a .xls to my Windows Server....I have exstensively searched and all I can find is What a macro is not how to create one.
Reasoning for having a macro is to put it in a file creation script and have it run at... (7 Replies)
Discussion started by: DStewart
7 Replies
10. Programming
Can some body explain this part in a header file for me?
#include <limits.h>
#define BIGNUM unsigned long long
typedef BIGNUM (*hash_t) (char *str);
......I have hard time for the second part:
typedef BIGNUM (*hash_t) (char *str); First, I could not find the definition of hash_t, which... (1 Reply)
Discussion started by: yifangt
1 Replies
LEARN ABOUT HPUX
nlist_ia
nlist_ia(3C) nlist_ia(3C)
NAME
nlist_ia: nlist(), nlist64() - get entries from name list on Integrity systems
SYNOPSIS
Command: [flag]... [library]...
Remarks
The use of symbol table type and value information is inherently nonportable. The use of or should reduce the effort required to port a
program that uses such information, but complete portability across all HP-UX implementations cannot be expected.
This manpage describes and for Itanium-based systems. For and on PA-RISC systems, see nlist_pa(3C).
DESCRIPTION
and have basically the same functionality and they can process SOM or ELF files. The structure is the same as and is used for source code
compatibility.
The or function examines the name list in the executable file whose name is pointed to by file_name, and selectively extracts a list of
values and puts them in the array of structures pointed to by nl. The array of structures initially contains only the names of variables.
Once the or function has been called, the variable names are augmented with symbol information. The list is terminated by a null name,
which consists of a null string in the variable-name position of the structure. The name list of the file is searched for each variable
name. If the name is found, the symbol's type, scope, and value in the file is inserted into the name list structure. If the file
searched is an ELF file, the section index is also inserted. For SOM files, the subspace index is inserted. The symbol value is 64-bit.
If the file searched is a SOM file, then the value field is zero padded. If the name is not found, the fields in the name list structure
are set to 0. The structures and are defined in the include file See a.out(4) and nlist(4) for further description of the symbol table
structure.
The file must have the organization and symbol table described for an file in a.out(4). The information is extracted from the symbol table
used by the linker, ld(1).
On machines that have such a file, this subroutine is useful for examining the system name list kept in file In this way programs can
obtain system addresses that are up to date.
RETURN VALUE
All structure fields are set to 0 if the file cannot be found or if it is not a valid object file containing a linker symbol table.
and return:
An error occurred.
Success.
WARNINGS
The header file is automatically included by for compatibility. However, including is discouraged if the only information needed from is
for use by or If is included, the line may need to follow it.
SEE ALSO
ld(1), elf(3E), a.out(4), nlist(4).
STANDARDS CONFORMANCE
Integrity Systems Only nlist_ia(3C)