Al's double-blank-line removal request

This commit is contained in:
Ben Gras 2005-08-22 15:23:47 +00:00
parent e2e90b1fdc
commit d11b2e4b8c
104 changed files with 0 additions and 329 deletions

View file

@ -19,7 +19,6 @@
#include <ansi.h> #include <ansi.h>
#endif #endif
#ifdef NDEBUG #ifdef NDEBUG
/* Debugging disabled -- do not evaluate assertions. */ /* Debugging disabled -- do not evaluate assertions. */
#define assert(expr) ((void) 0) #define assert(expr) ((void) 0)

View file

@ -112,5 +112,4 @@ extern int errno; /* place where the error numbers go */
#define EBADREQUEST (_SIGN 107) /* destination cannot handle request */ #define EBADREQUEST (_SIGN 107) /* destination cannot handle request */
#define EDONTREPLY (_SIGN 201) /* pseudo-code: don't send a reply */ #define EDONTREPLY (_SIGN 201) /* pseudo-code: don't send a reply */
#endif /* _ERRNO_H */ #endif /* _ERRNO_H */

View file

@ -59,7 +59,6 @@ struct flock {
pid_t l_pid; /* process id of the locks' owner */ pid_t l_pid; /* process id of the locks' owner */
}; };
/* Function Prototypes. */ /* Function Prototypes. */
_PROTOTYPE( int creat, (const char *_path, _mnx_Mode_t _mode) ); _PROTOTYPE( int creat, (const char *_path, _mnx_Mode_t _mode) );
_PROTOTYPE( int fcntl, (int _filedes, int _cmd, ...) ); _PROTOTYPE( int fcntl, (int _filedes, int _cmd, ...) );

View file

@ -10,7 +10,6 @@
#ifndef _BIOS_H #ifndef _BIOS_H
#define _BIOS_H #define _BIOS_H
/* PART I -- /* PART I --
* The BIOS interrupt vector table (IVT) area (1024 B as of address 0x0000). * The BIOS interrupt vector table (IVT) area (1024 B as of address 0x0000).
* Although this area holds 256 interrupt vectors (with jump addresses), some * 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_ADDR 0x0118 /* disk 1 parameters */
#define BIOS_HD1_PARAMS_SIZE 4L #define BIOS_HD1_PARAMS_SIZE 4L
/* PART I -- /* PART I --
* Addresses in the BIOS data area (256 B as of address 0x0400). The addresses * 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 * 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_ADDR 0x49A /* current video mode */
#define VDU_VIDEO_MODE_SIZE 1L #define VDU_VIDEO_MODE_SIZE 1L
/* PART III -- /* PART III --
* The motherboard BIOS memory contains some known values that are currently * The motherboard BIOS memory contains some known values that are currently
* in use. Other sections in the upper memory area (UMA) addresses vary in * 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 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 */ #define PC_AT_MACHINE 0xFC /* PC/AT, PC/XT286, PS/2 models 50/60 */
#endif /* _BIOS_H */ #endif /* _BIOS_H */

View file

@ -70,7 +70,6 @@ Dallas DS12887, compatible with the Motorola MC146818
*/ */
#define RTC_REG_C 0xC #define RTC_REG_C 0xC
/* Contents of the general purpose CMOS RAM (source IBM reference manual) */ /* Contents of the general purpose CMOS RAM (source IBM reference manual) */
#define CMOS_STATUS 0xE #define CMOS_STATUS 0xE
#define CS_LOST_POWER 0x80 /* Chip lost power */ #define CS_LOST_POWER 0x80 /* Chip lost power */

View file

@ -1,4 +1,3 @@
#ifndef _IBM_CPU_H #ifndef _IBM_CPU_H
#define _IBM_CPU_H 1 #define _IBM_CPU_H 1

View file

@ -14,7 +14,6 @@
/* Magic numbers for interrupt controller. */ /* Magic numbers for interrupt controller. */
#define END_OF_INT 0x20 /* code used to re-enable after an interrupt */ #define END_OF_INT 0x20 /* code used to re-enable after an interrupt */
/* Interrupt vectors defined/reserved by processor. */ /* Interrupt vectors defined/reserved by processor. */
#define DIVIDE_VECTOR 0 /* divide error */ #define DIVIDE_VECTOR 0 /* divide error */
#define DEBUG_VECTOR 1 /* single step (trace) */ #define DEBUG_VECTOR 1 /* single step (trace) */
@ -50,7 +49,6 @@
#define AT_WINI_0_IRQ 14 /* at winchester controller 0 */ #define AT_WINI_0_IRQ 14 /* at winchester controller 0 */
#define AT_WINI_1_IRQ 15 /* at winchester controller 1 */ #define AT_WINI_1_IRQ 15 /* at winchester controller 1 */
/* Interrupt number to hardware vector. */ /* Interrupt number to hardware vector. */
#define BIOS_VECTOR(irq) \ #define BIOS_VECTOR(irq) \
(((irq) < 8 ? BIOS_IRQ0_VEC : BIOS_IRQ8_VEC) + ((irq) & 0x07)) (((irq) < 8 ? BIOS_IRQ0_VEC : BIOS_IRQ8_VEC) + ((irq) & 0x07))

View file

@ -6,7 +6,6 @@
* Created: March 2005, Jorrit N. Herder * Created: March 2005, Jorrit N. Herder
*/ */
/* I/O-mapped peripherals. I/O addresses are different from memory addresses /* 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 * 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. * 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_BEGIN 0x00400 /* BIOS data area */
#define BIOS_DATA_END 0x004FF #define BIOS_DATA_END 0x004FF
/* The base memory is followed by 384 KB reserved memory located at the top of /* 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 * 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, * 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_BEGIN 0xB8000 /* color text */
#define UMA_COLOR_TEXT_END 0xBFFFF #define UMA_COLOR_TEXT_END 0xBFFFF
/* o The next 128K (the memory range C0000-DFFFF) is reserved for the adapter /* 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 * 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. * 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_BEGIN 0xC8000 /* IDE hard disk */
#define UMA_IDE_HD_BIOS_END 0xCBFFF #define UMA_IDE_HD_BIOS_END 0xCBFFF
/* o The last 128K of the upper memory area (E0000-FFFFF) is reserved for /* 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 * 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 * bootstrap loader also reside in this space. The memory falls apart in
@ -173,4 +169,3 @@
#define UMA_SYSTEM_BIOS_END 0xFFFFF #define UMA_SYSTEM_BIOS_END 0xFFFFF

View file

@ -14,14 +14,12 @@ struct cd_play_mss
u8_t end_mss[3]; u8_t end_mss[3];
}; };
struct cd_play_track struct cd_play_track
{ {
u8_t begin_track; u8_t begin_track;
u8_t end_track; u8_t end_track;
}; };
struct cd_disk_info struct cd_disk_info
{ {
u8_t first_track; u8_t first_track;
@ -30,7 +28,6 @@ struct cd_disk_info
u8_t first_track_mss[3]; u8_t first_track_mss[3];
}; };
struct cd_toc_entry struct cd_toc_entry
{ {
u8_t control_address; u8_t control_address;

View file

@ -9,7 +9,6 @@
#define NONE 0x6ace /* used to indicate 'no process at all' */ #define NONE 0x6ace /* used to indicate 'no process at all' */
#define SELF 0x8ace /* used to indicate 'own process' */ #define SELF 0x8ace /* used to indicate 'own process' */
/*===========================================================================* /*===========================================================================*
* Process numbers of processes in the system image * * Process numbers of processes in the system image *
*===========================================================================*/ *===========================================================================*/
@ -44,7 +43,6 @@
/* Number of processes contained in the system image. */ /* Number of processes contained in the system image. */
#define NR_BOOT_PROCS (NR_TASKS + INIT_PROC_NR + 1) #define NR_BOOT_PROCS (NR_TASKS + INIT_PROC_NR + 1)
/*===========================================================================* /*===========================================================================*
* Kernel notification types * * Kernel notification types *
*===========================================================================*/ *===========================================================================*/
@ -70,7 +68,6 @@
#define NOTIFY_TIMESTAMP m2_l2 #define NOTIFY_TIMESTAMP m2_l2
#define NOTIFY_FLAGS m2_i1 #define NOTIFY_FLAGS m2_i1
/*===========================================================================* /*===========================================================================*
* Messages for BLOCK and CHARACTER device drivers * * Messages for BLOCK and CHARACTER device drivers *
*===========================================================================*/ *===========================================================================*/
@ -127,7 +124,6 @@
#define TAPE_STAT0 m2_l1 #define TAPE_STAT0 m2_l1
#define TAPE_STAT1 m2_l2 #define TAPE_STAT1 m2_l2
/*===========================================================================* /*===========================================================================*
* Messages for networking layer * * Messages for networking layer *
*===========================================================================*/ *===========================================================================*/
@ -177,7 +173,6 @@
# define DL_MULTI_REQ 0x4 # define DL_MULTI_REQ 0x4
# define DL_BROAD_REQ 0x8 # define DL_BROAD_REQ 0x8
/*===========================================================================* /*===========================================================================*
* SYSTASK request types and field names * * SYSTASK request types and field names *
*===========================================================================*/ *===========================================================================*/
@ -233,7 +228,6 @@
#define MEM_TOT_SIZE m4_l3 /* total memory size */ #define MEM_TOT_SIZE m4_l3 /* total memory size */
#define MEM_CHUNK_TAG m4_l4 /* tag to identify chunk of mem */ #define MEM_CHUNK_TAG m4_l4 /* tag to identify chunk of mem */
/* Field names for SYS_DEVIO, SYS_VDEVIO, SYS_SDEVIO. */ /* Field names for SYS_DEVIO, SYS_VDEVIO, SYS_SDEVIO. */
#define DIO_REQUEST m2_i3 /* device in or output */ #define DIO_REQUEST m2_i3 /* device in or output */
# define DIO_INPUT 0 /* input */ # define DIO_INPUT 0 /* input */
@ -379,7 +373,6 @@
#define SEL_ERRORFDS m8_p3 #define SEL_ERRORFDS m8_p3
#define SEL_TIMEOUT m8_p4 #define SEL_TIMEOUT m8_p4
/*===========================================================================* /*===========================================================================*
* Messages for system management server * * Messages for system management server *
*===========================================================================*/ *===========================================================================*/
@ -398,7 +391,6 @@
# define SRV_PRIV_ADDR m1_p3 /* privileges string */ # define SRV_PRIV_ADDR m1_p3 /* privileges string */
# define SRV_PRIV_LEN m1_i3 /* length of privileges */ # define SRV_PRIV_LEN m1_i3 /* length of privileges */
/*===========================================================================* /*===========================================================================*
* Miscellaneous messages used by TTY * * Miscellaneous messages used by TTY *
*===========================================================================*/ *===========================================================================*/
@ -417,5 +409,4 @@
# define DIAG_BUF_COUNT m1_i1 # define DIAG_BUF_COUNT m1_i1
# define DIAG_PROC_NR m1_i2 # define DIAG_PROC_NR m1_i2
#endif /* _MINIX_COM_H */ #endif /* _MINIX_COM_H */

View file

@ -5,7 +5,6 @@
#define OS_RELEASE "3" #define OS_RELEASE "3"
#define OS_VERSION "0.7" #define OS_VERSION "0.7"
/* This file sets configuration parameters for the MINIX kernel, FS, and PM. /* This file sets configuration parameters for the MINIX kernel, FS, and PM.
* It is divided up into two main sections. The first section contains * It is divided up into two main sections. The first section contains
* user-settable parameters. In the second section, various internal system * 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_RS_LINES 4 /* # rs232 terminals (0 to 4) */
#define NR_PTYS 32 /* # pseudo terminals (0 to 64) */ #define NR_PTYS 32 /* # pseudo terminals (0 to 64) */
/*===========================================================================* /*===========================================================================*
* There are no user-settable parameters after this line * * There are no user-settable parameters after this line *
*===========================================================================*/ *===========================================================================*/

View file

@ -92,7 +92,6 @@
#define hclick_to_physb(n) ((phys_bytes) (n) << HCLICK_SHIFT) #define hclick_to_physb(n) ((phys_bytes) (n) << HCLICK_SHIFT)
#define physb_to_hclick(n) ((n) >> HCLICK_SHIFT) #define physb_to_hclick(n) ((n) >> HCLICK_SHIFT)
#define ABS -999 /* this process means absolute memory */ #define ABS -999 /* this process means absolute memory */
/* Flag bits for i_mode in the inode. */ /* Flag bits for i_mode in the inode. */

View file

@ -25,7 +25,6 @@ extern struct dmap {
int dmap_flags; int dmap_flags;
} dmap[]; } dmap[];
/*===========================================================================* /*===========================================================================*
* Major and minor device numbers * * Major and minor device numbers *
*===========================================================================*/ *===========================================================================*/
@ -57,5 +56,4 @@ extern struct dmap {
#define LOG_MAJOR 15 /* major device for log driver */ #define LOG_MAJOR 15 /* major device for log driver */
# define IS_KLOG_DEV 0 /* minor device for /dev/klog */ # define IS_KLOG_DEV 0 /* minor device for /dev/klog */
#endif /* _DMAP_H */ #endif /* _DMAP_H */

View file

@ -80,7 +80,6 @@ typedef struct {
#define m8_p3 m_u.m_m8.m8p3 #define m8_p3 m_u.m_m8.m8p3
#define m8_p4 m_u.m_m8.m8p4 #define m8_p4 m_u.m_m8.m8p4
/*==========================================================================* /*==========================================================================*
* Minix run-time system (IPC). * * 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_receive, (int src, message *m_ptr) );
_PROTOTYPE( int nb_send, (int dest, message *m_ptr) ); _PROTOTYPE( int nb_send, (int dest, message *m_ptr) );
#endif /* _IPC_H */ #endif /* _IPC_H */

View file

@ -6,7 +6,6 @@
#ifndef SOUND_H #ifndef SOUND_H
#define SOUND_H #define SOUND_H
/* ------- Mixer stuff ------- */ /* ------- Mixer stuff ------- */
/* Available devices */ /* Available devices */

View file

@ -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) #define sys_inl(p,v) sys_in((p), (unsigned long*) (v), DIO_LONG)
_PROTOTYPE(int sys_in, (int port, unsigned long *value, int type) ); _PROTOTYPE(int sys_in, (int port, unsigned long *value, int type) );
#endif /* _SYSLIB_H */ #endif /* _SYSLIB_H */

View file

@ -16,7 +16,6 @@
* Mar 31, 2004: setup like other libraries, such as syslib * Mar 31, 2004: setup like other libraries, such as syslib
*/ */
/*==========================================================================* /*==========================================================================*
* Miscellaneous helper functions. * Miscellaneous helper functions.
*==========================================================================*/ *==========================================================================*/

View file

@ -59,7 +59,6 @@ typedef struct {
vir_bytes iov_size; /* sizeof an I/O buffer */ vir_bytes iov_size; /* sizeof an I/O buffer */
} iovec_t; } iovec_t;
/* PM passes the address of a structure of this type to KERNEL when /* PM passes the address of a structure of this type to KERNEL when
* sys_sendsig() is invoked as part of the signal catching mechanism. * sys_sendsig() is invoked as part of the signal catching mechanism.
* The structure contain all the information that KERNEL needs to build * The structure contain all the information that KERNEL needs to build

View file

@ -50,7 +50,6 @@ typedef struct dns_hdr
#define DHF_UNUSED 0x30 #define DHF_UNUSED 0x30
#define DHF_RCODE 0x0F #define DHF_RCODE 0x0F
/* /*
Define constants based on rfc883 Define constants based on rfc883
*/ */

View file

@ -28,7 +28,6 @@ extern u32_t _tmp_l;
#define BIG_ENDIAN 1 #define BIG_ENDIAN 1
#endif #endif
#if (LITTLE_ENDIAN) && (BIG_ENDIAN) #if (LITTLE_ENDIAN) && (BIG_ENDIAN)
#include "both LITTLE_ENDIAN and BIG_ENDIAN are defined" #include "both LITTLE_ENDIAN and BIG_ENDIAN are defined"
/* LITTLE_ENDIAN and BIG_ENDIAN are both defined */ /* LITTLE_ENDIAN and BIG_ENDIAN are both defined */

View file

@ -19,7 +19,6 @@ struct passwd {
char *pw_gecos; /* just in case you have a GE 645 around */ char *pw_gecos; /* just in case you have a GE 645 around */
}; };
/* Function Prototypes. */ /* Function Prototypes. */
_PROTOTYPE( struct passwd *getpwnam, (const char *_name) ); _PROTOTYPE( struct passwd *getpwnam, (const char *_name) );
_PROTOTYPE( struct passwd *getpwuid, (_mnx_Uid_t _uid) ); _PROTOTYPE( struct passwd *getpwuid, (_mnx_Uid_t _uid) );

View file

@ -64,7 +64,6 @@ typedef unsigned long sigset_t;
#define SIGTTIN 21 /* background process wants to read */ #define SIGTTIN 21 /* background process wants to read */
#define SIGTTOU 22 /* background process wants to write */ #define SIGTTOU 22 /* background process wants to write */
/* The sighandler_t type is not allowed unless _POSIX_SOURCE is defined. */ /* The sighandler_t type is not allowed unless _POSIX_SOURCE is defined. */
typedef void _PROTOTYPE( (*__sighandler_t), (int) ); typedef void _PROTOTYPE( (*__sighandler_t), (int) );

View file

@ -21,7 +21,6 @@
#ifndef _STDARG_H #ifndef _STDARG_H
#define _STDARG_H #define _STDARG_H
#ifdef __GNUC__ #ifdef __GNUC__
/* The GNU C-compiler uses its own, but similar varargs mechanism. */ /* 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__ */ #else /* not __GNUC__ */
typedef char *va_list; typedef char *va_list;
#define __vasz(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1)) #define __vasz(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int) -1))
@ -84,7 +82,6 @@ typedef char *va_list;
- __vasz(type)))) - __vasz(type))))
#define va_end(ap) #define va_end(ap)
#endif /* __GNUC__ */ #endif /* __GNUC__ */
#endif /* _STDARG_H */ #endif /* _STDARG_H */

View file

@ -1,4 +1,3 @@
#ifndef _SYS_RESOURCE_H #ifndef _SYS_RESOURCE_H
#define _SYS_RESOURCE_H #define _SYS_RESOURCE_H

View file

@ -1,4 +1,3 @@
#ifndef _SYS_SELECT_H #ifndef _SYS_SELECT_H
#define _SYS_SELECT_H 1 #define _SYS_SELECT_H 1

View file

@ -116,7 +116,6 @@ struct termios {
#define TCIOFF 3 /* transmit a STOP character on the line */ #define TCIOFF 3 /* transmit a STOP character on the line */
#define TCION 4 /* transmit a START character on the line */ #define TCION 4 /* transmit a START character on the line */
/* Function Prototypes. */ /* Function Prototypes. */
#ifndef _ANSI_H #ifndef _ANSI_H
#include <ansi.h> #include <ansi.h>

View file

@ -15,7 +15,6 @@
#ifndef _TIMERS_H #ifndef _TIMERS_H
#define _TIMERS_H #define _TIMERS_H
#include <limits.h> #include <limits.h>
#include <sys/types.h> #include <sys/types.h>
@ -40,7 +39,6 @@ typedef struct timer
#undef TMR_NEVER #undef TMR_NEVER
#define TMR_NEVER ((clock_t) LONG_MAX) #define TMR_NEVER ((clock_t) LONG_MAX)
/* These definitions can be used to set or get data from a timer variable. */ /* These definitions can be used to set or get data from a timer variable. */
#define tmr_arg(tp) (&(tp)->tmr_arg) #define tmr_arg(tp) (&(tp)->tmr_arg)
#define tmr_exp_time(tp) (&(tp)->tmr_exp_time) #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, _PROTOTYPE( clock_t tmrs_settimer, (timer_t **tmrs, timer_t *tp,
clock_t exp_time, tmr_func_t watchdog, clock_t *new_head) ); clock_t exp_time, tmr_func_t watchdog, clock_t *new_head) );
#endif /* _TIMERS_H */ #endif /* _TIMERS_H */

View file

@ -121,4 +121,3 @@ _PROTOTYPE( void relocate, (void));
_PROTOTYPE( int writesectors, (int _off, int _seg, off_t _adr, int _ct)); _PROTOTYPE( int writesectors, (int _off, int _seg, off_t _adr, int _ct));
#endif #endif

View file

@ -7,7 +7,6 @@
#define BTMP "/usr/adm/btmp" /* the bad-login history file */ #define BTMP "/usr/adm/btmp" /* the bad-login history file */
#define UTMP "/etc/utmp" /* the user accouting file */ #define UTMP "/etc/utmp" /* the user accouting file */
struct utmp { struct utmp {
char ut_user[8]; /* user name */ char ut_user[8]; /* user name */
char ut_id[4]; /* /etc/inittab ID */ char ut_id[4]; /* /etc/inittab ID */
@ -20,7 +19,6 @@ struct utmp {
#define ut_name ut_user /* for compatibility with other systems */ #define ut_name ut_user /* for compatibility with other systems */
/* Definitions for ut_type. */ /* Definitions for ut_type. */
#define RUN_LVL 1 /* this is a RUN_LEVEL record */ #define RUN_LVL 1 /* this is a RUN_LEVEL record */
#define BOOT_TIME 2 /* this is a REBOOT record */ #define BOOT_TIME 2 /* this is a REBOOT record */

View file

@ -39,7 +39,6 @@ FORWARD _PROTOTYPE( void init_clock, (void) );
FORWARD _PROTOTYPE( int clock_handler, (irq_hook_t *hook) ); FORWARD _PROTOTYPE( int clock_handler, (irq_hook_t *hook) );
FORWARD _PROTOTYPE( int do_clocktick, (message *m_ptr) ); FORWARD _PROTOTYPE( int do_clocktick, (message *m_ptr) );
/* Clock parameters. */ /* Clock parameters. */
#if (CHIP == INTEL) #if (CHIP == INTEL)
#define COUNTER_FREQ (2*TIMER_FREQ) /* counter frequency using square wave */ #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 clock_t realtime; /* real time clock */
PRIVATE irq_hook_t clock_hook; /* interrupt handler hook */ PRIVATE irq_hook_t clock_hook; /* interrupt handler hook */
/*===========================================================================* /*===========================================================================*
* clock_task * * clock_task *
*===========================================================================*/ *===========================================================================*/
@ -101,7 +99,6 @@ PUBLIC void clock_task()
} }
} }
/*===========================================================================* /*===========================================================================*
* do_clocktick * * do_clocktick *
*===========================================================================*/ *===========================================================================*/
@ -134,7 +131,6 @@ message *m_ptr; /* pointer to request message */
return(EDONTREPLY); return(EDONTREPLY);
} }
/*===========================================================================* /*===========================================================================*
* clock_handler * * clock_handler *
*===========================================================================*/ *===========================================================================*/
@ -199,7 +195,6 @@ irq_hook_t *hook;
return(1); /* reenable interrupts */ return(1); /* reenable interrupts */
} }
/*===========================================================================* /*===========================================================================*
* get_uptime * * get_uptime *
*===========================================================================*/ *===========================================================================*/
@ -209,7 +204,6 @@ PUBLIC clock_t get_uptime()
return(realtime); return(realtime);
} }
/*===========================================================================* /*===========================================================================*
* set_timer * * set_timer *
*===========================================================================*/ *===========================================================================*/
@ -225,7 +219,6 @@ tmr_func_t watchdog; /* watchdog to be called */
next_timeout = clock_timers->tmr_exp_time; next_timeout = clock_timers->tmr_exp_time;
} }
/*===========================================================================* /*===========================================================================*
* reset_timer * * reset_timer *
*===========================================================================*/ *===========================================================================*/
@ -241,7 +234,6 @@ struct timer *tp; /* pointer to timer structure */
TMR_NEVER : clock_timers->tmr_exp_time; TMR_NEVER : clock_timers->tmr_exp_time;
} }
#if (CHIP == INTEL) #if (CHIP == INTEL)
/*===========================================================================* /*===========================================================================*
@ -260,7 +252,6 @@ PRIVATE void init_clock()
enable_irq(&clock_hook); /* ready for clock interrupts */ enable_irq(&clock_hook); /* ready for clock interrupts */
} }
/*===========================================================================* /*===========================================================================*
* clock_stop * * clock_stop *
*===========================================================================*/ *===========================================================================*/
@ -272,7 +263,6 @@ PUBLIC void clock_stop()
outb(TIMER0, 0); outb(TIMER0, 0);
} }
/*===========================================================================* /*===========================================================================*
* read_clock * * read_clock *
*===========================================================================*/ *===========================================================================*/
@ -294,5 +284,3 @@ PUBLIC unsigned long read_clock()
#endif /* (CHIP == INTEL) */ #endif /* (CHIP == INTEL) */

View file

@ -43,7 +43,6 @@
#define USE_PHYSVCOPY 1 /* vector with physical copy requests */ #define USE_PHYSVCOPY 1 /* vector with physical copy requests */
#define USE_MEMSET 1 /* write char to a given memory area */ #define USE_MEMSET 1 /* write char to a given memory area */
/* Length of program names stored in the process table. This is only used /* 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 * for the debugging dumps that can be generated with the IS server. The PM
* server keeps its own copy of the program name. * server keeps its own copy of the program name.
@ -61,7 +60,6 @@
*/ */
#define RANDOM_ELEMENTS 32 #define RANDOM_ELEMENTS 32
/* This section contains defines for valuable system resources that are used /* This section contains defines for valuable system resources that are used
* by device drivers. The number of elements of the vectors is determined by * 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 * 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 VDEVIO_BUF_SIZE 64 /* max elements per VDEVIO request */
#define VCOPY_VEC_SIZE 16 /* max elements per VCOPY request */ #define VCOPY_VEC_SIZE 16 /* max elements per VCOPY request */
/* How many bytes for the kernel stack. Space allocated in mpx.s. */ /* How many bytes for the kernel stack. Space allocated in mpx.s. */
#define K_STACK_BYTES 1024 #define K_STACK_BYTES 1024
/* This section allows to enable kernel debugging and timing functionality. /* This section allows to enable kernel debugging and timing functionality.
* For normal operation all options should be disabled. * For normal operation all options should be disabled.
*/ */

View file

@ -47,7 +47,6 @@
( MAP_CHUNK(map.chunk,bit) &= ~(1 << CHUNK_OFFSET(bit) ) ( MAP_CHUNK(map.chunk,bit) &= ~(1 << CHUNK_OFFSET(bit) )
#define NR_SYS_CHUNKS BITMAP_CHUNKS(NR_SYS_PROCS) #define NR_SYS_CHUNKS BITMAP_CHUNKS(NR_SYS_PROCS)
#if (CHIP == INTEL) #if (CHIP == INTEL)
/* Program stack words and masks. */ /* Program stack words and masks. */
@ -71,7 +70,6 @@
*/ */
#define NR_MEMS 8 #define NR_MEMS 8
#endif /* (CHIP == INTEL) */ #endif /* (CHIP == INTEL) */
#if (CHIP == M68000) #if (CHIP == M68000)

View file

@ -102,7 +102,6 @@ void timer_end(int cat)
#endif /* DEBUG_TIME_LOCKS */ #endif /* DEBUG_TIME_LOCKS */
#if DEBUG_SCHED_CHECK /* only include code if enabled */ #if DEBUG_SCHED_CHECK /* only include code if enabled */
#define PROCLIMIT 10000 #define PROCLIMIT 10000

View file

@ -40,7 +40,6 @@ _PROTOTYPE( void timer_end, (int cat) );
#define locktimeend(c) #define locktimeend(c)
#endif /* DEBUG_TIME_LOCKS */ #endif /* DEBUG_TIME_LOCKS */
/* The locking checks counts relocking situation, which are dangerous because /* The locking checks counts relocking situation, which are dangerous because
* the inner lock may unlock the outer one. * the inner lock may unlock the outer one.
*/ */
@ -50,7 +49,6 @@ _PROTOTYPE( void timer_end, (int cat) );
#define lockcheck #define lockcheck
#endif /* DEBUG_LOCK_CHECK */ #endif /* DEBUG_LOCK_CHECK */
/* This check makes sure that the scheduling queues are in a consistent state. /* 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(). * 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) ); _PROTOTYPE( void check_runqueues, (char *when) );
#endif /* DEBUG_SCHED_CHECK */ #endif /* DEBUG_SCHED_CHECK */
/* The timing and checking of kernel locking requires a redefine of the lock() /* 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 * and unlock() macros. That's done here. This redefine requires that this
* header is included after the other kernel headers. * 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) # define unlock(c) do { locktimeend(c); intr_enable(); } while(0)
#endif #endif
#endif /* DEBUG_H */ #endif /* DEBUG_H */

View file

@ -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 char k_reenter; /* kernel reentry count (entry count less 1) */
EXTERN unsigned lost_ticks; /* clock ticks counted outside clock task */ EXTERN unsigned lost_ticks; /* clock ticks counted outside clock task */
#if (CHIP == INTEL) #if (CHIP == INTEL)
/* Interrupt related variables. */ /* Interrupt related variables. */

View file

@ -34,7 +34,6 @@ PRIVATE vecaddr_t irq_vec[] = {
#define set_vec(nr, addr) ((void)0) #define set_vec(nr, addr) ((void)0)
#endif #endif
/*==========================================================================* /*==========================================================================*
* intr_init * * intr_init *
*==========================================================================*/ *==========================================================================*/
@ -146,7 +145,6 @@ irq_hook_t *hook;
/* When the handler is not found, normally return here. */ /* When the handler is not found, normally return here. */
} }
/*==========================================================================* /*==========================================================================*
* intr_handle * * intr_handle *
*==========================================================================*/ *==========================================================================*/

View file

@ -26,5 +26,4 @@
#define CHECK_DST 0x05 /* 0 1 0 1 : validate message destination */ #define CHECK_DST 0x05 /* 0 1 0 1 : validate message destination */
#define CHECK_SRC 0x02 /* 0 0 1 0 : validate message source */ #define CHECK_SRC 0x02 /* 0 0 1 0 : validate message source */
#endif /* IPC_H */ #endif /* IPC_H */

View file

@ -25,7 +25,6 @@
FORWARD _PROTOTYPE( void announce, (void)); FORWARD _PROTOTYPE( void announce, (void));
FORWARD _PROTOTYPE( void shutdown, (timer_t *tp)); FORWARD _PROTOTYPE( void shutdown, (timer_t *tp));
/*===========================================================================* /*===========================================================================*
* main * * main *
*===========================================================================*/ *===========================================================================*/
@ -164,8 +163,6 @@ PUBLIC void main()
restart(); restart();
} }
/*==========================================================================* /*==========================================================================*
* announce * * announce *
*==========================================================================*/ *==========================================================================*/
@ -182,7 +179,6 @@ PRIVATE void announce(void)
#endif #endif
} }
/*==========================================================================* /*==========================================================================*
* prepare_shutdown * * prepare_shutdown *
*==========================================================================*/ *==========================================================================*/
@ -230,7 +226,6 @@ int how;
#endif #endif
} }
/*==========================================================================* /*==========================================================================*
* shutdown * * shutdown *
*==========================================================================*/ *==========================================================================*/

View file

@ -41,7 +41,6 @@
#include "kernel.h" #include "kernel.h"
#include "proc.h" #include "proc.h"
/* Scheduling and message passing functions. The functions are available to /* Scheduling and message passing functions. The functions are available to
* other parts of the kernel through lock_...(). The lock temporarily disables * other parts of the kernel through lock_...(). The lock temporarily disables
* interrupts to prevent race conditions. * interrupts to prevent race conditions.
@ -83,7 +82,6 @@ FORWARD _PROTOTYPE( void pick_proc, (void) );
*/ */
#endif /* (CHIP == M68000) */ #endif /* (CHIP == M68000) */
/*===========================================================================* /*===========================================================================*
* sys_call * * sys_call *
*===========================================================================*/ *===========================================================================*/
@ -194,7 +192,6 @@ message *m_ptr; /* pointer to message in the caller's space */
return(result); return(result);
} }
/*===========================================================================* /*===========================================================================*
* mini_send * * mini_send *
*===========================================================================*/ *===========================================================================*/
@ -323,7 +320,6 @@ unsigned flags; /* system call flags */
} }
} }
/*===========================================================================* /*===========================================================================*
* mini_notify * * mini_notify *
*===========================================================================*/ *===========================================================================*/
@ -363,7 +359,6 @@ int dst; /* which process to notify */
return(OK); return(OK);
} }
/*==========================================================================* /*==========================================================================*
* lock_notify * * lock_notify *
*==========================================================================*/ *==========================================================================*/
@ -393,7 +388,6 @@ int dst; /* who is to be notified */
return(result); return(result);
} }
/*===========================================================================* /*===========================================================================*
* enqueue * * enqueue *
*===========================================================================*/ *===========================================================================*/
@ -489,7 +483,6 @@ register struct proc *rp; /* this process is no longer runnable */
#endif #endif
} }
/*===========================================================================* /*===========================================================================*
* sched * * sched *
*===========================================================================*/ *===========================================================================*/
@ -531,7 +524,6 @@ int *front; /* return: front or back */
*front = time_left; *front = time_left;
} }
/*===========================================================================* /*===========================================================================*
* pick_proc * * pick_proc *
*===========================================================================*/ *===========================================================================*/
@ -558,7 +550,6 @@ PRIVATE void pick_proc()
} }
} }
/*==========================================================================* /*==========================================================================*
* lock_send * * lock_send *
*==========================================================================*/ *==========================================================================*/
@ -574,7 +565,6 @@ message *m_ptr; /* pointer to message buffer */
return(result); return(result);
} }
/*==========================================================================* /*==========================================================================*
* lock_enqueue * * lock_enqueue *
*==========================================================================*/ *==========================================================================*/
@ -599,4 +589,3 @@ struct proc *rp; /* this process is no longer runnable */
unlock(4); unlock(4);
} }

View file

@ -99,7 +99,6 @@ struct proc {
#define isuserp(p) isusern((p)->p_nr) #define isuserp(p) isusern((p)->p_nr)
#define isusern(n) ((n) >= 0) #define isusern(n) ((n) >= 0)
/* The process table and pointers to process table slots. The pointers allow /* 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 * faster access because now a process entry can be found by indexing the
* pproc_addr array, while accessing an element i requires a multiplication * pproc_addr array, while accessing an element i requires a multiplication

View file

@ -272,7 +272,6 @@ U16_t seg;
return base; return base;
} }
/*=========================================================================* /*=========================================================================*
* phys2seg * * phys2seg *
*=========================================================================*/ *=========================================================================*/
@ -335,7 +334,6 @@ struct proc *pp;
pp->p_reg.psw |= 0x3000; pp->p_reg.psw |= 0x3000;
} }
/*==========================================================================* /*==========================================================================*
* alloc_segments * * alloc_segments *
*==========================================================================*/ *==========================================================================*/
@ -380,4 +378,3 @@ register struct proc *rp;
} }
} }

View file

@ -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 enable_iop, (struct proc *pp) );
_PROTOTYPE( void alloc_segments, (struct proc *rp) ); _PROTOTYPE( void alloc_segments, (struct proc *rp) );
#endif /* (CHIP == INTEL) */ #endif /* (CHIP == INTEL) */
#if (CHIP == M68000) #if (CHIP == M68000)

View file

@ -92,7 +92,6 @@ U16_t parmoff, parmsize; /* boot parameters offset and length */
*/ */
} }
/*==========================================================================* /*==========================================================================*
* get_value * * get_value *
*==========================================================================*/ *==========================================================================*/

View file

@ -53,7 +53,6 @@ PUBLIC int (*call_vec[NR_SYS_CALLS])(message *m_ptr);
FORWARD _PROTOTYPE( void initialize, (void)); FORWARD _PROTOTYPE( void initialize, (void));
/*===========================================================================* /*===========================================================================*
* sys_task * * sys_task *
*===========================================================================*/ *===========================================================================*/
@ -101,7 +100,6 @@ PUBLIC void sys_task()
} }
} }
/*===========================================================================* /*===========================================================================*
* initialize * * initialize *
*===========================================================================*/ *===========================================================================*/
@ -172,7 +170,6 @@ PRIVATE void initialize(void)
map(SYS_GETINFO, do_getinfo); /* request system information */ map(SYS_GETINFO, do_getinfo); /* request system information */
} }
/*===========================================================================* /*===========================================================================*
* get_priv * * get_priv *
*===========================================================================*/ *===========================================================================*/
@ -200,7 +197,6 @@ int proc_type; /* system or user process flag */
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* get_randomness * * get_randomness *
*===========================================================================*/ *===========================================================================*/
@ -233,7 +229,6 @@ int source;
krandom.bin[source].r_next = (r_next + 1 ) % RANDOM_ELEMENTS; krandom.bin[source].r_next = (r_next + 1 ) % RANDOM_ELEMENTS;
} }
/*===========================================================================* /*===========================================================================*
* send_sig * * send_sig *
*===========================================================================*/ *===========================================================================*/
@ -252,7 +247,6 @@ int sig_nr; /* signal to be sent, 1 to _NSIG */
lock_notify(SYSTEM, proc_nr); lock_notify(SYSTEM, proc_nr);
} }
/*===========================================================================* /*===========================================================================*
* cause_sig * * cause_sig *
*===========================================================================*/ *===========================================================================*/
@ -287,7 +281,6 @@ int sig_nr; /* signal to be sent, 1 to _NSIG */
} }
} }
/*===========================================================================* /*===========================================================================*
* umap_bios * * umap_bios *
*===========================================================================*/ *===========================================================================*/
@ -318,7 +311,6 @@ vir_bytes bytes; /* # of bytes to be copied */
return 0; return 0;
} }
/*===========================================================================* /*===========================================================================*
* umap_local * * umap_local *
*===========================================================================*/ *===========================================================================*/
@ -377,7 +369,6 @@ vir_bytes bytes; /* # of bytes to be copied */
#endif #endif
} }
/*===========================================================================* /*===========================================================================*
* umap_remote * * umap_remote *
*===========================================================================*/ *===========================================================================*/
@ -457,4 +448,3 @@ vir_bytes bytes; /* # of bytes to copy */
return(OK); return(OK);
} }

View file

@ -64,4 +64,3 @@ register message *m_ptr; /* pointer to request message */
} }
#endif /* (USE_VIRCOPY || USE_PHYSCOPY) */ #endif /* (USE_VIRCOPY || USE_PHYSCOPY) */

View file

@ -57,5 +57,3 @@ register message *m_ptr; /* pointer to request message */
} }
#endif /* USE_EXEC */ #endif /* USE_EXEC */

View file

@ -40,7 +40,6 @@ message *m_ptr; /* pointer to request message */
return(EDONTREPLY); return(EDONTREPLY);
} }
/*===========================================================================* /*===========================================================================*
* clear_proc * * clear_proc *
*===========================================================================*/ *===========================================================================*/
@ -96,4 +95,3 @@ register struct proc *rc; /* slot of process to clean up */
#endif /* USE_EXIT */ #endif /* USE_EXIT */

View file

@ -43,4 +43,3 @@ message *m_ptr; /* pointer to request message */
} }
#endif /* USE_GETKSIG */ #endif /* USE_GETKSIG */

View file

@ -11,7 +11,6 @@
#include "../system.h" #include "../system.h"
#if USE_IRQCTL #if USE_IRQCTL
FORWARD _PROTOTYPE(int generic_handler, (irq_hook_t *hook)); 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]); disable_irq(&irq_hooks[irq_hook_id]);
break; break;
/* Control IRQ policies. Set a policy and needed details in the IRQ table. /* 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. * 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); return(r);
} }
/*===========================================================================* /*===========================================================================*
* generic_handler * * generic_handler *
*===========================================================================*/ *===========================================================================*/

View file

@ -27,4 +27,3 @@ register message *m_ptr;
#endif /* USE_MEMSET */ #endif /* USE_MEMSET */

View file

@ -48,4 +48,3 @@ message *m_ptr; /* pointer to request message */
} }
#endif /* USE_NEWMAP */ #endif /* USE_NEWMAP */

View file

@ -60,5 +60,3 @@ register message *m_ptr; /* pointer to request message */
#endif /* USE_SDEVIO */ #endif /* USE_SDEVIO */

View file

@ -44,7 +44,6 @@ register message *m_ptr; /* pointer to request message */
} }
if (index < 0) return(ENOSPC); if (index < 0) return(ENOSPC);
if (! machine.protected) { if (! machine.protected) {
selector = phys / HCLICK_SIZE; selector = phys / HCLICK_SIZE;
offset = phys % HCLICK_SIZE; offset = phys % HCLICK_SIZE;

View file

@ -57,7 +57,6 @@ message *m_ptr; /* pointer to request message */
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* cause_alarm * * cause_alarm *
*===========================================================================*/ *===========================================================================*/

View file

@ -69,4 +69,3 @@ message *m_ptr; /* pointer to request message */
} }
#endif /* USE_SIGRETURN */ #endif /* USE_SIGRETURN */

View file

@ -14,4 +14,3 @@ message *m; /* pointer to request message */
return(EBADREQUEST); /* illegal message type */ return(EBADREQUEST); /* illegal message type */
} }

View file

@ -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 pvw_pair_t *pvw = (pvw_pair_t *) vdevio_buf;
PRIVATE pvl_pair_t *pvl = (pvl_pair_t *) vdevio_buf; PRIVATE pvl_pair_t *pvl = (pvl_pair_t *) vdevio_buf;
/*===========================================================================* /*===========================================================================*
* do_vdevio * * do_vdevio *
*===========================================================================*/ *===========================================================================*/

View file

@ -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[(NR_BOOT_PROCS==sizeof(image)/sizeof(struct boot_image))?1:-1];
extern int dummy[(BITCHUNK_BITS > NR_BOOT_PROCS - 1) ? 1 : -1]; extern int dummy[(BITCHUNK_BITS > NR_BOOT_PROCS - 1) ? 1 : -1];

View file

@ -24,7 +24,6 @@
#define END_OF_KMESS -1 #define END_OF_KMESS -1
FORWARD _PROTOTYPE(void kputc, (int c)); FORWARD _PROTOTYPE(void kputc, (int c));
/*===========================================================================* /*===========================================================================*
* panic * * panic *
*===========================================================================*/ *===========================================================================*/
@ -46,7 +45,6 @@ int nr;
prepare_shutdown(RBT_PANIC); prepare_shutdown(RBT_PANIC);
} }
/*===========================================================================* /*===========================================================================*
* kprintf * * kprintf *
*===========================================================================*/ *===========================================================================*/
@ -122,7 +120,6 @@ PUBLIC void kprintf(const char *fmt, ...) /* format to be printed */
va_end(argp); /* end variable arguments */ va_end(argp); /* end variable arguments */
} }
/*===========================================================================* /*===========================================================================*
* kputc * * kputc *
*===========================================================================*/ *===========================================================================*/
@ -142,4 +139,3 @@ int c; /* character to append */
} }
} }

View file

@ -122,7 +122,6 @@ int only_search; /* if NO_READ, don't read, else act normal */
return(bp); /* return the newly acquired block */ return(bp); /* return the newly acquired block */
} }
/*===========================================================================* /*===========================================================================*
* put_block * * put_block *
*===========================================================================*/ *===========================================================================*/
@ -183,7 +182,6 @@ int block_type; /* INODE_BLOCK, DIRECTORY_BLOCK, or whatever */
} }
} }
/*===========================================================================* /*===========================================================================*
* alloc_zone * * 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); return(sp->s_firstdatazone - 1 + (zone_t) b);
} }
/*===========================================================================* /*===========================================================================*
* free_zone * * free_zone *
*===========================================================================*/ *===========================================================================*/
@ -246,7 +243,6 @@ zone_t numb; /* zone to be returned */
if (bit < sp->s_zsearch) sp->s_zsearch = bit; if (bit < sp->s_zsearch) sp->s_zsearch = bit;
} }
/*===========================================================================* /*===========================================================================*
* rw_block * * rw_block *
*===========================================================================*/ *===========================================================================*/
@ -286,7 +282,6 @@ int rw_flag; /* READING or WRITING */
bp->b_dirt = CLEAN; bp->b_dirt = CLEAN;
} }
/*===========================================================================* /*===========================================================================*
* invalidate * * invalidate *
*===========================================================================*/ *===========================================================================*/
@ -305,7 +300,6 @@ dev_t device; /* device whose blocks are to be purged */
#endif #endif
} }
/*==========================================================================* /*==========================================================================*
* flushall * * flushall *
*==========================================================================*/ *==========================================================================*/
@ -323,7 +317,6 @@ dev_t dev; /* device to flush */
rw_scattered(dev, dirty, ndirty, WRITING); rw_scattered(dev, dirty, ndirty, WRITING);
} }
/*===========================================================================* /*===========================================================================*
* rw_scattered * * rw_scattered *
*===========================================================================*/ *===========================================================================*/
@ -422,7 +415,6 @@ int rw_flag; /* READING or WRITING */
} }
} }
/*===========================================================================* /*===========================================================================*
* rm_lru * * rm_lru *
*===========================================================================*/ *===========================================================================*/

View file

@ -33,7 +33,6 @@ PRIVATE unsigned buf2_idx; /* round-robin reuse index */
#define hash2(block) ((unsigned) ((block) & (MAX_BUF2 - 1))) #define hash2(block) ((unsigned) ((block) & (MAX_BUF2 - 1)))
/*===========================================================================* /*===========================================================================*
* init_cache2 * * init_cache2 *
*===========================================================================*/ *===========================================================================*/
@ -45,7 +44,6 @@ unsigned long size;
nr_buf2 = size > MAX_BUF2 ? MAX_BUF2 : (unsigned) size; nr_buf2 = size > MAX_BUF2 ? MAX_BUF2 : (unsigned) size;
} }
/*===========================================================================* /*===========================================================================*
* get_block2 * * get_block2 *
*===========================================================================*/ *===========================================================================*/
@ -81,7 +79,6 @@ int only_search; /* if NO_READ, do nothing, else act normal */
return(0); return(0);
} }
/*===========================================================================* /*===========================================================================*
* put_block2 * * put_block2 *
*===========================================================================*/ *===========================================================================*/
@ -108,7 +105,6 @@ struct buf *bp; /* buffer to store in the 2nd level cache */
} }
} }
/*===========================================================================* /*===========================================================================*
* invalidate2 * * invalidate2 *
*===========================================================================*/ *===========================================================================*/

View file

@ -52,7 +52,6 @@ int flags; /* mode bits and flags */
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* dev_close * * dev_close *
*===========================================================================*/ *===========================================================================*/
@ -99,7 +98,6 @@ PUBLIC void dev_status(message *m)
} }
} while(get_more); } while(get_more);
return; return;
} }
@ -152,7 +150,6 @@ int flags; /* special flags, like O_NONBLOCK */
return(dev_mess.REP_STATUS); return(dev_mess.REP_STATUS);
} }
/*===========================================================================* /*===========================================================================*
* gen_opcl * * gen_opcl *
*===========================================================================*/ *===========================================================================*/
@ -180,7 +177,6 @@ int flags; /* mode bits and flags */
return(dev_mess.REP_STATUS); return(dev_mess.REP_STATUS);
} }
/*===========================================================================* /*===========================================================================*
* tty_opcl * * tty_opcl *
*===========================================================================*/ *===========================================================================*/
@ -217,7 +213,6 @@ int flags; /* mode bits and flags */
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* ctty_opcl * * ctty_opcl *
*===========================================================================*/ *===========================================================================*/
@ -234,7 +229,6 @@ int flags; /* mode bits and flags */
return(fp->fp_tty == 0 ? ENXIO : OK); return(fp->fp_tty == 0 ? ENXIO : OK);
} }
/*===========================================================================* /*===========================================================================*
* do_setsid * * do_setsid *
*===========================================================================*/ *===========================================================================*/
@ -254,7 +248,6 @@ PUBLIC int do_setsid()
rfp->fp_tty = 0; rfp->fp_tty = 0;
} }
/*===========================================================================* /*===========================================================================*
* do_ioctl * * do_ioctl *
*===========================================================================*/ *===========================================================================*/
@ -298,7 +291,6 @@ PUBLIC int do_ioctl()
m_in.REQUEST, f->filp_flags)); m_in.REQUEST, f->filp_flags));
} }
/*===========================================================================* /*===========================================================================*
* gen_io * * gen_io *
*===========================================================================*/ *===========================================================================*/
@ -376,7 +368,6 @@ message *mess_ptr; /* pointer to message for task */
} }
} }
/*===========================================================================* /*===========================================================================*
* ctty_io * * ctty_io *
*===========================================================================*/ *===========================================================================*/
@ -402,7 +393,6 @@ message *mess_ptr; /* pointer to message for task */
} }
} }
/*===========================================================================* /*===========================================================================*
* no_dev * * no_dev *
*===========================================================================*/ *===========================================================================*/
@ -417,7 +407,6 @@ int flags; /* mode bits and flags */
return(ENODEV); return(ENODEV);
} }
/*===========================================================================* /*===========================================================================*
* clone_opcl * * clone_opcl *
*===========================================================================*/ *===========================================================================*/

View file

@ -55,7 +55,6 @@ PRIVATE struct dmap init_dmap[] = {
#endif /* IBM_PC */ #endif /* IBM_PC */
}; };
/*===========================================================================* /*===========================================================================*
* do_devctl * * do_devctl *
*===========================================================================*/ *===========================================================================*/
@ -77,7 +76,6 @@ PUBLIC int do_devctl()
return(result); return(result);
} }
/*===========================================================================* /*===========================================================================*
* map_driver * * map_driver *
*===========================================================================*/ *===========================================================================*/
@ -176,5 +174,3 @@ PUBLIC void build_dmap()
driver, controller); driver, controller);
} }

View file

@ -56,7 +56,6 @@ PUBLIC int get_fd(int start, mode_t bits, int *k, struct filp **fpt)
return(ENFILE); return(ENFILE);
} }
/*===========================================================================* /*===========================================================================*
* get_filp * * get_filp *
*===========================================================================*/ *===========================================================================*/
@ -70,7 +69,6 @@ int fild; /* file descriptor */
return(fp->fp_filp[fild]); /* may also be NIL_FILP */ return(fp->fp_filp[fild]); /* may also be NIL_FILP */
} }
/*===========================================================================* /*===========================================================================*
* find_filp * * find_filp *
*===========================================================================*/ *===========================================================================*/

View file

@ -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, FORWARD _PROTOTYPE( void new_icopy, (struct inode *rip, d2_inode *dip,
int direction, int norm)); int direction, int norm));
/*===========================================================================* /*===========================================================================*
* get_inode * * get_inode *
*===========================================================================*/ *===========================================================================*/
@ -71,7 +70,6 @@ int numb; /* inode number (ANSI: may not be unshort) */
return(xp); return(xp);
} }
/*===========================================================================* /*===========================================================================*
* put_inode * * 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; for (i = 0; i < V2_NR_TZONES; i++) rip->i_zone[i] = NO_ZONE;
} }
/*===========================================================================* /*===========================================================================*
* free_inode * * 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 */ rip->i_update = 0; /* they are all up-to-date now */
} }
/*===========================================================================* /*===========================================================================*
* rw_inode * * rw_inode *
*===========================================================================*/ *===========================================================================*/
@ -265,7 +261,6 @@ int rw_flag; /* READING or WRITING */
rip->i_dirt = CLEAN; rip->i_dirt = CLEAN;
} }
/*===========================================================================* /*===========================================================================*
* old_icopy * * old_icopy *
*===========================================================================*/ *===========================================================================*/
@ -312,7 +307,6 @@ int norm; /* TRUE = do not swap bytes; FALSE = swap */
} }
} }
/*===========================================================================* /*===========================================================================*
* new_icopy * * new_icopy *
*===========================================================================*/ *===========================================================================*/
@ -356,7 +350,6 @@ int norm; /* TRUE = do not swap bytes; FALSE = swap */
} }
} }
/*===========================================================================* /*===========================================================================*
* dup_inode * * dup_inode *
*===========================================================================*/ *===========================================================================*/

View file

@ -33,7 +33,6 @@ EXTERN struct inode {
char i_update; /* the ATIME, CTIME, and MTIME bits are here */ char i_update; /* the ATIME, CTIME, and MTIME bits are here */
} inode[NR_INODES]; } inode[NR_INODES];
#define NIL_INODE (struct inode *) 0 /* indicates absence of inode slot */ #define NIL_INODE (struct inode *) 0 /* indicates absence of inode slot */
/* Field values. Note that CLEAN and DIRTY are defined in "const.h" */ /* Field values. Note that CLEAN and DIRTY are defined in "const.h" */

View file

@ -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, FORWARD _PROTOTYPE( int unlink_file, (struct inode *dirp, struct inode *rip,
char file_name[NAME_MAX]) ); char file_name[NAME_MAX]) );
/*===========================================================================* /*===========================================================================*
* do_link * * do_link *
*===========================================================================*/ *===========================================================================*/
@ -100,7 +99,6 @@ PUBLIC int do_link()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* do_unlink * * do_unlink *
*===========================================================================*/ *===========================================================================*/
@ -159,7 +157,6 @@ PUBLIC int do_unlink()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* do_rename * * do_rename *
*===========================================================================*/ *===========================================================================*/
@ -314,7 +311,6 @@ PUBLIC int do_rename()
return(r == SAME ? OK : r); return(r == SAME ? OK : r);
} }
/*===========================================================================* /*===========================================================================*
* truncate * * 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). */ /* Leave zone numbers for de(1) to recover file after an unlink(2). */
} }
/*===========================================================================* /*===========================================================================*
* remove_dir * * remove_dir *
*===========================================================================*/ *===========================================================================*/
@ -415,7 +410,6 @@ char dir_name[NAME_MAX]; /* name of directory to be removed */
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* unlink_file * * unlink_file *
*===========================================================================*/ *===========================================================================*/

View file

@ -29,8 +29,6 @@ struct super_block; /* proto.h needs to know this */
#include "param.h" #include "param.h"
#include "super.h" #include "super.h"
FORWARD _PROTOTYPE( void fs_init, (void) ); FORWARD _PROTOTYPE( void fs_init, (void) );
FORWARD _PROTOTYPE( int igetenv, (char *var, int optional) ); FORWARD _PROTOTYPE( int igetenv, (char *var, int optional) );
FORWARD _PROTOTYPE( void get_work, (void) ); FORWARD _PROTOTYPE( void get_work, (void) );
@ -95,7 +93,6 @@ PUBLIC void main()
} }
} }
/*===========================================================================* /*===========================================================================*
* get_work * * 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); if (s != OK) printf("FS: couldn't send reply %d: %d\n", result, s);
} }
/*===========================================================================* /*===========================================================================*
* fs_init * * fs_init *
*===========================================================================*/ *===========================================================================*/
@ -207,7 +203,6 @@ PRIVATE void fs_init()
mess.m_type = OK; /* tell PM that we succeeded */ mess.m_type = OK; /* tell PM that we succeeded */
s=send(PM_PROC_NR, &mess); /* send synchronization message */ s=send(PM_PROC_NR, &mess); /* send synchronization message */
/* All process table entries have been set. Continue with FS initialization. /* All process table entries have been set. Continue with FS initialization.
* Certain relations must hold for the file system to work at all. Some * 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. * 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 */ load_super(root_dev); /* load super block for root device */
init_select(); /* init select() structures */ init_select(); /* init select() structures */
/* The root device can now be accessed; set process directories. */ /* The root device can now be accessed; set process directories. */
for (rfp=&fproc[0]; rfp < &fproc[NR_PROCS]; rfp++) { for (rfp=&fproc[0]; rfp < &fproc[NR_PROCS]; rfp++) {
if (rfp->fp_pid != PID_FREE) { if (rfp->fp_pid != PID_FREE) {
@ -240,7 +234,6 @@ PRIVATE void fs_init()
} }
} }
/*===========================================================================* /*===========================================================================*
* igetenv * * igetenv *
*===========================================================================*/ *===========================================================================*/
@ -353,7 +346,6 @@ PRIVATE void load_ram(void)
} }
} }
#if ENABLE_CACHE2 #if ENABLE_CACHE2
/* The RAM disk is a second level block cache while not otherwise used. */ /* The RAM disk is a second level block cache while not otherwise used. */
init_cache2(ram_size); init_cache2(ram_size);
@ -431,7 +423,6 @@ PRIVATE void load_ram(void)
} }
} }
/*===========================================================================* /*===========================================================================*
* load_super * * load_super *
*===========================================================================*/ *===========================================================================*/

View file

@ -65,7 +65,6 @@ PUBLIC int do_getsysinfo()
} }
/*===========================================================================* /*===========================================================================*
* do_dup * * do_dup *
*===========================================================================*/ *===========================================================================*/
@ -162,7 +161,6 @@ PUBLIC int do_fcntl()
} }
} }
/*===========================================================================* /*===========================================================================*
* do_sync * * do_sync *
*===========================================================================*/ *===========================================================================*/
@ -199,8 +197,6 @@ PUBLIC int do_fsync()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_reboot * * do_reboot *
*===========================================================================*/ *===========================================================================*/
@ -237,7 +233,6 @@ PUBLIC int do_reboot()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_fork * * do_fork *
*===========================================================================*/ *===========================================================================*/
@ -275,7 +270,6 @@ PUBLIC int do_fork()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_exec * * do_exec *
*===========================================================================*/ *===========================================================================*/
@ -305,7 +299,6 @@ PUBLIC int do_exec()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_exit * * do_exit *
*===========================================================================*/ *===========================================================================*/
@ -379,7 +372,6 @@ PUBLIC int do_exit()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_set * * do_set *
*===========================================================================*/ *===========================================================================*/
@ -404,7 +396,6 @@ PUBLIC int do_set()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_revive * * do_revive *
*===========================================================================*/ *===========================================================================*/

View file

@ -123,7 +123,6 @@ PUBLIC int do_mount()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_umount * * do_umount *
*===========================================================================*/ *===========================================================================*/
@ -142,7 +141,6 @@ PUBLIC int do_umount()
return(unmount(dev)); return(unmount(dev));
} }
/*===========================================================================* /*===========================================================================*
* unmount * * unmount *
*===========================================================================*/ *===========================================================================*/

View file

@ -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, FORWARD _PROTOTYPE( struct inode *new_node, (char *path, mode_t bits,
zone_t z0) ); zone_t z0) );
/*===========================================================================* /*===========================================================================*
* do_creat * * do_creat *
*===========================================================================*/ *===========================================================================*/
@ -46,7 +45,6 @@ PUBLIC int do_creat()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* do_open * * do_open *
*===========================================================================*/ *===========================================================================*/
@ -70,7 +68,6 @@ PUBLIC int do_open()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* common_open * * common_open *
*===========================================================================*/ *===========================================================================*/
@ -195,7 +192,6 @@ PRIVATE int common_open(register int oflags, mode_t omode)
return(m_in.fd); return(m_in.fd);
} }
/*===========================================================================* /*===========================================================================*
* new_node * * new_node *
*===========================================================================*/ *===========================================================================*/
@ -257,7 +253,6 @@ PRIVATE struct inode *new_node(char *path, mode_t bits, zone_t z0)
return(rip); return(rip);
} }
/*===========================================================================* /*===========================================================================*
* pipe_open * * pipe_open *
*===========================================================================*/ *===========================================================================*/
@ -285,7 +280,6 @@ PRIVATE int pipe_open(register struct inode *rip, register mode_t bits,
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_mknod * * do_mknod *
*===========================================================================*/ *===========================================================================*/
@ -306,7 +300,6 @@ PUBLIC int do_mknod()
return(err_code); return(err_code);
} }
/*===========================================================================* /*===========================================================================*
* do_mkdir * * do_mkdir *
*===========================================================================*/ *===========================================================================*/
@ -366,7 +359,6 @@ PUBLIC int do_mkdir()
return(err_code); /* new_node() always sets 'err_code' */ return(err_code); /* new_node() always sets 'err_code' */
} }
/*===========================================================================* /*===========================================================================*
* do_close * * do_close *
*===========================================================================*/ *===========================================================================*/
@ -441,7 +433,6 @@ PUBLIC int do_close()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_lseek * * do_lseek *
*===========================================================================*/ *===========================================================================*/

View file

@ -49,7 +49,6 @@ char *path; /* the path name to be parsed */
return(rip); return(rip);
} }
/*===========================================================================* /*===========================================================================*
* last_dir * * last_dir *
*===========================================================================*/ *===========================================================================*/
@ -108,7 +107,6 @@ char string[NAME_MAX]; /* the final component is returned here */
} }
} }
/*===========================================================================* /*===========================================================================*
* get_name * * get_name *
*===========================================================================*/ *===========================================================================*/
@ -150,7 +148,6 @@ char string[NAME_MAX]; /* component extracted from 'old_name' */
return(rnp); return(rnp);
} }
/*===========================================================================* /*===========================================================================*
* advance * * advance *
*===========================================================================*/ *===========================================================================*/
@ -232,7 +229,6 @@ char string[NAME_MAX]; /* component name to look for */
return(rip); /* return pointer to inode's component */ return(rip); /* return pointer to inode's component */
} }
/*===========================================================================* /*===========================================================================*
* search_dir * * search_dir *
*===========================================================================*/ *===========================================================================*/
@ -332,7 +328,6 @@ int flag; /* LOOK_UP, ENTER, DELETE or IS_EMPTY */
return(r); return(r);
} }
/* Check for free slot for the benefit of ENTER. */ /* Check for free slot for the benefit of ENTER. */
if (flag == ENTER && dp->d_ino == 0) { if (flag == ENTER && dp->d_ino == 0) {
e_hit = TRUE; /* we found a free slot */ e_hit = TRUE; /* we found a free slot */

View file

@ -80,7 +80,6 @@ PUBLIC int do_pipe()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* pipe_check * * pipe_check *
*===========================================================================*/ *===========================================================================*/
@ -164,7 +163,6 @@ int notouch; /* check only */
return(1); return(1);
} }
/*===========================================================================* /*===========================================================================*
* suspend * * suspend *
*===========================================================================*/ *===========================================================================*/
@ -191,7 +189,6 @@ int task; /* who is proc waiting for? (PIPE = pipe) */
} }
} }
/*===========================================================================* /*===========================================================================*
* release * * release *
*===========================================================================*/ *===========================================================================*/
@ -239,7 +236,6 @@ int count; /* max number of processes to release */
} }
} }
/*===========================================================================* /*===========================================================================*
* revive * * revive *
*===========================================================================*/ *===========================================================================*/
@ -282,7 +278,6 @@ int returned; /* if hanging on task, how many bytes read */
} }
} }
/*===========================================================================* /*===========================================================================*
* do_unpause * * do_unpause *
*===========================================================================*/ *===========================================================================*/

View file

@ -57,7 +57,6 @@ PUBLIC int do_chmod()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_chown * * do_chown *
*===========================================================================*/ *===========================================================================*/
@ -97,7 +96,6 @@ PUBLIC int do_chown()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* do_umask * * do_umask *
*===========================================================================*/ *===========================================================================*/
@ -111,7 +109,6 @@ PUBLIC int do_umask()
return(r); /* return complement of old mask */ return(r); /* return complement of old mask */
} }
/*===========================================================================* /*===========================================================================*
* do_access * * do_access *
*===========================================================================*/ *===========================================================================*/
@ -136,7 +133,6 @@ PUBLIC int do_access()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* forbidden * * forbidden *
*===========================================================================*/ *===========================================================================*/
@ -198,7 +194,6 @@ PUBLIC int forbidden(register struct inode *rip, mode_t access_desired)
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* read_only * * read_only *
*===========================================================================*/ *===========================================================================*/

View file

@ -520,7 +520,6 @@ off_t position; /* position in file whose blk wanted */
return(b); return(b);
} }
/*===========================================================================* /*===========================================================================*
* rd_indir * * rd_indir *
*===========================================================================*/ *===========================================================================*/
@ -553,7 +552,6 @@ int index; /* index into *bp */
return(zone); return(zone);
} }
/*===========================================================================* /*===========================================================================*
* read_ahead * * read_ahead *
*===========================================================================*/ *===========================================================================*/
@ -573,7 +571,6 @@ PUBLIC void read_ahead()
put_block(bp, PARTIAL_DATA_BLOCK); put_block(bp, PARTIAL_DATA_BLOCK);
} }
/*===========================================================================* /*===========================================================================*
* rahead * * rahead *
*===========================================================================*/ *===========================================================================*/

View file

@ -229,7 +229,6 @@ PUBLIC int do_select(void)
FD_ZERO(&selecttab[s].ready_writefds); FD_ZERO(&selecttab[s].ready_writefds);
FD_ZERO(&selecttab[s].ready_errorfds); FD_ZERO(&selecttab[s].ready_errorfds);
selecttab[s].vir_readfds = (fd_set *) m_in.SEL_READFDS; selecttab[s].vir_readfds = (fd_set *) m_in.SEL_READFDS;
selecttab[s].vir_writefds = (fd_set *) m_in.SEL_WRITEFDS; selecttab[s].vir_writefds = (fd_set *) m_in.SEL_WRITEFDS;
selecttab[s].vir_errorfds = (fd_set *) m_in.SEL_ERRORFDS; selecttab[s].vir_errorfds = (fd_set *) m_in.SEL_ERRORFDS;

