1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20: #include <rpcsvc/nis.h>
21: #include "nis_xdr.h"
22:
23: void
24: __free_fdresult (fd_result *res)
25: {
26: if (res != NULL)
27: {
28: xdr_free ((xdrproc_t)_xdr_fd_result, (char *)res);
29: free (res);
30: }
31: }
32: libnsl_hidden_def (__free_fdresult)
33:
34: void
35: nis_free_request (ib_request *ibreq)
36: {
37: if (ibreq != NULL)
38: {
39: xdr_free ((xdrproc_t)_xdr_ib_request, (char *)ibreq);
40: free (ibreq);
41: }
42: }
43: libnsl_hidden_def (nis_free_request)
44:
45: void
46: nis_free_directory (directory_obj *obj)
47: {
48: if (obj != NULL)
49: {
50: xdr_free ((xdrproc_t)_xdr_directory_obj, (char *)obj);
51: free (obj);
52: }
53: }
54: libnsl_hidden_def (nis_free_directory)
55:
56: void
57: nis_free_object (nis_object *obj)
58: {
59: if (obj != NULL)
60: {
61: xdr_free ((xdrproc_t)_xdr_nis_object, (char *)obj);
62: free (obj);
63: }
64: }
65: libnsl_hidden_def (nis_free_object)
66:
67: void
68: nis_freeresult (nis_result *res)
69: {
70: if (res != NULL)
71: {
72: xdr_free ((xdrproc_t)_xdr_nis_result, (char *)res);
73: free (res);
74: }
75: }
76: libnsl_hidden_def (nis_freeresult)