1
# Process this file with autoconf to produce a configure script.
1
# Process this file with autoconf to produce a configure script.
3
AC_PREREQ(2.59)
3
AC_PREREQ(2.59)
4
AC_INIT(fsplib,0.8,hsn@netmag.cz)
4
AC_INIT(fsplib,0.9,hsn@sendmail.cz)
5
AM_INIT_AUTOMAKE()
5
AM_INIT_AUTOMAKE()
6
AM_MAINTAINER_MODE
6
AM_MAINTAINER_MODE
7
AC_CONFIG_SRCDIR([fsplib.c])
7
AC_CONFIG_SRCDIR([fsplib.c])
91
mode_t omask;
91
mode_t omask;
92
key_t lock_key;
92
key_t lock_key;
94
union semun sun;
94
union semun su;
95
struct sembuf sem;
95
struct sembuf sem;
97
make_key_string(lock,server_addr,server_port);
97
make_key_string(lock,server_addr,server_port);
123
return -1;
123
return -1;
125
/* we need to init this semaphore */
125
/* we need to init this semaphore */
126
sun.val=1;
126
su.val=1;
127
if(semctl(lock->lock_sem,0,SETVAL,sun) == -1)
127
if(semctl(lock->lock_sem,0,SETVAL,su) == -1)
129
perror("semctl setval");
129
perror("semctl setval");
130
return -1;
130
return -1;