Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
annotate vutilities.c @ 135:0b49fd35afc1
distributed free working
-app sends a VMSSemReqst to his Master which send a request to a different Master
-Master send the request directly
-The request structure is freed by the sender, when the request was handled
There are still problems on shutdown. The shutdownVPs are all allocated by one Master which is likly to be terminated
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Fri, 16 Sep 2011 20:08:28 +0200 |
| parents | 13b22ffb8a2f |
| children |
| rev | line source |
|---|---|
| Me@65 | 1 /* |
| Me@65 | 2 * Copyright 2009 OpenSourceCodeStewardshipFoundation.org |
| Me@65 | 3 * Licensed under GNU General Public License version 2 |
| Me@65 | 4 * |
| Me@65 | 5 * Author: seanhalle@yahoo.com |
| Me@65 | 6 * |
| Me@65 | 7 * Created on November 14, 2009, 9:07 PM |
| Me@65 | 8 */ |
| Me@65 | 9 |
| Me@65 | 10 #include <malloc.h> |
| Me@65 | 11 #include <stdlib.h> |
| msach@134 | 12 #include <string.h> |
| Me@65 | 13 |
| Me@65 | 14 #include "VMS.h" |
| Me@65 | 15 |
| Me@65 | 16 |
| Me@65 | 17 inline char * |
| Me@65 | 18 VMS__strDup( char *str ) |
| Me@65 | 19 { char *retStr; |
| Me@65 | 20 |
| Me@65 | 21 retStr = VMS__malloc( strlen(str) + 1 ); |
| Me@65 | 22 if( str == NULL ) return str; |
| Me@65 | 23 strcpy( retStr, str ); |
| Me@65 | 24 |
| Me@65 | 25 return retStr; |
| Me@65 | 26 } |
