netatalk
4.4.3
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
Loading...
Searching...
No Matches
usockfd.h
Go to the documentation of this file.
1
/*
2
*
3
* Copyright (C) Joerg Lenneis 2003
4
* All Rights Reserved. See COPYING.
5
*/
6
7
#ifndef CNID_DBD_USOCKFD_H
8
#define CNID_DBD_USOCKFD_H 1
9
10
11
12
#include <
atalk/cnid_bdb_private.h
>
13
14
15
int
usockfd_create
(
char
*, mode_t,
int
);
16
int
tsockfd_create
(
char
*,
char
*,
int
);
17
int
usockfd_check
(
int
,
const
sigset_t *);
18
19
#ifndef OSSH_ALIGNBYTES
20
#define OSSH_ALIGNBYTES (sizeof(int) - 1)
21
#endif
22
#ifndef __CMSG_ALIGN
23
#ifndef u_int
24
#define u_int unsigned int
25
#endif
26
#define __CMSG_ALIGN(p) (((u_int)(p) + OSSH_ALIGNBYTES) &~ OSSH_ALIGNBYTES)
27
#endif
28
29
/* Length of the contents of a control message of length len */
30
#ifndef CMSG_LEN
31
#define CMSG_LEN(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
32
#endif
33
34
/* Length of the space taken up by a padded control message of length len */
35
#ifndef CMSG_SPACE
36
#define CMSG_SPACE(len) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(len))
37
#endif
38
39
40
41
#endif
/* CNID_DBD_USOCKFD_H */
cnid_bdb_private.h
usockfd_create
int usockfd_create(char *, mode_t, int)
tsockfd_create
int tsockfd_create(char *, char *, int)
Definition
usockfd.c:31
usockfd_check
int usockfd_check(int, const sigset_t *)
Definition
usockfd.c:99
etc
cnid_dbd
usockfd.h
Generated by
1.17.0