*
* 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 <sys/shm.h> /* SysV IPC shared memory declarations */
* 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 */
}
/*
* 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
* 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;