mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 02:36:16 +02:00
Add _GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_DEALLOC, _GL_ATTRIBUTE_DALLOC_FREE, _GL_ATTRIBUTE_RETURNS_NONNULL to .h files when appropriate. * gl/lib/mbsalign.h, gl/lib/randperm.h, src/chown-core.h: Include stdlib.h, for the benefit of _GL_ATTRIBUTE_DALLOC_FREE. * gl/lib/randread.c (randread_free_body): New static function. (randread_new, randread_free): Use it. * src/copy.c (valid_options): Remove assert that is no longer needed because it is now checked statically.
13 lines
374 B
C
13 lines
374 B
C
#include <stdbool.h>
|
|
#include "fts_.h"
|
|
|
|
FTS *
|
|
xfts_open (char * const *, int options,
|
|
int (*) (const FTSENT **, const FTSENT **))
|
|
_GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (fts_close, 1)
|
|
_GL_ATTRIBUTE_NONNULL ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL;
|
|
|
|
bool
|
|
cycle_warning_required (FTS const *fts, FTSENT const *ent)
|
|
_GL_ATTRIBUTE_NONNULL () _GL_ATTRIBUTE_PURE;
|