12-27-2008
i believe so. however i have no pointers for you
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi!
I just got Ultra 5 computer an installed Solaris 8 on it. I'm trying to install Apache but I'm having some problems...
I tried to download a precompiled version of apache, but it seems as if I need a c compiler anyway.
When I try to run the configure command I get the following result:... (2 Replies)
Discussion started by: alfabetman
2 Replies
2. Programming
hi I'm looking for a C Compiler that will run on a Solaris 8 (Intel) platform and that doesn't need to be complied.
I've tried gcc binaries but they don't seem to work.
Thanx. (5 Replies)
Discussion started by: ianf
5 Replies
3. UNIX for Dummies Questions & Answers
Does anyone know off-hand if Solaris 10 comes with a C++ compiler, or will I have to install one (GNU, etc)?
I have looked through the directories and files, but can't seem to locate anything to indicate that there is one.
Thanks in advance. (1 Reply)
Discussion started by: trmn8r
1 Replies
4. Programming
Anyone know what the -Xc option does? Is there an equivalent option for the Gnu compiler? :confused: (3 Replies)
Discussion started by: BCarlson
3 Replies
5. Programming
Hello!
Can somebody tell my where to find Solaris C compiler for Unix environment?
Is it available anywhere on the net for free download ?
Thank you for your help!
:( (3 Replies)
Discussion started by: krasy
3 Replies
6. Programming
Just that the Subject says.
I am looking for a C compiler for Linux x86 that will allow me to compile a C source code file and the resulting binary will be able to run on a Sparc running Solaris.
Thanks. (2 Replies)
Discussion started by: lyonsd
2 Replies
7. Programming
First off, I am all new to Unix, so when I require for help, could people please response in plain english and step by step.
I am enrol in a university course to do c programming in unix environment. Thus I have downloaded the Solaris 10 Unix OS. Being Solaris, I believe it has Java... (2 Replies)
Discussion started by: Xannen
2 Replies
8. Programming
Hi experts,
How do I find if a C compiler is installed on Solaris ?
> cc -o
ksh: cc: not found
> CC
ksh: CC: not found
> gcc
ksh: gcc: not found
I am using Solaris 5.8
Thanks,
Sameer. (1 Reply)
Discussion started by: ensameer
1 Replies
9. Solaris
Am new to Solaris OS and need to install the GNU cpp compiler. Followed the instructions from Sunfreeware for installing the gcc compiler and it looks as if it correctly installed but i cannot run it from the command window.
# cd /usr/local/bin
# ls
c++ ... (2 Replies)
Discussion started by: brb
2 Replies
LEARN ABOUT SUNOS
id32_lookup
id32_alloc(9F) Kernel Functions for Drivers id32_alloc(9F)
NAME
id32_alloc, id32_free, id32_lookup - 32-bit driver ID management routines
SYNOPSIS
#include <sys/ddi.h>
#include <sys/id32.h>
uint32_t id32_alloc(void *ptr, int flag);
void id32_free(uint32_t token);
void *id32_lookup(uint32_t token);
INTERFACE LEVEL
Solaris architecture specific (Solaris DDI).
PARAMETERS
ptr any valid 32- or 64-bit pointer
flag determines whether caller can sleep for memory (see kmem_alloc(9F) for a description)
DESCRIPTION
These routines were originally developed so that device drivers could manage 64-bit pointers on devices that save space only for 32-bit
pointers.
Many device drivers need to pass a 32-bit value to the hardware when attempting I/O. Later, when that I/O completes, the only way the
driver has to identify the request that generated that I/O is via a "token". When the I/O is initiated, the driver passes this token to the
hardware. When the I/O completes the hardware passes back this 32-bit token.
Before Solaris supported 64-bit pointers, device drivers just passed a raw 32-bit pointer to the hardware. When pointers grew to be 64 bits
this was no longer possible. The id32_*() routines were created to help drivers translate between 64-bit pointers and a 32-bit token.
Given a 32- or 64-bit pointer, the routine id32_alloc() allocates a 32-bit token, returning 0 if KM_NOSLEEP was specified and memory could
not be allocated. The allocated token is passed back to id32_lookup() to obtain the original 32- or 64-bit pointer.
The routine id32_free() is used to free an allocated token. Once id32_free() is called, the supplied token is no longer valid.
Note that these routines have some degree of error checking. This is done so that an invalid token passed to id32_lookup() will not be
accepted as valid. When id32_lookup() detects an invalid token it returns NULL. Calling routines should check for this return value so that
they do not try to dereference a NULL pointer.
CONTEXT
These functions can be called from user or interrupt context. The routine id32_alloc() should not be called from interrupt context when the
KM_SLEEP flag is passed in. All other routines can be called from interrupt or kernel context.
SEE ALSO
kmem_alloc(9F)
Writing Device Drivers
SunOS 5.10 12 Dec 2001 id32_alloc(9F)