Author jvdias
Recipients jvdias
Date 2009-04-09.11:27:49
SpamBayes Score 6.30659e-05
Marked as misclassified No
Message-id <1239276472.59.0.551552361275.issue5725@psf.upfronthosting.co.za>
In-reply-to
Content
I suggest a new sys SysV-semaphore API :

  sys.semget( sem_key, sem_nsems, sem_flags)
  sys.SEM_KEY_ANY = 0
  sys.SEM_UNDO    = 0x1000   /*chain of atomic kernel UNDO operations*/ 
  sys.SEM_GETPID  = 11   /* get sempid */
  sys.SEM_GETVAL  = 12   /* get semval */
  sys.SEM_GETALL  = 13   /* get all semval's */
  sys.SEM_GETNCNT = 14   /* get semncnt */
  sys.SEM_GETZCNT = 15   /* get semzcnt */
  sys.SEM_SETVAL  = 16   /* set semval */
  sys.SEM_SETALL  = 17   /* set all semval's */
#if ( ! defined(__sun__) ) || defined ( __GNU__ )
  sys.SEM_STAT    = 18
  sys.SEM_INFO    = 19
#endif
  
  sys.semop(semid, sops, nsops)

  sys.semtimedop(semid, sops, nsops,
                 timeout
                )
  
  sys.semctl(semid, semnum, cmd, ...);
History
Date User Action Args
2009-04-09 11:27:53jvdiassetrecipients: + jvdias
2009-04-09 11:27:52jvdiassetmessageid: <1239276472.59.0.551552361275.issue5725@psf.upfronthosting.co.za>
2009-04-09 11:27:50jvdiaslinkissue5725 messages
2009-04-09 11:27:49jvdiascreate