08-26-2011
Dear shamrock thanks for the reply.
My requirement is to analyze the stack size of each function at compile time.
I am not expecting 100% of stack usage, at least we can find static information.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
The sed -f option (reading sed commands from a file) seems to have a limit of 200 transactions per file. I can't see anything in the man pages about this restriction.
I have a file with several thousand sed commands I need to perform (substitutions) - and while I can split the file into... (14 Replies)
Discussion started by: peter.herlihy
14 Replies
2. Programming
Hi,
When i checked for the maximum file size on solaris 5.9
the max file size obtained was only 2147483647
and all the further writes to the file which had reached that max size is not added to that file.
even i had registered the signal SIGXFSZ, but the signal was not delivered to the... (5 Replies)
Discussion started by: matrixmadhan
5 Replies
3. HP-UX
Hi friends,
what is the maximum allowable attachment size, we can send using mailx command. what is an alternate option if my file is > than that size?
thanks
sreeji (0 Replies)
Discussion started by: sreejithau
0 Replies
4. UNIX for Dummies Questions & Answers
What's the maximum file size supported by unix. (3 Replies)
Discussion started by: nagalenoj
3 Replies
5. UNIX for Dummies Questions & Answers
Is there a reasonable maximum limit for tar file sizes? I want to transfer a pile of files from one server to another but have restricted means, so tarring them first will probably be best... but how big can I go - both for the file format itself and for the operating system (linux) to handle? ... (7 Replies)
Discussion started by: Bobby
7 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
- block size of 512KB & every address requires 4 bits
- The inode structure contains 10 direct pointers, 1 single
indirect, 1 double indirect & 1 triple indirect pointer
What could be the possible maximum file size for this
system
Any guess? I am unable to understand the question... (0 Replies)
Discussion started by: preethgideon
0 Replies
7. AIX
Hi,
Do you know what is the maximum size I can use to create a ramdisk on AIX 5.3? I m pretty sure i've seen somewhere i can use more than 2 Gb but I can't remember where. I need to do some recommandations for one of my customer and they'll need to create a ramdisk of 20 Gb. Can this be done?
... (1 Reply)
Discussion started by: cedric hanquez
1 Replies
8. Programming
Hi friends,
Hope everybody is fine. First have a look at my code, then we will talk about it.
$ cat copy.c
#include <stdio.h>
#define PERMS 0644 /* RW for owner, R for group, others */
#define BUFSIZE 1
char *progname;
int main(int argc,char * argv)
{
int f1, f2, n;
... (4 Replies)
Discussion started by: gabam
4 Replies
9. Shell Programming and Scripting
Hi Friends,
My requirment is to Query the oracle database , generate the file change the extension to .csv and send to clients automatically everyday.
However i am able to perform the task. But sometimes when the file size is getting increased more than 1 MB then the mail is... (5 Replies)
Discussion started by: Showdown
5 Replies
10. Red Hat
Hi Guys,
I'm trying to install Oracle Database on to Oracle Linux 7.6 but when
the database install package checks the OS set-up, it keeps on failing
on the soft limits for the stack. It's default value is 8192 but I'm trying
to set it to 10240.
This is what I added to... (2 Replies)
Discussion started by: ASGR
2 Replies
LEARN ABOUT REDHAT
sigaltstack
SIGALTSTACK(2) Linux Programmer's Manual SIGALTSTACK(2)
NAME
sigaltstack - get or set alternate signal stack content
SYNOPSIS
#include <signal.h>
int sigaltstack(const stack_t *ss, stack_t *oss);
where:
ss points to a signalstack structure defined in <signal.h> containing stack content after the call.
oss if not NULL, points to a signalstack structure containing stack content before the call.
DESCRIPTION
sigaction(2) may indicate that a signal should execute on an alternate stack. Where this is the case, sigaltstack(2) stores the signal in
an alternate stack structure ss where its execution status may be examined prior to processing.
The sigaltstack struct is defined in <signal.h> as follows:
void *ss_sp /* SVID3 uses caddr_t ss_sp
int ss_flags
size_t ss_size
where:
ss_sp points to the stack structure.
ss_flags
specifies the stack state to SS_DISABLE or SS_ONSTACK as follows:
If ss is not NULL,the new state may be set to SS_DISABLE, which specifies that the stack is to be disabled and ss_sp and ss_size are
ignored. If SS_DISABLE is not set, the stack will be enabled.
If oss is not NULL, the stack state may be either SS_ONSTACK or SS_DISABLE. The value SS_ONSTACK indicates that the process is cur-
rently executing on the alternate stack and that any attempt to modify it during execution will fail. The value SS_DISABLE indi-
cates that the current signal stack is disabled.
ss_size
specifies the size of the stack.
The value SIGSTKSZ defines the average number of bytes used when allocating an alternate stack area. The value MINSIGSTKSZ defines the
minimum stack size for a signal handler. When processing an alternate stack size, your program should include these values in the stack
requirement to plan for the overhead of the operating system.
RETURN VALUES
sigaltstack(2) returns 0 on success and -1 on failure.
ERRORS
sigaltstack(2) sets errno for the following conditions:
EINVAL ss is not a null pointer the ss_flags member pointed to by ss contains flags other than SS_DISABLE.
ENOMEM The size of the alternate stack area is less than MINSIGSTKSZ.
EPERM An attempt was made to modify an active stack.
STANDARDS
This function comforms to: XPG4-UNIX.
SEE ALSO
getcontext(2), sigaction(2), sigsetjmp(3).
Red Hat Linux 6.1 20 September 1999 SIGALTSTACK(2)