Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1521 connectés 

  FORUM HardWare.fr
  Programmation
  C

  sources librairies ...

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

sources librairies ...

n°1129549
gugusg
Posté le 24-06-2005 à 10:30:53  profilanswer
 

voila je recherche un site possédant des sources de librairies, notemment socket.h, stdio.h, ...
(en C)
 
voila si quelqu'un connais ce serai sympa ;)

mood
Publicité
Posté le 24-06-2005 à 10:30:53  profilanswer
 

n°1129552
Taz
bisounours-codeur
Posté le 24-06-2005 à 10:34:21  profilanswer
 

Code :
  1. /* Define ISO C stdio on top of C++ iostreams.
  2.    Copyright (C) 1991,1994-2002,2003 Free Software Foundation, Inc.
  3.    This file is part of the GNU C Library.
  4.    The GNU C Library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Lesser General Public
  6.    License as published by the Free Software Foundation; either
  7.    version 2.1 of the License, or (at your option) any later version.
  8.    The GNU C Library is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.    Lesser General Public License for more details.
  12.    You should have received a copy of the GNU Lesser General Public
  13.    License along with the GNU C Library; if not, write to the Free
  14.    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  15.    02111-1307 USA.  */
  16. /*
  17. * ISO C99 Standard: 7.19 Input/output <stdio.h>
  18. */
  19. #ifndef _STDIO_H
  20. #if !defined __need_FILE && !defined __need___FILE
  21. # define _STDIO_H 1
  22. # include <features.h>
  23. __BEGIN_DECLS
  24. # define __need_size_t
  25. # define __need_NULL
  26. # include <stddef.h>
  27. # include <bits/types.h>
  28. # define __need_FILE
  29. # define __need___FILE
  30. #endif /* Don't need FILE.  */
  31. #if !defined __FILE_defined && defined __need_FILE
  32. __BEGIN_NAMESPACE_STD
  33. /* The opaque type of streams.  This is the definition used elsewhere.  */
  34. typedef struct _IO_FILE FILE;
  35. __END_NAMESPACE_STD
  36. #if defined __USE_LARGEFILE64 || defined __USE_SVID || defined __USE_POSIX \
  37.     || defined __USE_BSD || defined __USE_ISOC99 || defined __USE_XOPEN \
  38.     || defined __USE_POSIX2
  39. __USING_NAMESPACE_STD(FILE)
  40. #endif
  41. # define __FILE_defined 1
  42. #endif /* FILE not defined.  */
  43. #undef __need_FILE
  44. #if !defined ____FILE_defined && defined __need___FILE
  45. /* The opaque type of streams.  This is the definition used elsewhere.  */
  46. typedef struct _IO_FILE __FILE;
  47. # define ____FILE_defined 1
  48. #endif /* __FILE not defined.  */
  49. #undef __need___FILE
  50. #ifdef _STDIO_H
  51. #define _STDIO_USES_IOSTREAM
  52. #include <libio.h>
  53. #ifdef __USE_XOPEN
  54. # ifdef __GNUC__
  55. #  ifndef _VA_LIST_DEFINED
  56. typedef _G_va_list va_list;
  57. #   define _VA_LIST_DEFINED
  58. #  endif
  59. # else
  60. #  include <stdarg.h>
  61. # endif
  62. #endif
  63. /* The type of the second argument to `fgetpos' and `fsetpos'.  */
  64. __BEGIN_NAMESPACE_STD
  65. #ifndef __USE_FILE_OFFSET64
  66. typedef _G_fpos_t fpos_t;
  67. #else
  68. typedef _G_fpos64_t fpos_t;
  69. #endif
  70. __END_NAMESPACE_STD
  71. #ifdef __USE_LARGEFILE64
  72. typedef _G_fpos64_t fpos64_t;
  73. #endif
  74. /* The possibilities for the third argument to `setvbuf'.  */
  75. #define _IOFBF 0   /* Fully buffered.  */
  76. #define _IOLBF 1  /* Line buffered.  */
  77. #define _IONBF 2  /* No buffering.  */
  78. /* Default buffer size.  */
  79. #ifndef BUFSIZ
  80. # define BUFSIZ _IO_BUFSIZ
  81. #endif
  82. /* End of file character.
  83.    Some things throughout the library rely on this being -1.  */
  84. #ifndef EOF
  85. # define EOF (-1)
  86. #endif
  87. /* The possibilities for the third argument to `fseek'.
  88.    These values should not be changed.  */
  89. #define SEEK_SET 0 /* Seek from beginning of file.  */
  90. #define SEEK_CUR 1 /* Seek from current position.  */
  91. #define SEEK_END 2 /* Seek from end of file.  */
  92. #if defined __USE_SVID || defined __USE_XOPEN
  93. /* Default path prefix for `tempnam' and `tmpnam'.  */
  94. # define P_tmpdir "/tmp"
  95. #endif
  96. /* Get the values:
  97.    L_tmpnam How long an array of chars must be to be passed to `tmpnam'.
  98.    TMP_MAX The minimum number of unique filenames generated by tmpnam
  99.      (and tempnam when it uses tmpnam's name space),
  100.  or tempnam (the two are separate).
  101.    L_ctermid How long an array to pass to `ctermid'.
  102.    L_cuserid How long an array to pass to `cuserid'.
  103.    FOPEN_MAX Minimum number of files that can be open at once.
  104.    FILENAME_MAX Maximum length of a filename.  */
  105. #include <bits/stdio_lim.h>
  106. /* Standard streams.  */
  107. extern struct _IO_FILE *stdin;  /* Standard input stream.  */
  108. extern struct _IO_FILE *stdout;  /* Standard output stream.  */
  109. extern struct _IO_FILE *stderr;  /* Standard error output stream.  */
  110. /* C89/C99 say they're macros.  Make them happy.  */
  111. #define stdin stdin
  112. #define stdout stdout
  113. #define stderr stderr
  114. __BEGIN_NAMESPACE_STD
  115. /* Remove file FILENAME.  */
  116. extern int remove (__const char *__filename) __THROW;
  117. /* Rename file OLD to NEW.  */
  118. extern int rename (__const char *__old, __const char *__new) __THROW;
  119. __END_NAMESPACE_STD
  120. __BEGIN_NAMESPACE_STD
  121. /* Create a temporary file and open it read/write.
  122.    This function is a possible cancellation points and therefore not
  123.    marked with __THROW.  */
  124. #ifndef __USE_FILE_OFFSET64
  125. extern FILE *tmpfile (void);
  126. #else
  127. # ifdef __REDIRECT
  128. extern FILE *__REDIRECT (tmpfile, (void), tmpfile64);
  129. # else
  130. #  define tmpfile tmpfile64
  131. # endif
  132. #endif
  133. #ifdef __USE_LARGEFILE64
  134. extern FILE *tmpfile64 (void);
  135. #endif
  136. /* Generate a temporary filename.  */
  137. extern char *tmpnam (char *__s) __THROW;
  138. __END_NAMESPACE_STD
  139. #ifdef __USE_MISC
  140. /* This is the reentrant variant of `tmpnam'.  The only difference is
  141.    that it does not allow S to be NULL.  */
  142. extern char *tmpnam_r (char *__s) __THROW;
  143. #endif
  144. #if defined __USE_SVID || defined __USE_XOPEN
  145. /* Generate a unique temporary filename using up to five characters of PFX
  146.    if it is not NULL.  The directory to put this file in is searched for
  147.    as follows: First the environment variable "TMPDIR" is checked.
  148.    If it contains the name of a writable directory, that directory is used.
  149.    If not and if DIR is not NULL, that value is checked.  If that fails,
  150.    P_tmpdir is tried and finally "/tmp".  The storage for the filename
  151.    is allocated by `malloc'.  */
  152. extern char *tempnam (__const char *__dir, __const char *__pfx)
  153.      __THROW __attribute_malloc__;
  154. #endif
  155. __BEGIN_NAMESPACE_STD
  156. /* Close STREAM.
  157.    This function is a possible cancellation point and therefore not
  158.    marked with __THROW.  */
  159. extern int fclose (FILE *__stream);
  160. /* Flush STREAM, or all streams if STREAM is NULL.
  161.    This function is a possible cancellation point and therefore not
  162.    marked with __THROW.  */
  163. extern int fflush (FILE *__stream);
  164. __END_NAMESPACE_STD
  165. #ifdef __USE_MISC
  166. /* Faster versions when locking is not required.
  167.    This function is not part of POSIX and therefore no official
  168.    cancellation point.  But due to similarity with an POSIX interface
  169.    or due to the implementation it is a cancellation point and
  170.    therefore not marked with __THROW.  */
  171. extern int fflush_unlocked (FILE *__stream);
  172. #endif
  173. #ifdef __USE_GNU
  174. /* Close all streams.
  175.    This function is not part of POSIX and therefore no official
  176.    cancellation point.  But due to similarity with an POSIX interface
  177.    or due to the implementation it is a cancellation point and
  178.    therefore not marked with __THROW.  */
  179. extern int fcloseall (void);
  180. #endif
  181. __BEGIN_NAMESPACE_STD
  182. #ifndef __USE_FILE_OFFSET64
  183. /* Open a file and create a new stream for it.
  184.    This function is a possible cancellation point and therefore not
  185.    marked with __THROW.  */
  186. extern FILE *fopen (__const char *__restrict __filename,
  187.      __const char *__restrict __modes);
  188. /* Open a file, replacing an existing stream with it.
  189.    This function is a possible cancellation point and therefore not
  190.    marked with __THROW.  */
  191. extern FILE *freopen (__const char *__restrict __filename,
  192.        __const char *__restrict __modes,
  193.        FILE *__restrict __stream);
  194. #else
  195. # ifdef __REDIRECT
  196. extern FILE *__REDIRECT (fopen, (__const char *__restrict __filename,
  197.     __const char *__restrict __modes), fopen64);
  198. extern FILE *__REDIRECT (freopen, (__const char *__restrict __filename,
  199.       __const char *__restrict __modes,
  200.       FILE *__restrict __stream), freopen64);
  201. # else
  202. #  define fopen fopen64
  203. #  define freopen freopen64
  204. # endif
  205. #endif
  206. __END_NAMESPACE_STD
  207. #ifdef __USE_LARGEFILE64
  208. extern FILE *fopen64 (__const char *__restrict __filename,
  209.        __const char *__restrict __modes);
  210. extern FILE *freopen64 (__const char *__restrict __filename,
  211.   __const char *__restrict __modes,
  212.   FILE *__restrict __stream);
  213. #endif
  214. #ifdef __USE_POSIX
  215. /* Create a new stream that refers to an existing system file descriptor.  */
  216. extern FILE *fdopen (int __fd, __const char *__modes) __THROW;
  217. #endif
  218. #ifdef __USE_GNU
  219. /* Create a new stream that refers to the given magic cookie,
  220.    and uses the given functions for input and output.  */
  221. extern FILE *fopencookie (void *__restrict __magic_cookie,
  222.     __const char *__restrict __modes,
  223.     _IO_cookie_io_functions_t __io_funcs) __THROW;
  224. /* Create a new stream that refers to a memory buffer.  */
  225. extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes) __THROW;
  226. /* Open a stream that writes into a malloc'd buffer that is expanded as
  227.    necessary.  *BUFLOC and *SIZELOC are updated with the buffer's location
  228.    and the number of characters written on fflush or fclose.  */
  229. extern FILE *open_memstream (char **__restrict __bufloc,
  230.        size_t *__restrict __sizeloc) __THROW;
  231. #endif
  232. __BEGIN_NAMESPACE_STD
  233. /* If BUF is NULL, make STREAM unbuffered.
  234.    Else make it use buffer BUF, of size BUFSIZ.  */
  235. extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW;
  236. /* Make STREAM use buffering mode MODE.
  237.    If BUF is not NULL, use N bytes of it for buffering;
  238.    else allocate an internal buffer N bytes long.  */
  239. extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
  240.      int __modes, size_t __n) __THROW;
  241. __END_NAMESPACE_STD
  242. #ifdef __USE_BSD
  243. /* If BUF is NULL, make STREAM unbuffered.
  244.    Else make it use SIZE bytes of BUF for buffering.  */
  245. extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
  246.         size_t __size) __THROW;
  247. /* Make STREAM line-buffered.  */
  248. extern void setlinebuf (FILE *__stream) __THROW;
  249. #endif
  250. __BEGIN_NAMESPACE_STD
  251. /* Write formatted output to STREAM.
  252.    This function is a possible cancellation point and therefore not
  253.    marked with __THROW.  */
  254. extern int fprintf (FILE *__restrict __stream,
  255.      __const char *__restrict __format, ...);
  256. /* Write formatted output to stdout.
  257.    This function is a possible cancellation point and therefore not
  258.    marked with __THROW.  */
  259. extern int printf (__const char *__restrict __format, ...);
  260. /* Write formatted output to S.  */
  261. extern int sprintf (char *__restrict __s,
  262.      __const char *__restrict __format, ...) __THROW;
  263. /* Write formatted output to S from argument list ARG.
  264.    This function is a possible cancellation point and therefore not
  265.    marked with __THROW.  */
  266. extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
  267.       _G_va_list __arg);
  268. /* Write formatted output to stdout from argument list ARG.
  269.    This function is a possible cancellation point and therefore not
  270.    marked with __THROW.  */
  271. extern int vprintf (__const char *__restrict __format, _G_va_list __arg);
  272. /* Write formatted output to S from argument list ARG.  */
  273. extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
  274.       _G_va_list __arg) __THROW;
  275. __END_NAMESPACE_STD
  276. #if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98
  277. __BEGIN_NAMESPACE_C99
  278. /* Maximum chars of output to write in MAXLEN.  */
  279. extern int snprintf (char *__restrict __s, size_t __maxlen,
  280.       __const char *__restrict __format, ...)
  281.      __THROW __attribute__ ((__format__ (__printf__, 3, 4)));
  282. extern int vsnprintf (char *__restrict __s, size_t __maxlen,
  283.        __const char *__restrict __format, _G_va_list __arg)
  284.      __THROW __attribute__ ((__format__ (__printf__, 3, 0)));
  285. __END_NAMESPACE_C99
  286. #endif
  287. #ifdef __USE_GNU
  288. /* Write formatted output to a string dynamically allocated with `malloc'.
  289.    Store the address of the string in *PTR.  */
  290. extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
  291.        _G_va_list __arg)
  292.      __THROW __attribute__ ((__format__ (__printf__, 2, 0)));
  293. extern int __asprintf (char **__restrict __ptr,
  294.         __const char *__restrict __fmt, ...)
  295.      __THROW __attribute__ ((__format__ (__printf__, 2, 3)));
  296. extern int asprintf (char **__restrict __ptr,
  297.       __const char *__restrict __fmt, ...)
  298.      __THROW __attribute__ ((__format__ (__printf__, 2, 3)));
  299. /* Write formatted output to a file descriptor.
  300.    These functions are not part of POSIX and therefore no official
  301.    cancellation point.  But due to similarity with an POSIX interface
  302.    or due to the implementation they are cancellation points and
  303.    therefore not marked with __THROW.  */
  304. extern int vdprintf (int __fd, __const char *__restrict __fmt,
  305.       _G_va_list __arg)
  306.      __attribute__ ((__format__ (__printf__, 2, 0)));
  307. extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
  308.      __attribute__ ((__format__ (__printf__, 2, 3)));
  309. #endif
  310. __BEGIN_NAMESPACE_STD
  311. /* Read formatted input from STREAM.
  312.    This function is a possible cancellation point and therefore not
  313.    marked with __THROW.  */
  314. extern int fscanf (FILE *__restrict __stream,
  315.     __const char *__restrict __format, ...);
  316. /* Read formatted input from stdin.
  317.    This function is a possible cancellation point and therefore not
  318.    marked with __THROW.  */
  319. extern int scanf (__const char *__restrict __format, ...);
  320. /* Read formatted input from S.  */
  321. extern int sscanf (__const char *__restrict __s,
  322.     __const char *__restrict __format, ...) __THROW;
  323. __END_NAMESPACE_STD
  324. #ifdef __USE_ISOC99
  325. __BEGIN_NAMESPACE_C99
  326. /* Read formatted input from S into argument list ARG.
  327.    This function is a possible cancellation point and therefore not
  328.    marked with __THROW.  */
  329. extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
  330.      _G_va_list __arg)
  331.      __attribute__ ((__format__ (__scanf__, 2, 0)));
  332. /* Read formatted input from stdin into argument list ARG.
  333.    This function is a possible cancellation point and therefore not
  334.    marked with __THROW.  */
  335. extern int vscanf (__const char *__restrict __format, _G_va_list __arg)
  336.      __attribute__ ((__format__ (__scanf__, 1, 0)));
  337. /* Read formatted input from S into argument list ARG.  */
  338. extern int vsscanf (__const char *__restrict __s,
  339.      __const char *__restrict __format, _G_va_list __arg)
  340.      __THROW __attribute__ ((__format__ (__scanf__, 2, 0)));
  341. __END_NAMESPACE_C99
  342. #endif /* Use ISO C9x.  */
  343. __BEGIN_NAMESPACE_STD
  344. /* Read a character from STREAM.
  345.    These functions are possible cancellation points and therefore not
  346.    marked with __THROW.  */
  347. extern int fgetc (FILE *__stream);
  348. extern int getc (FILE *__stream);
  349. /* Read a character from stdin.
  350.    This function is a possible cancellation point and therefore not
  351.    marked with __THROW.  */
  352. extern int getchar (void);
  353. __END_NAMESPACE_STD
  354. /* The C standard explicitly says this is a macro, so we always do the
  355.    optimization for it.  */
  356. #define getc(_fp) _IO_getc (_fp)
  357. #if defined __USE_POSIX || defined __USE_MISC
  358. /* These are defined in POSIX.1:1996.
  359.    These functions are possible cancellation points and therefore not
  360.    marked with __THROW.  */
  361. extern int getc_unlocked (FILE *__stream);
  362. extern int getchar_unlocked (void);
  363. #endif /* Use POSIX or MISC.  */
  364. #ifdef __USE_MISC
  365. /* Faster version when locking is not necessary.
  366.    This function is not part of POSIX and therefore no official
  367.    cancellation point.  But due to similarity with an POSIX interface
  368.    or due to the implementation it is a cancellation point and
  369.    therefore not marked with __THROW.  */
  370. extern int fgetc_unlocked (FILE *__stream);
  371. #endif /* Use MISC.  */
  372. __BEGIN_NAMESPACE_STD
  373. /* Write a character to STREAM.
  374.    These functions are possible cancellation points and therefore not
  375.    marked with __THROW.
  376.    These functions is a possible cancellation point and therefore not
  377.    marked with __THROW.  */
  378. extern int fputc (int __c, FILE *__stream);
  379. extern int putc (int __c, FILE *__stream);
  380. /* Write a character to stdout.
  381.    This function is a possible cancellation point and therefore not
  382.    marked with __THROW.  */
  383. extern int putchar (int __c);
  384. __END_NAMESPACE_STD
  385. /* The C standard explicitly says this can be a macro,
  386.    so we always do the optimization for it.  */
  387. #define putc(_ch, _fp) _IO_putc (_ch, _fp)
  388. #ifdef __USE_MISC
  389. /* Faster version when locking is not necessary.
  390.    This function is not part of POSIX and therefore no official
  391.    cancellation point.  But due to similarity with an POSIX interface
  392.    or due to the implementation it is a cancellation point and
  393.    therefore not marked with __THROW.  */
  394. extern int fputc_unlocked (int __c, FILE *__stream);
  395. #endif /* Use MISC.  */
  396. #if defined __USE_POSIX || defined __USE_MISC
  397. /* These are defined in POSIX.1:1996.
  398.    These functions are possible cancellation points and therefore not
  399.    marked with __THROW.  */
  400. extern int putc_unlocked (int __c, FILE *__stream);
  401. extern int putchar_unlocked (int __c);
  402. #endif /* Use POSIX or MISC.  */
  403. #if defined __USE_SVID || defined __USE_MISC \
  404.     || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
  405. /* Get a word (int) from STREAM.  */
  406. extern int getw (FILE *__stream);
  407. /* Write a word (int) to STREAM.  */
  408. extern int putw (int __w, FILE *__stream);
  409. #endif
  410. __BEGIN_NAMESPACE_STD
  411. /* Get a newline-terminated string of finite length from STREAM.
  412.    This function is a possible cancellation point and therefore not
  413.    marked with __THROW.  */
  414. extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream);
  415. /* Get a newline-terminated string from stdin, removing the newline.
  416.    DO NOT USE THIS FUNCTION!!  There is no limit on how much it will read.
  417.    This function is a possible cancellation point and therefore not
  418.    marked with __THROW.  */
  419. extern char *gets (char *__s);
  420. __END_NAMESPACE_STD
  421. #ifdef __USE_GNU
  422. /* This function does the same as `fgets' but does not lock the stream.
  423.    This function is not part of POSIX and therefore no official
  424.    cancellation point.  But due to similarity with an POSIX interface
  425.    or due to the implementation it is a cancellation point and
  426.    therefore not marked with __THROW.  */
  427. extern char *fgets_unlocked (char *__restrict __s, int __n,
  428.        FILE *__restrict __stream);
  429. #endif
  430. #ifdef __USE_GNU
  431. /* Read up to (and including) a DELIMITER from STREAM into *LINEPTR
  432.    (and null-terminate it). *LINEPTR is a pointer returned from malloc (or
  433.    NULL), pointing to *N characters of space.  It is realloc'd as
  434.    necessary.  Returns the number of characters read (not including the
  435.    null terminator), or -1 on error or EOF.
  436.    These functions are not part of POSIX and therefore no official
  437.    cancellation point.  But due to similarity with an POSIX interface
  438.    or due to the implementation they are cancellation points and
  439.    therefore not marked with __THROW.  */
  440. extern _IO_ssize_t __getdelim (char **__restrict __lineptr,
  441.          size_t *__restrict __n, int __delimiter,
  442.          FILE *__restrict __stream);
  443. extern _IO_ssize_t getdelim (char **__restrict __lineptr,
  444.        size_t *__restrict __n, int __delimiter,
  445.        FILE *__restrict __stream);
  446. /* Like `getdelim', but reads up to a newline.
  447.    This function is not part of POSIX and therefore no official
  448.    cancellation point.  But due to similarity with an POSIX interface
  449.    or due to the implementation it is a cancellation point and
  450.    therefore not marked with __THROW.  */
  451. extern _IO_ssize_t getline (char **__restrict __lineptr,
  452.       size_t *__restrict __n,
  453.       FILE *__restrict __stream);
  454. #endif
  455. __BEGIN_NAMESPACE_STD
  456. /* Write a string to STREAM.
  457.    This function is a possible cancellation points and therefore not
  458.    marked with __THROW.  */
  459. extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
  460. /* Write a string, followed by a newline, to stdout.
  461.    This function is a possible cancellation points and therefore not
  462.    marked with __THROW.  */
  463. extern int puts (__const char *__s);
  464. /* Push a character back onto the input buffer of STREAM.
  465.    This function is a possible cancellation points and therefore not
  466.    marked with __THROW.  */
  467. extern int ungetc (int __c, FILE *__stream);
  468. /* Read chunks of generic data from STREAM.
  469.    This function is a possible cancellation points and therefore not
  470.    marked with __THROW.  */
  471. extern size_t fread (void *__restrict __ptr, size_t __size,
  472.       size_t __n, FILE *__restrict __stream);
  473. /* Write chunks of generic data to STREAM.
  474.    This function is a possible cancellation points and therefore not
  475.    marked with __THROW.  */
  476. extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
  477.        size_t __n, FILE *__restrict __s);
  478. __END_NAMESPACE_STD
  479. #ifdef __USE_GNU
  480. /* This function does the same as `fputs' but does not lock the stream.
  481.    This function is not part of POSIX and therefore no official
  482.    cancellation point.  But due to similarity with an POSIX interface
  483.    or due to the implementation it is a cancellation point and
  484.    therefore not marked with __THROW.  */
  485. extern int fputs_unlocked (__const char *__restrict __s,
  486.      FILE *__restrict __stream);
  487. #endif
  488. #ifdef __USE_MISC
  489. /* Faster versions when locking is not necessary.
  490.    These functions are not part of POSIX and therefore no official
  491.    cancellation point.  But due to similarity with an POSIX interface
  492.    or due to the implementation they are cancellation points and
  493.    therefore not marked with __THROW.  */
  494. extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
  495.         size_t __n, FILE *__restrict __stream);
  496. extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
  497.          size_t __n, FILE *__restrict __stream);
  498. #endif
  499. __BEGIN_NAMESPACE_STD
  500. /* Seek to a certain position on STREAM.
  501.    This function is a possible cancellation point and therefore not
  502.    marked with __THROW.  */
  503. extern int fseek (FILE *__stream, long int __off, int __whence);
  504. /* Return the current position of STREAM.
  505.    This function is a possible cancellation point and therefore not
  506.    marked with __THROW.  */
  507. extern long int ftell (FILE *__stream);
  508. /* Rewind to the beginning of STREAM.
  509.    This function is a possible cancellation point and therefore not
  510.    marked with __THROW.  */
  511. extern void rewind (FILE *__stream);
  512. __END_NAMESPACE_STD
  513. /* The Single Unix Specification, Version 2, specifies an alternative,
  514.    more adequate interface for the two functions above which deal with
  515.    file offset.  `long int' is not the right type.  These definitions
  516.    are originally defined in the Large File Support API.  */
  517. #ifdef __USE_LARGEFILE
  518. # ifndef __USE_FILE_OFFSET64
  519. /* Seek to a certain position on STREAM.
  520.    This function is a possible cancellation point and therefore not
  521.    marked with __THROW.  */
  522. extern int fseeko (FILE *__stream, __off_t __off, int __whence);
  523. /* Return the current position of STREAM.
  524.    This function is a possible cancellation point and therefore not
  525.    marked with __THROW.  */
  526. extern __off_t ftello (FILE *__stream);
  527. # else
  528. #  ifdef __REDIRECT
  529. extern int __REDIRECT (fseeko,
  530.         (FILE *__stream, __off64_t __off, int __whence),
  531.         fseeko64);
  532. extern __off64_t __REDIRECT (ftello, (FILE *__stream), ftello64);
  533. else
  534. #   define fseeko fseeko64
  535. #   define ftello ftello64
  536. #  endif
  537. # endif
  538. #endif
  539. __BEGIN_NAMESPACE_STD
  540. #ifndef __USE_FILE_OFFSET64
  541. /* Get STREAM's position.
  542.    This function is a possible cancellation point and therefore not
  543.    marked with __THROW.  */
  544. extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
  545. /* Set STREAM's position.
  546.    This function is a possible cancellation point and therefore not
  547.    marked with __THROW.  */
  548. extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
  549. #else
  550. # ifdef __REDIRECT
  551. extern int __REDIRECT (fgetpos, (FILE *__restrict __stream,
  552.     fpos_t *__restrict __pos), fgetpos64);
  553. extern int __REDIRECT (fsetpos,
  554.         (FILE *__stream, __const fpos_t *__pos), fsetpos64);
  555. # else
  556. #  define fgetpos fgetpos64
  557. #  define fsetpos fsetpos64
  558. # endif
  559. #endif
  560. __END_NAMESPACE_STD
  561. #ifdef __USE_LARGEFILE64
  562. extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
  563. extern __off64_t ftello64 (FILE *__stream);
  564. extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
  565. extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
  566. #endif
  567. __BEGIN_NAMESPACE_STD
  568. /* Clear the error and EOF indicators for STREAM.  */
  569. extern void clearerr (FILE *__stream) __THROW;
  570. /* Return the EOF indicator for STREAM.  */
  571. extern int feof (FILE *__stream) __THROW;
  572. /* Return the error indicator for STREAM.  */
  573. extern int ferror (FILE *__stream) __THROW;
  574. __END_NAMESPACE_STD
  575. #ifdef __USE_MISC
  576. /* Faster versions when locking is not required.  */
  577. extern void clearerr_unlocked (FILE *__stream) __THROW;
  578. extern int feof_unlocked (FILE *__stream) __THROW;
  579. extern int ferror_unlocked (FILE *__stream) __THROW;
  580. #endif
  581. __BEGIN_NAMESPACE_STD
  582. /* Print a message describing the meaning of the value of errno.
  583.    This function is a possible cancellation point and therefore not
  584.    marked with __THROW.  */
  585. extern void perror (__const char *__s);
  586. __END_NAMESPACE_STD
  587. /* Provide the declarations for `sys_errlist' and `sys_nerr' if they
  588.    are available on this system.  Even if available, these variables
  589.    should not be used directly.  The `strerror' function provides
  590.    all the necessary functionality.  */
  591. #include <bits/sys_errlist.h>
  592. #ifdef __USE_POSIX
  593. /* Return the system file descriptor for STREAM.  */
  594. extern int fileno (FILE *__stream) __THROW;
  595. #endif /* Use POSIX.  */
  596. #ifdef __USE_MISC
  597. /* Faster version when locking is not required.  */
  598. extern int fileno_unlocked (FILE *__stream) __THROW;
  599. #endif
  600. #if (defined __USE_POSIX2 || defined __USE_SVID  || defined __USE_BSD || \
  601.      defined __USE_MISC)
  602. /* Create a new stream connected to a pipe running the given command.
  603.    This function is a possible cancellation point and therefore not
  604.    marked with __THROW.  */
  605. extern FILE *popen (__const char *__command, __const char *__modes);
  606. /* Close a stream opened by popen and return the status of its child.
  607.    This function is a possible cancellation point and therefore not
  608.    marked with __THROW.  */
  609. extern int pclose (FILE *__stream);
  610. #endif
  611. #ifdef __USE_POSIX
  612. /* Return the name of the controlling terminal.  */
  613. extern char *ctermid (char *__s) __THROW;
  614. #endif /* Use POSIX.  */
  615. #ifdef __USE_XOPEN
  616. /* Return the name of the current user.  */
  617. extern char *cuserid (char *__s);
  618. #endif /* Use X/Open, but not issue 6.  */
  619. #ifdef __USE_GNU
  620. struct obstack;   /* See <obstack.h>.  */
  621. /* Write formatted output to an obstack.  */
  622. extern int obstack_printf (struct obstack *__restrict __obstack,
  623.      __const char *__restrict __format, ...)
  624.      __THROW __attribute__ ((__format__ (__printf__, 2, 3)));
  625. extern int obstack_vprintf (struct obstack *__restrict __obstack,
  626.       __const char *__restrict __format,
  627.       _G_va_list __args)
  628.      __THROW __attribute__ ((__format__ (__printf__, 2, 0)));
  629. #endif /* Use GNU.  */
  630. #if defined __USE_POSIX || defined __USE_MISC
  631. /* These are defined in POSIX.1:1996.  */
  632. /* Acquire ownership of STREAM.  */
  633. extern void flockfile (FILE *__stream) __THROW;
  634. /* Try to acquire ownership of STREAM but do not block if it is not
  635.    possible.  */
  636. extern int ftrylockfile (FILE *__stream) __THROW;
  637. /* Relinquish the ownership granted for STREAM.  */
  638. extern void funlockfile (FILE *__stream) __THROW;
  639. #endif /* POSIX || misc */
  640. #if defined __USE_XOPEN && !defined __USE_XOPEN2K && !defined __USE_GNU
  641. /* The X/Open standard requires some functions and variables to be
  642.    declared here which do not belong into this header.  But we have to
  643.    follow.  In GNU mode we don't do this nonsense.  */
  644. # define __need_getopt
  645. # include <getopt.h>
  646. #endif /* X/Open, but not issue 6 and not for GNU.  */
  647. /* If we are compiling with optimizing read this file.  It contains
  648.    several optimizing inline functions and macros.  */
  649. #ifdef __USE_EXTERN_INLINES
  650. # include <bits/stdio.h>
  651. #endif
  652. __END_DECLS
  653. #endif /* <stdio.h> included.  */
  654. #endif /* !_STDIO_H */


 
de rien.

n°1129760
gugusg
Posté le 24-06-2005 à 13:16:06  profilanswer
 

merci, et tu l'as trouvé ou que je puisses trouver les autres ? :)

n°1129761
Farvil
Posté le 24-06-2005 à 13:20:21  profilanswer
 

sûrement sur son pc dans un repertoire qui s'appelle include

n°1129769
Elmoricq
Modérateur
Posté le 24-06-2005 à 13:26:31  profilanswer
 

gugusg a écrit :

voila je recherche un site possédant des sources de librairies, notemment socket.h, stdio.h, ...


 
Un .h est un fichier en-tête, pas une "librairie".  [:aloy]  
 
Quant aux shared-lib (.so) ou DLL (.dll), en anglais on dit peut-être "library", mais en français il s'agit de bibliothèque. ;)
 
Librairie :

Citation :

 1. Commerce des livres; profession de libraire ou de libraire-éditeur.


 
 
Bibliothèque :

Citation :


A. Lieu où est rangée une collection de livres.
 
P. anal., INFORMAT. Bibliothèque de programmes. ,,Collection de programmes et de sous-programmes standard soigneusement testés, au moyen de laquelle on peut résoudre plusieurs types de problèmes ou de parties de problèmes`` (Électron. 1959).


Message édité par Elmoricq le 24-06-2005 à 13:27:42
n°1129899
gugusg
Posté le 24-06-2005 à 14:18:04  profilanswer
 

