Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
703d7ec4
Commit
703d7ec4
authored
Oct 10, 1993
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
POSIXized include files.
parent
511dcde5
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
299 additions
and
330 deletions
+299
-330
src/server/conference.c
src/server/conference.c
+20
-18
src/server/connections.c
src/server/connections.c
+28
-25
src/server/dbck-cache.c
src/server/dbck-cache.c
+28
-31
src/server/dbck.c
src/server/dbck.c
+12
-14
src/server/disk-end-of-atomic.c
src/server/disk-end-of-atomic.c
+9
-7
src/server/isc-malloc.c
src/server/isc-malloc.c
+5
-6
src/server/isc-parse.c
src/server/isc-parse.c
+5
-7
src/server/kom-types.c
src/server/kom-types.c
+5
-11
src/server/log.c
src/server/log.c
+3
-4
src/server/logII.c
src/server/logII.c
+3
-2
src/server/membership.c
src/server/membership.c
+19
-22
src/server/memory.c
src/server/memory.c
+8
-8
src/server/mux-parse.c
src/server/mux-parse.c
+9
-15
src/server/mux.c
src/server/mux.c
+9
-10
src/server/prot-a-output.c
src/server/prot-a-output.c
+8
-9
src/server/prot-a-parse.c
src/server/prot-a-parse.c
+6
-10
src/server/ram-output.c
src/server/ram-output.c
+5
-10
src/server/ram-parse.c
src/server/ram-parse.c
+12
-22
src/server/regex-match.c
src/server/regex-match.c
+12
-11
src/server/send-async.c
src/server/send-async.c
+8
-11
src/server/session.c
src/server/session.c
+18
-15
src/server/simple-cache.c
src/server/simple-cache.c
+34
-33
src/server/string-malloc.c
src/server/string-malloc.c
+5
-6
src/server/text-garb.c
src/server/text-garb.c
+12
-8
src/server/text.c
src/server/text.c
+16
-15
No files found.
src/server/conference.c
View file @
703d7ec4
/*
/*
* $Id: conference.c,v 0.
19
1993/
08/05 00:13:25
ceder Exp $
* $Id: conference.c,v 0.
20
1993/
10/10 17:03:43
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -28,31 +28,33 @@
...
@@ -28,31 +28,33 @@
* All atomic calls that deals with conferences.
* All atomic calls that deals with conferences.
*/
*/
static
char
*
rcsid
=
"$Id: conference.c,v 0.
19
1993/
08/05 00:13:25
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: conference.c,v 0.
20
1993/
10/10 17:03:43
ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include <time.h>
#include <ctype.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include "lyskomd.h"
#include <time.h>
#include <kom-types.h>
#include <setjmp.h>
#include <services.h>
#include "manipulate.h"
#include "kom-types.h"
#include <kom-errno.h>
#include <server/smalloc.h>
#include "cache.h"
#include "log.h"
#include "log.h"
#include <config.h>
#include "services.h"
#include "s-string.h"
#include "cache.h"
#include "misc-types.h"
#include "s-collat-tabs.h"
#include "manipulate.h"
#include "server/smalloc.h"
#include "config.h"
#include "parser.h"
#include "com.h"
#include "com.h"
#include "connections.h"
#include "connections.h"
#include "send-async.h"
#include <debug.h>
#include <parser.h>
#include "internal-connections.h"
#include "internal-connections.h"
#include "internal-services.h"
#include "kom-errno.h"
#include "lyskomd.h"
#include "debug.h"
#include "send-async.h"
/*
/*
* Defined in conference.c. This will go away when we use regexp-matching.
* Defined in conference.c. This will go away when we use regexp-matching.
* This is only temporary. +++***
* This is only temporary. +++***
...
...
src/server/connections.c
View file @
703d7ec4
/*
/*
* $Id: connections.c,v 0.2
4
1993/
08/05 00:14:10
ceder Exp $
* $Id: connections.c,v 0.2
5
1993/
10/10 17:03:49
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -30,47 +30,50 @@
...
@@ -30,47 +30,50 @@
* Created by Willf|r 31/3-90. Mostly written by ceder.
* Created by Willf|r 31/3-90. Mostly written by ceder.
*/
*/
static
char
*
rcsid
=
"$Id: connections.c,v 0.2
4
1993/
08/05 00:14:10
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: connections.c,v 0.2
5
1993/
10/10 17:03:49
ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include <errno.h>
#include <errno.h>
#include <stdio.h>
#include <setjmp.h>
#include <setjmp.h>
#include <sys/types.h>
#include <string.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/stat.h>
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#include <sys/time.h>
#include <string.h>
#else
#include <time.h>
#endif
#endif
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
#include "s-string.h"
#include "misc-types.h"
#include <kom-types.h>
#include "kom-types.h"
#include "lyskomd.h"
#include "debug.h"
#include <config.h>
#include <debug.h>
#include "end-of-atomic.h"
#include "log.h"
#include <services.h>
#include "isc-interface.h"
#include "isc-interface.h"
#include <kom-errno.h>
#include "com.h"
#include "com.h"
#include "connections.h"
#include "connections.h"
#include "prot-a-parse.h"
#include "internal-connections.h"
#include "prot-a-output.h"
#include "prot-a.h"
#include <server/smalloc.h>
#include "prot-a-parse-arg.h"
#include "prot-a-parse-arg.h"
#include "
isc-parse
.h"
#include "
log
.h"
#include "
cache
.h"
#include "
lyskomd
.h"
#include "se
nd-async
.h"
#include "se
rvices
.h"
#include "mux.h"
#include "mux.h"
#include "isc-parse.h"
#include "prot-a.h"
#include "server/smalloc.h"
#include "end-of-atomic.h"
#include "mux-parse.h"
#include "mux-parse.h"
#include "internal-connections.h"
#include "send-async.h"
#include "cache.h"
#include "rfc931.h"
#include "rfc931.h"
#include "tmp-difftime.h"
IscMaster
*
kom_server_mcb
=
NULL
;
IscMaster
*
kom_server_mcb
=
NULL
;
Connection
*
active_connection
=
NULL
;
Connection
*
active_connection
=
NULL
;
...
...
src/server/dbck-cache.c
View file @
703d7ec4
/*
/*
* $Id: dbck-cache.c,v 0.1
1
1993/
01/16 23:16:17
ceder Exp $
* $Id: dbck-cache.c,v 0.1
2
1993/
10/10 17:03:55
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -32,47 +32,44 @@
...
@@ -32,47 +32,44 @@
* Also save time as a time_t instead of a struct tm.
* Also save time as a time_t instead of a struct tm.
*/
*/
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.1
1
1993/
01/16 23:16:17
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.1
2
1993/
10/10 17:03:55
ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
/*
* All functions that can fail sets kom_errno to a suitable value
* if they fail.
*/
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#ifndef SEEK_END
#include <stdlib.h>
#include <fcntl.h>
#include <sys/file.h>
#endif
#ifndef SEEK_END
#include <unistd.h>
#include <unistd.h>
#include <errno.h>
#endif
#include <stdlib.h>
#include <time.h>
#ifndef HAVE_DIFFTIME
# include "tmp-difftime.h"
#endif
#ifdef TIME_SYNC
# include <sys/resource.h>
#endif
#include
<kom-errno
.h
>
#include
"exp
.h
"
#include
<kom
-types.h
>
#include
"misc
-types.h
"
#include "
s-collat-tab
s.h"
#include "
kom-type
s.h"
#include
<server/smalloc
.h
>
#include
"kom-errno
.h
"
#include "cache.h"
#include "cache.h"
#include <debug.h>
#include "tmp-limits.h"
#include "debug.h"
#include "server/smalloc.h"
#include "log.h"
#include "lyskomd.h"
#include "lyskomd.h"
#include
<parser
.h
>
#include
"kom-memory
.h
"
#include "ram-parse.h"
#include "ram-parse.h"
#include "log.h"
#include "ram-output.h"
#include "ram-output.h"
#include "com.h"
#include "connections.h"
#include "send-async.h"
#include "memory.h"
#include "dbck-cache.h"
#ifdef TIME_SYNC
/*
# include <sys/resource.h>
* All functions that can fail sets kom_errno to a suitable value
#endif
* if they fail.
*/
#define EXPORT
#include "tmp-limits.h"
Person
*
pers_arr
[
MAX_CONF
];
Person
*
pers_arr
[
MAX_CONF
];
Conference
*
conf_arr
[
MAX_CONF
];
Conference
*
conf_arr
[
MAX_CONF
];
...
...
src/server/dbck.c
View file @
703d7ec4
/*
/*
* $Id: dbck.c,v 0.1
2
1993/
01/16 23:16:22
ceder Exp $
* $Id: dbck.c,v 0.1
3
1993/
10/10 17:04:00
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -28,24 +28,24 @@
...
@@ -28,24 +28,24 @@
* Author: Per Cederqvist.
* Author: Per Cederqvist.
*/
*/
static
char
*
rcsid
=
"$Id: dbck.c,v 0.1
2
1993/
01/16 23:16:22
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: dbck.c,v 0.1
3
1993/
10/10 17:04:00
ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <kom-types.h>
#include "misc-types.h"
#include <config.h>
#include "kom-types.h"
#include "cache.h"
#include "tmp-limits.h"
#include "log.h"
#include "lyskomd.h"
#include "lyskomd.h"
#include "log.h"
#include "server/smalloc.h"
#include "misc-parser.h"
#include "misc-parser.h"
#include <server/smalloc.h>
#include "cache.h"
#include <debug.h>
#include "config.h"
#include "debug.h"
#include "dbck-cache.h"
#include "dbck-cache.h"
/* This is set to TRUE if init_cache finds out that the last part of the
/* This is set to TRUE if init_cache finds out that the last part of the
...
@@ -74,8 +74,6 @@ typedef struct {
...
@@ -74,8 +74,6 @@ typedef struct {
static
const
Person_scratchpad
EMPTY_PERSON_SCRATCHPAD
=
{
0
};
static
const
Person_scratchpad
EMPTY_PERSON_SCRATCHPAD
=
{
0
};
#include "tmp-limits.h"
static
Person_scratchpad
*
person_scratchpad
[
MAX_CONF
];
static
Person_scratchpad
*
person_scratchpad
[
MAX_CONF
];
#ifdef DEBUG
#ifdef DEBUG
...
...
src/server/disk-end-of-atomic.c
View file @
703d7ec4
/*
/*
* $Id: disk-end-of-atomic.c,v 0.
8
1993/
01/16 23:16:26
ceder Exp $
* $Id: disk-end-of-atomic.c,v 0.
9
1993/
10/10 17:04:05
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -36,18 +36,20 @@
...
@@ -36,18 +36,20 @@
* to forget old texts.
* to forget old texts.
*/
*/
static
char
*
rcsid
=
"$Id: disk-end-of-atomic.c,v 0.
8
1993/
01/16 23:16:26
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: disk-end-of-atomic.c,v 0.
9
1993/
10/10 17:04:05
ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include <stddef.h>
#include <kom-types.h>
#include "misc-types.h"
#include <server/smalloc.h>
#include "kom-types.h"
#include "text-garb.h"
#include "end-of-atomic.h"
#include "cache.h"
#include "server/smalloc.h"
#include "config.h"
#include "config.h"
#include "text-garb.h"
#include "disk-cache.h"
#include "disk-cache.h"
#include "cache.h"
#include "end-of-atomic.h"
long
long
end_of_atomic
(
Bool
idle
)
end_of_atomic
(
Bool
idle
)
...
...
src/server/isc-malloc.c
View file @
703d7ec4
/*
/*
* $Id: isc-malloc.c,v 1.
2
1993/
01/16 23:16:39
ceder Exp $
* $Id: isc-malloc.c,v 1.
3
1993/
10/10 17:04:10
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -29,17 +29,16 @@
...
@@ -29,17 +29,16 @@
* how many allocated blocks there are.
* how many allocated blocks there are.
*/
*/
static
char
*
rcsid
=
"$Id: isc-malloc.c,v 1.
2
1993/
01/16 23:16:39
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: isc-malloc.c,v 1.
3
1993/
10/10 17:04:10
ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include <stdio.h>
#include <stddef.h>
#include <stddef.h>
#include <s
erver/smalloc
.h>
#include <s
tdio
.h>
#include "log.h"
#include "exp.h"
#include "exp.h"
#include "isc-malloc.h"
#include "isc-malloc.h"
#include "server/smalloc.h"
static
int
no_of_allocated_blocks
=
0
;
static
int
no_of_allocated_blocks
=
0
;
...
...
src/server/isc-parse.c
View file @
703d7ec4
/*
/*
* $Id: isc-parse.c,v 0.
4
1993/
01/16 23:16:42
ceder Exp $
* $Id: isc-parse.c,v 0.
5
1993/
10/10 17:04:14
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -26,16 +26,14 @@
...
@@ -26,16 +26,14 @@
* Generic parse routines.
* Generic parse routines.
*/
*/
static
char
*
rcsid
=
"$Id: isc-parse.c,v 0.
4
1993/
01/16 23:16:42
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: isc-parse.c,v 0.
5
1993/
10/10 17:04:14
ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include <setjmp.h>
#include <string.h>
#include <string.h>
#include <s
tdio
.h>
#include <s
etjmp
.h>
#include "lyskomd.h"
#include
<
kom-types.h
>
#include
"
kom-types.h
"
#include "com.h"
#include "com.h"
#include "connections.h"
#include "connections.h"
#include "isc-parse.h"
#include "isc-parse.h"
...
...
src/server/kom-types.c
View file @
703d7ec4
/*
/*
* $Id: kom-types.c,v 0.
5
1993/
01/16 23:16:4
8 ceder Exp $
* $Id: kom-types.c,v 0.
6
1993/
10/10 17:04:1
8 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -43,19 +43,13 @@
...
@@ -43,19 +43,13 @@
* email: bellman@Lysator.LiU.SE
* email: bellman@Lysator.LiU.SE
*/
*/
static
char
*
rcsid
=
"$Id: kom-types.c,v 0.
5
1993/
01/16 23:16:4
8 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: kom-types.c,v 0.
6
1993/
10/10 17:04:1
8 ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include "exp.h"
#include "kom-types.h"
#include <stdio.h>
#include "config.h"
#include <kom-types.h>
#include <config.h>
#define EXPORT
EXPORT
const
Conf_list_old
EMPTY_CONF_LIST_OLD
=
EMPTY_CONF_LIST_OLD_i
;
EXPORT
const
Conf_list_old
EMPTY_CONF_LIST_OLD
=
EMPTY_CONF_LIST_OLD_i
;
...
...
src/server/log.c
View file @
703d7ec4
/*
/*
* $Id: log.c,v 0.
6
1993/
01/16 23:16:52
ceder Exp $
* $Id: log.c,v 0.
7
1993/
10/10 17:04:23
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -28,15 +28,14 @@
...
@@ -28,15 +28,14 @@
* File created by ceder 1990-05-25.
* File created by ceder 1990-05-25.
*/
*/
static
char
*
rcsid
=
"$Id: log.c,v 0.
6
1993/
01/16 23:16:52
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: log.c,v 0.
7
1993/
10/10 17:04:23
ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <time.h>
#include "log.h"
#include "log.h"
/*
/*
...
...
src/server/logII.c
View file @
703d7ec4
/*
/*
* $Id: logII.c,v 0.
2
199
1/09
/1
5
1
0:31:29 linus
Exp $
* $Id: logII.c,v 0.
3
199
3/10
/1
0
1
7:04:28 ceder
Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -28,10 +28,11 @@
...
@@ -28,10 +28,11 @@
* File created by ceder 1990-05-25.
* File created by ceder 1990-05-25.
*/
*/
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdlib.h>
#include <time.h>
#include <time.h>
#include <unistd.h>
enum
enum
{
{
...
...
src/server/membership.c
View file @
703d7ec4
/*
/*
* $Id: membership.c,v 0.1
1
1993/
01/16 23:16:57
ceder Exp $
* $Id: membership.c,v 0.1
2
1993/
10/10 17:04:34
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
* Copyright (C) 1991 Lysator Academic Computer Association.
*
*
* This file is part of the LysKOM server.
* This file is part of the LysKOM server.
...
@@ -29,39 +29,36 @@
...
@@ -29,39 +29,36 @@
* (The person/conf relation).
* (The person/conf relation).
*/
*/
static
char
*
rcsid
=
"$Id: membership.c,v 0.11 1993/01/16 23:16:57 ceder Exp $"
;
#define DEBUG_MARK_AS_READ
static
char
*
rcsid
=
"$Id: membership.c,v 0.12 1993/10/10 17:04:34 ceder Exp $"
;
#include "rcs.h"
#include "rcs.h"
USE
(
rcsid
);
USE
(
rcsid
);
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <time.h>
#include <stdlib.h>
#include <setjmp.h>
#include "misc-types.h"
#include "kom-types.h"
#include "services.h"
#include "server/smalloc.h"
#include "lyskomd.h"
#include "lyskomd.h"
#include <kom-types.h>
#include <services.h>
#include "manipulate.h"
#include <server/smalloc.h>
#include "cache.h"
#include "log.h"
#include "minmax.h"
#include "com.h"
#include "com.h"
#include "isc-interface.h"
#include "connections.h"
#include "connections.h"
#include "send-async.h"
#include <kom-errno.h>
#include "internal-connections.h"
#include "internal-connections.h"
#include "kom-errno.h"
#define DEBUG_MARK_AS_READ
#include "manipulate.h"
#include "cache.h"
#include "send-async.h"
#include "minmax.h"
#ifdef DEBUG_MARK_AS_READ
#ifdef DEBUG_MARK_AS_READ
# include <stdio.h>
#include "log.h"
# include <string.h>
#include "ram-output.h"
# include "ram-output.h"
#endif
#endif
/*
/*
* Copy all information that ACTPERS is authorized to know about ORIG_P's