Shared memory in HPUX


 
Thread Tools Search this Thread
Operating Systems HP-UX Shared memory in HPUX
# 1  
Old 05-30-2005
Shared memory in HPUX

HI all,
Any one have the sample C code which uses the Sharedmemory concept
in HPUX, AS400, OS390 .please send the links.

Thanks in Advance
Chinna
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Shared library with acces to shared memory.

Hello. I am new to this forum and I would like to ask for advice about low level POSIX programming. I have to implement a POSIX compliant C shared library. A file will have some variables and the shared library will have some functions which need those variables. There is one special... (5 Replies)
Discussion started by: iamjag
5 Replies

2. UNIX for Dummies Questions & Answers

ulimit (memory) HPUX

Hi all, I am setting the memory allocation to 3GB for each user on HPUX 11.23. I have added ulimit -m 3145728 into the profiles for root and user "X". When I do ulimit -a for each user I get conflicting values: user root: memory(kbytes) 3145728 user "X": memory(kbytes) ... (1 Reply)
Discussion started by: macgre_r
1 Replies

3. Programming

Shared memory for shared library

I am writing a shared library in Linux (but compatible with other UNIXes) and I want to allow multiple instances to share a piece of memory -- 1 byte is enough. What's the "best" way to do this? I want to optimize for speed and portability. Obviously, I'll have to worry about mutual exclusion. (0 Replies)
Discussion started by: otheus
0 Replies

4. HP-UX

need help in working with shared libraries on hpux

hi, i am having problem loading multiple shared libraries. if i load, make call to exposed method and then unload them, everything workds fine, but i have to keep the loaded images in memory, i am uploading the prog. as loader.zip, it contains loader - loader.c which loads c++ shared... (2 Replies)
Discussion started by: p.premkumarr
2 Replies

5. HP-UX

How can I get HPUX memory?

Hello! I need to know the HPUX RAM memory (used & free). When I use the "top" command, I get three values: <<Memory: 284372K (135276K) real, 236604K (140740K) virtual, 600220K free>> What does it mean the number in brackets? And... Is it RAM Memory? Thx in advance! (10 Replies)
Discussion started by: faca317
10 Replies

6. Programming

Shared memory in shared library

I need to create a shared library to access an in memory DB. The DB is not huge, but big enough to make it cumbersome to carry around in every single process using the shared library. Luckily, it is pretty static information, so I don't need to worry much about synchronizing the data between... (12 Replies)
Discussion started by: DreamWarrior
12 Replies

7. Programming

memory sharing - not shared memory -

hi, this is the problem: i want to swap a linked list between 4 processes (unrelated), is there any way i can do that just by sending a pointer to a structure? //example typedef struct node { int x; char c; struct node *next; } node; or i should send the items ( x,c ) by... (9 Replies)
Discussion started by: elzalem
9 Replies

8. Linux

all about shared memory

Hi all :confused: , I am new to unix.I have been asked to implement shared memory in user's mode.What does this mean?What is the difference it makes in kernel mode and in users mode?What are the advantages of this impemenation(user's mode)? And also i would like to know why exactly shared... (0 Replies)
Discussion started by: vijaya2006
0 Replies

9. UNIX for Advanced & Expert Users

Shared memory shortage but lots of unused memory

I am running HP-UX B.11.11. I'm increasing a parameter for a database engine so that it uses more memory to buffer the disk drive (to speed up performance). I have over 5GB of memory not being used. But when I try to start the DB with the increased buffer parameter I get told. "Not... (1 Reply)
Discussion started by: cjcamaro
1 Replies

10. HP-UX

how to access a windows shared drive from HPUX?

Dear Unix Gurus, I am very very new to UNIX. Apreciate your advice/guidence on the following. I have a HPUX machine and i want to copy some files from this machines to a windows shared drive. I am not sure how to go about it. To my little knowledge i think it is not straight... (5 Replies)
Discussion started by: nicky88
5 Replies
Login or Register to Ask a Question
load_sample(3alleg4)						  Allegro manual					      load_sample(3alleg4)

NAME
load_sample - Loads a sample from a file. Allegro game programming library. SYNOPSIS
#include <allegro.h> SAMPLE *load_sample(const char *filename); DESCRIPTION
Loads a sample from a file, supporting both mono and stereo WAV and mono VOC files, in 8 or 16-bit formats, as well as formats handled by functions registered using register_sample_file_type(). Example: SAMPLE *sample = load_sample(user_input); if (!sample) abort_on_error("Couldn't load sample!"); RETURN VALUE
Returns a pointer to the SAMPLE or NULL on error. Remember to free this sample later to avoid memory leaks. SEE ALSO
destroy_sample(3alleg4), load_voc(3alleg4), load_wav(3alleg4), play_sample(3alleg4), save_sample(3alleg4), register_sam- ple_file_type(3alleg4), exsample(3alleg4) Allegro version 4.4.2 load_sample(3alleg4)