* errors. Note that even
* though this thread may have
* been canceled, POSIX requires
- * that the mutex be reaquired
+ * that the mutex be reacquired
* prior to cancellation.
*/
(void)_mutex_cv_lock(mutex);
* errors. Note that even
* though this thread may have
* been canceled, POSIX requires
- * that the mutex be reaquired
+ * that the mutex be reacquired
* prior to cancellation.
*/
(void)_mutex_cv_lock(mutex);
*/
retit:
/*
- * If necessary, aquire the queue and * mail files.
+ * If necessary, acquire the queue and * mail files.
* If this fails, we probably were raced by another
* process.
*/
setlogident("%s", it->queueid);
- if (aquirespool(it) < 0)
+ if (acquirespool(it) < 0)
exit(1);
dropspool(queue, it);
return (it);
int linkspool(struct queue *);
int load_queue(struct queue *);
void delqueue(struct qitem *);
-int aquirespool(struct qitem *);
+int acquirespool(struct qitem *);
void dropspool(struct queue *, struct qitem *);
/* local.c */
}
int
-aquirespool(struct qitem *it)
+acquirespool(struct qitem *it)
{
int queuefd;
return (0);
fail:
- syslog(LOG_INFO, "could not aquire queue file: %m");
+ syslog(LOG_INFO, "could not acquire queue file: %m");
return (-1);
}
/*==========================================================
**
**
-** Aquire a control block
+** Acquire a control block
**
**
**==========================================================
/*
* We would call selwakeup() here, but as we
* are in interrupt context, we'd have to
- * aquire the MP lock before.
+ * acquire the MP lock before.
* Instead, we'll queue a task in a software
* interrupt, which will run with the MP lock
* held.
* stale tokens (lwkt_token_is_stale).
*
* lwkt_getalltokens is called by the LWKT scheduler to acquire all
- * tokens that the thread had aquired prior to going to sleep.
+ * tokens that the thread had acquired prior to going to sleep.
*
* Called from a critical section.
*/
}
error = ssb_lock(&so->so_snd, M_WAITOK);
if (error) {
- /* Can't aquire the lock */
+ /* Can't acquire the lock */
crit_exit();
goto out_locked;
}
/* lock status */
#define LKST_LOCKED 1 /* lock is locked */
#define LKST_WAITING 2 /* file is already locked by another host */
-#define LKST_PROCESSING 3 /* child is trying to aquire the lock */
+#define LKST_PROCESSING 3 /* child is trying to acquire the lock */
#define LKST_DYING 4 /* must dies when we get news from the child */
void lfree(struct file_lock *);
}
/*
- * getlock: try to aquire the lock.
+ * getlock: try to acquire the lock.
* If file is already locked and we can sleep, put the lock in the list with
* status LKST_WAITING; it'll be processed later.
* Otherwise try to lock. If we're allowed to block, fork a child which
/*
*
- * try to aquire the lock described by fl. Eventually fock a child to do a
+ * try to acquire the lock described by fl. Eventually fock a child to do a
* blocking lock if allowed and required.
*/