08-05-2008
On my machine,
bzero is declared in strings.h
htons is declared in arpa/inet.h
Try including those header files. If they are not present check out the man pages for those calls.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i.e configuration of C compiler :confused: (4 Replies)
Discussion started by: atiato
4 Replies
2. UNIX for Dummies Questions & Answers
Ok, here's the deal.
I'm running WinXp.
I was merging two partitions using partition magic when I lost power to my box.
I have very IMPORTANT data on one partition and the other is blank, hence the attempted merge.
After the power loss, I booted my system up. Now, I was getting errors... (2 Replies)
Discussion started by: Silicon Demon
2 Replies
3. Programming
i'm pretty new to unix programming. i just wanna know how exactly fork(), waitpid() works. i have read some from the book, but it's still confusing. especially with those < 0 and == 0. plz help!!!! (1 Reply)
Discussion started by: ligerdave
1 Replies
4. UNIX Desktop Questions & Answers
Hello People ! :))I'm Sorry may be offtopic, I want ask you to help me with this problemwhere I can find FAQ about DB2.Tell me where I can find it.Good Luck !!! %) (1 Reply)
Discussion started by: Zo0oMGo0oG
1 Replies
5. UNIX for Dummies Questions & Answers
how i can download the game plz tell me ????? ty :) :) :) (3 Replies)
Discussion started by: Sora21
3 Replies
6. Solaris
AIM- Install Oracle 11g on Solaris using VMWare
Steps
1.Logged on as root
2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc
3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD
4.Copied files from CD to /usr/local/bin/gcc
5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies
7. UNIX for Dummies Questions & Answers
I am using OpenSSH on my sun servers.
There is another suite of sun servers attempting to SSH into my machines.
I am running ssh -vv:
OpenSSH_4.4p1, OpenSSL 0.9.8d 28 Sep 2006
the other guy is running the sun version of ssh (i don't know what/if any differences there are between... (7 Replies)
Discussion started by: EWTGPAC
7 Replies
8. UNIX for Dummies Questions & Answers
plz help me with this question :
1111 | aaaa | pppp | 23/9/87
3333 | dddd | oooo | 6/9/8
4444 | gggg | rrrr | 5/8/9
5555 | qqqq | eeee
ans:
5555 | qqqq | eeee
depending upon how many "|" are in the question
be quick.. (8 Replies)
Discussion started by: adityamitra
8 Replies
9. Shell Programming and Scripting
On a very new (11.31) hpux machine, I can no longer execute shell fragements like:
if ; then
. .profile.foo
fi
and get "ksh: test: argument expected"
if I convert this to -d or -f as appropriate (which I've not had to do on older versions of hpux (11.23) nor any other unix platform... (9 Replies)
Discussion started by: Peeter Joot
9 Replies
LEARN ABOUT ULTRIX
inet.h
inet.h(3HEAD) Headers inet.h(3HEAD)
NAME
inet.h, inet - definitions for internet operations
SYNOPSIS
#include <arpa/inet.h>
DESCRIPTION
The <arpa/inet.h> header defines the type in_port_t, the type in_addr_t, and the in_addr structure, as described in in.h(3HEAD).
Inclusion of the <arpa/inet.h> header may also make visible all symbols from in.h(3HEAD).
The following are declared as functions, and may also be defined as macros:
in_addr_t inet_addr(const char *);
in_addr_t inet_lnaof(struct in_addr);
struct in_addr inet_makeaddr(in_addr_t, in_addr_t);
in_addr_t inet_netof(struct in_addr);
in_addr_t inet_network(const char *);
char *inet_ntoa(struct in_addr);
Default
For applications that do not require standard-conforming behavior (those that use the socket interfaces described in section 3N of the ref-
erence manual; see Intro(3) and standards(5)), the following may be declared as functions, or defined as macros, or both:
uint32_t htonl(uint32_t);
uint16_t htons(uint16_t);
uint32_t ntohl(uint32_t);
uint16_t ntohs(uint16_t);
Standard conforming
For applications that require standard-conforming behavior (those that use the socket interfaces described in section 3XN of the reference
manual; see Intro(3) and standards(5)), the following may be declared as functions, or defined as macros, or both:
in_addr_t htonl(in_addr_t);
in_port_t htons(in_port_t);
in_addr_t ntohl(in_addr_t);
in_port_t ntohs(in_port_t);
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
Intro(3), htonl(3SOCKET), htonl(3XNET), inet_addr(3SOCKET), inet_addr(3XNET), in.h(3HEAD), attributes(5), standards(5)
SunOS 5.10 30 Aug 2002 inet.h(3HEAD)