Farvil a écrit :

sûrement sur son pc dans un repertoire qui s'appelle include


 
merci mais moi je ne l'ai pas c'est pour ca que je lui demande  ;)  
 
 

Elmoricq a écrit :

Un .h est un fichier en-tête, pas une "librairie".  [:aloy]  
 
Quant aux shared-lib (.so) ou DLL (.dll), en anglais on dit peut-être "library", mais en français il s'agit de bibliothèque. ;)
 
Librairie :

Citation :

 1. Commerce des livres; profession de libraire ou de libraire-éditeur.


 
 
Bibliothèque :

Citation :


A. Lieu où est rangée une collection de livres.
 
P. anal., INFORMAT. Bibliothèque de programmes. ,,Collection de programmes et de sous-programmes standard soigneusement testés, au moyen de laquelle on peut résoudre plusieurs types de problèmes ou de parties de problèmes`` (Électron. 1959).



 
pour les .h je sais que ce sont bien des headers de librairies, et je recherche les sources associées que je ne possède pas.
Sinon merci pour le cours de distinction librairies/bibliothèque dans la langue francaise mais ca ne m'aide pas à résoudre mon probleme hélas  :sweat:  
 

n°1129903
Elmoricq
Modérateur
Posté le 24-06-2005 à 14:19:31  profilanswer
 

