struct pollfd conn_pollfd[M_CONNECTIONS];
-void set_nonblocking ( int sd )
+static void set_nonblocking ( int sd )
{
int res;
res = fcntl(sd, F_GETFL);
}
}
-void set_blocking ( int sd )
+static void set_blocking ( int sd )
{
int res;
res = fcntl(sd, F_GETFL);
}
-void copyout ( char* buf, int nbuf )
+static void copyout ( char* buf, int nbuf )
{
int i;
for (i = 0; i < nbuf; i++) {
fflush(stdout);
}
-int read_from_sd ( int sd )
+static int read_from_sd ( int sd )
{
char buf[100];
int n;
}
-void snooze ( void )
+static void snooze ( void )
{
struct timespec req;
req.tv_sec = 0;
/* returns 0 if invalid, else port # */
-int atoi_portno ( char* str )
+static int atoi_portno ( char* str )
{
int n = 0;
while (1) {
}
-void usage ( void )
+static void usage ( void )
{
fprintf(stderr,
"\n"
}
-void banner ( char* str )
+static void banner ( char* str )
{
time_t t;
t = time(NULL);
}
-void exit_routine ( void )
+static void exit_routine ( void )
{
banner("exited");
exit(0);
}
-void sigint_handler ( int signo )
+static void sigint_handler ( int signo )
{
exit_routine();
}
extern Int VG_(strlen) ( const Char* str );
extern Char* VG_(strcat) ( Char* dest, const Char* src );
extern Char* VG_(strncat) ( Char* dest, const Char* src, Int n );
-extern Char* VG_(strpbrk) ( const Char* s, const Char* accept );
+extern Char* VG_(strpbrk) ( const Char* s, const Char* accpt );
extern Char* VG_(strcpy) ( Char* dest, const Char* src );
extern Char* VG_(strncpy) ( Char* dest, const Char* src, Int ndest );
extern Int VG_(strcmp) ( const Char* s1, const Char* s2 );