diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-07-19 20:36:09 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2002-07-19 20:36:09 +0000 |
commit | 9b022d6db80564cfc10c7f18e5d05cedb32f6375 (patch) | |
tree | 5daa6fff0a936f4aef743f3a438670468931922f /newlib/libc/argz/buf_findstr.h | |
parent | d477c5225dbca4290e41a2b2de989a4845500c19 (diff) | |
download | cygnal-9b022d6db80564cfc10c7f18e5d05cedb32f6375.tar.gz cygnal-9b022d6db80564cfc10c7f18e5d05cedb32f6375.tar.bz2 cygnal-9b022d6db80564cfc10c7f18e5d05cedb32f6375.zip |
* libc/argz/argz_replace.c: Include buf_findstr.h.
* libc/argz/buf_findstr.c: Likewise.
* libc/argz/envz_entry.c: Include buf_findstr.h. Cast return
value to (char *).
* libc/argz/envz_get.c: Likewise.
* libc/include/sys/unistd.h: Add getopt and getsubopt declarations.
* libc/stdlib/Makefile.am (LIB_SOURCES): Add getsubopt.c.
* libc/stdlib/getsubopt.3: New file.
* libc/stdlib/getsubopt.c: New file.
* libc/sys/linux/machine/i386/socketcall.h (__sockcall_base):
Change esp to ebp.
Diffstat (limited to 'newlib/libc/argz/buf_findstr.h')
-rw-r--r-- | newlib/libc/argz/buf_findstr.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/argz/buf_findstr.h b/newlib/libc/argz/buf_findstr.h new file mode 100644 index 000000000..d6cef7c15 --- /dev/null +++ b/newlib/libc/argz/buf_findstr.h @@ -0,0 +1,12 @@ +/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +#include <sys/types.h> + +/* Find string str in buffer buf of length buf_len. Point buf to + character after string, or set it to NULL if end of buffer is + reached. Return 1 if found, 0 if not. */ +int _buf_findstr(const char *str, char **buf, size_t *buf_len); |