Sponsored Content
Full Discussion: changing entry point
Top Forums Programming changing entry point Post 98956 by jim mcnamara on Monday 13th of February 2006 09:45:28 AM
Old 02-13-2006
You can't do that.

The C standard dictates that code (usually called _start ) create things like stdin, stdout, etc. It has to run BEFORE main() and after main(), since it called main(). In the "after" part _start calls the exit routines you declare in atexit(), for example. Then it executes image rundown code, closing stdin, etc.

You would have to replace _start and _exit and other code in the libc library with your own version. Then link your code against your special version of libc.

May I ask why you think you need this entrypoint?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Fibre connection Point to Point SUN

Anyone know of a guide or instructions for Solaris I got to configure a SBUS HBA to talk to a tape robot. I have done this on a switch but not point to point. just going HBA >>>>> TAPE Fibre simple two nodes Kie (6 Replies)
Discussion started by: kie
6 Replies

2. Shell Programming and Scripting

Changing userID and Changing group and GID

Hello, I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job. linux1 linux2 linux3 linux4 linux5 ...... . . . . . 1.) How can i enter "password" in script rather asking me? I was trying this... ssh... (2 Replies)
Discussion started by: deal732
2 Replies

3. Shell Programming and Scripting

Please point the error

Hi i want the output of the following code as follows: colname typename NOT NULL default current timestamp But there seems to be some problem . Kindly correct that COLNAME="colname" typename="typename" DEFAULT="current timestamp" echo "$COLNAME $TYPENAME NOT NULL... (1 Reply)
Discussion started by: skyineyes
1 Replies

4. Solaris

Neat trick: Changing the permissions of an underlying mount point

A colleague of mine showed me a neat little trick in Solaris (I would guess sol 10 but perhaps earlier versions too) that I'd not seen before and thought I'd share here in case it's new for someone else also. As most of you know, Solaris has the annoying habit of producing error messages when... (6 Replies)
Discussion started by: Smiling Dragon
6 Replies

5. Programming

Floating Point

Anyone help me i cant found the error of floating point if needed, i added the code complete #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> typedef struct { int hh; int mm; int ss; char nom; int punt; }cancion; typedef struct... (9 Replies)
Discussion started by: Slasho
9 Replies

6. Shell Programming and Scripting

How to perform a hexdump using dd from start point to end point?

hi, I would like to ask or is it possible to dump a hex using dd from starting point to end point just like the "xxd -s 512 -l 512 <bin file>" I know the redirect hexdump -C but i can't figure it out the combination options of dd. Hope someone can share their knowledge.. Thanks in... (3 Replies)
Discussion started by: jao_madn
3 Replies

7. How to Post in the The UNIX and Linux Forums

Help me, write a bash script to delete parent entry with all their child entry in LDAP UNIX server

Hi All, Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries. example: Parent is : ---------- dn: email=yogesh.kumar@wipro.com, o=wipro, o=in child is: ---------- dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies

8. Shell Programming and Scripting

Changing every other comma to point

Hi I am working with set of data which is written in Swedish format. comma is used instead of point for decimal numbers in Sweden. My data set is like this: 1,188,1,250,0,757,0,946,8,960 1,257,1,300,0,802,1,002,9,485 1,328,1,350,0,846,1,058,10,021 1,381,1,400,0,880,1,100,10,418 ... (5 Replies)
Discussion started by: Johanni
5 Replies

9. Shell Programming and Scripting

How to replace multiple "&nbsp;" entry with in <td> tag into single entry using sed?

I have the input file like this. Input file: 12.txt 1) There are one or more than one <tr> tags in same line. 2) Some tr tags may have one <td> or more tna one <td> tags within it. 3) Few <td> tags having "<td> &nbsp; </td>". Few having more than one "&nbsp;" entry in it. <tr> some td... (4 Replies)
Discussion started by: thomasraj87
4 Replies

10. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies
fe_dec_getround(3M)													       fe_dec_getround(3M)

NAME
fe_dec_getround() - get decimal floating-point rounding direction mode SYNOPSIS
DESCRIPTION
The function gets the current decimal rounding direction. The default decimal rounding direction mode is round to nearest with half-way cases away from zero These math functions are supported for HP-UX 11i Version 3 September 2008 Update and forward. USAGE
To use this function, compile with the option. Make sure your program defines and then includes Specify on the compiler command line or place the call to this function under the effect of an affirmative pragma: If the pragma is placed outside of any top-level declarations in a file, the pragma will apply until another pragma is encountered or until the end of the file is reached. If the pragma is placed at the beginning of a block (compound statement), the pragma will apply until another pragma is encountered or until the end of the block is reached. Link in the math library by specifying or on the linking command line. For more information, see the at the following site: RETURN VALUE
The function returns the value of the decimal rounding direction macro representing the current decimal rounding direction. The return value will match one of the following macros, which are defined in Round to nearest. If the two nearest representable are equally near, the one with its least significant bit zero is delivered. Round to nearest. If the two nearest representable are equally near, the one furthest from zero is delivered. Round upwards (towards +infinity). Round downwards (towards -infinity). Round toward zero. ERRORS
No errors are defined. EXAMPLES
Save, set, and restore the decimal rounding direction. SEE ALSO
fe_dec_setround(3M), fenv(5). STANDARDS CONFORMANCE
This function conforms to ISO/IEC TR 24732, "Extension for the programming language C to support decimal floating-point arithmetic". fe_dec_getround(3M)
All times are GMT -4. The time now is 09:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy