Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc Need an internal name for send(); noticed by itojun.



details:   https://anonhg.NetBSD.org/src/rev/9f1ea14601c4
branches:  trunk
changeset: 485887:9f1ea14601c4
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon May 08 13:38:44 2000 +0000

description:
Need an internal name for send(); noticed by itojun.

diffstat:

 lib/libc/include/namespace.h |  3 ++-
 lib/libc/net/send.c          |  9 +++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r ea54ebdad636 -r 9f1ea14601c4 lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h      Mon May 08 13:26:05 2000 +0000
+++ b/lib/libc/include/namespace.h      Mon May 08 13:38:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: namespace.h,v 1.50 2000/04/24 10:24:46 itojun Exp $    */
+/*     $NetBSD: namespace.h,v 1.51 2000/05/08 13:38:44 kleink Exp $    */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -332,6 +332,7 @@
 #define scandir                        _scandir
 #define seed48                 _seed48
 #define seekdir                        _seekdir
+#define send                   _send
 #define setdomainname          _setdomainname
 #define setenv                 _setenv
 #define setfsent               _setfsent
diff -r ea54ebdad636 -r 9f1ea14601c4 lib/libc/net/send.c
--- a/lib/libc/net/send.c       Mon May 08 13:26:05 2000 +0000
+++ b/lib/libc/net/send.c       Mon May 08 13:38:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: send.c,v 1.7 1997/07/13 19:58:06 christos Exp $        */
+/*     $NetBSD: send.c,v 1.8 2000/05/08 13:38:45 kleink Exp $  */
 
 /*
  * Copyright (c) 1988, 1993
@@ -38,15 +38,20 @@
 #if 0
 static char sccsid[] = "@(#)send.c     8.2 (Berkeley) 2/21/94";
 #else
-__RCSID("$NetBSD: send.c,v 1.7 1997/07/13 19:58:06 christos Exp $");
+__RCSID("$NetBSD: send.c,v 1.8 2000/05/08 13:38:45 kleink Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
+#include "namespace.h"
 #include <sys/types.h>
 #include <sys/socket.h>
 
 #include <stddef.h>
 
+#ifdef __weak_alias
+__weak_alias(send, _send)
+#endif
+
 ssize_t
 send(s, msg, len, flags)
        int s, flags;



Home | Main Index | Thread Index | Old Index