Les .h sont dans ton répertoires include normalement.
Si tu n'as pas de répertoire include... installe un environnement de dev. :o

n°1129978
gugusg
Posté le 24-06-2005 à 14:40:15  profilanswer
 

j'ai les .h mais ce n'est pas ce que je recherche, je voudrai les fonctions associées aux déclarations contenues dans les .h :)

n°1129997
Elmoricq
Modérateur
Posté le 24-06-2005 à 14:47:12  profilanswer
 

Ah.
Je ne sais pas ce que tu vas en faire, mais je pense que tu peux trouver ça ici :
http://www.gnu.org/software/libc/libc.html

n°1130087
gugusg
Posté le 24-06-2005 à 15:37:32  profilanswer
 

merci, c'est ce que j'avais aussi trouvé de mon coté je suis en train de regarder ;)

mood
Publicité
Posté le 24-06-2005 à 15:37:32  profilanswer
 

n°1130088
chrisbk
-
Posté le 24-06-2005 à 15:39:11  profilanswer
 

m'enfin, kestu nous bricole ?

n°1130122
Elmoricq
Modérateur
Posté le 24-06-2005 à 16:06:43  profilanswer
 

chrisbk a écrit :

m'enfin, kestu nous bricole ?


 
J'aimerais bien savoir aussi.  [:atari]

