--- Gnu-Mach/kern/queue.h 2020/09/02 04:36:57 1.1.1.1 +++ Gnu-Mach/kern/queue.h 2020/09/02 04:47:36 1.1.1.4 @@ -1,18 +1,18 @@ -/* +/* * Mach Operating System * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU @@ -79,11 +79,12 @@ typedef struct queue_entry *queue_entry_ #define enqueue(queue,elt) enqueue_tail(queue, elt) #define dequeue(queue) dequeue_head(queue) -void enqueue_head(); -void enqueue_tail(); -queue_entry_t dequeue_head(); -queue_entry_t dequeue_tail(); -void remqueue(); +void enqueue_head(queue_t, queue_entry_t); +void enqueue_tail(queue_t, queue_entry_t); +queue_entry_t dequeue_head(queue_t); +queue_entry_t dequeue_tail(queue_t); +void remqueue(queue_t, queue_entry_t); +void insque(queue_entry_t, queue_entry_t); /* * Macro: queue_init @@ -178,7 +179,7 @@ void remqueue(); */ #define queue_enter(head, elt, type, field) \ { \ - register queue_entry_t prev; \ + queue_entry_t prev; \ \ prev = (head)->prev; \ if ((head) == prev) { \ @@ -205,7 +206,7 @@ void remqueue(); */ #define queue_enter_first(head, elt, type, field) \ { \ - register queue_entry_t next; \ + queue_entry_t next; \ \ next = (head)->next; \ if ((head) == next) { \ @@ -238,7 +239,7 @@ void remqueue(); */ #define queue_remove(head, elt, type, field) \ { \ - register queue_entry_t next, prev; \ + queue_entry_t next, prev; \ \ next = (elt)->field.next; \ prev = (elt)->field.prev; \ @@ -265,7 +266,7 @@ void remqueue(); */ #define queue_remove_first(head, entry, type, field) \ { \ - register queue_entry_t next; \ + queue_entry_t next; \ \ (entry) = (type) ((head)->next); \ next = (entry)->field.next; \ @@ -288,7 +289,7 @@ void remqueue(); */ #define queue_remove_last(head, entry, type, field) \ { \ - register queue_entry_t prev; \ + queue_entry_t prev; \ \ (entry) = (type) ((head)->prev); \ prev = (entry)->field.prev; \ @@ -366,4 +367,4 @@ typedef struct mpqueue_head mpqueue_head * Old queue stuff, will go away soon. */ -#endif _KERN_QUEUE_H_ +#endif /* _KERN_QUEUE_H_ */