Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #359
Difficulty: Medium
The chmod command first appeared in Version 1 AT&T UNIX.
True or False?
Linux & Unix Commands - Search Man Pages

fesettrapenable(3m) [hpux man page]

fesettrapenable(3M)													       fesettrapenable(3M)

NAME
fesettrapenable() - set exception trap enables SYNOPSIS
DESCRIPTION
The function enables the exception traps indicated by the argument excepts and disables the exception traps not indicated by the argument. The argument can be constructed as a bitwise OR of the exception macros: and represents all the exceptions. USAGE
To use this function, compile either with the default option or with the and options. Make sure your program includes For HP Integrity servers, 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 to all declarations in the compilation fol- lowing the pragma 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. For PA-RISC, you might need to use the compiler option in order to prevent optimizations that can undermine the specified behavior of this function. Link in the math library by specifying on the compiler or linker command line. For more information, see the at the following site: RETURN VALUE
None. ERRORS
No errors are defined. EXAMPLES
Enable overflow and divide by zero traps and disable the others AUTHOR
was developed by HP and is not required by any current standard. SEE ALSO
feclearexcept(3M), fegetexceptflag(3M), fegettrapenable(3M), feraiseexcept(3M), fesetexceptflag(3M), fetestexcept(3M), fenv(5). fesettrapenable(3M)

Check Out this Related Man Page

feholdexcept(3M)														  feholdexcept(3M)

NAME
feholdexcept() - save floating-point environment SYNOPSIS
DESCRIPTION
The function saves the current floating-point environment in the object pointed to by the argument envp. This function also clears the floating-point exception flags and disables all traps. Use with to hide spurious floating-point exceptions. Use it with to hide all floating-point exceptions. USAGE
To use this function, compile either with the default option or with the and options. Make sure your program includes For HP Integrity servers, 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 to all declarations in the compilation fol- lowing the pragma 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. For PA-RISC, you might need to use the compiler option in order to prevent optimizations that can undermine the specified behavior of this function. Link in the math library by specifying on the compiler or linker command line. For more information, see the at the following site: RETURN VALUE
The function returns a zero value, indicating the successful disabling of any traps. ERRORS
No errors are defined. EXAMPLES
Store the current floating-point environment in hide spurious underflow exceptions, and continue on any floating-point exceptions that occur until the call to is encountered. SEE ALSO
fegetenv(3M), fesetenv(3M), feupdateenv(3M), fenv(5). STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arithmetic") feholdexcept(3M)

9 More Discussions You Might Find Interesting

1. Programming

How use #pragma pack() in HP unix ?

hello. i use follow sentences in include files in SCO unix is ok. #pragma pack(1) struct dddd { int iD1; char cCh1; ... }; #pragma pack() but in hp-9000 unix , not ok when compiling, cc not support #pragma pack(1) how to settle the question ? ... (1 Reply)
Discussion started by: bdyjm
1 Replies

2. Programming

changing entry point

hi... just wanted to check how i can the entry point of a program... i tried using the #pragma directive but it doesnt seem to be workin... #pragma comment(linker,"/ENTRY:startupfunction") #include<stdio.h> void startupfunction() { printf("in print\n"); main(); } int main() {... (4 Replies)
Discussion started by: strider
4 Replies

3. Programming

pragma page

Hi, I have a question regarding pragma page. What is the advantage of using this pragma? Also the description tells that it is a compiler directive to start of in a new page. Does the page here refer to the page in memory where the set of code under the pragma page will be starting in a new... (3 Replies)
Discussion started by: naan
3 Replies

4. Programming

Why is required to leave an empty line at the end of a C program?

I know it looks like a stupid question, but i really wanna know the reason. Actually, i think it's because the c compiler will detect it as the end of file "EOF" of the program, but, am i wrong? because it compiles it anyway, but keep showing warnings like "no new line at the end of file". I... (8 Replies)
Discussion started by: semash!
8 Replies

5. Programming

#pragma warn codes on Sun Solaris to disable some warns?

I am not able to find warn-codes that should be used in #pragma warn -<code> directive!:wall: Could anybody advise where I can see a list of warnings with codes that (as I understand) should be 3-letters code? I have a pro-C program that produces some warnings. (Do not advise,... (4 Replies)
Discussion started by: alex_5161
4 Replies

6. UNIX for Dummies Questions & Answers

encountered a command line argument to c program puzzle!

Hi, I hope this is the right place to post this: I have a cprogram written in openCV which reads a video file and does some processing: Here's a relevant code snippet: //just in case you needed to know what libraries I included #include<iostream> #include<opencv/cv.h>... (1 Reply)
Discussion started by: hackmanbsg
1 Replies

7. Shell Programming and Scripting

Script to replace/delete lines in C program

I am under the gun on a project and am not very good at scripting. I have to make a modification to thousands of C programs to basically replace the #pragma statement. I don't want to have to do it manually. Here is an example of what I need done. Any help would be greatly appreciated. I... (5 Replies)
Discussion started by: jclanc8
5 Replies

8. Programming

GCC Alignment pragma

Quick question for the community of GCC programmers. I have code that uses: #pragma align 4 (as an example). Now this code has compiled for many years on a few different platforms and GCC versions. Recently I got warning messages about it (using gcc 4.9.2 on Solaris) and I wondered... (0 Replies)
Discussion started by: Pug
0 Replies

9. Programming

Extern keyward on function in C

I saw a header (.h) file with mixture of "regular" function declarations and other extern function declarations. As I was told all function declarations are implicitly external and the extern on functions declarations is superfluous. Here my focus is on function declaration, not variable yet. int... (2 Replies)
Discussion started by: yifangt
2 Replies

Featured Tech Videos