source: rtems/cpukit/libnetworking/rtems/rtems_bootp.c @ 11bbeb9

4.104.114.84.95
Last change on this file since 11bbeb9 was abef0f6, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 28, 2002 at 1:56:01 PM

2002-10-28 Joel Sherrill <joel@…>

  • Pass to eliminate warnings.
  • kern/uipc_mbuf.c: Conditional SYSINIT() usage on rtems. Fix return statement without a value.
  • lib/ftpfs.c: read and write filesystem routines return ssize_t.
  • lib/syslog.c: Add include of <string.h> to eliminate warning.
  • lib/tftpDriver.c: read and write filesystem routines return ssize_t.
  • libc/gethostbydns.c: Prototype abort().
  • libc/inet_ntoa.c: Prototype strcpy().
  • libc/rcmd.c: Add include of <sys/select.h>
  • net/if_loop.c: Turn token at end of endif to comment.
  • net/rtsock.c, nfs/bootp_subr.c: Conditional SYSINIT() usage on rtems.
  • rtems/rtems_bootp.c: Add include of <rtems/rtems_bsdnet_internal.h>.
  • rtems/rtems_bsdnet_internal.h: Added prototypes for memcpy() and memset() since the BSD code tries to avoid using libc .h files since it is used to being in the kernel.
  • rtems/rtems_syscall.c: read and write filesystem routines return ssize_t.
  • Property mode set to 100644
File size: 556 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#include <rtems.h>
6#include <rtems/error.h>
7#include <sys/types.h>
8#include <rtems/rtems_bsdnet.h>
9#include <rtems/rtems_bsdnet_internal.h>
10
11/*
12 * Perform a BOOTP request
13 */
14void
15rtems_bsdnet_do_bootp (void)
16{
17        rtems_bsdnet_semaphore_obtain ();
18        bootpc_init (FALSE);
19        rtems_bsdnet_semaphore_release ();
20}
21
22/*
23 * Perform a BOOTP request and update "standard" files in /etc
24 * with the results.
25 */
26void
27rtems_bsdnet_do_bootp_and_rootfs (void)
28{
29        rtems_bsdnet_semaphore_obtain ();
30        bootpc_init (TRUE);
31        rtems_bsdnet_semaphore_release ();
32}
Note: See TracBrowser for help on using the repository browser.