rpc.umntall.c (675502b9ddaf20c3bfc3fbc623278e2a35b37c3e) | rpc.umntall.c (422e293c7f933ae77a55a66891f64d8a041049b7) |
---|---|
1/* 2 * Copyright (c) 1999 Martin Blapp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 168 unchanged lines hidden (view full) --- 177 clp = clnt_create(hostname, RPCPROG_MNT, RPCMNT_VER1, "udp"); 178 if (clp == NULL) { 179 warnx("%s: %s", hostname, clnt_spcreateerror("RPCPROG_MNT")); 180 return (0); 181 } 182 clp->cl_auth = authunix_create_default(); 183 try.tv_sec = 3; 184 try.tv_usec = 0; | 1/* 2 * Copyright (c) 1999 Martin Blapp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 168 unchanged lines hidden (view full) --- 177 clp = clnt_create(hostname, RPCPROG_MNT, RPCMNT_VER1, "udp"); 178 if (clp == NULL) { 179 warnx("%s: %s", hostname, clnt_spcreateerror("RPCPROG_MNT")); 180 return (0); 181 } 182 clp->cl_auth = authunix_create_default(); 183 try.tv_sec = 3; 184 try.tv_usec = 0; |
185 clnt_stat = clnt_call(clp, RPCMNT_UMNTALL, xdr_void, (caddr_t)0, 186 xdr_void, (caddr_t)0, try); | 185 clnt_stat = clnt_call(clp, RPCMNT_UMNTALL, 186 (xdrproc_t)xdr_void, (caddr_t)0, 187 (xdrproc_t)xdr_void, (caddr_t)0, try); |
187 if (clnt_stat != RPC_SUCCESS) 188 warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMNTALL")); 189 auth_destroy(clp->cl_auth); 190 clnt_destroy(clp); 191 return (clnt_stat == RPC_SUCCESS); 192} 193 194/* --- 8 unchanged lines hidden (view full) --- 203 clp = clnt_create(hostname, RPCPROG_MNT, RPCMNT_VER1, "udp"); 204 if (clp == NULL) { 205 warnx("%s: %s", hostname, clnt_spcreateerror("RPCPROG_MNT")); 206 return (0); 207 } 208 clp->cl_auth = authsys_create_default(); 209 try.tv_sec = 3; 210 try.tv_usec = 0; | 188 if (clnt_stat != RPC_SUCCESS) 189 warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMNTALL")); 190 auth_destroy(clp->cl_auth); 191 clnt_destroy(clp); 192 return (clnt_stat == RPC_SUCCESS); 193} 194 195/* --- 8 unchanged lines hidden (view full) --- 204 clp = clnt_create(hostname, RPCPROG_MNT, RPCMNT_VER1, "udp"); 205 if (clp == NULL) { 206 warnx("%s: %s", hostname, clnt_spcreateerror("RPCPROG_MNT")); 207 return (0); 208 } 209 clp->cl_auth = authsys_create_default(); 210 try.tv_sec = 3; 211 try.tv_usec = 0; |
211 clnt_stat = clnt_call(clp, RPCMNT_UMOUNT, xdr_dir, dirp, 212 xdr_void, (caddr_t)0, try); | 212 clnt_stat = clnt_call(clp, RPCMNT_UMOUNT, (xdrproc_t)xdr_dir, dirp, 213 (xdrproc_t)xdr_void, (caddr_t)0, try); |
213 if (clnt_stat != RPC_SUCCESS) 214 warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMOUNT")); 215 auth_destroy(clp->cl_auth); 216 clnt_destroy(clp); 217 return (clnt_stat == RPC_SUCCESS); 218} 219 220/* --- 43 unchanged lines hidden --- | 214 if (clnt_stat != RPC_SUCCESS) 215 warnx("%s: %s", hostname, clnt_sperror(clp, "RPCMNT_UMOUNT")); 216 auth_destroy(clp->cl_auth); 217 clnt_destroy(clp); 218 return (clnt_stat == RPC_SUCCESS); 219} 220 221/* --- 43 unchanged lines hidden --- |