Skip to content

Commit

Permalink
Fix various bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptogenic committed Dec 15, 2021
1 parent 367173c commit fde0511
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 2 additions & 6 deletions include/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,12 @@ void __pthread_cleanup_push_imp(void (*)(void *), void *,
void __pthread_cleanup_pop_imp(int);

#define pthread_cleanup_push(cleanup_routine, cleanup_arg) \
{ \
struct _pthread_cleanup_info __cleanup_info__; \
__pthread_cleanup_push_imp(cleanup_routine, cleanup_arg,\
&__cleanup_info__); \
{
&__cleanup_info__);

#define pthread_cleanup_pop(execute) \
} \
__pthread_cleanup_pop_imp(execute); \
}
__pthread_cleanup_pop_imp(execute);

#ifdef _GNU_SOURCE
struct cpu_set_t;
Expand Down
10 changes: 7 additions & 3 deletions include/sys/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ struct linger {
#endif

#define PF_UNSPEC 0
#define PF_NETLINK PF_UNSPEC
#define PF_PACKET PF_UNSPEC
#define PF_LOCAL 1
#define PF_UNIX PF_LOCAL
#define PF_FILE PF_LOCAL
Expand Down Expand Up @@ -131,7 +133,7 @@ struct linger {
#define PF_INET6 28
#define PF_NATM 29
#define PF_ATM 30
#define AF_HDRCMPLT 31
#define PF_HDRCMPLT 31
#define PF_NETGRAPH 32
#define PF_SLOW 33
#define PF_SCLUSTER 34
Expand All @@ -143,6 +145,8 @@ struct linger {
#define PF_MAX 42

#define AF_UNSPEC PF_UNSPEC
#define AF_NETLINK PF_NETLINK
#define AF_PACKET PF_PACKET
#define AF_LOCAL PF_LOCAL
#define AF_UNIX PF_UNIX
#define AF_FILE PF_FILE
Expand Down Expand Up @@ -328,8 +332,8 @@ struct linger {
#define SCM_CREDENTIALS 0x02

struct sockaddr {
uint8_t sa_len;
uint8_t sa_family;
unsigned char sa_len;
unsigned char sa_family;
char sa_data[14];
};

Expand Down

0 comments on commit fde0511

Please sign in to comment.