summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add modules for sys/times.h header and times function.Simon Josefsson2008-10-282-0/+126
|
* Fix typo in last commit.Simon Josefsson2008-10-271-1/+1
|
* lib/sys_stat.in.h (lstat): Fix declaration for mingw.Simon Josefsson2008-10-271-6/+13
|
* * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.Jim Meyering2008-10-261-1/+4
|
* Fix a clash between the type DATADIR on Windows and the macro DATADIR.Bruno Haible2008-10-261-3/+3
|
* stdlib: Provide struct random_data.Simon Josefsson2008-10-261-1/+14
| | | | | | | | | * m4/stdlib_h.m4: Check for struct random_data. Initialize and substitute HAVE_STRUCT_RANDOM_DATA. * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct random_data. * modules/stdlib (Makefile.am): Substitute HAVE_STRUCT_RANDOM_DATA.
* Override the gethostname() declaration on native Windows systems.Bruno Haible2008-10-252-1/+54
|
* Move HAVE__GL_CLOSE_FD_MAYBE_SOCKET macro.Bruno Haible2008-10-252-5/+4
|
* Use stdint.h, for int32_t.Simon Josefsson2008-10-251-0/+4
|
* getgroups: fix compilation when getgroups is availableEric Blake2008-10-241-3/+5
| | | | | | | * lib/getgroups.c (includes): Include <unistd.h> for getgroups, but with <config.h> override of getgroups disabled. Signed-off-by: Eric Blake <ebb9@byu.net>
* Define a dummy SA_NODEFER macro on Interix.Bruno Haible2008-10-241-0/+6
|
* random_r: new moduleJim Meyering2008-10-232-0/+457
| | | | | | | | | | | | | | | | | | * modules/random_r: New file. * m4/random_r.m4: New file. * lib/random_r.c: New file, from glibc. * modules/random_r-tests: New file. * tests/test-random_r.c: New file. * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r): Declare. (RAND_MAX): Define. * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R. * modules/stdlib: Substitute them, too. * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it. * doc/glibc-functions/initstate_r.texi: Mention the new module. * doc/glibc-functions/random_r.texi: Likewise. * doc/glibc-functions/setstate_r.texi: Likewise. * doc/glibc-functions/srandom_r.texi: Likewise. * config/srclist.txt: Mention it.
* selinux-h: mark parameters of stub functions as intentionally unusedJim Meyering2008-10-232-27/+41
| | | | | * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_. * lib/se-context.in.h: Likewise.
* lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.Simon Josefsson2008-10-221-2/+2
|
* glthread/thread: avoid compiler warningEric Blake2008-10-221-0/+1
| | | | | | | * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]: Add unreachable abort to silence compiler. Signed-off-by: Eric Blake <ebb9@byu.net>
* netdb: also supply struct addrinfo for cygwin 1.5.xEric Blake2008-10-221-2/+3
| | | | | | | | | | * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on older cygwin. * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for cygwin. * doc/posix-headers/netdb.texi (netdb.h): Document this. Signed-off-by: Eric Blake <ebb9@byu.net>
* se-linux-h: remove ENOTSUPP-defining code; instead, use errnoJim Meyering2008-10-212-18/+0
| | | | | | | * modules/selinux-h (Depends-on): Add errno. (configure.ac): Add AC_REQUIRE([AC_C_INLINE]). * lib/se-context.in.h: Remove code to define ENOTSUPP. * lib/se-selinux.in.h: Likewise.
* selinux-h: new module (from coreutils/gl/)Jim Meyering2008-10-212-0/+88
| | | | | | | | * modules/selinux-h: New file. * lib/se-context.in.h: New file. * lib/se-selinux.in.h: New file. * m4/selinux-context-h.m4: New file. * m4/selinux-selinux-h.m4: New file.
* Cleanup and simplify winsock split changes.Bruno Haible2008-10-214-7/+2
| | | | | | | | | | | | | | | | | | Simplification. * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration. * lib/close.c (_gl_close_fd_maybe_socket): Make static. Simplification. * lib/ioctl.c (ioctl): Don't undefine. * lib/socket.c (socket): Don't undefine. Remove unused module indicator macros. * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define GNULIB_$1 as a C macro. * doc/posix-functions/close.texi: Undo last change. * doc/posix-functions/ioctl.texi: Merge the two paragraphs about Windows platforms.
* Add gethostname() declaration to <unistd.h>.Bruno Haible2008-10-212-0/+23
|
* Split winsock.c into many smaller files.Simon Josefsson2008-10-2118-348/+733
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c. * lib/accept.c: New file, based on winsock.c. * lib/bind.c: New file, based on winsock.c. * lib/connect.c: New file, based on winsock.c. * lib/getpeername.c: New file, based on winsock.c. * lib/getsockname.c: New file, based on winsock.c. * lib/getsockopt.c: New file, based on winsock.c. * lib/ioctl.c: New file, based on winsock.c. * lib/listen.c: New file, based on winsock.c. * lib/recv.c: New file, based on winsock.c. * lib/recvfrom.c: New file, based on winsock.c. * lib/send.c: New file, based on winsock.c. * lib/sendto.c: New file, based on winsock.c. * lib/setsockopt.c: New file, based on winsock.c. * lib/shutdown.c: New file, based on winsock.c. * lib/socket.c: New file, based on winsock.c. * lib/w32sock.h: New file, based on winsock.c. * lib/winsock.c: Remove file. * modules/accept: Likewise. * modules/bind: Likewise. * modules/connect: Likewise. * modules/getpeername: Likewise. * modules/getsockname: Likewise. * modules/getsockopt: Likewise. * modules/ioctl: Likewise. * modules/listen: Likewise. * modules/recv: Likewise. * modules/recvfrom: Likewise. * modules/send: Likewise. * modules/sendto: Likewise. * modules/setsockopt: Likewise. * modules/shutdown: Likewise. * modules/socket: Use socket.c instead of winsock.c. * modules/sys_socket: Remove (unneeded?) dependency on winsock.c. * doc/posix-functions/accept.texi: Doc fix. * doc/posix-functions/bind.texi: Doc fix. * doc/posix-functions/close.texi: Doc fix. * doc/posix-functions/connect.texi: Doc fix. * doc/posix-functions/getpeername.texi: Doc fix. * doc/posix-functions/getsockname.texi: Doc fix. * doc/posix-functions/getsockopt.texi: Doc fix. * doc/posix-functions/ioctl.texi: Doc fix. * doc/posix-functions/listen.texi: Doc fix. * doc/posix-functions/recv.texi: Doc fix. * doc/posix-functions/recvfrom.texi: Doc fix. * doc/posix-functions/send.texi: Doc fix. * doc/posix-functions/sendto.texi: Doc fix. * doc/posix-functions/setsockopt.texi: Doc fix. * doc/posix-functions/shutdown.texi: Doc fix. * doc/posix-functions/socket.texi: Doc fix.
* Take into account the role of SIGABRT_COMPAT on Windows 2008.Bruno Haible2008-10-212-2/+51
|
* Move the lstat() declaration to <sys/stat.h>.Bruno Haible2008-10-215-36/+34
|
* canon-host: Include netdb.h instead of getaddrinfo.h.Jim Meyering2008-10-201-3/+2
|
* lib/netdb.in.h: Don't define GNU specific constants.Simon Josefsson2008-10-201-1/+5
| | | | Reported by Bruno Haible <bruno@clisp.org>.
* Move getaddrinfo.h declarations to netdb.h.Simon Josefsson2008-10-204-169/+135
| | | | | | | | | | | | | * lib/getaddrinfo.h: Remove file. * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h. * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h. * lib/netdb.in.h: Add declarations from getaddrinfo.h. * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0. * modules/netdb: Substitute GNULIB_GETADDRINFO. * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h. * tests/test-getaddrinfo.c: Likewise. * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check. * NEWS: Mention change.
* Make use of sys_wait module.Bruno Haible2008-10-191-43/+0
|
* New module 'sys_wait'.Bruno Haible2008-10-191-0/+108
|
* Assume that waitpid() fills an 'int' status, not a 'union wait'.Bruno Haible2008-10-191-24/+9
|
* New module 'atoll'.Bruno Haible2008-10-192-0/+51
|
* Add strtoull() declaration to <stdlib.h>.Bruno Haible2008-10-191-2/+23
|
* Add strtoll() declaration to <stdlib.h>.Bruno Haible2008-10-191-0/+21
|
* Avoid a compilation error on mingw.Bruno Haible2008-10-191-4/+4
|
* Move the isnanf(), isnand(), isnanl() declarations to <math.h>.Bruno Haible2008-10-1911-112/+71
|
* Add getusershell(), setusershell(), endusershell() declarations to <unistd.h>.Bruno Haible2008-10-192-1/+34
|
* Add a getloadavg() declaration to <stdlib.h>.Bruno Haible2008-10-192-2/+26
|
* Move the lchmod() declaration to <sys/stat.h>.Bruno Haible2008-10-193-37/+31
|
* Move the dirfd() declaration to <dirent.h>.Bruno Haible2008-10-197-41/+23
|
* Move the euidaccess() declaration to <unistd.h>.Bruno Haible2008-10-193-5/+16
|
* Move the getdomainname() declaration to <unistd.h>.Bruno Haible2008-10-194-48/+28
|
* New module 'dirent'.Bruno Haible2008-10-191-1/+1
|
* Avoid -Wunused-parameter warnings in public gnulib header files.Bruno Haible2008-10-181-3/+3
|
* Avoid gcc warnings because of #pragma GCC system_header on older gcc.Bruno Haible2008-10-1831-0/+62
|
* New implementation of condition variables for Win32.Bruno Haible2008-10-174-182/+269
|
* ignore-value: new moduleJim Meyering2008-10-171-0/+45
| | | | | | | * modules/ignore-value: New file. * lib/ignore-value.h: New file. * MODULES.html.sh (Compiler warning management): New section, just for this module. More to come.
* open-safer.c: avoid 'signed and unsigned in conditional...' warningPaul Eggert2008-10-161-4/+5
| | | | | * lib/open-safer.c (open_safer): Use an "if/else" statement in place of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
* openat-die.c: avoid 'no previous prototype' warningJim Meyering2008-10-161-1/+3
| | | | | * lib/openat-die.c: Include "openat.h". Reported by Reuben Thomas <rrt@sc3d.org>.
* Fixes for netdb.h.Simon Josefsson2008-10-161-1/+4
| | | | | | | | | | * m4/netdb_h.m4: Assume that if netdb.h exists, it works. * lib/netdb.in.h: Fix typo. Reported by Bruno Haible <bruno@clisp.org> * lib/netdb.in.h: Include sys/socket.h for platforms without netdb.h, to get structures like hostent on MinGW. * modules/netdb (Depends-on): Add sys_socket.
* Add netdb.h replacement module.Simon Josefsson2008-10-151-0/+48
| | | | Currently empty and unused, but that will change soon.
* Add a comment.Bruno Haible2008-10-141-2/+4
|