08-24-2009
I participate in several, for the various programming languages I am involved in. For the most part they are all pretty good, except that too often you get someone who rather then help you go in the direction you want to go, insists on telling you go in another direction, without stopping to consider that there may be reasons for doing it in a certain way. Also sometimes the experts can be rather dogmatic, with blanket statements about the suitability of a particular method without consideration of the circumstances. And so they refuse to tell you the answer.
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Here's a fun one...
What's the best way to script looking for a process when it runs? For example, what if a process is running that's been set up graphically, which you would like the entire command line string for? Say it's rpm for the sake of having a command to use as an example. You want... (2 Replies)
Discussion started by: sysera
2 Replies
2. HP-UX
Hi
I have a doubt regarding process states in HP unix system. Is there a way to check whether a process is hanged or still actively running? I have few scripts which run for a long time. but sometimes these are getting hanged. But i'm never sure whether they are running or waiting in kind of... (4 Replies)
Discussion started by: truth
4 Replies
3. AIX
Hi,
Is there any command that I can issue to check who is actively using my harddisk? I notice that yesterday the hdisk0 and hdisk1 is really actively being used and is reaching almost 100%. I realized that this is because of paging which is climbing up to 70%.
However, just this morning... (3 Replies)
Discussion started by: depam
3 Replies
4. AIX
Dear all,
I am faced with an error "UX ER087-0" failling to connect to the server.
Any ideas of what might be causing the error?
Many thanks (17 Replies)
Discussion started by: captain.scorpio
17 Replies
5. Shell Programming and Scripting
ok, here's the scoop, google has similar, but nothing that quite fits the bill. here is what I'm up against:
i have a linux system that is running both kde 3.x and gnome 2.x, selectable via gdm.
the kde 3.x app menu is heavily modified and i'm looking for a way to import that over to the... (0 Replies)
Discussion started by: macphail
0 Replies
6. What is on Your Mind?
Hello All,
Greetings!!
Have a thought about how could we encourage more users to post and participate more on UNIX.com(because more we get questions, more we learn more), few are my ideas which I am posting feel free to add/edit more ideas in here. Keeping this as a POLL too.
I- Allow... (10 Replies)
Discussion started by: RavinderSingh13
10 Replies
LEARN ABOUT SUNOS
fesetround
fegetround(3M) Mathematical Library Functions fegetround(3M)
NAME
fegetround, fesetround - get and set current rounding direction
SYNOPSIS
cc [ flag... ] file... -lm [ library... ]
#include <fenv.h>
int fegetround(void);
int fesetround(int round);
DESCRIPTION
The fegetround function gets the current rounding direction.
The fesetround function establishes the rounding direction represented by its argument round. If the argument is not equal to the value of
a rounding direction macro, the rounding direction is not changed.
RETURN VALUES
The fegetround function returns the value of the rounding direction macro representing the current rounding direction, or a negative value
if there is no such rounding direction macro or the current rounding direction is not determinable.
The fesetround function returns a 0 value if and only if the requested rounding direction was established.
ERRORS
No errors are defined.
EXAMPLES
The following example saves, sets, and restores the rounding direction, reporting an error and aborting if setting the rounding direction
fails:
Example 1: Save, set, and restore the rounding direction.
#include <fenv.h>
#include <assert.h>
void f(int round_dir)
{
#pragma STDC FENV_ACCESS ON
int save_round;
int setround_ok;
save_round = fegetround();
setround_ok = fesetround(round_dir);
assert(setround_ok == 0);
/* ... */
fesetround(save_round);
/* ... */
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
fenv.h(3HEAD), attributes(5), standards(5)
SunOS 5.10 1 Sep 2002 fegetround(3M)