Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mongoose
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ganil-acq
GANILinux
linux-service
library
mongoose
Commits
d28d7a67
Commit
d28d7a67
authored
8 years ago
by
Alexander Alashkin
Committed by
Cesanta Bot
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
c_hello/stm32-cube, part 2
PUBLISHED_FROM=fe7230811b7f12286c5ac6de1ef8fb068cd61145
parent
20370e65
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mongoose.h
+26
-3
26 additions, 3 deletions
mongoose.h
with
26 additions
and
3 deletions
mongoose.h
+
26
−
3
View file @
d28d7a67
...
@@ -1545,13 +1545,14 @@ char* inet_ntoa(struct in_addr in);
...
@@ -1545,13 +1545,14 @@ char* inet_ntoa(struct in_addr in);
typedef
int
sock_t
;
typedef
int
sock_t
;
struct
sockaddr
{
};
struct
in_addr
{
struct
in_addr
{
int
s_addr
;
int
s_addr
;
};
};
struct
sockaddr
{
int
sa_family
;
};
struct
sockaddr_in
{
struct
sockaddr_in
{
int
sin_family
;
int
sin_family
;
int
sin_port
;
int
sin_port
;
...
@@ -1573,6 +1574,28 @@ struct sockaddr_in {
...
@@ -1573,6 +1574,28 @@ struct sockaddr_in {
#define ntohs(x) (x)
#define ntohs(x) (x)
#define ntohl(x) (x)
#define ntohl(x) (x)
#define F_GETFL -1
#define F_SETFL -1
#define O_NONBLOCK -1
#define fcntl(x1, x2, x3) (-1)
#define socket(x1, x2, x3) (-1)
#define connect(x1, x2, x3) (-1)
#define setsockopt(x1, x2, x3, x4, x5) (-1)
#define closesocket(x)
typedef
int
socklen_t
;
#define accept(x1, x2, x3) (-1)
#define SOMAXCONN -1
#define listen(x1, x2) (-1)
#define bind(x1, x2, x3) (-1)
#define getsockname(x1, x2, x3) (-1)
#define sendto(x1, x2, x3, x4, x5, x6) (-1)
#define send(x1, x2, x3, x4) (-1)
#define recvfrom(x1, x2, x3, x4, x5, x6) (-1)
#define getsockopt(x1, x2, x3, x4, x5) (-1)
#define getpeername(x1, x2, x3) (-1)
#define recv(s, b, l, f) (-1)
#define select(x1, x2, x3, x4, x5) (0)
const
char
*
inet_ntop
(
int
af
,
const
void
*
src
,
char
*
dst
,
int
size
);
const
char
*
inet_ntop
(
int
af
,
const
void
*
src
,
char
*
dst
,
int
size
);
#endif
/* CS_PLATFORM == CS_P_STM32 */
#endif
/* CS_PLATFORM == CS_P_STM32 */
...
...
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