a887211b00
* include/fcntl.h: Ditto. * include/lastlog.h: Ditto. * include/memory.h: Ditto. * include/mntent.h: Ditto. * include/paths.h: Ditto. * include/poll.h: Ditto. * include/syslog.h: Ditto. * include/termio.h: Ditto. * include/tzfile.h: Ditto. * include/arpa/inet.h: Ditto. * include/asm/byteorder.h: Ditto. * include/asm/socket.h: Ditto. * include/asm/types.h: Ditto. * include/cygwin/if.h: Ditto. * include/cygwin/mtio.h: Ditto. * include/cygwin/rdevio.h: Ditto. * include/cygwin/socket.h: Ditto. * include/net/if.h: Ditto. * include/netinet/in.h: Ditto. * include/netinet/in_systm.h: Ditto. * include/netinet/ip.h: Ditto. * include/netinet/ip_icmp.h: Ditto. * include/netinet/tcp.h: Ditto. * include/sys/cdefs.h: Ditto. * include/sys/cygwin.h: Ditto. * include/sys/ioctl.h: Ditto. * include/sys/mman.h: Ditto. * include/sys/mount.h: Ditto. * include/sys/mtio.h: Ditto. * include/sys/procfs.h: Ditto. * include/sys/resource.h: Ditto. * include/sys/smallprint.h: Ditto. * include/sys/socket.h: Ditto. * include/sys/strace.h: Ditto. * include/sys/syslog.h: Ditto. * include/sys/sysmacros.h: Ditto. * include/sys/termio.h: Ditto. * include/sys/termios.h: Ditto. * include/sys/uio.h: Ditto. * include/sys/un.h: Ditto. * include/sys/utsname.h: Ditto. * include/sys/vfs.h: Ditto. * include/sys/wait.h: Ditto. * regexp/regerror.c: Ditto. * regexp/regexp.h: Ditto. * regexp/regmagic.h: Ditto.
54 lines
1.7 KiB
C
54 lines
1.7 KiB
C
/* sys/socket.h
|
|
|
|
Copyright 1996-2001 Red Hat, Inc.
|
|
|
|
This file is part of Cygwin.
|
|
|
|
This software is a copyrighted work licensed under the terms of the
|
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
|
details. */
|
|
|
|
#ifndef _SYS_SOCKET_H
|
|
#define _SYS_SOCKET_H
|
|
|
|
#include <features.h>
|
|
#include <cygwin/socket.h>
|
|
#include <sys/time.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
/* SUS symbolic values for the second parm to shutdown(2) */
|
|
#define SHUT_RD 0 /* == Win32 SD_RECEIVE */
|
|
#define SHUT_WR 1 /* == Win32 SD_SEND */
|
|
#define SHUT_RDWR 2 /* == Win32 SD_BOTH */
|
|
|
|
#ifndef __INSIDE_CYGWIN_NET__
|
|
int accept (int, struct sockaddr *__peer, int *);
|
|
int bind (int, const struct sockaddr *__my_addr, int __addrlen);
|
|
int connect (int, const struct sockaddr *, int);
|
|
int getpeername (int, struct sockaddr *__peer, int *);
|
|
int getsockname (int, struct sockaddr *__addr, int *);
|
|
int listen (int, int __n);
|
|
int recv (int, void *__buff, int __len, unsigned int __flags);
|
|
int recvfrom (int, char *__buff, int __len, int __flags,
|
|
struct sockaddr *__from, int *__fromlen);
|
|
int send (int, const void *__buff, int __len, unsigned int __flags);
|
|
int sendto (int, const void *, int, unsigned int, const struct sockaddr *, int);
|
|
int setsockopt (int __s, int __level, int __optname, const void *optval, int __optlen);
|
|
int getsockopt (int __s, int __level, int __optname, void *__optval, int *__optlen);
|
|
int shutdown (int, int);
|
|
int socket (int __family, int __type, int __protocol);
|
|
int socketpair (int __domain, int __type, int __protocol, int *__socket_vec);
|
|
|
|
struct servent *getservbyname (const char *__name, const char *__proto);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
#endif /* _SYS_SOCKET_H */
|