View file

@ -1,4 +1,3 @@
#ifndef _FS_SELECT_H #ifndef _FS_SELECT_H
#define _FS_SELECT_H 1 #define _FS_SELECT_H 1

View file

@ -75,7 +75,6 @@ PUBLIC int do_chdir()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* do_chroot * * do_chroot *
*===========================================================================*/ *===========================================================================*/
@ -90,7 +89,6 @@ PUBLIC int do_chroot()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* change * * change *
*===========================================================================*/ *===========================================================================*/
@ -155,7 +153,6 @@ PUBLIC int do_stat()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* do_fstat * * do_fstat *
*===========================================================================*/ *===========================================================================*/
@ -171,7 +168,6 @@ PUBLIC int do_fstat()
return(stat_inode(rfilp->filp_ino, rfilp, m_in.buffer)); return(stat_inode(rfilp->filp_ino, rfilp, m_in.buffer));
} }
/*===========================================================================* /*===========================================================================*
* stat_inode * * stat_inode *
*===========================================================================*/ *===========================================================================*/
@ -238,4 +234,3 @@ PUBLIC int do_fstatfs()
return(r); return(r);
} }

View file

@ -94,7 +94,6 @@ bit_t origin; /* number of bit to start searching at */
return(NO_BIT); /* no bit could be allocated */ return(NO_BIT); /* no bit could be allocated */
} }
/*===========================================================================* /*===========================================================================*
* free_bit * * free_bit *
*===========================================================================*/ *===========================================================================*/
@ -138,7 +137,6 @@ bit_t bit_returned; /* number of bit to insert into the map */
put_block(bp, MAP_BLOCK); put_block(bp, MAP_BLOCK);
} }
/*===========================================================================* /*===========================================================================*
* get_super * * get_super *
*===========================================================================*/ *===========================================================================*/
@ -183,7 +181,6 @@ PUBLIC int get_block_size(dev_t dev)
return MIN_BLOCK_SIZE; return MIN_BLOCK_SIZE;
} }
/*===========================================================================* /*===========================================================================*
* mounted * * mounted *
*===========================================================================*/ *===========================================================================*/
@ -204,7 +201,6 @@ register struct inode *rip; /* pointer to inode */
return(FALSE); return(FALSE);
} }
/*===========================================================================* /*===========================================================================*
* read_super * * read_super *
*===========================================================================*/ *===========================================================================*/

View file

@ -18,7 +18,6 @@
* A super_block slot is free if s_dev == NO_DEV. * A super_block slot is free if s_dev == NO_DEV.
*/ */
EXTERN struct super_block { EXTERN struct super_block {
ino_t s_ninodes; /* # usable inodes on the minor device */ ino_t s_ninodes; /* # usable inodes on the minor device */
zone1_t s_nzones; /* total device size, including bit maps etc */ zone1_t s_nzones; /* total device size, including bit maps etc */

View file

@ -13,7 +13,6 @@
#include "inode.h" #include "inode.h"
#include "param.h" #include "param.h"
/*===========================================================================* /*===========================================================================*
* do_utime * * do_utime *
*===========================================================================*/ *===========================================================================*/
@ -55,7 +54,6 @@ PUBLIC int do_utime()
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* do_stime * * do_stime *
*===========================================================================*/ *===========================================================================*/
@ -66,4 +64,3 @@ PUBLIC int do_stime()
return(OK); return(OK);
} }

View file

@ -38,7 +38,6 @@ PUBLIC time_t clock_time()
return( (time_t) (boottime + (uptime/HZ))); return( (time_t) (boottime + (uptime/HZ)));
} }
/*===========================================================================* /*===========================================================================*
* fetch_name * * fetch_name *
*===========================================================================*/ *===========================================================================*/
@ -79,7 +78,6 @@ int flag; /* M3 means path may be in message */
return(r); return(r);
} }
/*===========================================================================* /*===========================================================================*
* no_sys * * no_sys *
*===========================================================================*/ *===========================================================================*/
@ -89,7 +87,6 @@ PUBLIC int no_sys()
return(EINVAL); return(EINVAL);
} }
/*===========================================================================* /*===========================================================================*
* panic * * panic *
*===========================================================================*/ *===========================================================================*/
@ -113,7 +110,6 @@ int num; /* number to go with it */
sys_exit(1); sys_exit(1);
} }
/*===========================================================================* /*===========================================================================*
* conv2 * * conv2 *
*===========================================================================*/ *===========================================================================*/
@ -126,7 +122,6 @@ int w; /* promotion of 16-bit word to be swapped */
return( ((w&BYTE) << 8) | ( (w>>8) & BYTE)); return( ((w&BYTE) << 8) | ( (w>>8) & BYTE));
} }
/*===========================================================================* /*===========================================================================*
* conv4 * * conv4 *
*===========================================================================*/ *===========================================================================*/

View file

@ -30,7 +30,6 @@ PUBLIC int do_write()
return(read_write(WRITING)); return(read_write(WRITING));
} }
/*===========================================================================* /*===========================================================================*
* write_map * * write_map *
*===========================================================================*/ *===========================================================================*/
@ -121,7 +120,6 @@ zone_t new_zone; /* zone # to be inserted */
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* wr_indir * * 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); bp->b_v2_ind[index] = (zone_t) conv4(sp->s_native, (long) zone);
} }
/*===========================================================================* /*===========================================================================*
* clear_zone * * clear_zone *
*===========================================================================*/ *===========================================================================*/
@ -184,7 +181,6 @@ int flag; /* 0 if called by read_write, 1 by new_block */
} }
} }
/*===========================================================================* /*===========================================================================*
* new_block * * new_block *
*===========================================================================*/ *===========================================================================*/
@ -237,7 +233,6 @@ off_t position; /* file pointer */
return(bp); return(bp);
} }
/*===========================================================================* /*===========================================================================*
* zero_block * * zero_block *
*===========================================================================*/ *===========================================================================*/

View file

@ -328,7 +328,6 @@ void startup(int linenr, struct ttyent *ttyp)
slotp->errct = 0; slotp->errct = 0;
} }
int execute(char **cmd) int execute(char **cmd)
{ {
/* Execute a command with a path search along /sbin:/bin:/usr/sbin:/usr/bin. /* Execute a command with a path search along /sbin:/bin:/usr/sbin:/usr/bin.
@ -358,7 +357,6 @@ int execute(char **cmd)
return -1; return -1;
} }
void wtmp(type, linenr, line, pid) void wtmp(type, linenr, line, pid)
int type; /* type of entry */ int type; /* type of entry */
int linenr; /* line number in ttytab */ int linenr; /* line number in ttytab */

View file

@ -9,7 +9,6 @@
#include "is.h" #include "is.h"
/*===========================================================================* /*===========================================================================*
* handle_fkey * * handle_fkey *
*===========================================================================*/ *===========================================================================*/

View file

@ -13,7 +13,6 @@
#include "../fs/fproc.h" #include "../fs/fproc.h"
#include <minix/dmap.h> #include <minix/dmap.h>
PUBLIC struct fproc fproc[NR_PROCS]; PUBLIC struct fproc fproc[NR_PROCS];
PUBLIC struct dmap dmap[NR_DEVICES]; PUBLIC struct dmap dmap[NR_DEVICES];
@ -49,7 +48,6 @@ PUBLIC void fproc_dmp()
prev_i = i; prev_i = i;
} }
/*===========================================================================* /*===========================================================================*
* dtab_dmp * * dtab_dmp *
*===========================================================================*/ *===========================================================================*/
@ -85,4 +83,3 @@ PUBLIC void dtab_dmp()
} }
} }

View file

@ -19,7 +19,6 @@ FORWARD _PROTOTYPE( char *s_traps_str, (int flags) );
FORWARD _PROTOTYPE( char *s_flags_str, (int flags) ); FORWARD _PROTOTYPE( char *s_flags_str, (int flags) );
FORWARD _PROTOTYPE( char *p_rts_flags_str, (int flags) ); FORWARD _PROTOTYPE( char *p_rts_flags_str, (int flags) );
/* Some global data that is shared among several dumping procedures. /* Some global data that is shared among several dumping procedures.
* Note that the process table copy has the same name as in the kernel * 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. * 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 priv priv[NR_SYS_PROCS];
PUBLIC struct boot_image image[NR_BOOT_PROCS]; PUBLIC struct boot_image image[NR_BOOT_PROCS];
/*===========================================================================* /*===========================================================================*
* timing_dmp * * timing_dmp *
*===========================================================================*/ *===========================================================================*/
@ -103,7 +100,6 @@ PUBLIC void kmessages_dmp()
printf("%s", print_buf); /* print the messages */ printf("%s", print_buf); /* print the messages */
} }
/*===========================================================================* /*===========================================================================*
* monparams_dmp * * monparams_dmp *
*===========================================================================*/ *===========================================================================*/
@ -131,7 +127,6 @@ PUBLIC void monparams_dmp()
printf("\n%s\n", val); printf("\n%s\n", val);
} }
/*===========================================================================* /*===========================================================================*
* irqtab_dmp * * irqtab_dmp *
*===========================================================================*/ *===========================================================================*/
@ -181,7 +176,6 @@ PUBLIC void irqtab_dmp()
printf("\n"); printf("\n");
} }
/*===========================================================================* /*===========================================================================*
* image_dmp * * image_dmp *
*===========================================================================*/ *===========================================================================*/
@ -335,7 +329,6 @@ PRIVATE char *s_traps_str(int flags)
return str; return str;
} }
/*===========================================================================* /*===========================================================================*
* privileges_dmp * * privileges_dmp *
*===========================================================================*/ *===========================================================================*/
@ -437,7 +430,6 @@ PUBLIC void sendmask_dmp()
#endif #endif
} }
PRIVATE char *p_rts_flags_str(int flags) PRIVATE char *p_rts_flags_str(int flags)
{ {
static char str[10]; static char str[10];
@ -452,7 +444,6 @@ PRIVATE char *p_rts_flags_str(int flags)
return str; return str;
} }
/*===========================================================================* /*===========================================================================*
* proctab_dmp * * proctab_dmp *
*===========================================================================*/ *===========================================================================*/
@ -550,4 +541,3 @@ int proc_nr;
return cproc_addr(proc_nr)->p_name; return cproc_addr(proc_nr)->p_name;
} }

View file

@ -11,7 +11,6 @@
#include "../pm/mproc.h" #include "../pm/mproc.h"
#include <timers.h> #include <timers.h>
PUBLIC struct mproc mproc[NR_PROCS]; PUBLIC struct mproc mproc[NR_PROCS];
/*===========================================================================* /*===========================================================================*
@ -65,7 +64,6 @@ PUBLIC void mproc_dmp()
prev_i = i; prev_i = i;
} }
/*===========================================================================* /*===========================================================================*
* sigaction_dmp * * sigaction_dmp *
*===========================================================================*/ *===========================================================================*/
@ -99,4 +97,3 @@ PUBLIC void sigaction_dmp()
prev_i = i; prev_i = i;
} }

