--- Gnu-Mach/kern/queue.h 2020/09/02 04:36:57 1.1.1.1 +++ Gnu-Mach/kern/queue.h 2020/09/02 04:45:18 1.1.1.3 @@ -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 @@ -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_ */