Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 32) sorted by relevance

12

/manual/
A Ddebug.texi36 @deftypefun int backtrace (void **@var{buffer}, int @var{size})
50 @var{buffer}. The argument @var{size} should be the number of
51 @w{@code{void *}} elements that will fit into @var{buffer}. The return
52 value is the actual number of entries of @var{buffer} that are obtained,
55 The pointers placed in @var{buffer} are actually return addresses
65 @deftypefun {char **} backtrace_symbols (void *const *@var{buffer}, int @var{size})
69 @c for the whole return buffer with malloc then sprintfs into it storing
70 @c pointers to the strings into the array entries in the buffer.
80 The argument @var{buffer} should be a pointer to an array of addresses
85 @var{size} entries just like the array @var{buffer}. Each string
[all …]
A Dcharset.texi890 available, otherwise buffer overruns can occur.
1215 char buffer[BUFSIZ + MB_LEN_MAX];
1227 char *inp = buffer;
1283 memmove (buffer, inp, filled);
1772 buffer to another. Conversion from a file to a buffer, vice versa, or
1856 of the input buffer.
1992 output buffer is a wide character buffer; therefore, we use a local
2738 input buffer and store the result in the output buffer. The start of the
2746 either the input buffer is empty or the output buffer is full the
2791 buffer. Unless the input buffer is empty, the conversion functions start
[all …]
A Dusers.texi1278 user-provided buffer.
1305 information in a static buffer it stores it in the buffer pointed to by
1306 the parameter @var{buffer}.
1337 buffer pointed to by the parameter @var{buffer}.
1373 in the buffer pointed to by the parameter @var{buffer}.
2027 @var{buflen} bytes of the additional buffer pointed to by @var{buffer}
2085 a static buffer.
2346 @var{buflen} bytes of the additional buffer pointed to by @var{buffer}
2387 @var{result_buf} and @var{buffer}, not a static buffer.
2438 of the additional buffer pointed to by @var{buffer} are used to contain
[all …]
A Dmath.texi1538 @c static buffer. There's no MT-safety issue because the static buffer
1676 @c Uses of the static state buffer are not guarded by a lock (thus
1817 user-supplied buffer instead of the global state.
1881 information from the buffer pointed to by @var{buffer}. The state is
1896 the buffer pointed to by @var{buffer}.
1910 congruential formula parameters from the buffer pointed to by
1911 @var{buffer}.
1920 Before any of the above functions are used the buffer of type
1922 this is to fill the whole buffer with null bytes, e.g. by
1925 memset (buffer, '\0', sizeof (struct drand48_data));
[all …]
A Dnss.texi408 supplied buffer.
498 @code{ERANGE} @tab The provided buffer is not large enough.
499 The function should be called again with a larger buffer.
518 @code{ERANGE} @emph{must} mean that the user provided buffer is too
553 pointer to buffer where the result is stored. @code{STRUCT_TYPE} is
555 @item char *buffer
556 pointer to a buffer where the function can store additional data for
559 length of the buffer pointed to by @var{buffer}.
693 The buffer of length @var{buflen} pointed to by @var{buffer} can be used
696 function. Therefore one must not misuse this buffer to save some state
[all …]
A Dstdio.texi387 buffer, among other things.
1259 buffer for you by calling @code{malloc}. This buffer remains allocated
2468 buffer = xrealloc (buffer, size);
2475 return buffer;
3763 making the buffer long enough.
4765 allocates a buffer itself using @code{malloc}. This buffer will be freed
4857 buffer for you.
4952 buffer (for this, try @code{open_memstream}, below). The buffer is
4959 beginning of the buffer.
4995 This function opens a stream for writing to a buffer. The buffer is
[all …]
A Dsocket.texi1213 buffer. The return value from the function will be this buffer address.
2913 char buffer[1024];
2926 success = read (socket, buffer, sizeof buffer);
2941 struct buffer
2945 struct buffer *next;
2957 struct buffer *
2960 struct buffer *tail = 0;
2961 struct buffer *list = 0;
2978 = (struct buffer *) xmalloc (sizeof (struct buffer));
3007 = (struct buffer *) xmalloc (sizeof (struct buffer));
[all …]
A Dfilesys.texi88 zero, then the buffer is that large; otherwise, the buffer is as large
118 char *buffer = (char *) xmalloc (size);
119 if (getcwd (buffer, size) == buffer)
120 return buffer;
121 free (buffer);
504 a buffer within the @code{DIR} object. The data in that buffer will
1382 char *buffer = NULL;
1386 buffer = xreallocarray (buffer, size, 2);
1391 free (buffer);
1395 return buffer;
[all …]
A Dcrypt.texi246 @deftypefun int getentropy (void *@var{buffer}, size_t @var{length})
251 array starting at @var{buffer}. @var{length} can be no more than 256.
263 The combination of @var{buffer} and @var{length} arguments specifies
283 @deftypefun ssize_t getrandom (void *@var{buffer}, size_t @var{length}, unsigned int @var{flags})
288 array starting at @var{buffer}. The @var{flags} argument should be
314 been written to the buffer, which may be less than @var{length}. On
329 The combination of @var{buffer} and @var{length} arguments specifies
A Dllio.texi369 with descriptor @var{filedes}, storing the results in the @var{buffer}.
552 @var{buffer} to the file with descriptor @var{filedes}. The data in
638 nbytes = TEMP_FAILURE_RETRY (write (desc, buffer, count));
1083 obsolete data that had been in the stream's buffer.
1113 might not be clean, as its input buffer might not be empty.
1154 which describe the location and size of each buffer.
1164 Contains the address of a buffer.
1167 Contains the length of the buffer.
1204 them to @code{filedes}. As each buffer is written, it moves on to the
2387 buffer pointed to by @code{aio_buf}.
[all …]
A Dconf.texi1118 @cindex limits, pipe buffer size
1228 bytes in a terminal device input queue (or typeahead buffer).
1268 Recommended file transfer buffer alignment.
1542 If the string you asked for is too long for the buffer (that is, longer
1616 buffer accordingly, and then call @code{confstr} again to fill the
1617 buffer, like this:
1625 char *buffer = (char *) xmalloc (len);
1629 free (buffer);
1633 return buffer;
A Dtime.texi390 @deftypefun clock_t times (struct tms *@var{buffer})
399 the calling process in @var{buffer}.
1038 @c Calls tz_convert with a static buffer.
1149 But the result is not placed in a static buffer. Instead it is placed
1298 @c Uses a static buffer.
1329 result in a static buffer it writes the string in the buffer pointed to
1330 by the parameter @var{buffer}. This buffer should have room
1334 result was written into, i.e., it returns @var{buffer}. Otherwise
1364 string pointed to by @var{buffer}. It is equivalent to (written using
1372 result was written into, i.e., it returns @var{buffer}. Otherwise
[all …]
A Dargp.texi680 @c Lock stream, vasprintf the formatted message into a buffer, print the
681 @c buffer prefixed by the short program name (in libc,
683 @c program_invocation_short_name), releases the buffer, then call
697 @c formatted message to a buffer, print the buffer prefixed by colon and
698 @c blank, release the buffer, call strerror_r with an automatic buffer,
719 @c and translation, are the use of a static buffer (uparams, thus
A Dpattern.texi262 reuse the buffer. It is the responsibility of the caller of the
263 @code{glob} function to allocate and deallocate the buffer, around the
265 application could allocate the buffer in the @code{gl_readdir} callback
840 @c (re_)realloc @ascuheap @acsmem [no @asucorrupt @acucorrupt for we zero the buffer]
1623 …ar{errcode}, const regex_t *restrict @var{compiled}, char *restrict @var{buffer}, size_t @var{leng…
1629 starting at @var{buffer}. For the @var{compiled} argument, supply the
1643 should call @code{regerror} again with a larger buffer.
1646 allocates a buffer for the error message:
1652 char *buffer = xmalloc (length);
1653 (void) regerror (errcode, compiled, buffer, length);
[all …]
A Dstring.texi145 incomplete (and therefore unusable) byte sequence in the target buffer.
731 since how can one otherwise ensure the allocated size of the buffer is
1081 Although some buffer overruns can be prevented by manually replacing
1083 are often easier and safer automatic techniques that cause buffer
1607 /* @r{First try a buffer perhaps big enough.} */
1613 /* @r{If the buffer was not large enough, resize it}
1657 /* @r{If the buffer was not large enough, resize it}
2508 basic character set. It returns a pointer to a 7 byte buffer which
2510 user must copy the returned string to a destination buffer. It returns
2523 each 32-bit word of the buffer. For example, one could do something
[all …]
A Derrno.texi559 @errno{ENOBUFS, 55, No buffer space available}
1151 @c Calls strerror_r with a static buffer allocated with malloc on the
1171 returning the error message in a statically allocated buffer shared by
1174 string in the user supplied buffer starting at @var{buf} with the
1178 up to the user to select a buffer large enough.
1332 @c wide case converts the message to an alloca/malloc-allocated buffer
1496 @c alloca/malloc-created buffer using mbsrtowcs and then calls fwprintf.
A Dlocale.texi621 @c without synchronization, while writing to the static buffer it uses
1218 in that it takes a buffer, its size, a format string,
1219 and values to write into the buffer as text in a form specified
1221 also returns the number of bytes written into the buffer.
1313 modifier @samp{L}. The result is stored in the buffer pointed to by
1319 @math{-1} and the content of the buffer @var{s} is unspecified. In this
A Dterminal.texi96 except that it places its result into the user-specified buffer starting
111 The buffer length @var{len} is too small to store the string to be
130 @cindex typeahead buffer
132 @dfn{typeahead buffer}. It holds the characters that have been received
595 If this bit is set, then filling up the terminal input buffer sends a
1469 output buffer. Typing any other character resets the flag.
1580 Normally, @code{read} waits until there are 50 bytes in the buffer (or,
2114 except that it places its result into the user-specified buffer starting
A Dsysinfo.texi736 …getmntent_r (FILE *@var{stream}, struct mntent *@var{result}, char *@var{buffer}, int @var{bufsize…
754 buffer of size @var{bufsize} pointed to by @var{buffer}.
926 write completes rather than held in the buffer cache.
/manual/examples/
A Dstrftim.c26 char buffer[SIZE]; in main() local
41 strftime (buffer, SIZE, "Today is %A, %B %d.\n", loctime); in main()
42 fputs (buffer, stdout); in main()
43 strftime (buffer, SIZE, "The time is %I:%M %p.\n", loctime); in main()
44 fputs (buffer, stdout); in main()
A Drprintf.c36 char *buffer; in print_widget() local
41 len = asprintf (&buffer, "<Widget %p: %s>", w, w->name); in print_widget()
48 buffer); in print_widget()
51 free (buffer); in print_widget()
A Dstpcpy.c24 char buffer[10]; in main() local
25 char *to = buffer; in main()
28 puts (buffer); in main()
A Dmemopen.c20 static char buffer[] = "foobar"; variable
28 stream = fmemopen (buffer, strlen (buffer), "r"); in main()
A Dinetsrv.c33 char buffer[MAXMSG]; in read_from_client() local
36 nbytes = read (filedes, buffer, MAXMSG); in read_from_client()
49 fprintf (stderr, "Server: got message: `%s'\n", buffer); in read_from_client()
A Dsetjmp.c44 char buffer[128]; in do_command() local
45 if (fgets (buffer, 128, stdin) == NULL) in do_command()

Completed in 145 milliseconds

12