11-19-2004
stddef.h declares a lot of these types if you ever get confused.
10 More Discussions You Might Find Interesting
1. Programming
Hello,
i compiled the program xev under HPUX 10.20 and there are a lot of errors like this. Can anybody help me to fix this errors?
make xev
cc -O xev.c -o xev
/usr/ccs/bin/ld: Unsatisfied symbols:
XFree (code)
XKeysymToString (code)
XSelectInput (code)
XOpenDisplay... (1 Reply)
Discussion started by: lan
1 Replies
2. UNIX for Dummies Questions & Answers
hey programmers!
1-why won't gcc accept as an argument? i tried the recommendations on the man page of getch(),..etc. nothing worked.
2-why it won't see <iostream> && <fstream> even if i implemented the function as follow
std::cout<<"..etc"<<endl;
3-after i type this code in it gives... (6 Replies)
Discussion started by: mbabeli
6 Replies
3. UNIX for Dummies Questions & Answers
After I log ino the machine, a window pops up indicating that I should check that the HOSTNAME is the same in these three files
/etc//rc.configd/netconf
/etc/hosts
/var/adm/inetd.sec
How do I change the hostname in these files?
Thanks,
Mike h (1 Reply)
Discussion started by: hutchin
1 Replies
4. AIX
Hello:
NOOB here. I attempted to use smit mkcd. Failed on first attempt, not enough space. 2nd attempt tried to place iso on /usr, not enough space there. Cleanup ran for about 5 minutes after aborting. Now AIX won't boot. LCD display on 7029-6E3 says: 0517 MOUNT /USR. Attempted to boot from CD... (11 Replies)
Discussion started by: bbird
11 Replies
5. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
6. UNIX for Dummies Questions & Answers
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies
7. HP-UX
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
8. HP-UX
asprintf.c: In function 'vasprintf':
asprintf.c:58: error: 'SIZE_MAX' undeclared (first use in this function)
asprintf.c:58: error: (Each undeclared identifier is reported only once
asprintf.c:58: error: for each function it appears in.)
Someone know how to fix?
Thanks (2 Replies)
Discussion started by: Linusolaradm1
2 Replies
9. HP-UX
The sendmail on hp site is too old,and still support the bugged ssl3(poodle) even if enable tlsv1.
So i decide to compile sendmail by myself
i use this site.config.m4
define(`confCClibsmi', `gcc -fPIC')
define(`confCC',`/usr/local/bin/gcc -fPIC')
define(`confOPTIMIZE', ` -O3')... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
10. UNIX for Beginners Questions & Answers
Can anyone offer any advice on how to modify the script below to work on a new system we have, that has no graphics capability? We admin the system through a serial RAS device. I've tried running the below script through the RAS and through an ssh -X session. It failed with something like "GTK... (3 Replies)
Discussion started by: yelirt5
3 Replies
LEARN ABOUT FREEBSD
timersub
TIMERADD(3) BSD Library Functions Manual TIMERADD(3)
NAME
timeradd, timersub, timerclear, timerisset, timercmp -- operations on timevals
SYNOPSIS
#include <sys/time.h>
void
timeradd(struct timeval *a, struct timeval *b, struct timeval *res);
void
timersub(struct timeval *a, struct timeval *b, struct timeval *res);
void
timerclear(struct timeval *tvp);
int
timerisset(struct timeval *tvp);
int
timercmp(struct timeval *a, struct timeval *b, CMP);
DESCRIPTION
These macros are provided for manipulating timeval structures for use with the gettimeofday(2) and settimeofday(2) calls. The structure is
defined in <sys/time.h> as:
struct timeval {
long tv_sec; /* seconds since Jan. 1, 1970 */
long tv_usec; /* and microseconds */
};
timeradd() adds the time information stored in a to b and stores the resulting timeval in res. The results are simplified such that the
value of res->tv_usec is always less than 1,000,000 (1 second).
timersub() subtracts the time information stored in b from a and stores the resulting timeval in res.
timerclear() initializes tvp to midnight (0 hour) January 1st, 1970 (the Epoch).
timerisset() returns true if tvp is set to any time value other than the Epoch.
timercmp() compares a to b using the comparison operator given in CMP, and returns the result of that comparison.
SEE ALSO
gettimeofday(2)
HISTORY
The timeradd() family of macros were imported from NetBSD 1.1, and appeared in FreeBSD 2.2.6.
BSD
August 11, 1999 BSD