View file

@ -13,5 +13,3 @@ extern int who; /* caller's proc number */
extern int callnr; /* system call number */ extern int callnr; /* system call number */
extern int dont_reply; /* normally 0; set to 1 to inhibit reply */ extern int dont_reply; /* normally 0; set to 1 to inhibit reply */

View file

@ -27,7 +27,6 @@ FORWARD _PROTOTYPE(void exit_server, (void) );
FORWARD _PROTOTYPE(void get_work, (void) ); FORWARD _PROTOTYPE(void get_work, (void) );
FORWARD _PROTOTYPE(void reply, (int whom, int result) ); FORWARD _PROTOTYPE(void reply, (int whom, int result) );
/*===========================================================================* /*===========================================================================*
* main * * main *
*===========================================================================*/ *===========================================================================*/
@ -71,9 +70,6 @@ PUBLIC void main(int argc, char **argv)
} }
} }
/*===========================================================================* /*===========================================================================*
* init_server * * init_server *
*===========================================================================*/ *===========================================================================*/
@ -123,7 +119,6 @@ PRIVATE void exit_server()
exit(0); exit(0);
} }
/*===========================================================================* /*===========================================================================*
* get_work * * get_work *
*===========================================================================*/ *===========================================================================*/
@ -137,7 +132,6 @@ PRIVATE void get_work()
callnr = m_in.m_type; /* set function call number */ callnr = m_in.m_type; /* set function call number */
} }
/*===========================================================================* /*===========================================================================*
* reply * * reply *
*===========================================================================*/ *===========================================================================*/
@ -152,5 +146,3 @@ int result; /* report result to replyee */
panic("IS", "unable to send reply!", send_status); panic("IS", "unable to send reply!", send_status);
} }

View file

@ -244,7 +244,6 @@ phys_clicks *free; /* memory size summaries */
#endif #endif
} }
#if ENABLE_SWAP #if ENABLE_SWAP
/*===========================================================================* /*===========================================================================*
* swap_on * * swap_on *

View file

@ -56,7 +56,6 @@ PUBLIC int do_brk()
return(r); /* return new address or -1 */ return(r); /* return new address or -1 */
} }
/*===========================================================================* /*===========================================================================*
* adjust * * adjust *
*===========================================================================*/ *===========================================================================*/
@ -173,5 +172,3 @@ vir_clicks s_vir; /* virtual address for start of stack seg */
} }
#endif #endif

View file

@ -19,4 +19,3 @@
#define PM_PID 0 /* PM's process id number */ #define PM_PID 0 /* PM's process id number */
#define INIT_PID 1 /* INIT's process id number */ #define INIT_PID 1 /* INIT's process id number */

View file

@ -184,7 +184,6 @@ PUBLIC int do_exec()
return(SUSPEND); /* no reply, new program just runs */ return(SUSPEND); /* no reply, new program just runs */
} }
/*===========================================================================* /*===========================================================================*
* read_header * * read_header *
*===========================================================================*/ *===========================================================================*/
@ -285,7 +284,6 @@ vir_bytes *pc; /* program entry point (initial PC) */
return(m); return(m);
} }
/*===========================================================================* /*===========================================================================*
* new_mem * * new_mem *
*===========================================================================*/ *===========================================================================*/
@ -385,7 +383,6 @@ phys_bytes tot_bytes; /* total memory to allocate, including gap */
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* patch_ptr * * patch_ptr *
*===========================================================================*/ *===========================================================================*/
@ -418,7 +415,6 @@ vir_bytes base; /* virtual address of stack base inside user */
} }
} }
/*===========================================================================* /*===========================================================================*
* insert_arg * * insert_arg *
*===========================================================================*/ *===========================================================================*/
@ -475,7 +471,6 @@ int replace;
return(TRUE); return(TRUE);
} }
/*===========================================================================* /*===========================================================================*
* patch_stack * * patch_stack *
*===========================================================================*/ *===========================================================================*/
@ -522,7 +517,6 @@ char *script; /* name of script to interpret */
return(interp); return(interp);
} }
/*===========================================================================* /*===========================================================================*
* rw_seg * * rw_seg *
*===========================================================================*/ *===========================================================================*/
@ -571,7 +565,6 @@ phys_bytes seg_bytes0; /* how much is to be transferred? */
} }
} }
/*===========================================================================* /*===========================================================================*
* find_share * * find_share *
*===========================================================================*/ *===========================================================================*/

View file

@ -13,7 +13,6 @@
* do_wait: perform the WAITPID or WAIT system call * do_wait: perform the WAITPID or WAIT system call
*/ */
#include "pm.h" #include "pm.h"
#include <sys/wait.h> #include <sys/wait.h>
#include <minix/callnr.h> #include <minix/callnr.h>
@ -24,7 +23,6 @@
#define LAST_FEW 2 /* last few slots reserved for superuser */ #define LAST_FEW 2 /* last few slots reserved for superuser */
FORWARD _PROTOTYPE (void cleanup, (register struct mproc *child) ); FORWARD _PROTOTYPE (void cleanup, (register struct mproc *child) );
/*===========================================================================* /*===========================================================================*
@ -106,7 +104,6 @@ PUBLIC int do_fork()
return(new_pid); /* child's pid */ return(new_pid); /* child's pid */
} }
/*===========================================================================* /*===========================================================================*
* do_pm_exit * * do_pm_exit *
*===========================================================================*/ *===========================================================================*/
@ -119,7 +116,6 @@ PUBLIC int do_pm_exit()
return(SUSPEND); /* can't communicate from beyond the grave */ return(SUSPEND); /* can't communicate from beyond the grave */
} }
/*===========================================================================* /*===========================================================================*
* pm_exit * * pm_exit *
*===========================================================================*/ *===========================================================================*/
@ -196,7 +192,6 @@ int exit_status; /* the process' exit status (for parent) */
if (procgrp != 0) check_sig(-procgrp, SIGHUP); if (procgrp != 0) check_sig(-procgrp, SIGHUP);
} }
/*===========================================================================* /*===========================================================================*
* do_waitpid * * do_waitpid *
*===========================================================================*/ *===========================================================================*/
@ -259,7 +254,6 @@ PUBLIC int do_waitpid()
} }
} }
/*===========================================================================* /*===========================================================================*
* cleanup * * cleanup *
*===========================================================================*/ *===========================================================================*/

View file

@ -93,7 +93,6 @@ PUBLIC void main()
} }
} }
/*===========================================================================* /*===========================================================================*
* get_work * * get_work *
*===========================================================================*/ *===========================================================================*/
@ -111,7 +110,6 @@ PRIVATE void get_work()
mp = &mproc[who < 0 ? PM_PROC_NR : who]; mp = &mproc[who < 0 ? PM_PROC_NR : who];
} }
/*===========================================================================* /*===========================================================================*
* setreply * * setreply *
*===========================================================================*/ *===========================================================================*/
@ -132,7 +130,6 @@ int result; /* result of call (usually OK or error #) */
swap_inqueue(rmp); /* must swap this process back in */ swap_inqueue(rmp); /* must swap this process back in */
} }
/*===========================================================================* /*===========================================================================*
* pm_init * * pm_init *
*===========================================================================*/ *===========================================================================*/

View file

@ -20,7 +20,6 @@
#include "mproc.h" #include "mproc.h"
#include "param.h" #include "param.h"
/*===========================================================================* /*===========================================================================*
* do_allocmem * * do_allocmem *
*===========================================================================*/ *===========================================================================*/
@ -86,7 +85,6 @@ PUBLIC int do_getsysinfo()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_getprocnr * * do_getprocnr *
*===========================================================================*/ *===========================================================================*/
@ -125,7 +123,6 @@ PUBLIC int do_getprocnr()
return(OK); return(OK);
} }
/*=====================================================================* /*=====================================================================*
* do_reboot * * do_reboot *
*=====================================================================*/ *=====================================================================*/

View file

@ -15,7 +15,6 @@
PRIVATE time_t boottime; PRIVATE time_t boottime;
/*===========================================================================* /*===========================================================================*
* do_time * * do_time *
*===========================================================================*/ *===========================================================================*/
@ -37,7 +36,6 @@ PUBLIC int do_time()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_stime * * do_stime *
*===========================================================================*/ *===========================================================================*/
@ -63,7 +61,6 @@ PUBLIC int do_stime()
return(OK); return(OK);
} }
/*===========================================================================* /*===========================================================================*
* do_times * * do_times *
*===========================================================================*/ *===========================================================================*/

View file

@ -21,7 +21,6 @@
PRIVATE timer_t *pm_timers = NULL; PRIVATE timer_t *pm_timers = NULL;
/*===========================================================================* /*===========================================================================*
* pm_set_timer * * pm_set_timer *
*===========================================================================*/ *===========================================================================*/
@ -46,7 +45,6 @@ PUBLIC void pm_set_timer(timer_t *tp, int ticks, tmr_func_t watchdog, int arg)
return; return;
} }
/*===========================================================================* /*===========================================================================*
* pm_expire_timers * * pm_expire_timers *
*===========================================================================*/ *===========================================================================*/
@ -62,7 +60,6 @@ PUBLIC void pm_expire_timers(clock_t now)
} }
} }
/*===========================================================================* /*===========================================================================*
* pm_cancel_timer * * pm_cancel_timer *
*===========================================================================*/ *===========================================================================*/

View file

@ -51,7 +51,6 @@ PUBLIC pid_t get_free_pid()
return(next_pid); return(next_pid);
} }
/*===========================================================================* /*===========================================================================*
* allowed * * allowed *
*===========================================================================*/ *===========================================================================*/
@ -91,7 +90,6 @@ int mask; /* R_BIT, W_BIT, or X_BIT */
return(fd); return(fd);
} }
/*===========================================================================* /*===========================================================================*
* no_sys * * no_sys *
*===========================================================================*/ *===========================================================================*/
@ -102,7 +100,6 @@ PUBLIC int no_sys()
return(ENOSYS); return(ENOSYS);
} }
/*===========================================================================* /*===========================================================================*
* panic * * panic *
*===========================================================================*/ *===========================================================================*/
@ -122,7 +119,6 @@ int num; /* number to go with it */
sys_abort(RBT_PANIC); sys_abort(RBT_PANIC);
} }
/*===========================================================================* /*===========================================================================*
* tell_fs * * tell_fs *
*===========================================================================*/ *===========================================================================*/
@ -148,7 +144,6 @@ int what, p1, p2, p3;
_taskcall(FS_PROC_NR, what, &m); _taskcall(FS_PROC_NR, what, &m);
} }
/*==========================================================================* /*==========================================================================*
* find_param * * find_param *
*==========================================================================*/ *==========================================================================*/
@ -169,7 +164,6 @@ const char *name;
return(NULL); return(NULL);
} }
/*===========================================================================* /*===========================================================================*
* get_mem_map * * get_mem_map *
*===========================================================================*/ *===========================================================================*/

Some files were not shown because too many files have changed in this diff Show more