From: Ben Gras Date: Mon, 22 Aug 2005 15:23:47 +0000 (+0000) Subject: Al's double-blank-line removal request X-Git-Tag: v3.1.0~305 X-Git-Url: http://zhaoyanbai.com/repos//%22https:/www.google.com/jsapi/%22?a=commitdiff_plain;h=d11b2e4b8c2abf86b4ccec5a43b81f61eec78ddf;p=minix.git Al's double-blank-line removal request --- diff --git a/include/assert.h b/include/assert.h index eed8fbda4..c97b35fbc 100755 --- a/include/assert.h +++ b/include/assert.h @@ -19,7 +19,6 @@ #include #endif - #ifdef NDEBUG /* Debugging disabled -- do not evaluate assertions. */ #define assert(expr) ((void) 0) diff --git a/include/errno.h b/include/errno.h index 747fe81d9..10399b594 100755 --- a/include/errno.h +++ b/include/errno.h @@ -112,5 +112,4 @@ extern int errno; /* place where the error numbers go */ #define EBADREQUEST (_SIGN 107) /* destination cannot handle request */ #define EDONTREPLY (_SIGN 201) /* pseudo-code: don't send a reply */ - #endif /* _ERRNO_H */ diff --git a/include/fcntl.h b/include/fcntl.h index 7e65e4e06..78d511beb 100755 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -59,7 +59,6 @@ struct flock { pid_t l_pid; /* process id of the locks' owner */ }; - /* Function Prototypes. */ _PROTOTYPE( int creat, (const char *_path, _mnx_Mode_t _mode) ); _PROTOTYPE( int fcntl, (int _filedes, int _cmd, ...) ); diff --git a/include/ibm/bios.h b/include/ibm/bios.h index b3b1c9876..1ceeede92 100644 --- a/include/ibm/bios.h +++ b/include/ibm/bios.h @@ -10,7 +10,6 @@ #ifndef _BIOS_H #define _BIOS_H - /* PART I -- * The BIOS interrupt vector table (IVT) area (1024 B as of address 0x0000). * Although this area holds 256 interrupt vectors (with jump addresses), some @@ -31,7 +30,6 @@ #define BIOS_HD1_PARAMS_ADDR 0x0118 /* disk 1 parameters */ #define BIOS_HD1_PARAMS_SIZE 4L - /* PART I -- * Addresses in the BIOS data area (256 B as of address 0x0400). The addresses * listed below are the most important ones, and the ones that are currently @@ -110,7 +108,6 @@ #define VDU_VIDEO_MODE_ADDR 0x49A /* current video mode */ #define VDU_VIDEO_MODE_SIZE 1L - /* PART III -- * The motherboard BIOS memory contains some known values that are currently * in use. Other sections in the upper memory area (UMA) addresses vary in @@ -124,6 +121,5 @@ #define PS_386_MACHINE 0xF8 /* ID byte for PS/2 modela 70/80 */ #define PC_AT_MACHINE 0xFC /* PC/AT, PC/XT286, PS/2 models 50/60 */ - #endif /* _BIOS_H */ diff --git a/include/ibm/cmos.h b/include/ibm/cmos.h index ff5e99a44..a160839f1 100755 --- a/include/ibm/cmos.h +++ b/include/ibm/cmos.h @@ -70,7 +70,6 @@ Dallas DS12887, compatible with the Motorola MC146818 */ #define RTC_REG_C 0xC - /* Contents of the general purpose CMOS RAM (source IBM reference manual) */ #define CMOS_STATUS 0xE #define CS_LOST_POWER 0x80 /* Chip lost power */ diff --git a/include/ibm/cpu.h b/include/ibm/cpu.h index fb1610b30..691ca11db 100755 --- a/include/ibm/cpu.h +++ b/include/ibm/cpu.h @@ -1,4 +1,3 @@ - #ifndef _IBM_CPU_H #define _IBM_CPU_H 1 diff --git a/include/ibm/interrupt.h b/include/ibm/interrupt.h index 40ad5b114..0484deb15 100644 --- a/include/ibm/interrupt.h +++ b/include/ibm/interrupt.h @@ -14,7 +14,6 @@ /* Magic numbers for interrupt controller. */ #define END_OF_INT 0x20 /* code used to re-enable after an interrupt */ - /* Interrupt vectors defined/reserved by processor. */ #define DIVIDE_VECTOR 0 /* divide error */ #define DEBUG_VECTOR 1 /* single step (trace) */ @@ -50,7 +49,6 @@ #define AT_WINI_0_IRQ 14 /* at winchester controller 0 */ #define AT_WINI_1_IRQ 15 /* at winchester controller 1 */ - /* Interrupt number to hardware vector. */ #define BIOS_VECTOR(irq) \ (((irq) < 8 ? BIOS_IRQ0_VEC : BIOS_IRQ8_VEC) + ((irq) & 0x07)) diff --git a/include/ibm/memory.h b/include/ibm/memory.h index 303f3864c..2390b4dca 100644 --- a/include/ibm/memory.h +++ b/include/ibm/memory.h @@ -6,7 +6,6 @@ * Created: March 2005, Jorrit N. Herder */ - /* I/O-mapped peripherals. I/O addresses are different from memory addresses * due to the I/O signal on the ISA bus. Individual I/O ports are defined by * the drivers that use them or looked up with help of the BIOS. @@ -123,7 +122,6 @@ #define BIOS_DATA_BEGIN 0x00400 /* BIOS data area */ #define BIOS_DATA_END 0x004FF - /* The base memory is followed by 384 KB reserved memory located at the top of * the first MB of physical memory. This memory is known as the upper memory * area (UMA). It is used for memory-mapped peripherals, such as video RAM, @@ -145,7 +143,6 @@ #define UMA_COLOR_TEXT_BEGIN 0xB8000 /* color text */ #define UMA_COLOR_TEXT_END 0xBFFFF - /* o The next 128K (the memory range C0000-DFFFF) is reserved for the adapter * BIOS that resides in the ROM on some adapter boards. Most VGA-compatible * video adapters use the first 32 KB of this area for their on-board BIOS. @@ -159,7 +156,6 @@ #define UMA_IDE_HD_BIOS_BEGIN 0xC8000 /* IDE hard disk */ #define UMA_IDE_HD_BIOS_END 0xCBFFF - /* o The last 128K of the upper memory area (E0000-FFFFF) is reserved for * motherboard BIOS (Basic I/O System). The POST (Power-On Self Test) and * bootstrap loader also reside in this space. The memory falls apart in @@ -172,5 +168,4 @@ #define UMA_SYSTEM_BIOS_BEGIN 0xF0000 /* system BIOS */ #define UMA_SYSTEM_BIOS_END 0xFFFFF - diff --git a/include/minix/cdrom.h b/include/minix/cdrom.h index 2cbe5b26c..350868861 100755 --- a/include/minix/cdrom.h +++ b/include/minix/cdrom.h @@ -14,14 +14,12 @@ struct cd_play_mss u8_t end_mss[3]; }; - struct cd_play_track { u8_t begin_track; u8_t end_track; }; - struct cd_disk_info { u8_t first_track; @@ -30,7 +28,6 @@ struct cd_disk_info u8_t first_track_mss[3]; }; - struct cd_toc_entry { u8_t control_address; diff --git a/include/minix/com.h b/include/minix/com.h index ffaebb2f3..ccc8a8613 100755 --- a/include/minix/com.h +++ b/include/minix/com.h @@ -9,7 +9,6 @@ #define NONE 0x6ace /* used to indicate 'no process at all' */ #define SELF 0x8ace /* used to indicate 'own process' */ - /*===========================================================================* * Process numbers of processes in the system image * *===========================================================================*/ @@ -44,7 +43,6 @@ /* Number of processes contained in the system image. */ #define NR_BOOT_PROCS (NR_TASKS + INIT_PROC_NR + 1) - /*===========================================================================* * Kernel notification types * *===========================================================================*/ @@ -70,7 +68,6 @@ #define NOTIFY_TIMESTAMP m2_l2 #define NOTIFY_FLAGS m2_i1 - /*===========================================================================* * Messages for BLOCK and CHARACTER device drivers * *===========================================================================*/ @@ -127,7 +124,6 @@ #define TAPE_STAT0 m2_l1 #define TAPE_STAT1 m2_l2 - /*===========================================================================* * Messages for networking layer * *===========================================================================*/ @@ -177,7 +173,6 @@ # define DL_MULTI_REQ 0x4 # define DL_BROAD_REQ 0x8 - /*===========================================================================* * SYSTASK request types and field names * *===========================================================================*/ @@ -233,7 +228,6 @@ #define MEM_TOT_SIZE m4_l3 /* total memory size */ #define MEM_CHUNK_TAG m4_l4 /* tag to identify chunk of mem */ - /* Field names for SYS_DEVIO, SYS_VDEVIO, SYS_SDEVIO. */ #define DIO_REQUEST m2_i3 /* device in or output */ # define DIO_INPUT 0 /* input */ @@ -379,7 +373,6 @@ #define SEL_ERRORFDS m8_p3 #define SEL_TIMEOUT m8_p4 - /*===========================================================================* * Messages for system management server * *===========================================================================*/ @@ -398,7 +391,6 @@ # define SRV_PRIV_ADDR m1_p3 /* privileges string */ # define SRV_PRIV_LEN m1_i3 /* length of privileges */ - /*===========================================================================* * Miscellaneous messages used by TTY * *===========================================================================*/ @@ -417,5 +409,4 @@ # define DIAG_BUF_COUNT m1_i1 # define DIAG_PROC_NR m1_i2 - #endif /* _MINIX_COM_H */ diff --git a/include/minix/config.h b/include/minix/config.h index d9c3caf93..a6cfcbdd8 100755 --- a/include/minix/config.h +++ b/include/minix/config.h @@ -5,7 +5,6 @@ #define OS_RELEASE "3" #define OS_VERSION "0.7" - /* This file sets configuration parameters for the MINIX kernel, FS, and PM. * It is divided up into two main sections. The first section contains * user-settable parameters. In the second section, various internal system @@ -86,7 +85,6 @@ #define NR_RS_LINES 4 /* # rs232 terminals (0 to 4) */ #define NR_PTYS 32 /* # pseudo terminals (0 to 64) */ - /*===========================================================================* * There are no user-settable parameters after this line * *===========================================================================*/ diff --git a/include/minix/const.h b/include/minix/const.h index 52c67e272..ef901a093 100755 --- a/include/minix/const.h +++ b/include/minix/const.h @@ -92,7 +92,6 @@ #define hclick_to_physb(n) ((phys_bytes) (n) << HCLICK_SHIFT) #define physb_to_hclick(n) ((n) >> HCLICK_SHIFT) - #define ABS -999 /* this process means absolute memory */ /* Flag bits for i_mode in the inode. */ diff --git a/include/minix/dmap.h b/include/minix/dmap.h index 05f967f22..520797856 100644 --- a/include/minix/dmap.h +++ b/include/minix/dmap.h @@ -25,7 +25,6 @@ extern struct dmap { int dmap_flags; } dmap[]; - /*===========================================================================* * Major and minor device numbers * *===========================================================================*/ @@ -57,5 +56,4 @@ extern struct dmap { #define LOG_MAJOR 15 /* major device for log driver */ # define IS_KLOG_DEV 0 /* minor device for /dev/klog */ - #endif /* _DMAP_H */ diff --git a/include/minix/ipc.h b/include/minix/ipc.h index 2510ced55..d73acde2d 100644 --- a/include/minix/ipc.h +++ b/include/minix/ipc.h @@ -80,7 +80,6 @@ typedef struct { #define m8_p3 m_u.m_m8.m8p3 #define m8_p4 m_u.m_m8.m8p4 - /*==========================================================================* * Minix run-time system (IPC). * *==========================================================================*/ @@ -102,5 +101,4 @@ _PROTOTYPE( int send, (int dest, message *m_ptr) ); _PROTOTYPE( int nb_receive, (int src, message *m_ptr) ); _PROTOTYPE( int nb_send, (int dest, message *m_ptr) ); - #endif /* _IPC_H */ diff --git a/include/minix/sound.h b/include/minix/sound.h index 3f5835e98..c9d82e153 100755 --- a/include/minix/sound.h +++ b/include/minix/sound.h @@ -6,7 +6,6 @@ #ifndef SOUND_H #define SOUND_H - /* ------- Mixer stuff ------- */ /* Available devices */ diff --git a/include/minix/syslib.h b/include/minix/syslib.h index 5e469679c..8e21763f7 100755 --- a/include/minix/syslib.h +++ b/include/minix/syslib.h @@ -146,6 +146,5 @@ _PROTOTYPE(int sys_out, (int port, unsigned long value, int type) ); #define sys_inl(p,v) sys_in((p), (unsigned long*) (v), DIO_LONG) _PROTOTYPE(int sys_in, (int port, unsigned long *value, int type) ); - #endif /* _SYSLIB_H */ diff --git a/include/minix/sysutil.h b/include/minix/sysutil.h index f755a3b5b..145b1c6d8 100644 --- a/include/minix/sysutil.h +++ b/include/minix/sysutil.h @@ -16,7 +16,6 @@ * Mar 31, 2004: setup like other libraries, such as syslib */ - /*==========================================================================* * Miscellaneous helper functions. *==========================================================================*/ diff --git a/include/minix/type.h b/include/minix/type.h index 96be7ac57..5f6128983 100755 --- a/include/minix/type.h +++ b/include/minix/type.h @@ -59,7 +59,6 @@ typedef struct { vir_bytes iov_size; /* sizeof an I/O buffer */ } iovec_t; - /* PM passes the address of a structure of this type to KERNEL when * sys_sendsig() is invoked as part of the signal catching mechanism. * The structure contain all the information that KERNEL needs to build diff --git a/include/net/gen/nameser.h b/include/net/gen/nameser.h index d7b61b37b..54ec561de 100755 --- a/include/net/gen/nameser.h +++ b/include/net/gen/nameser.h @@ -50,7 +50,6 @@ typedef struct dns_hdr #define DHF_UNUSED 0x30 #define DHF_RCODE 0x0F - /* Define constants based on rfc883 */ diff --git a/include/net/hton.h b/include/net/hton.h index 0ae1bcb1c..6b83030b0 100755 --- a/include/net/hton.h +++ b/include/net/hton.h @@ -28,7 +28,6 @@ extern u32_t _tmp_l; #define BIG_ENDIAN 1 #endif - #if (LITTLE_ENDIAN) && (BIG_ENDIAN) #include "both LITTLE_ENDIAN and BIG_ENDIAN are defined" /* LITTLE_ENDIAN and BIG_ENDIAN are both defined */ diff --git a/include/pwd.h b/include/pwd.h index ee343b0ef..244c694b7 100755 --- a/include/pwd.h +++ b/include/pwd.h @@ -19,7 +19,6 @@ struct passwd { char *pw_gecos; /* just in case you have a GE 645 around */ }; - /* Function Prototypes. */ _PROTOTYPE( struct passwd *getpwnam, (const char *_name) ); _PROTOTYPE( struct passwd *getpwuid, (_mnx_Uid_t _uid) ); diff --git a/include/signal.h b/include/signal.h index 405320b16..f813ffb43 100755 --- a/include/signal.h +++ b/include/signal.h @@ -64,7 +64,6 @@ typedef unsigned long sigset_t; #define SIGTTIN 21 /* background process wants to read */ #define SIGTTOU 22 /* background process wants to write */ - /* The sighandler_t type is not allowed unless _POSIX_SOURCE is defined. */ typedef void _PROTOTYPE( (*__sighandler_t), (int) ); diff --git a/include/stdarg.h b/include/stdarg.h index b37f57b1e..2dcc74517 100755 --- a/include/stdarg.h +++ b/include/stdarg.h @@ -21,7 +21,6 @@ #ifndef _STDARG_H #define _STDARG_H - #ifdef __GNUC__ /* The GNU C-compiler uses its own, but similar varargs mechanism. */ @@ -73,7 +72,6 @@ void va_end (va_list); /* Defined in libgcc.a */ #else /* not __GNUC__ */ - typedef char *va_list; #define __vasz(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1)) @@ -84,7 +82,6 @@ typedef char *va_list; - __vasz(type)))) #define va_end(ap) - #endif /* __GNUC__ */ #endif /* _STDARG_H */ diff --git a/include/sys/resource.h b/include/sys/resource.h index b9bd59905..6dc5bd869 100755 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -1,4 +1,3 @@ - #ifndef _SYS_RESOURCE_H #define _SYS_RESOURCE_H diff --git a/include/sys/select.h b/include/sys/select.h index 5091afc01..f101da5df 100755 --- a/include/sys/select.h +++ b/include/sys/select.h @@ -1,4 +1,3 @@ - #ifndef _SYS_SELECT_H #define _SYS_SELECT_H 1 diff --git a/include/termios.h b/include/termios.h index c5baf3c03..cf8ba069d 100755 --- a/include/termios.h +++ b/include/termios.h @@ -116,7 +116,6 @@ struct termios { #define TCIOFF 3 /* transmit a STOP character on the line */ #define TCION 4 /* transmit a START character on the line */ - /* Function Prototypes. */ #ifndef _ANSI_H #include diff --git a/include/timers.h b/include/timers.h index a6ffb77a2..aa1b49607 100644 --- a/include/timers.h +++ b/include/timers.h @@ -15,7 +15,6 @@ #ifndef _TIMERS_H #define _TIMERS_H - #include #include @@ -40,7 +39,6 @@ typedef struct timer #undef TMR_NEVER #define TMR_NEVER ((clock_t) LONG_MAX) - /* These definitions can be used to set or get data from a timer variable. */ #define tmr_arg(tp) (&(tp)->tmr_arg) #define tmr_exp_time(tp) (&(tp)->tmr_exp_time) @@ -61,7 +59,5 @@ _PROTOTYPE( void tmrs_exptimers, (timer_t **tmrs, clock_t now, clock_t *new_head _PROTOTYPE( clock_t tmrs_settimer, (timer_t **tmrs, timer_t *tp, clock_t exp_time, tmr_func_t watchdog, clock_t *new_head) ); - #endif /* _TIMERS_H */ - diff --git a/include/tools.h b/include/tools.h index 497f5bd40..e1a81060d 100755 --- a/include/tools.h +++ b/include/tools.h @@ -121,4 +121,3 @@ _PROTOTYPE( void relocate, (void)); _PROTOTYPE( int writesectors, (int _off, int _seg, off_t _adr, int _ct)); #endif - diff --git a/include/utmp.h b/include/utmp.h index d0f1446a7..2e24d9483 100755 --- a/include/utmp.h +++ b/include/utmp.h @@ -7,7 +7,6 @@ #define BTMP "/usr/adm/btmp" /* the bad-login history file */ #define UTMP "/etc/utmp" /* the user accouting file */ - struct utmp { char ut_user[8]; /* user name */ char ut_id[4]; /* /etc/inittab ID */ @@ -20,7 +19,6 @@ struct utmp { #define ut_name ut_user /* for compatibility with other systems */ - /* Definitions for ut_type. */ #define RUN_LVL 1 /* this is a RUN_LEVEL record */ #define BOOT_TIME 2 /* this is a REBOOT record */ diff --git a/kernel/clock.c b/kernel/clock.c index e5624d2ec..52b1fdfd8 100755 --- a/kernel/clock.c +++ b/kernel/clock.c @@ -39,7 +39,6 @@ FORWARD _PROTOTYPE( void init_clock, (void) ); FORWARD _PROTOTYPE( int clock_handler, (irq_hook_t *hook) ); FORWARD _PROTOTYPE( int do_clocktick, (message *m_ptr) ); - /* Clock parameters. */ #if (CHIP == INTEL) #define COUNTER_FREQ (2*TIMER_FREQ) /* counter frequency using square wave */ @@ -70,7 +69,6 @@ PRIVATE clock_t next_timeout; /* realtime that next timer expires */ PRIVATE clock_t realtime; /* real time clock */ PRIVATE irq_hook_t clock_hook; /* interrupt handler hook */ - /*===========================================================================* * clock_task * *===========================================================================*/ @@ -101,7 +99,6 @@ PUBLIC void clock_task() } } - /*===========================================================================* * do_clocktick * *===========================================================================*/ @@ -134,7 +131,6 @@ message *m_ptr; /* pointer to request message */ return(EDONTREPLY); } - /*===========================================================================* * clock_handler * *===========================================================================*/ @@ -199,7 +195,6 @@ irq_hook_t *hook; return(1); /* reenable interrupts */ } - /*===========================================================================* * get_uptime * *===========================================================================*/ @@ -209,7 +204,6 @@ PUBLIC clock_t get_uptime() return(realtime); } - /*===========================================================================* * set_timer * *===========================================================================*/ @@ -225,7 +219,6 @@ tmr_func_t watchdog; /* watchdog to be called */ next_timeout = clock_timers->tmr_exp_time; } - /*===========================================================================* * reset_timer * *===========================================================================*/ @@ -241,7 +234,6 @@ struct timer *tp; /* pointer to timer structure */ TMR_NEVER : clock_timers->tmr_exp_time; } - #if (CHIP == INTEL) /*===========================================================================* @@ -260,7 +252,6 @@ PRIVATE void init_clock() enable_irq(&clock_hook); /* ready for clock interrupts */ } - /*===========================================================================* * clock_stop * *===========================================================================*/ @@ -272,7 +263,6 @@ PUBLIC void clock_stop() outb(TIMER0, 0); } - /*===========================================================================* * read_clock * *===========================================================================*/ @@ -294,5 +284,3 @@ PUBLIC unsigned long read_clock() #endif /* (CHIP == INTEL) */ - - diff --git a/kernel/config.h b/kernel/config.h index 88d69a3a1..e50eac077 100644 --- a/kernel/config.h +++ b/kernel/config.h @@ -43,7 +43,6 @@ #define USE_PHYSVCOPY 1 /* vector with physical copy requests */ #define USE_MEMSET 1 /* write char to a given memory area */ - /* Length of program names stored in the process table. This is only used * for the debugging dumps that can be generated with the IS server. The PM * server keeps its own copy of the program name. @@ -61,7 +60,6 @@ */ #define RANDOM_ELEMENTS 32 - /* This section contains defines for valuable system resources that are used * by device drivers. The number of elements of the vectors is determined by * the maximum needed by any given driver. The number of interrupt hooks may @@ -71,11 +69,9 @@ #define VDEVIO_BUF_SIZE 64 /* max elements per VDEVIO request */ #define VCOPY_VEC_SIZE 16 /* max elements per VCOPY request */ - /* How many bytes for the kernel stack. Space allocated in mpx.s. */ #define K_STACK_BYTES 1024 - /* This section allows to enable kernel debugging and timing functionality. * For normal operation all options should be disabled. */ diff --git a/kernel/const.h b/kernel/const.h index a9b551d86..77385f36c 100755 --- a/kernel/const.h +++ b/kernel/const.h @@ -47,7 +47,6 @@ ( MAP_CHUNK(map.chunk,bit) &= ~(1 << CHUNK_OFFSET(bit) ) #define NR_SYS_CHUNKS BITMAP_CHUNKS(NR_SYS_PROCS) - #if (CHIP == INTEL) /* Program stack words and masks. */ @@ -71,7 +70,6 @@ */ #define NR_MEMS 8 - #endif /* (CHIP == INTEL) */ #if (CHIP == M68000) diff --git a/kernel/debug.c b/kernel/debug.c index d4b485859..d3af33324 100644 --- a/kernel/debug.c +++ b/kernel/debug.c @@ -102,7 +102,6 @@ void timer_end(int cat) #endif /* DEBUG_TIME_LOCKS */ - #if DEBUG_SCHED_CHECK /* only include code if enabled */ #define PROCLIMIT 10000 diff --git a/kernel/debug.h b/kernel/debug.h index 5b80995ef..51e084dbf 100644 --- a/kernel/debug.h +++ b/kernel/debug.h @@ -40,7 +40,6 @@ _PROTOTYPE( void timer_end, (int cat) ); #define locktimeend(c) #endif /* DEBUG_TIME_LOCKS */ - /* The locking checks counts relocking situation, which are dangerous because * the inner lock may unlock the outer one. */ @@ -50,7 +49,6 @@ _PROTOTYPE( void timer_end, (int cat) ); #define lockcheck #endif /* DEBUG_LOCK_CHECK */ - /* This check makes sure that the scheduling queues are in a consistent state. * The check is run when the queues are updated with ready() and unready(). */ @@ -58,7 +56,6 @@ _PROTOTYPE( void timer_end, (int cat) ); _PROTOTYPE( void check_runqueues, (char *when) ); #endif /* DEBUG_SCHED_CHECK */ - /* The timing and checking of kernel locking requires a redefine of the lock() * and unlock() macros. That's done here. This redefine requires that this * header is included after the other kernel headers. @@ -70,5 +67,4 @@ _PROTOTYPE( void check_runqueues, (char *when) ); # define unlock(c) do { locktimeend(c); intr_enable(); } while(0) #endif - #endif /* DEBUG_H */ diff --git a/kernel/glo.h b/kernel/glo.h index 71fcf0ebb..7e5d76813 100755 --- a/kernel/glo.h +++ b/kernel/glo.h @@ -32,7 +32,6 @@ EXTERN struct proc *bill_ptr; /* process to bill for clock ticks */ EXTERN char k_reenter; /* kernel reentry count (entry count less 1) */ EXTERN unsigned lost_ticks; /* clock ticks counted outside clock task */ - #if (CHIP == INTEL) /* Interrupt related variables. */ diff --git a/kernel/i8259.c b/kernel/i8259.c index f6ea9d8d1..5854c6b0d 100755 --- a/kernel/i8259.c +++ b/kernel/i8259.c @@ -34,7 +34,6 @@ PRIVATE vecaddr_t irq_vec[] = { #define set_vec(nr, addr) ((void)0) #endif - /*==========================================================================* * intr_init * *==========================================================================*/ @@ -146,7 +145,6 @@ irq_hook_t *hook; /* When the handler is not found, normally return here. */ } - /*==========================================================================* * intr_handle * *==========================================================================*/ diff --git a/kernel/ipc.h b/kernel/ipc.h index ca53339ab..8a22f073c 100644 --- a/kernel/ipc.h +++ b/kernel/ipc.h @@ -26,5 +26,4 @@ #define CHECK_DST 0x05 /* 0 1 0 1 : validate message destination */ #define CHECK_SRC 0x02 /* 0 0 1 0 : validate message source */ - #endif /* IPC_H */ diff --git a/kernel/main.c b/kernel/main.c index 7f8f1d13f..5d471695e 100755 --- a/kernel/main.c +++ b/kernel/main.c @@ -25,7 +25,6 @@ FORWARD _PROTOTYPE( void announce, (void)); FORWARD _PROTOTYPE( void shutdown, (timer_t *tp)); - /*===========================================================================* * main * *===========================================================================*/ @@ -164,8 +163,6 @@ PUBLIC void main() restart(); } - - /*==========================================================================* * announce * *==========================================================================*/ @@ -182,7 +179,6 @@ PRIVATE void announce(void) #endif } - /*==========================================================================* * prepare_shutdown * *==========================================================================*/ @@ -230,7 +226,6 @@ int how; #endif } - /*==========================================================================* * shutdown * *==========================================================================*/ diff --git a/kernel/proc.c b/kernel/proc.c index 59225177d..ad78e26f6 100755 --- a/kernel/proc.c +++ b/kernel/proc.c @@ -41,7 +41,6 @@ #include "kernel.h" #include "proc.h" - /* Scheduling and message passing functions. The functions are available to * other parts of the kernel through lock_...(). The lock temporarily disables * interrupts to prevent race conditions. @@ -83,7 +82,6 @@ FORWARD _PROTOTYPE( void pick_proc, (void) ); */ #endif /* (CHIP == M68000) */ - /*===========================================================================* * sys_call * *===========================================================================*/ @@ -194,7 +192,6 @@ message *m_ptr; /* pointer to message in the caller's space */ return(result); } - /*===========================================================================* * mini_send * *===========================================================================*/ @@ -323,7 +320,6 @@ unsigned flags; /* system call flags */ } } - /*===========================================================================* * mini_notify * *===========================================================================*/ @@ -363,7 +359,6 @@ int dst; /* which process to notify */ return(OK); } - /*==========================================================================* * lock_notify * *==========================================================================*/ @@ -393,7 +388,6 @@ int dst; /* who is to be notified */ return(result); } - /*===========================================================================* * enqueue * *===========================================================================*/ @@ -489,7 +483,6 @@ register struct proc *rp; /* this process is no longer runnable */ #endif } - /*===========================================================================* * sched * *===========================================================================*/ @@ -531,7 +524,6 @@ int *front; /* return: front or back */ *front = time_left; } - /*===========================================================================* * pick_proc * *===========================================================================*/ @@ -558,7 +550,6 @@ PRIVATE void pick_proc() } } - /*==========================================================================* * lock_send * *==========================================================================*/ @@ -574,7 +565,6 @@ message *m_ptr; /* pointer to message buffer */ return(result); } - /*==========================================================================* * lock_enqueue * *==========================================================================*/ @@ -599,4 +589,3 @@ struct proc *rp; /* this process is no longer runnable */ unlock(4); } - diff --git a/kernel/proc.h b/kernel/proc.h index 5350779f9..8cc8cc714 100755 --- a/kernel/proc.h +++ b/kernel/proc.h @@ -99,7 +99,6 @@ struct proc { #define isuserp(p) isusern((p)->p_nr) #define isusern(n) ((n) >= 0) - /* The process table and pointers to process table slots. The pointers allow * faster access because now a process entry can be found by indexing the * pproc_addr array, while accessing an element i requires a multiplication diff --git a/kernel/protect.c b/kernel/protect.c index a7f7ca15b..05abc87a0 100755 --- a/kernel/protect.c +++ b/kernel/protect.c @@ -272,7 +272,6 @@ U16_t seg; return base; } - /*=========================================================================* * phys2seg * *=========================================================================*/ @@ -335,7 +334,6 @@ struct proc *pp; pp->p_reg.psw |= 0x3000; } - /*==========================================================================* * alloc_segments * *==========================================================================*/ @@ -380,4 +378,3 @@ register struct proc *rp; } } - diff --git a/kernel/proto.h b/kernel/proto.h index b940b5def..34f005ff0 100755 --- a/kernel/proto.h +++ b/kernel/proto.h @@ -142,7 +142,6 @@ _PROTOTYPE( void phys2seg, (u16_t *seg, vir_bytes *off, phys_bytes phys)); _PROTOTYPE( void enable_iop, (struct proc *pp) ); _PROTOTYPE( void alloc_segments, (struct proc *rp) ); - #endif /* (CHIP == INTEL) */ #if (CHIP == M68000) diff --git a/kernel/start.c b/kernel/start.c index db733bd12..fb6f6ff99 100755 --- a/kernel/start.c +++ b/kernel/start.c @@ -92,7 +92,6 @@ U16_t parmoff, parmsize; /* boot parameters offset and length */ */ } - /*==========================================================================* * get_value * *==========================================================================*/ diff --git a/kernel/system.c b/kernel/system.c index a2f237bbb..a22ed4638 100755 --- a/kernel/system.c +++ b/kernel/system.c @@ -53,7 +53,6 @@ PUBLIC int (*call_vec[NR_SYS_CALLS])(message *m_ptr); FORWARD _PROTOTYPE( void initialize, (void)); - /*===========================================================================* * sys_task * *===========================================================================*/ @@ -101,7 +100,6 @@ PUBLIC void sys_task() } } - /*===========================================================================* * initialize * *===========================================================================*/ @@ -172,7 +170,6 @@ PRIVATE void initialize(void) map(SYS_GETINFO, do_getinfo); /* request system information */ } - /*===========================================================================* * get_priv * *===========================================================================*/ @@ -200,7 +197,6 @@ int proc_type; /* system or user process flag */ return(OK); } - /*===========================================================================* * get_randomness * *===========================================================================*/ @@ -233,7 +229,6 @@ int source; krandom.bin[source].r_next = (r_next + 1 ) % RANDOM_ELEMENTS; } - /*===========================================================================* * send_sig * *===========================================================================*/ @@ -252,7 +247,6 @@ int sig_nr; /* signal to be sent, 1 to _NSIG */ lock_notify(SYSTEM, proc_nr); } - /*===========================================================================* * cause_sig * *===========================================================================*/ @@ -287,7 +281,6 @@ int sig_nr; /* signal to be sent, 1 to _NSIG */ } } - /*===========================================================================* * umap_bios * *===========================================================================*/ @@ -318,7 +311,6 @@ vir_bytes bytes; /* # of bytes to be copied */ return 0; } - /*===========================================================================* * umap_local * *===========================================================================*/ @@ -377,7 +369,6 @@ vir_bytes bytes; /* # of bytes to be copied */ #endif } - /*===========================================================================* * umap_remote * *===========================================================================*/ @@ -457,4 +448,3 @@ vir_bytes bytes; /* # of bytes to copy */ return(OK); } - diff --git a/kernel/system/do_copy.c b/kernel/system/do_copy.c index facf05e4b..5e458978b 100644 --- a/kernel/system/do_copy.c +++ b/kernel/system/do_copy.c @@ -64,4 +64,3 @@ register message *m_ptr; /* pointer to request message */ } #endif /* (USE_VIRCOPY || USE_PHYSCOPY) */ - diff --git a/kernel/system/do_exec.c b/kernel/system/do_exec.c index 14d7707bc..c322e5206 100644 --- a/kernel/system/do_exec.c +++ b/kernel/system/do_exec.c @@ -57,5 +57,3 @@ register message *m_ptr; /* pointer to request message */ } #endif /* USE_EXEC */ - - diff --git a/kernel/system/do_exit.c b/kernel/system/do_exit.c index 1d15e1c8d..c76ecfa9a 100644 --- a/kernel/system/do_exit.c +++ b/kernel/system/do_exit.c @@ -40,7 +40,6 @@ message *m_ptr; /* pointer to request message */ return(EDONTREPLY); } - /*===========================================================================* * clear_proc * *===========================================================================*/ @@ -96,4 +95,3 @@ register struct proc *rc; /* slot of process to clean up */ #endif /* USE_EXIT */ - diff --git a/kernel/system/do_getksig.c b/kernel/system/do_getksig.c index d052e8e63..d20d2f205 100644 --- a/kernel/system/do_getksig.c +++ b/kernel/system/do_getksig.c @@ -43,4 +43,3 @@ message *m_ptr; /* pointer to request message */ } #endif /* USE_GETKSIG */ - diff --git a/kernel/system/do_irqctl.c b/kernel/system/do_irqctl.c index ae349c60c..8282d6306 100644 --- a/kernel/system/do_irqctl.c +++ b/kernel/system/do_irqctl.c @@ -11,7 +11,6 @@ #include "../system.h" - #if USE_IRQCTL FORWARD _PROTOTYPE(int generic_handler, (irq_hook_t *hook)); @@ -48,7 +47,6 @@ register message *m_ptr; /* pointer to request message */ disable_irq(&irq_hooks[irq_hook_id]); break; - /* Control IRQ policies. Set a policy and needed details in the IRQ table. * This policy is used by a generic function to handle hardware interrupts. */ @@ -100,7 +98,6 @@ register message *m_ptr; /* pointer to request message */ return(r); } - /*===========================================================================* * generic_handler * *===========================================================================*/ diff --git a/kernel/system/do_memset.c b/kernel/system/do_memset.c index 0235c2e11..eafaf2898 100644 --- a/kernel/system/do_memset.c +++ b/kernel/system/do_memset.c @@ -27,4 +27,3 @@ register message *m_ptr; #endif /* USE_MEMSET */ - diff --git a/kernel/system/do_newmap.c b/kernel/system/do_newmap.c index 8fc80f778..330c33bc5 100644 --- a/kernel/system/do_newmap.c +++ b/kernel/system/do_newmap.c @@ -48,4 +48,3 @@ message *m_ptr; /* pointer to request message */ } #endif /* USE_NEWMAP */ - diff --git a/kernel/system/do_sdevio.c b/kernel/system/do_sdevio.c index 7ca526ddb..976db7f97 100644 --- a/kernel/system/do_sdevio.c +++ b/kernel/system/do_sdevio.c @@ -60,5 +60,3 @@ register message *m_ptr; /* pointer to request message */ #endif /* USE_SDEVIO */ - - diff --git a/kernel/system/do_segctl.c b/kernel/system/do_segctl.c index 9b29e5f22..b9f6f0017 100644 --- a/kernel/system/do_segctl.c +++ b/kernel/system/do_segctl.c @@ -44,7 +44,6 @@ register message *m_ptr; /* pointer to request message */ } if (index < 0) return(ENOSPC); - if (! machine.protected) { selector = phys / HCLICK_SIZE; offset = phys % HCLICK_SIZE; diff --git a/kernel/system/do_setalarm.c b/kernel/system/do_setalarm.c index 446c25a86..85a456874 100644 --- a/kernel/system/do_setalarm.c +++ b/kernel/system/do_setalarm.c @@ -57,7 +57,6 @@ message *m_ptr; /* pointer to request message */ return(OK); } - /*===========================================================================* * cause_alarm * *===========================================================================*/ diff --git a/kernel/system/do_sigreturn.c b/kernel/system/do_sigreturn.c index b77fb2713..9b8bed414 100644 --- a/kernel/system/do_sigreturn.c +++ b/kernel/system/do_sigreturn.c @@ -69,4 +69,3 @@ message *m_ptr; /* pointer to request message */ } #endif /* USE_SIGRETURN */ - diff --git a/kernel/system/do_unused.c b/kernel/system/do_unused.c index 0dd89f8ba..61bfba040 100644 --- a/kernel/system/do_unused.c +++ b/kernel/system/do_unused.c @@ -14,4 +14,3 @@ message *m; /* pointer to request message */ return(EBADREQUEST); /* illegal message type */ } - diff --git a/kernel/system/do_vdevio.c b/kernel/system/do_vdevio.c index dfc4a6405..f79fbff47 100644 --- a/kernel/system/do_vdevio.c +++ b/kernel/system/do_vdevio.c @@ -19,7 +19,6 @@ PRIVATE pvb_pair_t *pvb = (pvb_pair_t *) vdevio_buf; PRIVATE pvw_pair_t *pvw = (pvw_pair_t *) vdevio_buf; PRIVATE pvl_pair_t *pvl = (pvl_pair_t *) vdevio_buf; - /*===========================================================================* * do_vdevio * *===========================================================================*/ diff --git a/kernel/table.c b/kernel/table.c index 2a9477d0f..71dcc07b6 100755 --- a/kernel/table.c +++ b/kernel/table.c @@ -119,4 +119,3 @@ PUBLIC struct boot_image image[] = { extern int dummy[(NR_BOOT_PROCS==sizeof(image)/sizeof(struct boot_image))?1:-1]; extern int dummy[(BITCHUNK_BITS > NR_BOOT_PROCS - 1) ? 1 : -1]; - diff --git a/kernel/utility.c b/kernel/utility.c index 981fe0eb2..a592c07ee 100755 --- a/kernel/utility.c +++ b/kernel/utility.c @@ -24,7 +24,6 @@ #define END_OF_KMESS -1 FORWARD _PROTOTYPE(void kputc, (int c)); - /*===========================================================================* * panic * *===========================================================================*/ @@ -46,7 +45,6 @@ int nr; prepare_shutdown(RBT_PANIC); } - /*===========================================================================* * kprintf * *===========================================================================*/ @@ -122,7 +120,6 @@ PUBLIC void kprintf(const char *fmt, ...) /* format to be printed */ va_end(argp); /* end variable arguments */ } - /*===========================================================================* * kputc * *===========================================================================*/ @@ -142,4 +139,3 @@ int c; /* character to append */ } } - diff --git a/servers/fs/cache.c b/servers/fs/cache.c index 6ab4f5fc6..c1be05a07 100644 --- a/servers/fs/cache.c +++ b/servers/fs/cache.c @@ -122,7 +122,6 @@ int only_search; /* if NO_READ, don't read, else act normal */ return(bp); /* return the newly acquired block */ } - /*===========================================================================* * put_block * *===========================================================================*/ @@ -183,7 +182,6 @@ int block_type; /* INODE_BLOCK, DIRECTORY_BLOCK, or whatever */ } } - /*===========================================================================* * alloc_zone * *===========================================================================*/ @@ -225,7 +223,6 @@ zone_t z; /* try to allocate new zone near this one */ return(sp->s_firstdatazone - 1 + (zone_t) b); } - /*===========================================================================* * free_zone * *===========================================================================*/ @@ -246,7 +243,6 @@ zone_t numb; /* zone to be returned */ if (bit < sp->s_zsearch) sp->s_zsearch = bit; } - /*===========================================================================* * rw_block * *===========================================================================*/ @@ -286,7 +282,6 @@ int rw_flag; /* READING or WRITING */ bp->b_dirt = CLEAN; } - /*===========================================================================* * invalidate * *===========================================================================*/ @@ -305,7 +300,6 @@ dev_t device; /* device whose blocks are to be purged */ #endif } - /*==========================================================================* * flushall * *==========================================================================*/ @@ -323,7 +317,6 @@ dev_t dev; /* device to flush */ rw_scattered(dev, dirty, ndirty, WRITING); } - /*===========================================================================* * rw_scattered * *===========================================================================*/ @@ -422,7 +415,6 @@ int rw_flag; /* READING or WRITING */ } } - /*===========================================================================* * rm_lru * *===========================================================================*/ diff --git a/servers/fs/cache2.c b/servers/fs/cache2.c index 65387cc8f..6ef2e31da 100644 --- a/servers/fs/cache2.c +++ b/servers/fs/cache2.c @@ -33,7 +33,6 @@ PRIVATE unsigned buf2_idx; /* round-robin reuse index */ #define hash2(block) ((unsigned) ((block) & (MAX_BUF2 - 1))) - /*===========================================================================* * init_cache2 * *===========================================================================*/ @@ -45,7 +44,6 @@ unsigned long size; nr_buf2 = size > MAX_BUF2 ? MAX_BUF2 : (unsigned) size; } - /*===========================================================================* * get_block2 * *===========================================================================*/ @@ -81,7 +79,6 @@ int only_search; /* if NO_READ, do nothing, else act normal */ return(0); } - /*===========================================================================* * put_block2 * *===========================================================================*/ @@ -108,7 +105,6 @@ struct buf *bp; /* buffer to store in the 2nd level cache */ } } - /*===========================================================================* * invalidate2 * *===========================================================================*/ diff --git a/servers/fs/device.c b/servers/fs/device.c index 6c82c74b4..905afdd1a 100644 --- a/servers/fs/device.c +++ b/servers/fs/device.c @@ -52,7 +52,6 @@ int flags; /* mode bits and flags */ return(r); } - /*===========================================================================* * dev_close * *===========================================================================*/ @@ -99,7 +98,6 @@ PUBLIC void dev_status(message *m) } } while(get_more); - return; } @@ -152,7 +150,6 @@ int flags; /* special flags, like O_NONBLOCK */ return(dev_mess.REP_STATUS); } - /*===========================================================================* * gen_opcl * *===========================================================================*/ @@ -180,7 +177,6 @@ int flags; /* mode bits and flags */ return(dev_mess.REP_STATUS); } - /*===========================================================================* * tty_opcl * *===========================================================================*/ @@ -217,7 +213,6 @@ int flags; /* mode bits and flags */ return(r); } - /*===========================================================================* * ctty_opcl * *===========================================================================*/ @@ -234,7 +229,6 @@ int flags; /* mode bits and flags */ return(fp->fp_tty == 0 ? ENXIO : OK); } - /*===========================================================================* * do_setsid * *===========================================================================*/ @@ -254,7 +248,6 @@ PUBLIC int do_setsid() rfp->fp_tty = 0; } - /*===========================================================================* * do_ioctl * *===========================================================================*/ @@ -298,7 +291,6 @@ PUBLIC int do_ioctl() m_in.REQUEST, f->filp_flags)); } - /*===========================================================================* * gen_io * *===========================================================================*/ @@ -376,7 +368,6 @@ message *mess_ptr; /* pointer to message for task */ } } - /*===========================================================================* * ctty_io * *===========================================================================*/ @@ -402,7 +393,6 @@ message *mess_ptr; /* pointer to message for task */ } } - /*===========================================================================* * no_dev * *===========================================================================*/ @@ -417,7 +407,6 @@ int flags; /* mode bits and flags */ return(ENODEV); } - /*===========================================================================* * clone_opcl * *===========================================================================*/ diff --git a/servers/fs/dmap.c b/servers/fs/dmap.c index 9edacf15d..34f792c16 100644 --- a/servers/fs/dmap.c +++ b/servers/fs/dmap.c @@ -55,7 +55,6 @@ PRIVATE struct dmap init_dmap[] = { #endif /* IBM_PC */ }; - /*===========================================================================* * do_devctl * *===========================================================================*/ @@ -77,7 +76,6 @@ PUBLIC int do_devctl() return(result); } - /*===========================================================================* * map_driver * *===========================================================================*/ @@ -176,5 +174,3 @@ PUBLIC void build_dmap() driver, controller); } - - diff --git a/servers/fs/filedes.c b/servers/fs/filedes.c index 6f4a277b1..87b64a072 100644 --- a/servers/fs/filedes.c +++ b/servers/fs/filedes.c @@ -56,7 +56,6 @@ PUBLIC int get_fd(int start, mode_t bits, int *k, struct filp **fpt) return(ENFILE); } - /*===========================================================================* * get_filp * *===========================================================================*/ @@ -70,7 +69,6 @@ int fild; /* file descriptor */ return(fp->fp_filp[fild]); /* may also be NIL_FILP */ } - /*===========================================================================* * find_filp * *===========================================================================*/ diff --git a/servers/fs/inode.c b/servers/fs/inode.c index cdef41bc2..18f2baa7c 100644 --- a/servers/fs/inode.c +++ b/servers/fs/inode.c @@ -27,7 +27,6 @@ FORWARD _PROTOTYPE( void old_icopy, (struct inode *rip, d1_inode *dip, FORWARD _PROTOTYPE( void new_icopy, (struct inode *rip, d2_inode *dip, int direction, int norm)); - /*===========================================================================* * get_inode * *===========================================================================*/ @@ -71,7 +70,6 @@ int numb; /* inode number (ANSI: may not be unshort) */ return(xp); } - /*===========================================================================* * put_inode * *===========================================================================*/ @@ -175,7 +173,6 @@ register struct inode *rip; /* the inode to be erased */ for (i = 0; i < V2_NR_TZONES; i++) rip->i_zone[i] = NO_ZONE; } - /*===========================================================================* * free_inode * *===========================================================================*/ @@ -222,7 +219,6 @@ register struct inode *rip; /* pointer to inode to be read/written */ rip->i_update = 0; /* they are all up-to-date now */ } - /*===========================================================================* * rw_inode * *===========================================================================*/ @@ -265,7 +261,6 @@ int rw_flag; /* READING or WRITING */ rip->i_dirt = CLEAN; } - /*===========================================================================* * old_icopy * *===========================================================================*/ @@ -312,7 +307,6 @@ int norm; /* TRUE = do not swap bytes; FALSE = swap */ } } - /*===========================================================================* * new_icopy * *===========================================================================*/ @@ -356,7 +350,6 @@ int norm; /* TRUE = do not swap bytes; FALSE = swap */ } } - /*===========================================================================* * dup_inode * *===========================================================================*/ diff --git a/servers/fs/inode.h b/servers/fs/inode.h index 6967c3e77..6217d59fc 100644 --- a/servers/fs/inode.h +++ b/servers/fs/inode.h @@ -33,7 +33,6 @@ EXTERN struct inode { char i_update; /* the ATIME, CTIME, and MTIME bits are here */ } inode[NR_INODES]; - #define NIL_INODE (struct inode *) 0 /* indicates absence of inode slot */ /* Field values. Note that CLEAN and DIRTY are defined in "const.h" */ diff --git a/servers/fs/link.c b/servers/fs/link.c index 195264004..498a8095d 100644 --- a/servers/fs/link.c +++ b/servers/fs/link.c @@ -29,7 +29,6 @@ FORWARD _PROTOTYPE( int remove_dir, (struct inode *rldirp, struct inode *rip, FORWARD _PROTOTYPE( int unlink_file, (struct inode *dirp, struct inode *rip, char file_name[NAME_MAX]) ); - /*===========================================================================* * do_link * *===========================================================================*/ @@ -100,7 +99,6 @@ PUBLIC int do_link() return(r); } - /*===========================================================================* * do_unlink * *===========================================================================*/ @@ -159,7 +157,6 @@ PUBLIC int do_unlink() return(r); } - /*===========================================================================* * do_rename * *===========================================================================*/ @@ -314,7 +311,6 @@ PUBLIC int do_rename() return(r == SAME ? OK : r); } - /*===========================================================================* * truncate * *===========================================================================*/ @@ -374,7 +370,6 @@ register struct inode *rip; /* pointer to inode to be truncated */ /* Leave zone numbers for de(1) to recover file after an unlink(2). */ } - /*===========================================================================* * remove_dir * *===========================================================================*/ @@ -415,7 +410,6 @@ char dir_name[NAME_MAX]; /* name of directory to be removed */ return(OK); } - /*===========================================================================* * unlink_file * *===========================================================================*/ diff --git a/servers/fs/main.c b/servers/fs/main.c index 69676bf9f..82c841db1 100644 --- a/servers/fs/main.c +++ b/servers/fs/main.c @@ -29,8 +29,6 @@ struct super_block; /* proto.h needs to know this */ #include "param.h" #include "super.h" - - FORWARD _PROTOTYPE( void fs_init, (void) ); FORWARD _PROTOTYPE( int igetenv, (char *var, int optional) ); FORWARD _PROTOTYPE( void get_work, (void) ); @@ -95,7 +93,6 @@ PUBLIC void main() } } - /*===========================================================================* * get_work * *===========================================================================*/ @@ -173,7 +170,6 @@ int result; /* result of the call (usually OK or error #) */ if (s != OK) printf("FS: couldn't send reply %d: %d\n", result, s); } - /*===========================================================================* * fs_init * *===========================================================================*/ @@ -207,7 +203,6 @@ PRIVATE void fs_init() mess.m_type = OK; /* tell PM that we succeeded */ s=send(PM_PROC_NR, &mess); /* send synchronization message */ - /* All process table entries have been set. Continue with FS initialization. * Certain relations must hold for the file system to work at all. Some * extra block_size requirements are checked at super-block-read-in time. @@ -228,7 +223,6 @@ PRIVATE void fs_init() load_super(root_dev); /* load super block for root device */ init_select(); /* init select() structures */ - /* The root device can now be accessed; set process directories. */ for (rfp=&fproc[0]; rfp < &fproc[NR_PROCS]; rfp++) { if (rfp->fp_pid != PID_FREE) { @@ -240,7 +234,6 @@ PRIVATE void fs_init() } } - /*===========================================================================* * igetenv * *===========================================================================*/ @@ -353,7 +346,6 @@ PRIVATE void load_ram(void) } } - #if ENABLE_CACHE2 /* The RAM disk is a second level block cache while not otherwise used. */ init_cache2(ram_size); @@ -431,7 +423,6 @@ PRIVATE void load_ram(void) } } - /*===========================================================================* * load_super * *===========================================================================*/ diff --git a/servers/fs/misc.c b/servers/fs/misc.c index 704f66ff0..6ce3a2fca 100644 --- a/servers/fs/misc.c +++ b/servers/fs/misc.c @@ -65,7 +65,6 @@ PUBLIC int do_getsysinfo() } - /*===========================================================================* * do_dup * *===========================================================================*/ @@ -162,7 +161,6 @@ PUBLIC int do_fcntl() } } - /*===========================================================================* * do_sync * *===========================================================================*/ @@ -199,8 +197,6 @@ PUBLIC int do_fsync() return(OK); } - - /*===========================================================================* * do_reboot * *===========================================================================*/ @@ -237,7 +233,6 @@ PUBLIC int do_reboot() return(OK); } - /*===========================================================================* * do_fork * *===========================================================================*/ @@ -275,7 +270,6 @@ PUBLIC int do_fork() return(OK); } - /*===========================================================================* * do_exec * *===========================================================================*/ @@ -305,7 +299,6 @@ PUBLIC int do_exec() return(OK); } - /*===========================================================================* * do_exit * *===========================================================================*/ @@ -379,7 +372,6 @@ PUBLIC int do_exit() return(OK); } - /*===========================================================================* * do_set * *===========================================================================*/ @@ -404,7 +396,6 @@ PUBLIC int do_set() return(OK); } - /*===========================================================================* * do_revive * *===========================================================================*/ diff --git a/servers/fs/mount.c b/servers/fs/mount.c index b7844abbb..77bc2d2be 100644 --- a/servers/fs/mount.c +++ b/servers/fs/mount.c @@ -123,7 +123,6 @@ PUBLIC int do_mount() return(OK); } - /*===========================================================================* * do_umount * *===========================================================================*/ @@ -142,7 +141,6 @@ PUBLIC int do_umount() return(unmount(dev)); } - /*===========================================================================* * unmount * *===========================================================================*/ diff --git a/servers/fs/open.c b/servers/fs/open.c index ac1ccee21..c3eb1fc18 100644 --- a/servers/fs/open.c +++ b/servers/fs/open.c @@ -32,7 +32,6 @@ FORWARD _PROTOTYPE( int pipe_open, (struct inode *rip,mode_t bits,int oflags)); FORWARD _PROTOTYPE( struct inode *new_node, (char *path, mode_t bits, zone_t z0) ); - /*===========================================================================* * do_creat * *===========================================================================*/ @@ -46,7 +45,6 @@ PUBLIC int do_creat() return(r); } - /*===========================================================================* * do_open * *===========================================================================*/ @@ -70,7 +68,6 @@ PUBLIC int do_open() return(r); } - /*===========================================================================* * common_open * *===========================================================================*/ @@ -195,7 +192,6 @@ PRIVATE int common_open(register int oflags, mode_t omode) return(m_in.fd); } - /*===========================================================================* * new_node * *===========================================================================*/ @@ -257,7 +253,6 @@ PRIVATE struct inode *new_node(char *path, mode_t bits, zone_t z0) return(rip); } - /*===========================================================================* * pipe_open * *===========================================================================*/ @@ -285,7 +280,6 @@ PRIVATE int pipe_open(register struct inode *rip, register mode_t bits, return(OK); } - /*===========================================================================* * do_mknod * *===========================================================================*/ @@ -306,7 +300,6 @@ PUBLIC int do_mknod() return(err_code); } - /*===========================================================================* * do_mkdir * *===========================================================================*/ @@ -366,7 +359,6 @@ PUBLIC int do_mkdir() return(err_code); /* new_node() always sets 'err_code' */ } - /*===========================================================================* * do_close * *===========================================================================*/ @@ -441,7 +433,6 @@ PUBLIC int do_close() return(OK); } - /*===========================================================================* * do_lseek * *===========================================================================*/ diff --git a/servers/fs/path.c b/servers/fs/path.c index d9bf4fcea..6290905c3 100644 --- a/servers/fs/path.c +++ b/servers/fs/path.c @@ -49,7 +49,6 @@ char *path; /* the path name to be parsed */ return(rip); } - /*===========================================================================* * last_dir * *===========================================================================*/ @@ -108,7 +107,6 @@ char string[NAME_MAX]; /* the final component is returned here */ } } - /*===========================================================================* * get_name * *===========================================================================*/ @@ -150,7 +148,6 @@ char string[NAME_MAX]; /* component extracted from 'old_name' */ return(rnp); } - /*===========================================================================* * advance * *===========================================================================*/ @@ -232,7 +229,6 @@ char string[NAME_MAX]; /* component name to look for */ return(rip); /* return pointer to inode's component */ } - /*===========================================================================* * search_dir * *===========================================================================*/ @@ -332,7 +328,6 @@ int flag; /* LOOK_UP, ENTER, DELETE or IS_EMPTY */ return(r); } - /* Check for free slot for the benefit of ENTER. */ if (flag == ENTER && dp->d_ino == 0) { e_hit = TRUE; /* we found a free slot */ diff --git a/servers/fs/pipe.c b/servers/fs/pipe.c index d86568ce7..a26a0241a 100644 --- a/servers/fs/pipe.c +++ b/servers/fs/pipe.c @@ -80,7 +80,6 @@ PUBLIC int do_pipe() return(OK); } - /*===========================================================================* * pipe_check * *===========================================================================*/ @@ -164,7 +163,6 @@ int notouch; /* check only */ return(1); } - /*===========================================================================* * suspend * *===========================================================================*/ @@ -191,7 +189,6 @@ int task; /* who is proc waiting for? (PIPE = pipe) */ } } - /*===========================================================================* * release * *===========================================================================*/ @@ -239,7 +236,6 @@ int count; /* max number of processes to release */ } } - /*===========================================================================* * revive * *===========================================================================*/ @@ -282,7 +278,6 @@ int returned; /* if hanging on task, how many bytes read */ } } - /*===========================================================================* * do_unpause * *===========================================================================*/ diff --git a/servers/fs/protect.c b/servers/fs/protect.c index 6c3bdb644..ddca80e89 100644 --- a/servers/fs/protect.c +++ b/servers/fs/protect.c @@ -57,7 +57,6 @@ PUBLIC int do_chmod() return(OK); } - /*===========================================================================* * do_chown * *===========================================================================*/ @@ -97,7 +96,6 @@ PUBLIC int do_chown() return(r); } - /*===========================================================================* * do_umask * *===========================================================================*/ @@ -111,7 +109,6 @@ PUBLIC int do_umask() return(r); /* return complement of old mask */ } - /*===========================================================================* * do_access * *===========================================================================*/ @@ -136,7 +133,6 @@ PUBLIC int do_access() return(r); } - /*===========================================================================* * forbidden * *===========================================================================*/ @@ -198,7 +194,6 @@ PUBLIC int forbidden(register struct inode *rip, mode_t access_desired) return(r); } - /*===========================================================================* * read_only * *===========================================================================*/ diff --git a/servers/fs/read.c b/servers/fs/read.c index 027990458..51e74beeb 100644 --- a/servers/fs/read.c +++ b/servers/fs/read.c @@ -520,7 +520,6 @@ off_t position; /* position in file whose blk wanted */ return(b); } - /*===========================================================================* * rd_indir * *===========================================================================*/ @@ -553,7 +552,6 @@ int index; /* index into *bp */ return(zone); } - /*===========================================================================* * read_ahead * *===========================================================================*/ @@ -573,7 +571,6 @@ PUBLIC void read_ahead() put_block(bp, PARTIAL_DATA_BLOCK); } - /*===========================================================================* * rahead * *===========================================================================*/ diff --git a/servers/fs/select.c b/servers/fs/select.c index aefbf8816..c58d4589f 100644 --- a/servers/fs/select.c +++ b/servers/fs/select.c @@ -229,7 +229,6 @@ PUBLIC int do_select(void) FD_ZERO(&selecttab[s].ready_writefds); FD_ZERO(&selecttab[s].ready_errorfds); - selecttab[s].vir_readfds = (fd_set *) m_in.SEL_READFDS; selecttab[s].vir_writefds = (fd_set *) m_in.SEL_WRITEFDS; selecttab[s].vir_errorfds = (fd_set *) m_in.SEL_ERRORFDS; diff --git a/servers/fs/select.h b/servers/fs/select.h index 6fef6110e..5e2cc8ebe 100644 --- a/servers/fs/select.h +++ b/servers/fs/select.h @@ -1,4 +1,3 @@ - #ifndef _FS_SELECT_H #define _FS_SELECT_H 1 diff --git a/servers/fs/stadir.c b/servers/fs/stadir.c index 25c3e54a1..4d1a6aa92 100644 --- a/servers/fs/stadir.c +++ b/servers/fs/stadir.c @@ -75,7 +75,6 @@ PUBLIC int do_chdir() return(r); } - /*===========================================================================* * do_chroot * *===========================================================================*/ @@ -90,7 +89,6 @@ PUBLIC int do_chroot() return(r); } - /*===========================================================================* * change * *===========================================================================*/ @@ -155,7 +153,6 @@ PUBLIC int do_stat() return(r); } - /*===========================================================================* * do_fstat * *===========================================================================*/ @@ -171,7 +168,6 @@ PUBLIC int do_fstat() return(stat_inode(rfilp->filp_ino, rfilp, m_in.buffer)); } - /*===========================================================================* * stat_inode * *===========================================================================*/ @@ -238,4 +234,3 @@ PUBLIC int do_fstatfs() return(r); } - diff --git a/servers/fs/super.c b/servers/fs/super.c index 05cfe16ba..69c27f27a 100644 --- a/servers/fs/super.c +++ b/servers/fs/super.c @@ -94,7 +94,6 @@ bit_t origin; /* number of bit to start searching at */ return(NO_BIT); /* no bit could be allocated */ } - /*===========================================================================* * free_bit * *===========================================================================*/ @@ -138,7 +137,6 @@ bit_t bit_returned; /* number of bit to insert into the map */ put_block(bp, MAP_BLOCK); } - /*===========================================================================* * get_super * *===========================================================================*/ @@ -183,7 +181,6 @@ PUBLIC int get_block_size(dev_t dev) return MIN_BLOCK_SIZE; } - /*===========================================================================* * mounted * *===========================================================================*/ @@ -204,7 +201,6 @@ register struct inode *rip; /* pointer to inode */ return(FALSE); } - /*===========================================================================* * read_super * *===========================================================================*/ diff --git a/servers/fs/super.h b/servers/fs/super.h index e391f53ce..035c87b38 100644 --- a/servers/fs/super.h +++ b/servers/fs/super.h @@ -18,7 +18,6 @@ * A super_block slot is free if s_dev == NO_DEV. */ - EXTERN struct super_block { ino_t s_ninodes; /* # usable inodes on the minor device */ zone1_t s_nzones; /* total device size, including bit maps etc */ diff --git a/servers/fs/time.c b/servers/fs/time.c index 7d8c3733f..39fa3c546 100644 --- a/servers/fs/time.c +++ b/servers/fs/time.c @@ -13,7 +13,6 @@ #include "inode.h" #include "param.h" - /*===========================================================================* * do_utime * *===========================================================================*/ @@ -55,7 +54,6 @@ PUBLIC int do_utime() return(r); } - /*===========================================================================* * do_stime * *===========================================================================*/ @@ -66,4 +64,3 @@ PUBLIC int do_stime() return(OK); } - diff --git a/servers/fs/utility.c b/servers/fs/utility.c index 50bebb7cd..5eb5af040 100644 --- a/servers/fs/utility.c +++ b/servers/fs/utility.c @@ -38,7 +38,6 @@ PUBLIC time_t clock_time() return( (time_t) (boottime + (uptime/HZ))); } - /*===========================================================================* * fetch_name * *===========================================================================*/ @@ -79,7 +78,6 @@ int flag; /* M3 means path may be in message */ return(r); } - /*===========================================================================* * no_sys * *===========================================================================*/ @@ -89,7 +87,6 @@ PUBLIC int no_sys() return(EINVAL); } - /*===========================================================================* * panic * *===========================================================================*/ @@ -113,7 +110,6 @@ int num; /* number to go with it */ sys_exit(1); } - /*===========================================================================* * conv2 * *===========================================================================*/ @@ -126,7 +122,6 @@ int w; /* promotion of 16-bit word to be swapped */ return( ((w&BYTE) << 8) | ( (w>>8) & BYTE)); } - /*===========================================================================* * conv4 * *===========================================================================*/ diff --git a/servers/fs/write.c b/servers/fs/write.c index 0ad890572..fdba3bd7d 100644 --- a/servers/fs/write.c +++ b/servers/fs/write.c @@ -30,7 +30,6 @@ PUBLIC int do_write() return(read_write(WRITING)); } - /*===========================================================================* * write_map * *===========================================================================*/ @@ -121,7 +120,6 @@ zone_t new_zone; /* zone # to be inserted */ return(OK); } - /*===========================================================================* * wr_indir * *===========================================================================*/ @@ -143,7 +141,6 @@ zone_t zone; /* zone to write */ bp->b_v2_ind[index] = (zone_t) conv4(sp->s_native, (long) zone); } - /*===========================================================================* * clear_zone * *===========================================================================*/ @@ -184,7 +181,6 @@ int flag; /* 0 if called by read_write, 1 by new_block */ } } - /*===========================================================================* * new_block * *===========================================================================*/ @@ -237,7 +233,6 @@ off_t position; /* file pointer */ return(bp); } - /*===========================================================================* * zero_block * *===========================================================================*/ diff --git a/servers/init/init.c b/servers/init/init.c index 61f615b23..7d32818da 100644 --- a/servers/init/init.c +++ b/servers/init/init.c @@ -328,7 +328,6 @@ void startup(int linenr, struct ttyent *ttyp) slotp->errct = 0; } - int execute(char **cmd) { /* Execute a command with a path search along /sbin:/bin:/usr/sbin:/usr/bin. @@ -358,7 +357,6 @@ int execute(char **cmd) return -1; } - void wtmp(type, linenr, line, pid) int type; /* type of entry */ int linenr; /* line number in ttytab */ diff --git a/servers/is/dmp.c b/servers/is/dmp.c index ffe0e66bd..2535979ce 100644 --- a/servers/is/dmp.c +++ b/servers/is/dmp.c @@ -9,7 +9,6 @@ #include "is.h" - /*===========================================================================* * handle_fkey * *===========================================================================*/ diff --git a/servers/is/dmp_fs.c b/servers/is/dmp_fs.c index 12c548020..f9d76935d 100644 --- a/servers/is/dmp_fs.c +++ b/servers/is/dmp_fs.c @@ -13,7 +13,6 @@ #include "../fs/fproc.h" #include - PUBLIC struct fproc fproc[NR_PROCS]; PUBLIC struct dmap dmap[NR_DEVICES]; @@ -49,7 +48,6 @@ PUBLIC void fproc_dmp() prev_i = i; } - /*===========================================================================* * dtab_dmp * *===========================================================================*/ @@ -85,4 +83,3 @@ PUBLIC void dtab_dmp() } } - diff --git a/servers/is/dmp_kernel.c b/servers/is/dmp_kernel.c index 982aedb2f..ee6a1ae79 100644 --- a/servers/is/dmp_kernel.c +++ b/servers/is/dmp_kernel.c @@ -19,7 +19,6 @@ FORWARD _PROTOTYPE( char *s_traps_str, (int flags) ); FORWARD _PROTOTYPE( char *s_flags_str, (int flags) ); FORWARD _PROTOTYPE( char *p_rts_flags_str, (int flags) ); - /* Some global data that is shared among several dumping procedures. * Note that the process table copy has the same name as in the kernel * so that most macros and definitions from proc.h also apply here. @@ -28,8 +27,6 @@ PUBLIC struct proc proc[NR_TASKS + NR_PROCS]; PUBLIC struct priv priv[NR_SYS_PROCS]; PUBLIC struct boot_image image[NR_BOOT_PROCS]; - - /*===========================================================================* * timing_dmp * *===========================================================================*/ @@ -103,7 +100,6 @@ PUBLIC void kmessages_dmp() printf("%s", print_buf); /* print the messages */ } - /*===========================================================================* * monparams_dmp * *===========================================================================*/ @@ -131,7 +127,6 @@ PUBLIC void monparams_dmp() printf("\n%s\n", val); } - /*===========================================================================* * irqtab_dmp * *===========================================================================*/ @@ -181,7 +176,6 @@ PUBLIC void irqtab_dmp() printf("\n"); } - /*===========================================================================* * image_dmp * *===========================================================================*/ @@ -335,7 +329,6 @@ PRIVATE char *s_traps_str(int flags) return str; } - /*===========================================================================* * privileges_dmp * *===========================================================================*/ @@ -437,7 +430,6 @@ PUBLIC void sendmask_dmp() #endif } - PRIVATE char *p_rts_flags_str(int flags) { static char str[10]; @@ -452,7 +444,6 @@ PRIVATE char *p_rts_flags_str(int flags) return str; } - /*===========================================================================* * proctab_dmp * *===========================================================================*/ @@ -550,4 +541,3 @@ int proc_nr; return cproc_addr(proc_nr)->p_name; } - diff --git a/servers/is/dmp_pm.c b/servers/is/dmp_pm.c index a813a4865..596ef7f29 100644 --- a/servers/is/dmp_pm.c +++ b/servers/is/dmp_pm.c @@ -11,7 +11,6 @@ #include "../pm/mproc.h" #include - PUBLIC struct mproc mproc[NR_PROCS]; /*===========================================================================* @@ -65,7 +64,6 @@ PUBLIC void mproc_dmp() prev_i = i; } - /*===========================================================================* * sigaction_dmp * *===========================================================================*/ @@ -99,4 +97,3 @@ PUBLIC void sigaction_dmp() prev_i = i; } - diff --git a/servers/is/glo.h b/servers/is/glo.h index d38d14dc2..e489ef900 100644 --- a/servers/is/glo.h +++ b/servers/is/glo.h @@ -13,5 +13,3 @@ extern int who; /* caller's proc number */ extern int callnr; /* system call number */ extern int dont_reply; /* normally 0; set to 1 to inhibit reply */ - - diff --git a/servers/is/is.c b/servers/is/is.c index e430800ff..b26304498 100644 --- a/servers/is/is.c +++ b/servers/is/is.c @@ -27,7 +27,6 @@ FORWARD _PROTOTYPE(void exit_server, (void) ); FORWARD _PROTOTYPE(void get_work, (void) ); FORWARD _PROTOTYPE(void reply, (int whom, int result) ); - /*===========================================================================* * main * *===========================================================================*/ @@ -71,9 +70,6 @@ PUBLIC void main(int argc, char **argv) } } - - - /*===========================================================================* * init_server * *===========================================================================*/ @@ -123,7 +119,6 @@ PRIVATE void exit_server() exit(0); } - /*===========================================================================* * get_work * *===========================================================================*/ @@ -137,7 +132,6 @@ PRIVATE void get_work() callnr = m_in.m_type; /* set function call number */ } - /*===========================================================================* * reply * *===========================================================================*/ @@ -152,5 +146,3 @@ int result; /* report result to replyee */ panic("IS", "unable to send reply!", send_status); } - - diff --git a/servers/pm/alloc.c b/servers/pm/alloc.c index 1bde455fc..4e09a4af4 100644 --- a/servers/pm/alloc.c +++ b/servers/pm/alloc.c @@ -244,7 +244,6 @@ phys_clicks *free; /* memory size summaries */ #endif } - #if ENABLE_SWAP /*===========================================================================* * swap_on * diff --git a/servers/pm/break.c b/servers/pm/break.c index a337f61e0..83e5e1b8c 100644 --- a/servers/pm/break.c +++ b/servers/pm/break.c @@ -56,7 +56,6 @@ PUBLIC int do_brk() return(r); /* return new address or -1 */ } - /*===========================================================================* * adjust * *===========================================================================*/ @@ -173,5 +172,3 @@ vir_clicks s_vir; /* virtual address for start of stack seg */ } #endif - - diff --git a/servers/pm/const.h b/servers/pm/const.h index d33a53959..7c62a6839 100644 --- a/servers/pm/const.h +++ b/servers/pm/const.h @@ -19,4 +19,3 @@ #define PM_PID 0 /* PM's process id number */ #define INIT_PID 1 /* INIT's process id number */ - diff --git a/servers/pm/exec.c b/servers/pm/exec.c index 335fe35ec..1aa97aff7 100644 --- a/servers/pm/exec.c +++ b/servers/pm/exec.c @@ -184,7 +184,6 @@ PUBLIC int do_exec() return(SUSPEND); /* no reply, new program just runs */ } - /*===========================================================================* * read_header * *===========================================================================*/ @@ -285,7 +284,6 @@ vir_bytes *pc; /* program entry point (initial PC) */ return(m); } - /*===========================================================================* * new_mem * *===========================================================================*/ @@ -385,7 +383,6 @@ phys_bytes tot_bytes; /* total memory to allocate, including gap */ return(OK); } - /*===========================================================================* * patch_ptr * *===========================================================================*/ @@ -418,7 +415,6 @@ vir_bytes base; /* virtual address of stack base inside user */ } } - /*===========================================================================* * insert_arg * *===========================================================================*/ @@ -475,7 +471,6 @@ int replace; return(TRUE); } - /*===========================================================================* * patch_stack * *===========================================================================*/ @@ -522,7 +517,6 @@ char *script; /* name of script to interpret */ return(interp); } - /*===========================================================================* * rw_seg * *===========================================================================*/ @@ -571,7 +565,6 @@ phys_bytes seg_bytes0; /* how much is to be transferred? */ } } - /*===========================================================================* * find_share * *===========================================================================*/ diff --git a/servers/pm/forkexit.c b/servers/pm/forkexit.c index 20acb75b2..72bc9bdcd 100644 --- a/servers/pm/forkexit.c +++ b/servers/pm/forkexit.c @@ -13,7 +13,6 @@ * do_wait: perform the WAITPID or WAIT system call */ - #include "pm.h" #include #include @@ -24,7 +23,6 @@ #define LAST_FEW 2 /* last few slots reserved for superuser */ - FORWARD _PROTOTYPE (void cleanup, (register struct mproc *child) ); /*===========================================================================* @@ -106,7 +104,6 @@ PUBLIC int do_fork() return(new_pid); /* child's pid */ } - /*===========================================================================* * do_pm_exit * *===========================================================================*/ @@ -119,7 +116,6 @@ PUBLIC int do_pm_exit() return(SUSPEND); /* can't communicate from beyond the grave */ } - /*===========================================================================* * pm_exit * *===========================================================================*/ @@ -196,7 +192,6 @@ int exit_status; /* the process' exit status (for parent) */ if (procgrp != 0) check_sig(-procgrp, SIGHUP); } - /*===========================================================================* * do_waitpid * *===========================================================================*/ @@ -259,7 +254,6 @@ PUBLIC int do_waitpid() } } - /*===========================================================================* * cleanup * *===========================================================================*/ diff --git a/servers/pm/main.c b/servers/pm/main.c index b56f131af..1bb1939d6 100644 --- a/servers/pm/main.c +++ b/servers/pm/main.c @@ -93,7 +93,6 @@ PUBLIC void main() } } - /*===========================================================================* * get_work * *===========================================================================*/ @@ -111,7 +110,6 @@ PRIVATE void get_work() mp = &mproc[who < 0 ? PM_PROC_NR : who]; } - /*===========================================================================* * setreply * *===========================================================================*/ @@ -132,7 +130,6 @@ int result; /* result of call (usually OK or error #) */ swap_inqueue(rmp); /* must swap this process back in */ } - /*===========================================================================* * pm_init * *===========================================================================*/ diff --git a/servers/pm/misc.c b/servers/pm/misc.c index aa34e031d..044e3582c 100644 --- a/servers/pm/misc.c +++ b/servers/pm/misc.c @@ -20,7 +20,6 @@ #include "mproc.h" #include "param.h" - /*===========================================================================* * do_allocmem * *===========================================================================*/ @@ -86,7 +85,6 @@ PUBLIC int do_getsysinfo() return(OK); } - /*===========================================================================* * do_getprocnr * *===========================================================================*/ @@ -125,7 +123,6 @@ PUBLIC int do_getprocnr() return(OK); } - /*=====================================================================* * do_reboot * *=====================================================================*/ diff --git a/servers/pm/time.c b/servers/pm/time.c index 6e0bfcffd..30f4aeedb 100644 --- a/servers/pm/time.c +++ b/servers/pm/time.c @@ -15,7 +15,6 @@ PRIVATE time_t boottime; - /*===========================================================================* * do_time * *===========================================================================*/ @@ -37,7 +36,6 @@ PUBLIC int do_time() return(OK); } - /*===========================================================================* * do_stime * *===========================================================================*/ @@ -63,7 +61,6 @@ PUBLIC int do_stime() return(OK); } - /*===========================================================================* * do_times * *===========================================================================*/ diff --git a/servers/pm/timers.c b/servers/pm/timers.c index 85d3ae5ec..4d3dfa7b6 100644 --- a/servers/pm/timers.c +++ b/servers/pm/timers.c @@ -21,7 +21,6 @@ PRIVATE timer_t *pm_timers = NULL; - /*===========================================================================* * pm_set_timer * *===========================================================================*/ @@ -46,7 +45,6 @@ PUBLIC void pm_set_timer(timer_t *tp, int ticks, tmr_func_t watchdog, int arg) return; } - /*===========================================================================* * pm_expire_timers * *===========================================================================*/ @@ -62,7 +60,6 @@ PUBLIC void pm_expire_timers(clock_t now) } } - /*===========================================================================* * pm_cancel_timer * *===========================================================================*/ diff --git a/servers/pm/utility.c b/servers/pm/utility.c index 13492cfc4..c736c06d0 100644 --- a/servers/pm/utility.c +++ b/servers/pm/utility.c @@ -51,7 +51,6 @@ PUBLIC pid_t get_free_pid() return(next_pid); } - /*===========================================================================* * allowed * *===========================================================================*/ @@ -91,7 +90,6 @@ int mask; /* R_BIT, W_BIT, or X_BIT */ return(fd); } - /*===========================================================================* * no_sys * *===========================================================================*/ @@ -102,7 +100,6 @@ PUBLIC int no_sys() return(ENOSYS); } - /*===========================================================================* * panic * *===========================================================================*/ @@ -122,7 +119,6 @@ int num; /* number to go with it */ sys_abort(RBT_PANIC); } - /*===========================================================================* * tell_fs * *===========================================================================*/ @@ -148,7 +144,6 @@ int what, p1, p2, p3; _taskcall(FS_PROC_NR, what, &m); } - /*==========================================================================* * find_param * *==========================================================================*/ @@ -169,7 +164,6 @@ const char *name; return(NULL); } - /*===========================================================================* * get_mem_map * *===========================================================================*/ diff --git a/servers/sm/manager.c b/servers/sm/manager.c index 9cdf607d3..7f5b9f48d 100644 --- a/servers/sm/manager.c +++ b/servers/sm/manager.c @@ -99,7 +99,6 @@ PUBLIC int do_start(message *m_ptr) return(OK); } - /*===========================================================================* * do_stop * *===========================================================================*/ @@ -140,4 +139,3 @@ PUBLIC int do_exit(message *m_ptr) return(OK); } - diff --git a/servers/sm/proto.h b/servers/sm/proto.h index 522078241..bee7deeb2 100644 --- a/servers/sm/proto.h +++ b/servers/sm/proto.h @@ -8,4 +8,3 @@ _PROTOTYPE( int do_exit, (message *m)); _PROTOTYPE( int do_start, (message *m)); _PROTOTYPE( int do_stop, (message *m)); - diff --git a/servers/sm/service.c b/servers/sm/service.c index 4916d28d5..17a9048ee 100644 --- a/servers/sm/service.c +++ b/servers/sm/service.c @@ -11,7 +11,6 @@ #include #include - /* This array defines all known requests. */ PRIVATE char *known_requests[] = { "up", @@ -69,7 +68,6 @@ PRIVATE void panic(char *app_name, char *mess, int num) exit(EGENERIC); } - /* Parse and verify correctness of arguments. Report problem and exit if an * error is found. Store needed parameters in global variables. */ @@ -141,7 +139,6 @@ PRIVATE int parse_arguments(int argc, char **argv) return(i); } - /* Main program. */ PUBLIC int main(int argc, char **argv) diff --git a/servers/sm/sm.c b/servers/sm/sm.c index a00484c83..09f64ff7b 100644 --- a/servers/sm/sm.c +++ b/servers/sm/sm.c @@ -82,7 +82,6 @@ PUBLIC void main(void) } } - /*===========================================================================* * init_server * *===========================================================================*/ @@ -102,7 +101,6 @@ PRIVATE void init_server(void) if (sigaction(SIGHUP, &sa, NULL)<0) panic("SM","sigaction failed", errno); } - /*===========================================================================* * get_work * *===========================================================================*/ @@ -116,7 +114,6 @@ PRIVATE void get_work() callnr = m_in.m_type; /* set function call number */ } - /*===========================================================================* * reply * *===========================================================================*/ @@ -131,5 +128,3 @@ int result; /* report result to replyee */ panic("SM", "unable to send reply!", send_status); } - -