xbps-rindex: switch named semaphore only for the target architecture.

This commit is contained in:
Juan RP
2014-01-31 18:44:24 +01:00
parent 4ee0f854bd
commit 4f7385e4a6
5 changed files with 39 additions and 23 deletions

View File

@@ -85,8 +85,13 @@ int sign_repo(struct xbps_handle *, const char *, const char *,
bool repodata_flush(struct xbps_handle *, const char *,
xbps_dictionary_t, xbps_dictionary_t, xbps_dictionary_t);
struct idxlock {
sem_t *sem;
char *semname;
};
/* From sem.c */
sem_t *index_lock(void);
void index_unlock(sem_t *);
struct idxlock *index_lock(struct xbps_handle *);
void index_unlock(struct idxlock *);
#endif /* !_XBPS_RINDEX_DEFS_H_ */