search for: cmsg_nxthdr

Displaying 5 results from an estimated 5 matches for "cmsg_nxthdr".

Did you mean: __cmsg_nxthdr
2010 Mar 13
1
klibc build trouble
as the next klibc release 1.5.16 looks like shaping up, I have a trouble to build that for Debian. currently I build depent on linux-libc-dev, I don't know what against I can build latest klibc, see klibc fails to build due too: make -C linux/ ARCH=x86_64 INSTALL_HDR_PATH=debian/tmp/usr/lib/klibc/ headers_install make[3]: *** No rule to make target `headers_install'. Stop. make[2]: ***
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
.../ + +struct cmsghdr { + __kernel_size_t cmsg_len; /* data byte count, including hdr */ + int cmsg_level; /* originating protocol */ + int cmsg_type; /* protocol-specific type */ +}; + +/* + * Ancilliary data object information MACROS + * Table 5-14 of POSIX 1003.1g + */ + +#define __CMSG_NXTHDR(ctl, len, cmsg) __cmsg_nxthdr((ctl),(len),(cmsg)) +#define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) + +#define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) + +#define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr)))) +#define CMSG_SPACE...
2002 Jan 21
1
help for tftp-hpa with libc5
...1; #ifdef IP_PKTINFO struct in_pktinfo pktinfo; #endif === 105 if ( msg.msg_controllen < sizeof(struct cmsghdr) || === 109 for ( cmptr = CMSG_FIRSTHDR(&msg) ; cmptr != NULL ; I added the following to recvfrom.h (copied from glibc headers) === #define MSG_CTRUNC 0x08 #define CMSG_NXTHDR(mhdr, cmsg) __cmsg_nxthdr (mhdr, cmsg) #define CMSG_FIRSTHDR(mhdr) \ ((size_t) (mhdr)->msg_controllen >= sizeof (struct cmsghdr) \ ? (struct cmsghdr *) (mhdr)->msg_control : (struct cmsghdr *) NULL) extern struct cmsghdr *__cmsg_nxthdr __P ((struct msghdr *__mhdr,...
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...ollen = CMSG_SPACE(sizeof(int)); + + do ret = recvmsg(socket, &message, MSG_WAITALL); + while (ret == -1 && (errno == EINTR || errno == EAGAIN)); + + if (ret <= 0) + return -1; + + for(control_message = CMSG_FIRSTHDR(&message); + control_message != NULL; + control_message = CMSG_NXTHDR(&message, + control_message)) + { + if( (control_message->cmsg_level == SOL_SOCKET) && + (control_message->cmsg_type == SCM_RIGHTS) ) + { + return *((int *) CMSG_DATA(control_message)); + } + } + + return -1; +} + /* Send a file-list index using a byte-reduction method...
2019 Apr 04
1
Proof of concept for GPU forwarding for Linux guest on Linux host.
Hi, This is a proof of concept of GPU forwarding for Linux guest on Linux host. I'd like to get comments and suggestions from community before I put more time on it. To summarize what it is: 1. It's a solution to bring GPU acceleration for Linux vm guest on Linux host. It could works with different GPU although the current proof of concept only works with Intel GPU. 2. The basic idea