Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
66d7b565
Commit
66d7b565
authored
23 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
sockets on AIX
parent
922f09c7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Fltk/Socket.cpp
+1
-7
1 addition, 7 deletions
Fltk/Socket.cpp
Makefile
+12
-2
12 additions, 2 deletions
Makefile
with
13 additions
and
9 deletions
Fltk/Socket.cpp
+
1
−
7
View file @
66d7b565
/* $Id: Socket.cpp,v 1.
8
2001-05-07 07:
2
5:
0
4 geuzaine Exp $ */
/* $Id: Socket.cpp,v 1.
9
2001-05-07 07:
3
5:4
0
geuzaine Exp $ */
#include
<stdio.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdlib.h>
...
@@ -88,9 +88,7 @@ int Socket_StartProgram(char *progname, char *sockname){
...
@@ -88,9 +88,7 @@ int Socket_StartProgram(char *progname, char *sockname){
#endif
#endif
struct
sockaddr_un
addr
,
from
;
struct
sockaddr_un
addr
,
from
;
char
command
[
1000
];
char
command
[
1000
];
#ifndef _AIX
fd_set
rfds
;
fd_set
rfds
;
#endif
struct
timeval
tv
;
struct
timeval
tv
;
int
retval
;
int
retval
;
...
@@ -126,13 +124,9 @@ int Socket_StartProgram(char *progname, char *sockname){
...
@@ -126,13 +124,9 @@ int Socket_StartProgram(char *progname, char *sockname){
/* Wait up to 2 seconds */
/* Wait up to 2 seconds */
tv
.
tv_sec
=
2
;
tv
.
tv_sec
=
2
;
tv
.
tv_usec
=
0
;
tv
.
tv_usec
=
0
;
#ifdef _AIX
/* select not done */
#else
FD_ZERO
(
&
rfds
);
FD_ZERO
(
&
rfds
);
FD_SET
(
s
,
&
rfds
);
FD_SET
(
s
,
&
rfds
);
retval
=
select
(
s
+
1
,
&
rfds
,
NULL
,
NULL
,
&
tv
);
retval
=
select
(
s
+
1
,
&
rfds
,
NULL
,
NULL
,
&
tv
);
#endif
if
(
!
retval
){
if
(
!
retval
){
Msg
(
GERROR
,
"Socket listening timeout"
);
Msg
(
GERROR
,
"Socket listening timeout"
);
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
12
−
2
View file @
66d7b565
# $Id: Makefile,v 1.9
6
2001-05-0
4 13:45:08
geuzaine Exp $
# $Id: Makefile,v 1.9
7
2001-05-0
7 07:35:40
geuzaine Exp $
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Makefile for Gmsh
# Makefile for Gmsh
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
...
@@ -403,6 +403,16 @@ fltk_compile_big_endian:
...
@@ -403,6 +403,16 @@ fltk_compile_big_endian:
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
)
;
done
)
;
done
fltk_compile_ibm
:
@
for
i
in
$(
GMSH_FLTK_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=
$(
CC
)
"
\
"C_FLAGS=-O3"
\
"OS_FLAGS=-D_BSD"
\
"VERSION_FLAGS=-D_FLTK -D_NODLL"
\
"GL_INCLUDE=
$(
OPENGL_INC
)
"
\
"GUI_INCLUDE=
$(
FLTK_INC
)
"
\
)
;
done
fltk_compile_solaris_scorec
:
fltk_compile_solaris_scorec
:
@
for
i
in
$(
GMSH_FLTK_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
@
for
i
in
$(
GMSH_FLTK_DIR
);
do
(
cd
$$
i
&&
$(
MAKE
)
\
"CC=
$(
CC
)
"
\
"CC=
$(
CC
)
"
\
...
@@ -478,7 +488,7 @@ fltk_sun: tag fltk_compile_big_endian fltk_link_sun strip_bin compress_bin
...
@@ -478,7 +488,7 @@ fltk_sun: tag fltk_compile_big_endian fltk_link_sun strip_bin compress_bin
fltk_hp
:
tag fltk_compile_big_endian fltk_link_hp strip_bin compress_bin
fltk_hp
:
tag fltk_compile_big_endian fltk_link_hp strip_bin compress_bin
fltk_ibm
:
tag fltk_compile_
big_endian
fltk_link_ibm strip_bin compress_bin
fltk_ibm
:
tag fltk_compile_
ibm
fltk_link_ibm strip_bin compress_bin
fltk_solaris_scorec
:
tag fltk_compile_solaris_scorec fltk_link_solaris_scorec strip_bin
fltk_solaris_scorec
:
tag fltk_compile_solaris_scorec fltk_link_solaris_scorec strip_bin
...
...
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