~ubuntu-branches/ubuntu/quantal/uclibc/quantal

« back to all changes in this revision

Viewing changes to include/string.h

  • Committer: Bazaar Package Importer
  • Author(s): Hector Oron
  • Date: 2011-06-11 03:06:20 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110611030620-ywjfvyuqvrpsm282
Tags: 0.9.32-1
* New upstream release
* Add myself as maintainer
* Bump standards version 
* Add Vcs-Git, Vcs-Browser and Homepage fields
* Add watch file 

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
extern size_t strxfrm (char *__restrict __dest,
125
125
                       __const char *__restrict __src, size_t __n)
126
126
     __THROW __nonnull ((2));
127
 
libc_hidden_proto(strxfrm)
128
127
__END_NAMESPACE_STD
129
128
 
130
129
#if defined __USE_GNU && defined __UCLIBC_HAS_XLOCALE__
257
256
extern void *memmem (__const void *__haystack, size_t __haystacklen,
258
257
                     __const void *__needle, size_t __needlelen)
259
258
     __THROW __attribute_pure__ __nonnull ((1, 3));
260
 
libc_hidden_proto(memmem)
261
259
 
262
260
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
263
261
   last written byte.  */
307
305
   ERRNUM.  */
308
306
extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen)
309
307
     __THROW __nonnull ((2));
 
308
libc_hidden_proto(__xpg_strerror_r)
310
309
#  ifdef __REDIRECT_NTH
311
310
extern int __REDIRECT_NTH (strerror_r,
312
311
                           (int __errnum, char *__buf, size_t __buflen),
319
318
   used.  */
320
319
extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen)
321
320
     __THROW __nonnull ((2));
 
321
libc_hidden_proto(__glibc_strerror_r)
322
322
#  ifdef __REDIRECT_NTH
323
323
extern char * __REDIRECT_NTH (strerror_r,
324
324
                           (int __errnum, char *__buf, size_t __buflen),
376
376
 
377
377
/* The following two functions are non-standard but necessary for non-32 bit
378
378
   platforms.  */
379
 
#if 0 /*def     __USE_GNU*/
 
379
#ifdef __USE_GNU
380
380
extern int ffsl (long int __l) __THROW __attribute__ ((__const__));
381
381
#  ifdef __GNUC__
382
382
__extension__ extern int ffsll (long long int __ll)
420
420
 
421
421
#ifdef  __USE_GNU
422
422
/* Compare S1 and S2 as strings holding name & indices/version numbers.  */
423
 
#if 0
424
423
extern int strverscmp (__const char *__s1, __const char *__s2)
425
424
     __THROW __attribute_pure__ __nonnull ((1, 2));
426
425
libc_hidden_proto(strverscmp)
427
 
#endif
428
426
 
429
427
/* Return a string describing the meaning of the signal number in SIG.  */
430
428
extern char *strsignal (int __sig) __THROW;
431
429
libc_hidden_proto(strsignal)
432
430
 
433
431
/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST.  */
434
 
#if 0 /* uClibc: disabled */
 
432
# if 0 /* uClibc: disabled */
435
433
extern char *__stpcpy (char *__restrict __dest, __const char *__restrict __src)
436
434
     __THROW __nonnull ((1, 2));
437
 
#endif
 
435
# endif
438
436
extern char *stpcpy (char *__restrict __dest, __const char *__restrict __src)
439
437
     __THROW __nonnull ((1, 2));
440
438
libc_hidden_proto(stpcpy)
441
439
 
442
440
/* Copy no more than N characters of SRC to DEST, returning the address of
443
441
   the last character written into DEST.  */
444
 
#if 0 /* uClibc: disabled */
 
442
# if 0 /* uClibc: disabled */
445
443
extern char *__stpncpy (char *__restrict __dest,
446
444
                        __const char *__restrict __src, size_t __n)
447
445
     __THROW __nonnull ((1, 2));
448
 
#endif
 
446
# endif
449
447
extern char *stpncpy (char *__restrict __dest,
450
448
                      __const char *__restrict __src, size_t __n)
451
449
     __THROW __nonnull ((1, 2));
452
 
libc_hidden_proto(stpncpy)
453
450
 
454
 
#if 0                                                   /* uClibc does not support strfry or memfrob. */
 
451
# if 0                  /* uClibc does not support strfry or memfrob. */
455
452
/* Sautee STRING briskly.  */
456
453
extern char *strfry (char *__string) __THROW __nonnull ((1));
457
454
 
458
455
/* Frobnicate N bytes of S.  */
459
456
extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1));
460
 
#endif
 
457
# endif
461
458
 
462
459
# ifndef basename
463
460
/* Return the file name within directory of FILENAME.  We don't
467
464
extern char *basename (__const char *__filename) __THROW __nonnull ((1));
468
465
libc_hidden_proto(basename)
469
466
# endif
470
 
#endif
 
467
#endif /* __USE_GNU */
471
468
 
472
469
 
473
470
#ifdef  __USE_BSD
482
479
 
483
480
__END_DECLS
484
481
 
485
 
#endif /* string.h  */
 
482
 
 
483
#if defined(_LIBC) && defined(__UCLIBC_HAS_STRING_ARCH_OPT__)
 
484
# if defined __i386__
 
485
#  include <../libc/string/i386/string.h>
 
486
# endif
 
487
#endif
 
488
 
 
489
#endif /* string.h */