1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

416 Commits

Author SHA1 Message Date
Bruno Haible 60ed215df0 New module 'mbsnlen'. 2007-06-11 00:29:30 +00:00
Bruno Haible a5beeffaed New modules uniconv/u{8,16,32}-conv-to-enc. 2007-06-09 21:59:21 +00:00
Bruno Haible 66d6ad3d23 Update after allocsa -> malloca renaming. 2007-06-09 11:27:29 +00:00
Eric Blake e461ff7387 Fix lseek on mingw.
* modules/lseek: New module.
* m4/lseek.m4: New file.
* lib/lseek.c: New file.
* modules/lseek-tests: New file.
* tests/test-lseek.c: New file.
* tests/test-lseek.sh: New file.
* MODULES.html.sh: Document lseek module.
* modules/fflush (Depends-on): Add lseek, fseeko.
* modules/fseeko (Depends-on): Likewise.
* modules/ftello (Depends-on): Likewise.
* m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
broken.
* m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
broken.
* m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
* lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
* lib/ftello.c (rpl_ftello): Likewise.
* tests/test-fseeko.c (main): Test this.
* tests/test-fseeko.sh: Likewise.
* tests/test-ftello.c (main): Likewise.
* tests/test-ftello.sh: Likewise.
* lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
implies replacing fseek.
* modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
HAVE_FTELLO.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
* modules/unistd (Makefile.am): Likewise.
* lib/unistd_.h (lseek): Declare a replacement.
* doc/functions/lseek.texi (lseek): Document this fix.
* doc/functions/fseek.texi (fseek): Likewise.
* doc/functions/ftell.texi (ftell): Likewise.
2007-05-24 16:59:20 +00:00
Bruno Haible bdf5c6ac81 There is no POSIX function called 'exec'. 2007-05-01 14:03:44 +00:00
Bruno Haible 8120d328a4 There is no POSIX function named 'toc'. 2007-05-01 13:53:42 +00:00
Bruno Haible b7143ceeb4 There is no POSIX function called 'contents'. 2007-04-29 15:33:25 +00:00
Eric Blake a8f9564405 Implement freading and fwriting.
* lib/freading.c: New file.
* lib/freading.h: Likewise.
* m4/freading.m4: Likewise.
* modules/freading: Likewise.
* modules/freading-tests: Likewise.
* tests/test-freading.c: Likewise.
* lib/fwriting.c: New file.
* lib/fwriting.h: Likewise.
* m4/fwriting.m4: Likewise.
* modules/fwriting: Likewise.
* modules/fwriting-tests: Likewise.
* tests/test-fwriting.c: Likewise.
* MODULES.html.sh (File stream based Input/Output): Mention them.
2007-04-26 13:16:50 +00:00
Eric Blake cc133e1865 Work around glibc's failure to reset seekable stdin on exit.
* modules/closein: New module.
* lib/closein.c: New file.
* lib/closein.h: Likewise.
* m4/closein.m4: Likewise.
* MODULES.html.sh (File stream based Input/Output): Document it.
2007-04-12 16:11:40 +00:00
Simon Josefsson 6de2a44177 2007-04-12 Simon Josefsson <simon@josefsson.org>
* MODULES.html.sh (Support for maintaining and releasing
	projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
2007-04-12 12:02:23 +00:00
Eric Blake 0c47a3bb3a * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
* modules/stdio (Makefile.am): Support fflush.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
* modules/fflush: New file.
* lib/fflush.c: Likewise.
* m4/fflush.m4: Likewise.
* modules/fflush-tests: New test.
* tests/test-fflush.c: Likewise.
* MODULES.html.sh (Input/output <stdio.h>): Document new module.
2007-04-10 03:09:07 +00:00
Simon Josefsson c4725a8a62 2007-04-04 Simon Josefsson <simon@josefsson.org>
* MODULES.html.sh: Rename crypto modules.  Remove iconvme.
2007-04-04 14:34:04 +00:00
Karl Berry fe5d1c56aa (func_module): missing '. 2007-04-04 13:09:34 +00:00
Bruno Haible 704db9fe58 Classify a few new modules. 2007-03-31 14:01:54 +00:00
Paul Eggert 6bfbb0d1d8 * MODULES.html.sh (File system functions): New module write-any-file.
* modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
* m4/write-any-file.m4: New files.
2007-03-23 17:33:07 +00:00
Bruno Haible 2331f96855 Add the xreadlink module from GNU gettext (based on code from Jim Meyering). 2007-03-01 00:07:34 +00:00
Bruno Haible 94a1038450 Rename module 'pathname' to 'filename'.
Rename concatenated_pathname to concatenated_filename.
2007-02-25 15:31:15 +00:00
Bruno Haible b2f3ab8c42 New module 'stdio'. 2007-02-21 02:18:10 +00:00
Bruno Haible 8fb02d1cf7 New module 'stdlib'. 2007-02-18 15:39:54 +00:00
Bruno Haible d30cbe969a New module 'math'. 2007-02-18 15:38:34 +00:00
Bruno Haible 2261dd4577 New module 'link-warning'. 2007-02-18 02:00:09 +00:00
Bruno Haible 8c0f3c676c New module 'tmpfile'. 2007-02-17 15:04:50 +00:00
Bruno Haible 58d5932625 New module 'mbspcasecmp'. 2007-02-15 03:07:04 +00:00
Bruno Haible b5b2e76ad8 New module 'mbsncasecmp'. 2007-02-15 02:57:13 +00:00
Paul Eggert 3ac9552429 New module 'time', so that apps can include <time.h> as per
POSIX and GNU instead of separate include files like time_r.h
and timegm.h.  This implementation tries out a simpler approach
for replacing decls in standard include files (as compared to
the string module), somewhat as an experiment.

* config/srclist.txt: Comment out mktime.c for now.
* doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
since it doesn't apply any more.  Use generic wording instead.
* MODULES.html.sh (Support for systems lacking POSIX:2001): New module
'time'.
* lib/time_.h, m4/time_h.m4, modules/time: New files.
* lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
* lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
Don't include <sys/types.h>; no longer needed since we assume C89.
* lib/mktime.c: Don't include "time_r.h"; no longer needed.
* lib/strftime.c: Likewise.
* lib/time_r.c: Likewise.
* lib/nanosleep.c (nanosleep): #undef after include files, not before.
* lib/nanosleep.c: Include <time.h> first, to check interface.
* lib/strptime.c: Likewise.
* lib/time_r.c: Likewise.
* lib/timegm.c: Likewise.
* lib/strptime.c: Don't include strptime.h or time_r.h; no longer
needed.
* lib/timegm.c: Don't include timegm.h; no longer needed.
* lib/timespec.h: Don't include <sys/time.h> before <time.h>;
time.h now handles any problems in that area.
(struct timespec, nanosleep): Remove; time.h now arranges for these.
* lib/xnanosleep.c: Don't include timespec.h; no longer needed now
that time.h defines struct timespec.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
handles that.
* m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
* m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
needed.  Set REPLACE_LOCALTIME.
* m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
* m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
(gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
nanosleep; time_h.m4 now does that.  Don't require
gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
module handles this now.
* modules/getdate (Depends-on): Remove timespec.  Add time.
* modules/nanosleep (Depends-on): Likewise.
* modules/stat-time (Depends-on): Likewise.
* modules/nanosleep (Include): Include time.h, not timespec.h.
* modules/strptime (Files): Remove lib/strptime.h.
(Depends-on): Add extensions, time.
(Include): Include time.h, not strptime.h.
* modules/time_r (Files): Remove lib/time_r.h.
(Depends-on): Add time.
(Include): Include time.h, not time_r.h.
* modules/timegm: Likewise.
* modules/timespec (Description): Now does timespec-related decls
of our own, instead of struct timespec itself.
(Depends-on): Add time; remove extensions.
(Maintainer): Add self.
* modules/utimecmp (Depends-on): Add time; remove timespec.
* modules/utimens (Depends-on): Likewise.
* modules/xnanosleep (Depends-on): Likewise.
2007-02-12 18:49:19 +00:00
Bruno Haible ef66119f6b New module 'mbslen'. 2007-02-11 17:02:31 +00:00
Bruno Haible 62992ed63f New module 'mbssep'. 2007-02-06 01:59:41 +00:00
Bruno Haible 0c5f9b8dce New module 'mbstok_r'. 2007-02-05 03:30:43 +00:00
Bruno Haible 2a2eb44016 New module 'mbsspn'. 2007-02-05 03:23:34 +00:00
Bruno Haible 33a590e2d5 New module 'mbspbrk'. 2007-02-05 03:12:26 +00:00
Bruno Haible f410f7db6d New module 'mbscspn'. 2007-02-05 03:06:40 +00:00
Bruno Haible 9dcc0e0540 New module 'mbscasestr'. Reduced goal of 'strcasestr'. 2007-02-05 02:42:27 +00:00
Bruno Haible 623e3b9edb New module 'mbscasecmp'. strcasecmp is not expected to work with multibyte
strings.
2007-02-05 01:57:07 +00:00
Bruno Haible 0e6e2d08f8 New module 'mbsstr'. Remove module 'strstr'. 2007-02-05 01:36:34 +00:00
Bruno Haible f213651e6f New module 'mbsrchr'. 2007-02-05 01:16:13 +00:00
Bruno Haible 22a636592e New module 'mbschr'. 2007-02-05 01:01:37 +00:00
Bruno Haible 74767fdda8 Fix module name list after recent renamings. 2007-02-01 17:22:52 +00:00
Bruno Haible 0730a6cdc7 New module 'strptime'. Initial fixes. 2007-01-29 17:33:12 +00:00
Paul Eggert 2e06fa893a * MODULES.html.sh: New module mpsort.
* lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
2007-01-29 07:23:21 +00:00
Bruno Haible 0ffbcafa9e New modules uniconv/*. 2007-01-27 01:05:04 +00:00
Bruno Haible 634ce9adaa New modules streq, c-strcaseeq. 2007-01-24 02:47:09 +00:00
Bruno Haible 36a6f68259 New module 'striconveha'. 2007-01-21 22:59:19 +00:00
Paul Eggert 5661ab9d49 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
module sys_time.
* lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
assume timespec.h defines struct timeval.
* lib/settime.c: Likewise.
* lib/utimens.c: Likewise.
* lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
since we now assume the gettimeofday module.
* lib/tempname.c (__gen_tempname): Likewise.
* lib/gettimeofday.h: Remove.
* lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
Include <time.h>, for 'time()'.
(localtime_buffer_addr): Also use this workaround if
TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
to simplify the uses.  All uses changed.
(localtime, gmtime, tzset, gettimeofday): Reformat slightly so
that #undef is inside {}, and 'const' follows type name consistently.
(tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
(gettimeofday): Do not use the maximum possible value for
tv->tv_usec, since that might break usages other than ls.c.
Instead, we'll leave ls.c alone.  This undoes today's patch
by Bruno.  Add a compile-time warning for 1s-clock resolution;
we've never observed the problem but might as well keep the
canary.
* lib/nanosleep.c: Include timespec.h first, for interface check.
* lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
now assume the sys_time module.
* lib/tempname.c: Likewise.
* lib/timespec.h: Likewise.
* lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
needed.
* lib/strftime.c: Likewise.
* lib/timespec.h: Likewise.
* lib/posixtm.c: Include posixtm.h first, for interface check.
Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
* lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
* lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
* lib/sys_time_.h: New file.
* lib/timespec.h (struct timespec): Use long int, not long.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
(gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
Remove obsolescent call to AC_HEADER_TIME.
* m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
* m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
* m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
Likewise.
* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
* m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
into the sys_time module.  Check for gettimeofday just once.
Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
for gettimeofday signature to just check the signature.  Merely
compile it, since linking doesn't test signature.  Improve test for
whether gettimeofday.o is actually needed.
(gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
(gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
* m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
than worrying about sys/time.h.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
Don't bother worrying about TIME_WITH_SYS_TIME.
* m4/stat-time.m4 (gl_STAT_TIME): Likewise.
* m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
* m4/sys_time_h.m4: New file.
* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
Don't include sys/time.h.  Return from main rather than exiting.
Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
all uses changed.
* modules/gethrxtime (Depends-on): Add sys_time.
* modules/gettime (Depends-on): Likewise.
* modules/gettimeofday (Depends-on): Likewise.
* modules/nanosleep (Depends-on): Likewise.
* modules/settime (Depends-on): Likewise.
* modules/tempname (Depends-on): Likewise.
* modules/utimens (Depends-on): Likewise.
* modules/gettimeofday (Files): Remove lib/gettimeofday.h.
(Include:) Change back to <sys/time.h>.
(Maintainer:) Add self.
* modules/sys_time: New file.
* modules/tempname (Depends-on): Add gettimeofday.
* tests/test-gettimeofday.c: Include <sys/time.h>
rather than gettimeofday.h.
2007-01-18 08:33:34 +00:00
Bruno Haible c6ad67bb80 New module 'striconveh'. 2007-01-16 03:47:23 +00:00
Bruno Haible 854ebf64dc New module 'fchdir'. 2007-01-14 11:32:10 +00:00
Eric Blake 51a3188e1d Provide a robust <wchar.h>. Further simplifications are now
possible in other modules, but not included here.
* modules/wchar: New module.
* m4/wchar.m4: New file.
* lib/wchar_.h: Likewise.
* modules/mbchar (Depends-on): Depend on wchar, as the first use
of the new module.
* MODULES.html.sh (Extended multibyte and wide character utilities):
New section.
2007-01-13 05:23:36 +00:00
Bruno Haible e9ebcf4473 Accept options --cvs-urls, --git-urls. 2007-01-09 16:14:04 +00:00
Bruno Haible f89dcd9f36 New unistr/* modules. 2007-01-09 14:11:03 +00:00
Bruno Haible 35bb09e86d Add the new modules utf8-ucs4-safe, utf16-ucs4-safe. 2007-01-09 13:12:27 +00:00
Bruno Haible dcab3e21d7 Basic types for Unicode strings. 2007-01-08 20:29:19 +00:00