summaryrefslogtreecommitdiff
path: root/net/afpfs-ng/files/patch-include__utils.h
blob: 361ea64e40c2fce98eb753bed1a1423cba838151 (plain) (blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- include/utils.h.orig	2008-02-18 03:33:58.000000000 +0000
+++ include/utils.h	2012-10-14 13:11:34.000000000 +0000
@@ -1,43 +0,0 @@
-#ifndef __UTILS_H_
-#define __UTILS_H_
-#include <stdio.h>
-
-#include "afp.h"
-
-#if BYTE_ORDER == BIG_ENDIAN
-#define hton64(x)       (x)
-#define ntoh64(x)       (x)
-#else /* BYTE_ORDER == BIG_ENDIAN */
-#define hton64(x)       ((u_int64_t) (htonl(((x) >> 32) & 0xffffffffLL)) | \
-                         (u_int64_t) ((htonl(x) & 0xffffffffLL) << 32))
-#define ntoh64(x)       (hton64(x))
-#endif /* BYTE_ORDER == BIG_ENDIAN */
-
-#define min(a,b) (((a)<(b)) ? (a) : (b))
-#define max(a,b) (((a)>(b)) ? (a) : (b))
-
-
-
-unsigned char unixpath_to_afppath(
-        struct afp_server * server,
-        char * buf);
-
-unsigned char sizeof_path_header(struct afp_server * server);
-
-
-
-unsigned char copy_from_pascal(char *dest, char *pascal,unsigned int max_len) ;
-unsigned short copy_from_pascal_two(char *dest, char *pascal,unsigned int max_len);
-
-unsigned char copy_to_pascal(char *dest, const char *src);
-unsigned short copy_to_pascal_two(char *dest, const char *src);
-
-void copy_path(struct afp_server * server, char * dest, const char * pathname, unsigned char len);
-
-
-char * create_path(struct afp_server * server, char * pathname, unsigned short * len);
-
-
-int invalid_filename(struct afp_server * server, const char * filename);
-
-#endif
diff -Naur afpfs-ng-0.8.1.orig/lib/Makefile.am afpfs-ng-0.8.1/lib/Makefile.am