Deleted Added
full compact
yp_update.c (90297) yp_update.c (90298)
1/*
2 * Copyright (c) 1995, 1996
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

--- 23 unchanged lines hidden (view full) ---

32 * ypupdate client-side library function.
33 *
34 * Written by Bill Paul <wpaul@ctr.columbia.edu>
35 * Center for Telecommunications Research
36 * Columbia University, New York City
37 */
38
39#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1995, 1996
3 * Bill Paul <wpaul@ctr.columbia.edu>. 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

--- 23 unchanged lines hidden (view full) ---

32 * ypupdate client-side library function.
33 *
34 * Written by Bill Paul <wpaul@ctr.columbia.edu>
35 * Center for Telecommunications Research
36 * Columbia University, New York City
37 */
38
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/lib/librpcsvc/yp_update.c 90297 2002-02-06 13:30:31Z des $");
40__FBSDID("$FreeBSD: head/lib/librpcsvc/yp_update.c 90298 2002-02-06 15:26:07Z des $");
41
42#include <stdlib.h>
43#include <rpc/rpc.h>
44#include <rpcsvc/yp_prot.h>
45#include <rpcsvc/ypclnt.h>
46#include <rpcsvc/ypupdate_prot.h>
47#include <rpc/key_prot.h>
48
49#ifndef WINDOW
50#define WINDOW (60*60)
51#endif
52
53#ifndef TIMEOUT
54#define TIMEOUT 300
55#endif
56
57int
41
42#include <stdlib.h>
43#include <rpc/rpc.h>
44#include <rpcsvc/yp_prot.h>
45#include <rpcsvc/ypclnt.h>
46#include <rpcsvc/ypupdate_prot.h>
47#include <rpc/key_prot.h>
48
49#ifndef WINDOW
50#define WINDOW (60*60)
51#endif
52
53#ifndef TIMEOUT
54#define TIMEOUT 300
55#endif
56
57int
58yp_update(domain, map, ypop, key, keylen, data, datalen)
59 char *domain;
60 char *map;
61 unsigned int ypop;
62 char *key;
63 int keylen;
64 char *data;
65 int datalen;
58yp_update(char *domain, char *map, unsigned int ypop, char *key, int keylen,
59 char *data, int datalen)
66{
67 char *master;
68 int rval;
69 unsigned int res;
70 struct ypupdate_args upargs;
71 struct ypdelete_args delargs;
72 CLIENT *clnt;
73 char netname[MAXNETNAMELEN+1];

--- 128 unchanged lines hidden ---
60{
61 char *master;
62 int rval;
63 unsigned int res;
64 struct ypupdate_args upargs;
65 struct ypdelete_args delargs;
66 CLIENT *clnt;
67 char netname[MAXNETNAMELEN+1];

--- 128 unchanged lines hidden ---