xref: /csrg-svn/lib/libc/sys/gethostname.s (revision 41827)
121821Sdist/*
221821Sdist * Copyright (c) 1983 Regents of the University of California.
334391Sbostic * All rights reserved.
434391Sbostic *
534391Sbostic * Redistribution and use in source and binary forms are permitted
634830Sbostic * provided that the above copyright notice and this paragraph are
734830Sbostic * duplicated in all such forms and that any documentation,
834830Sbostic * advertising materials, and other materials related to such
934830Sbostic * distribution and use acknowledge that the software was developed
1034830Sbostic * by the University of California, Berkeley.  The name of the
1134830Sbostic * University may not be used to endorse or promote products derived
1234830Sbostic * from this software without specific prior written permission.
1334830Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
1434830Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
1534830Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1621821Sdist */
179463Smckusick
1834391Sbostic#if defined(SYSLIBC_SCCS) && !defined(lint)
19*41827Sbostic	.asciz "@(#)gethostname.s	5.6 (Berkeley) 05/12/90"
2034391Sbostic#endif /* SYSLIBC_SCCS and not lint */
2121821Sdist
229463Smckusick#include "SYS.h"
239463Smckusick
249463SmckusickSYSCALL(gethostname)
25*41827Sbostic	ret		/* len = gethostname(buf, buflen) */
26