1/*- 2 * Copyright (c) 1994 3 * The Regents of the University of California. 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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#if defined(LIBC_SCCS) && !defined(lint) 31static char sccsid[] = "From: @(#)uname.c 8.1 (Berkeley) 1/4/94"; 32#endif /* LIBC_SCCS and not lint */ 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/lib/libc/gen/uname.c 202661 2010-01-19 23:07:12Z ed $"); |
35 |
36#define uname wrapped_uname |
37#include <sys/param.h> 38#include <sys/sysctl.h> 39#include <sys/utsname.h> 40#include <errno.h> |
41#undef uname |
42 43int |
44uname(struct utsname *name) |
45{ 46 return __xuname(32, name); 47} |