n°1130581
el muchach​o
Comfortably Numb
Posté le 25-06-2005 à 08:49:58  profilanswer
 

gugusg a écrit :


pour les .h je sais que ce sont bien des headers de librairies


Tu le fais exprès ou quoi ?

n°1130719
chrisbk
-
Posté le 25-06-2005 à 14:37:05  profilanswer
 

enculage de mouche

n°1130721
WhatDe
Posté le 25-06-2005 à 14:40:34  profilanswer
 

chrisbk a écrit :

enculage de mouche


Depuis un moment :/


---------------
[:whatde]
n°1131754
gugusg
Posté le 27-06-2005 à 00:13:15  profilanswer
 

el muchacho a écrit :

Tu le fais exprès ou quoi ?


 
 
si c'est pour pinailler sur ce détail tu peut sortir  :hello:

n°1131781
Taz
bisounours-codeur
Posté le 27-06-2005 à 00:54:52  profilanswer
 

gugusg a écrit :

si c'est pour pinailler sur ce détail tu peut sortir  :hello:


rappelle nous de te parler franglais la prochaine fois que tu demandes de l'aide, pour être sur que tu ne comprennes rien.

n°1131839
chrisbk
-
Posté le 27-06-2005 à 09:06:40  profilanswer
 

nan il a raison, on s'en fout que la traduction soit pas correcte a 100%, tout le monde pige de quoi il veut parler et pondre 17 posts la dessus c'est ridicule.

