+1999-03-27 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * malloc/obstack.h (obstack_free): Explicitly convert __obj to
+ char * to avoid C++ warning.
+ Patch by yasushi@cs.washington.edu [PR libc/1035].
+
+1999-03-29 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * manual/filesys.texi (Temporary Files): mktemp and mkstemp are
+ declared in stdlib.h, correct return value of mkstemp.
+ Reported by Andries Brouwer <Andries.Brouwer@cwi.nl>.
+
+ * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHDRD_FC*): New defines
+ from Linux 2.2.5.
+
1999-03-28 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+ * misc/regexp.h (compile): Cast some pointers to (char *) to avoid
+ C++ warning.
+
* ctype/ctype.h (tolower, toupper): Add __THROW declaration to
inline functions. Closes PR libc/1049.
/* obstack.h - object stack macros
- Copyright (C) 1988,89,90,91,92,93,94,96,97,98 Free Software Foundation, Inc.
+ Copyright (C) 1988,89,90,91,92,93,94,96,97,98,99 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
({ struct obstack *__o = (OBSTACK); \
void *__obj = (OBJ); \
if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \
- __o->next_free = __o->object_base = __obj; \
+ __o->next_free = __o->object_base = (char *)__obj; \
else (obstack_free) (__o, __obj); })
\f
#else /* not __GNUC__ or not __STDC__ */
would crash when @code{mktemp} or @code{mkstemp} tried to modify the
string.
-@comment unistd.h
+@comment stdlib.h
@comment Unix
@deftypefun {char *} mktemp (char *@var{template})
The @code{mktemp} function generates a unique file name by modifying
@code{mkstemp} is a safe way to avoid this problem.
@end deftypefun
-@comment unistd.h
+@comment stdlib.h
@comment BSD
@deftypefun int mkstemp (char *@var{template})
The @code{mkstemp} function generates a unique file name just as
(@pxref{Opening and Closing Files}). If successful, it modifies
@var{template} in place and returns a file descriptor open on that file
for reading and writing. If @code{mkstemp} cannot create a
-uniquely-named file, it makes @var{template} an empty string and returns
-@code{-1}. If @var{template} does not end with @samp{XXXXXX},
-@code{mkstemp} returns @code{-1} and does not modify @var{template}.
+uniquely-named file, it returns @code{-1}. If @var{template} does not
+end with @samp{XXXXXX}, @code{mkstemp} returns @code{-1} and does not
+modify @var{template}.
The file is opened using mode @code{0600}. If the file is meant to be
used by other users the mode must explicitly changed.
if (__current_size + 1 >= __input_size)
{
size_t __new_size = __input_size ? 2 * __input_size : 128;
- char *__new_room = alloca (__new_size);
+ char *__new_room = (char *) alloca (__new_size);
/* See whether we can use the old buffer. */
if (__new_room + __new_size == __input_buffer)
{
__input_size += __new_size;
- __input_buffer = memcpy (__new_room, __input_buffer,
- __current_size);
+ __input_buffer = (char *) memcpy (__new_room, __input_buffer,
+ __current_size);
}
else if (__input_buffer + __input_size == __new_room)
__input_size += __new_size;
else
{
__input_size = __new_size;
- __input_buffer = memcpy (__new_room, __input_buffer,
- __current_size);
+ __input_buffer = (char *) memcpy (__new_room, __input_buffer,
+ __current_size);
}
}
__input_buffer[__current_size++] = __ch;
#define ARPHRD_ASH 781 /* (Nexus Electronics) Ash. */
#define ARPHRD_ECONET 782 /* Acorn Econet. */
#define ARPHRD_IRDA 783 /* Linux/IR. */
+#define ARPHRD_FCPP 784 /* Point to point fibrechanel. */
+#define ARPHRD_FCAL 785 /* Fibrechanel arbitrated loop. */
+#define ARPHRD_FCPL 786 /* Fibrechanel public loop. */
+#define ARPHRD_FCPFABRIC 787 /* Fibrechanel fabric. */
/* ARP ioctl request. */