X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2FSharedMem.c;h=d4a9b9d7d9d28384f27bbd130552fb7454e3f453;hp=35ba20caa2a3c323ea05fbdc7727c9b53ee2a42e;hb=de83478a4dec2c8dd1b3721c4548b8d902555566;hpb=aa6e7fc3085168384700494a4bd22208f71e089e diff --git a/sources/SharedMem.c b/sources/SharedMem.c index 35ba20c..d4a9b9d 100644 --- a/sources/SharedMem.c +++ b/sources/SharedMem.c @@ -26,7 +26,7 @@ * * Author: S. Piccardi * - * $Id: SharedMem.c,v 1.4 2003/02/03 14:27:58 piccardi Exp $ + * $Id: SharedMem.c,v 1.5 2003/02/26 21:37:36 piccardi Exp $ * ***************************************************************/ #include /* SysV IPC shared memory declarations */ @@ -64,7 +64,7 @@ * the fill value * Return: the address of the shared memory segment (NULL on error) */ -void * ShmCreate(key_t ipc_key, int shm_size, int perm, char fill) +void * ShmCreate(key_t ipc_key, int shm_size, int perm, int fill) { void * shm_ptr; int shm_id; /* ID of the IPC shared memory segment */ @@ -102,7 +102,7 @@ void * ShmFind(key_t ipc_key, int shm_size) } /* * Function ShmRemove: - * Scheudle removal for a SysV shared memory segment + * Schedule removal for a SysV shared memory segment * Input: an IPC key value * the shared memory segment size * Return: 0 on success, -1 on error @@ -142,7 +142,7 @@ int ShmRemove(key_t ipc_key, void * shm_ptr) * the fill value * Return: the address of the shared memory segment (NULL on error) */ -void * CreateShm(char * shm_name, off_t shm_size, mode_t perm, char fill) +void * CreateShm(char * shm_name, off_t shm_size, mode_t perm, int fill) { void * shm_ptr; int fd;