Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
634a5711
Commit
634a5711
authored
Aug 6, 1998
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Now uses PIKE_ACCEPT_TYPE.
Rev: src/modules/files/file.c:1.118 Rev: src/modules/files/socket.c:1.37
parent
790b68f8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/files/file.c
+12
-9
12 additions, 9 deletions
src/modules/files/file.c
src/modules/files/socket.c
+2
-3
2 additions, 3 deletions
src/modules/files/socket.c
with
14 additions
and
12 deletions
src/modules/files/file.c
+
12
−
9
View file @
634a5711
...
...
@@ -5,7 +5,7 @@
\*/
#include
"global.h"
RCSID
(
"$Id: file.c,v 1.11
7
1998/08/06
16:43:14
grubba Exp $"
);
RCSID
(
"$Id: file.c,v 1.11
8
1998/08/06
23:11:06
grubba Exp $"
);
#include
"fdlib.h"
#include
"interpret.h"
#include
"svalue.h"
...
...
@@ -1351,7 +1351,7 @@ int my_socketpair(int family, int type, int protocol, int sv[2])
*
* FIXME: Configure-test?
*/
int
len
;
PIKE_ACCEPT_TYPE
len
;
MEMSET
((
char
*
)
&
addr
,
0
,
sizeof
(
struct
sockaddr_in
));
...
...
@@ -1422,7 +1422,9 @@ retry_connect:
int
tmp2
;
for
(
tmp2
=
0
;
tmp2
<
20
;
tmp2
++
)
{
int
tmp
,
len2
;
int
tmp
;
PIKE_ACCEPT_TYPE
len2
;
len2
=
sizeof
(
addr
);
tmp
=
fd_accept
(
fd
,(
struct
sockaddr
*
)
&
addr
,
&
len2
);
...
...
@@ -1446,7 +1448,8 @@ retry_connect:
*/
do
{
int
len3
;
PIKE_ACCEPT_TYPE
len3
;
len3
=
sizeof
(
addr
);
retry_accept:
sv
[
0
]
=
fd_accept
(
fd
,(
struct
sockaddr
*
)
&
addr
,
&
len3
);
...
...
@@ -1905,11 +1908,11 @@ static void file_query_address(INT32 args)
{
struct
sockaddr_in
addr
;
int
i
;
/* Solaris thinks this variable should a size_t, everybody else thinks
* it should be an int.
*/
int
len
;
char
buffer
[
496
],
*
q
;
/* XOPEN GROUP think this variable should a size_t, BSD thinks it should
* be an int.
*/
PIKE_ACCEPT_TYPE
len
;
if
(
FD
<
0
)
error
(
"file->query_address(): Connection not open.
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
src/modules/files/socket.c
+
2
−
3
View file @
634a5711
...
...
@@ -18,7 +18,7 @@
#include
"file_machine.h"
#include
"file.h"
RCSID
(
"$Id: socket.c,v 1.3
6
1998/0
7/15 23:26:59 h
ubb
e
Exp $"
);
RCSID
(
"$Id: socket.c,v 1.3
7
1998/0
8/06 23:12:24 gr
ubb
a
Exp $"
);
#ifdef HAVE_SYS_TYPE_H
#include
<sys/types.h>
...
...
@@ -307,13 +307,12 @@ static void port_accept(INT32 args)
struct
sockaddr_in
addr
;
struct
port
*
this
=
THIS
;
int
fd
,
tmp
;
int
len
=
0
;
struct
object
*
o
;
PIKE_ACCEPT_TYPE
len
=
0
;
if
(
THIS
->
fd
<
0
)
error
(
"port->accept(): Port not open.
\n
"
);
THREADS_ALLOW
();
len
=
sizeof
(
addr
);
fd
=
fd_accept
(
this
->
fd
,
(
struct
sockaddr
*
)
&
addr
,
&
len
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment