retire PUBLIC, PRIVATE and FORWARD

This commit is contained in:
Ben Gras
2012-03-25 20:25:53 +02:00
parent 6a73e85ad1
commit 7336a67dfe
603 changed files with 5776 additions and 5779 deletions

View File

@@ -31,7 +31,7 @@
* unlikely, but negative bit counts are now possible (though unlikely)
* and give silly results.
*/
PUBLIC int bitmapsize(nr_bits, block_size)
int bitmapsize(nr_bits, block_size)
bit_t nr_bits;
int block_size;
{
@@ -46,7 +46,7 @@ int block_size;
/*===========================================================================*
* conv2 *
*===========================================================================*/
PUBLIC unsigned conv2(norm, w)
unsigned conv2(norm, w)
int norm; /* TRUE if no swap, FALSE for byte swap */
int w; /* promotion of 16-bit word to be swapped */
{
@@ -60,7 +60,7 @@ int w; /* promotion of 16-bit word to be swapped */
/*===========================================================================*
* conv4 *
*===========================================================================*/
PUBLIC long conv4(norm, x)
long conv4(norm, x)
int norm; /* TRUE if no swap, FALSE for byte swap */
long x; /* 32-bit long to be byte swapped */
{
@@ -80,7 +80,7 @@ long x; /* 32-bit long to be byte swapped */
/*===========================================================================*
* conv_inode *
*===========================================================================*/
PUBLIC void conv_inode(rip, dip, dip2, rw_flag, magic)
void conv_inode(rip, dip, dip2, rw_flag, magic)
register struct inode *rip; /* pointer to the in-core inode struct */
register d1_inode *dip; /* pointer to the V1 on-disk inode struct */
register d2_inode *dip2; /* pointer to the V2 on-disk inode struct */
@@ -103,7 +103,7 @@ int magic; /* magic number of file system */
/*===========================================================================*
* old_icopy *
*===========================================================================*/
PUBLIC void old_icopy(rip, dip, direction, norm)
void old_icopy(rip, dip, direction, norm)
register struct inode *rip; /* pointer to the in-core inode struct */
register d1_inode *dip; /* pointer to the d1_inode inode struct */
int direction; /* READING (from disk) or WRITING (to disk) */
@@ -150,7 +150,7 @@ int norm; /* TRUE = do not swap bytes; FALSE = swap */
/*===========================================================================*
* new_icopy *
*===========================================================================*/
PUBLIC void new_icopy(rip, dip, direction, norm)
void new_icopy(rip, dip, direction, norm)
register struct inode *rip; /* pointer to the in-core inode struct */
register d2_inode *dip; /* pointer to the d2_inode struct */
int direction; /* READING (from disk) or WRITING (to disk) */

View File

@@ -1,7 +1,7 @@
#include <lib.h>
#include <unistd.h>
PUBLIC gid_t getngid(endpoint_t proc_ep)
gid_t getngid(endpoint_t proc_ep)
{
message m;
m.m1_i1 = proc_ep; /* search gid for this process */

View File

@@ -1,7 +1,7 @@
#include <lib.h>
#include <unistd.h>
PUBLIC pid_t getnpid(endpoint_t proc_ep)
pid_t getnpid(endpoint_t proc_ep)
{
message m;
m.m1_i1 = proc_ep; /* search pid for this process */

View File

@@ -2,7 +2,7 @@
#include <unistd.h>
PUBLIC int getnprocnr(pid_t pid)
int getnprocnr(pid_t pid)
{
message m;
int t = GETPROCNR;

View File

@@ -3,7 +3,7 @@
#include <sys/ucred.h>
#include <unistd.h>
PUBLIC int getnucred(endpoint_t proc_ep, struct ucred *ucred)
int getnucred(endpoint_t proc_ep, struct ucred *ucred)
{
message m;
pid_t pid;

View File

@@ -1,7 +1,7 @@
#include <lib.h>
#include <unistd.h>
PUBLIC uid_t getnuid(endpoint_t proc_ep)
uid_t getnuid(endpoint_t proc_ep)
{
message m;
m.m1_i1 = proc_ep; /* search uid for this process */

View File

@@ -2,7 +2,7 @@
#include <unistd.h>
PUBLIC int getprocnr()
int getprocnr()
{
message m;
m.m1_i1 = -1; /* don't pass pid to search for */

View File

@@ -1,8 +1,8 @@
#include <lib.h>
/* Integer to ASCII for signed decimal integers. */
PRIVATE int next;
PRIVATE char qbuf[8];
static int next;
static char qbuf[8];
char *itoa(int n);

View File

@@ -3,7 +3,7 @@
#include <unistd.h>
PUBLIC int mapdriver(label, major, dev_style, flags)
int mapdriver(label, major, dev_style, flags)
char *label;
int major;
int dev_style;

View File

@@ -1,7 +1,7 @@
#include <lib.h>
#include <unistd.h>
PUBLIC int vm_memctl(endpoint_t ep, int req)
int vm_memctl(endpoint_t ep, int req)
{
message m;
m.VM_RS_CTL_ENDPT = ep;

View File

@@ -8,7 +8,7 @@
* return 0, when there are no more processes.
* note that for the return value of 0 and 1, the 'endpt' is set accordingly.
*/
PUBLIC int vm_query_exit(int *endpt)
int vm_query_exit(int *endpt)
{
message m;
int r;
@@ -23,7 +23,7 @@ PUBLIC int vm_query_exit(int *endpt)
return (m.VM_QUERY_IS_MORE ? 1 : 0);
}
PUBLIC int vm_watch_exit(endpoint_t ep)
int vm_watch_exit(endpoint_t ep)
{
message m;

View File

@@ -1,7 +1,7 @@
#include <lib.h>
#include <unistd.h>
PUBLIC int vm_set_priv(int nr, void *buf)
int vm_set_priv(int nr, void *buf)
{
message m;
m.VM_RS_NR = nr;

View File

@@ -1,7 +1,7 @@
#include <lib.h>
#include <unistd.h>
PUBLIC int vm_update(endpoint_t src_e, endpoint_t dst_e)
int vm_update(endpoint_t src_e, endpoint_t dst_e)
{
message m;
m.VM_RS_SRC_ENDPT = src_e;