n°1131926
gugusg
Posté le 27-06-2005 à 10:19:36  profilanswer
 

Taz a écrit :

rappelle nous de te parler franglais la prochaine fois que tu demandes de l'aide, pour être sur que tu ne comprennes rien.


 
 
tu as déja cherché "librairie C" ou "bibliothèque C" sur google ? les deux sont des termes très usités et pinailler sur ce détail faut vraiment etre atteint vu que vous aviez tous compris de quoi je parlais  :fou:

n°1131930
Taz
bisounours-codeur
Posté le 27-06-2005 à 10:25:43  profilanswer
 

ce n'est pas un détail.

n°1131934
Dion
Acceuil
Posté le 27-06-2005 à 10:26:35  profilanswer
 

gugusg a écrit :

tu as déja cherché "librairie C" ou "bibliothèque C" sur google ? les deux sont des termes très usités et pinailler sur ce détail faut vraiment etre atteint vu que vous aviez tous compris de quoi je parlais  :fou:


 
tu viens de rencontrer taz  [:xx_xx]


Message édité par Dion le 27-06-2005 à 10:26:42

---------------
When it comes to business/legal topics, just assume almost everyone commenting has no idea what they’re taking about and have no background in these subjects because that’s how it really is. Harkonnen 8-> Elmoricq 8====>
n°1132110
chrisbk
-
Posté le 27-06-2005 à 12:07:28  profilanswer
 

Taz, au lieu de pinailler, ca s'utilise comment la hash_map sous gcc ? (celle contenue dans le beau namespace __gnu_cxx)
 
jveux dire, si je veux avoir un type a moi comme clé, elle attends quoi comme fonction ? (les messages d'erreurs sont imbitables)

n°1142513
Taz
bisounours-codeur
Posté le 06-07-2005 à 18:56:14  profilanswer
 
mood
Publicité
Posté le   profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  C

  sources librairies ...

 

Sujets relatifs
[c++] Inclure des librairies C++ dans des fichiers C [self-resolu][c++] Problèmes avec plusieurs fichiers sources
compiler un source java qui utilise des librairies externesc++ builder ne pas montrer les sources
[FORTRAN 77] Utiliser des librairies (math)Comment savoir quelles librairies manques
Conversion sources C en source asm (en java)[RESOLU] compiler sources c et c++ avec autoconf/automake
extraire des données de plusieures sourcesenvoie d'un fichier par email -> manque de librairies ?????
Plus de sujets relatifs à : sources librairies ...


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR