File: sendfd.h

package info (click to toggle)
superd 0.0.3-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 136 kB
  • ctags: 85
  • sloc: ansic: 721; makefile: 103; sh: 27
file content (26 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef SENDFD_H
#define SENDFD_H

#ifdef __GLIBC__

#include <stdio.h> /* NULL, stderr */
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
/* #define   CMSG_SPACE(size)        (sizeof(struct cmsghdr) + (size))
   #define   CMSG_LEN(size)          (sizeof(struct cmsghdr) + (size))
*/

#else

#include <sys/types.h>
#include <sys/socket.h>
#include "wrappers.h"

#endif

// consistant interface 

int sendfd(int, int);

#endif