Adic Server Manuel d'utilisateur Page 184

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 218
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 183
5-12 DAS ACI 3.0 Asynchronous Support Layer
601626-B
Figure 5-9 Example of an aci_async_add Function
. . .
/*
* sadmin sample application, dasadmin.c file
* aci_async.h, ACI_INSERT macro
*/
aci_async_entry *async_entry;
if ((async_entry = aci_async_add(
DAS_INSERT,
insert_area,
volser_ranges,
type ) ) != 0)
{
if ((async_entry->pid = fork()) == 0)
{
/* map the current process virtual memory to the
shared buffer */
if ((int)(async_table =
(void*)shmat(async_table_desc, 0, 0)) == -1)
{
d_errno = ENOSHARED;
strcpy(d_text, "shmat failed");
}
res = aci_insert(insert_area, volser_ranges, type);
async_entry->d_errno = d_errno;
strcpy(async_entry->d_text, d_text);
shmdt(async_table);
exit(res);
}
}
. . .
Vue de la page 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 217 218

Commentaires sur ces manuels

Pas de commentaire