Branch: Tag:

2021-11-25

2021-11-25 10:19:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build: Survive OSes without MAXPATHLEN.

Fixes compilation on eg Hurd.

2020-02-07

2020-02-07 12:19:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'grubba/fdlib' into grubba/pty-handling-new

* grubba/fdlib: (55 commits)
I/O [NT]: Use read-write locking for fd_busy and fd_to_{socket,handle()}.
I/O [NT]: Fixed typo.
I/O [NT]: Avoid blocking on read from pipes with data.
Added some paranoia
System [NT]: Normalize the drive letter explicitly in normalize_path().
System [NT]: More normalize_path() fixes.
Configure [Solaris]: Fixed quoting level issue.
System [NT]: Fixed trailing slashes from normalize_path().
I/O [Solaris]: Fix getcwd() on Solaris.
I/O [NT]: Fixed a few warnings.
I/O [NT]: Moved bulk of normalize_path() to fdlib.
System [NT]: Update normalize_path() to use UTF8.
I/O [NT]: Get rid of DO_NOT_WARN().
I/O [NT]: Added some more FD_DEBUG.
I/O [NT]: Fixed typo in FD_DEBUG code.
Build [NT]: Always use or own implementation of _dosmaperr().
Build [NT]: Improved support for MSVC 2010 (aka MSC 1600).
I/O [NT]: Fixed deadlock.
I/O [NT]: Updated FD_DEBUG diagnostics.
I/O [NT]: Survive invalid UTF-16 surrogate pairs.
...

2020-02-05

2020-02-05 11:02:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'grubba/fdlib' into grubba/pty-handling

* grubba/fdlib: (55 commits)
I/O [NT]: Use read-write locking for fd_busy and fd_to_{socket,handle()}.
I/O [NT]: Fixed typo.
I/O [NT]: Avoid blocking on read from pipes with data.
Added some paranoia
System [NT]: Normalize the drive letter explicitly in normalize_path().
System [NT]: More normalize_path() fixes.
Configure [Solaris]: Fixed quoting level issue.
System [NT]: Fixed trailing slashes from normalize_path().
I/O [Solaris]: Fix getcwd() on Solaris.
I/O [NT]: Fixed a few warnings.
I/O [NT]: Moved bulk of normalize_path() to fdlib.
System [NT]: Update normalize_path() to use UTF8.
I/O [NT]: Get rid of DO_NOT_WARN().
I/O [NT]: Added some more FD_DEBUG.
I/O [NT]: Fixed typo in FD_DEBUG code.
Build [NT]: Always use or own implementation of _dosmaperr().
Build [NT]: Improved support for MSVC 2010 (aka MSC 1600).
I/O [NT]: Fixed deadlock.
I/O [NT]: Updated FD_DEBUG diagnostics.
I/O [NT]: Survive invalid UTF-16 surrogate pairs.
...

2019-03-19

2019-03-19 12:33:55 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge commit '722771973bd' into patches/lyslyskom22891031

* commit '722771973bd': (6177 commits)
Verify that callablep responses are aligned with reality.
...

2019-03-14

2019-03-14 10:39:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge commit '2470270f500c728d10b8895314d8d8b07016e37b' into grubba/typechecker-automap

* commit '2470270f500c728d10b8895314d8d8b07016e37b': (18681 commits)
Removed the old typechecker.
...

2018-11-04

2018-11-04 16:11:11 by Arne Goedeke <el@laramies.com>

Merge remote-tracking branch 'origin/master' into new_utf8

2018-11-03

2018-11-03 14:21:37 by Marcus Comstedt <marcus@mc.pp.se>

Merge remote-tracking branch 'origin/8.1' into gobject-introspection

2018-10-23

2018-10-23 09:10:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>

EFUNs: get_dir("") is now an alias for get_dir(".").

This is a convenience when recursing with eg dirname().

Also removes a stray debug output.

2018-05-08

2018-05-08 09:36:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'grubba/fdlib' into 8.0

* grubba/fdlib: (36 commits)
I/O [NT]: Updated FD_DEBUG diagnostics.
I/O [NT]: Moved FD_SETSIZE definition to global.h.
I/O [NT]: Use new low-level functions from Process.
I/O [NT]: Added some assertions.
I/O [NT]: Added serialization of access to fd handles.
I/O [NT]: Use the new low-level functions.
I/O [NT]: Added some low-level fd handling functions.
Build [NT]: Fix typo of EACCES.
I/O [NT]: Document some internal data structures.
Stdio: Cleanup File()->truncate().
Configure: Moved tests for truncate64() and ftruncate64().
Stdio [NT]: Fixed warning on NT.
Stdio [NT]: Added detection constant __HAVE_UTF8_FS__.
I/O [NT]: Added note about the intent of fdlib.
Stdio [NT]: Update get_dir() to accept/return UTF8.
Stdio [NT]: Cleanup filesystem_stat().
Stdio [NT]: Clean up getcwd().
I/O [NT]: Added fd_get_current_dir_name().
Configure: Check for getwd() and get_current_dir_name().
Stdio [NT]: Clean up cd().
...

2018-04-24

2018-04-24 14:45:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'grubba/fdlib' into 8.1

* grubba/fdlib: (25 commits)
Stdio [NT]: Fixed warning on NT.
Stdio [NT]: Added detection constant __HAVE_UTF8_FS__.
I/O [NT]: Added note about the intent of fdlib.
Stdio [NT]: Update get_dir() to accept/return UTF8.
Stdio [NT]: Cleanup filesystem_stat().
Stdio [NT]: Clean up getcwd().
I/O [NT]: Added fd_get_current_dir_name().
Configure: Check for getwd() and get_current_dir_name().
Stdio [NT]: Clean up cd().
I/O [NT]: Added fd_chdir().
Stdio [NT]: Clean up mv().
I/O [NT]: Added fd_rename().
I/O [NT]: Added facility for dynamic lookup of library symbols.
Stdio [NT]: Clean up mkdir().
I/O [NT]: Added fd_mkdir().
Configure: Moved API test of mkdir().
Stdio [NT]: Clean up rm().
I/O [NT]: Added fd_unlink().
I/O [NT]: Added fd_rmdir().
Stdio [NT]: Clean up file_truncate().
...

2018-04-24 14:33:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Update get_dir() to accept/return UTF8.

All filesystem accessing functions on NT should now be
UTF8/UTF16-aware.

2018-04-24 14:33:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Cleanup filesystem_stat().

filesystem_stat() is now aware of UTF8/UTF16.

2018-04-24 14:33:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up getcwd().

getcwd() now uses fd_get_current_dir_name() and is thus UTF8/UTF16 aware.

2018-04-24 14:32:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up cd().

cd() now uses fd_chdir() and is thus UTF8/UTF16 aware.

2018-04-24 14:32:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up mv().

mv() now uses fd_rename() and is thus UTF8/UTF16 aware.

2018-04-24 14:32:07 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up mkdir().

mkdir() now uses fd_mkdir() and is thus UTF8/UTF16 aware.

2018-04-24 14:32:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up rm().

rm() now uses fd_unlink()/fd_rmdir() and is thus UTF8/UTF16 aware.

2018-04-24 14:32:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up file_truncate().

file_truncate() now uses fd_truncate() and is thus UTF8/UTF16 aware.

2018-04-24 14:19:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Update get_dir() to accept/return UTF8.

All filesystem accessing functions on NT should now be
UTF8/UTF16-aware.

2018-04-24 14:17:53 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Cleanup filesystem_stat().

filesystem_stat() is now aware of UTF8/UTF16.

2018-04-24 14:17:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up getcwd().

getcwd() now uses fd_get_current_dir_name() and is thus UTF8/UTF16 aware.

2018-04-24 14:17:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up cd().

cd() now uses fd_chdir() and is thus UTF8/UTF16 aware.

2018-04-24 14:17:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up mv().

mv() now uses fd_rename() and is thus UTF8/UTF16 aware.

2018-04-24 14:17:44 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up mkdir().

mkdir() now uses fd_mkdir() and is thus UTF8/UTF16 aware.

2018-04-24 14:17:41 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up rm().

rm() now uses fd_unlink()/fd_rmdir() and is thus UTF8/UTF16 aware.

2018-04-24 09:18:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio [NT]: Clean up file_truncate().

file_truncate() now uses fd_truncate() and is thus UTF8/UTF16 aware.

2018-04-16

2018-04-16 15:54:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/pike90' into 8.0

* patches/pike90:
Stdio [NT]: Fixed single byte buffer overrun in mv() on NT.

2018-04-16 15:53:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch 'patches/pike90' into 8.1

* patches/pike90:
Stdio [NT]: Fixed single byte buffer overrun in mv() on NT.

2018-02-15

2018-02-15 15:54:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge commit '75c9d1806f1a69ca21c27a2c2fe1b4a6ea38e77e' into patches/pike63

* commit '75c9d1806f1a69ca21c27a2c2fe1b4a6ea38e77e': (19587 commits)
...

2018-02-12

2018-02-12 21:49:35 by Marcus Comstedt <marcus@mc.pp.se>

Fix spelling of FALLTHRU directive

The non-standard spelling "FALL_THROUGH" is not recognized by gcc 7.3.
Also, the comment must not contain any other text, or be placed inside
braces.

2017-12-31

2017-12-31 23:19:10 by Peter Bortas <bortas@gmail.com>

Merge remote-tracking branch 'origin/8.1' into peter/travis

2017-12-11

2017-12-11 22:32:57 by Martin Nilsson <nilsson@fastmail.com>

Fixed warnings from FreeBSD Xenofarm.

2017-07-12

2017-07-12 18:43:16 by William Welliver <william@welliver.org>

Stdio: include fstype name on systems that provide it as a string (Darwin)

2017-07-12 15:10:37 by William Welliver <william@welliver.org>

Stdio: guard against systems for which filesystem type is reserved.

2017-06-19

2017-06-19 13:43:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: filesystem_stat() on Linux should now set fstype.

2017-02-26

2017-02-26 10:45:38 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Avoid using readdir_r(3C).

readdir_r() has been marked as deprecated in current glibc, and
is redundant in all modern libc's, where readdir(3C) is thread
safe as long as the same DIR/dirfd is not used in several threads.

2017-01-02

2017-01-02 10:18:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build: Fixed compilation error on systems without readdir_r(2).

2016-03-11

2016-03-11 17:43:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Documentation: Added note about some failure modes of rm().

2016-02-11

2016-02-11 20:04:06 by Martin Nilsson <nilsson@fastmail.com>

Everyone have INT64 in C99-land.

2016-02-07

2016-02-07 17:31:04 by Martin Nilsson <nilsson@fastmail.com>

Use macro varargs.

2016-02-07 17:02:21 by Martin Nilsson <nilsson@fastmail.com>

Removed DEBUG_FILE.

2016-01-26

2016-01-26 21:08:15 by Martin Nilsson <nilsson@fastmail.com>

SIMPLE_TOO_FEW_ARGS_ERROR should be SIMPLE_WRONG_NUM_ARGS_ERROR since long ago. Replaced them and tighten up argument control in places.

2016-01-26 19:38:42 by Martin Nilsson <nilsson@fastmail.com>

SIMPLE_BAD_ARG_ERROR is only kept for compatibility, but we still had 500+ uses of it.

2015-10-18

2015-10-18 01:39:52 by Martin Nilsson <nilsson@fastmail.com>

dmalloc.h is included from global.h

2015-10-18 01:08:46 by Martin Nilsson <nilsson@fastmail.com>

sys/types.h is included from global.h

2015-10-18 00:44:41 by Martin Nilsson <nilsson@fastmail.com>

limits.h is included from global.h

2015-10-17

2015-10-17 16:36:56 by Martin Nilsson <nilsson@fastmail.com>

No need to check for limits.h. It's part of C89 and we don't use HAVE_LIMITS_H everywhere.

2015-10-14

2015-10-14 19:41:28 by Martin Nilsson <nilsson@fastmail.com>

Removed Intel IA64 compiler specific DO_NOT_WARN.

2015-10-11

2015-10-11 14:04:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Merge branch '8.1' into grubba/typechecker-mk3

* 8.1: (51 commits)
Compiler [Types]: Got rid of my_describe_type().
Compiler [Types]: Fixed wide strings in nested types.
Compiler [Types]: low_describe_type() now uses string_builder.
string_builder_sprintf: Fixed '+' for floats.
string_builder_sprintf: Added support for %T.
Calendar.mkrules: Improved backward compat.
Auth.OAuth.Client: Fixed AutoDoc markup issue.
New modules for communicating with different (RESTful) web apis (including OAuth and OAuth2 client modules) .
Documentation [%]: Added some clarifications and improved markup.
Inotify: Minor code cleanup. Potential fix for [CID 1325796].
Inotify: Removed some debug output.
Filesystem.Monitor [Inotify]: Improved support for blocking mode.
Inotify: Don't reference count immediate circular references.
Inotify: Removed some dead code.
System.Inotify, Filesystem.Monitor: Updates to use new Inotify API.
Inotify: Use fd_callback_boxes, internal event parsing.
Search.Database.MySQL: Censor the SQL-url.
Sql: Added censor_sql_url().
Search.Database.MySQL: Avoid long lived database connections.
Inotify: Don't throw errors in rm_watch() on invalid watch descriptor.
...

2015-09-27

2015-09-27 22:49:47 by Martin Nilsson <nilsson@fastmail.com>

Cleaned up unreachable comments. GCC code generation is the same.

2015-08-22

2015-08-22 18:35:10 by Per Hedbor <ph@opera.com>

Static:ified a lot of strings.

This is more or less all instances of push_text(static data here).

Left to do: make_shared_X_string(static data here). :)

2015-08-18

2015-08-18 18:07:49 by Per Hedbor <ph@opera.com>

Static:ified a lot of strings.

This is more or less all instances of push_text(static data here).

Left to do: make_shared_X_string(static data here). :)

2015-05-25

2015-05-25 15:33:02 by Martin Nilsson <nilsson@opera.com>

Removed trailing spaces.

2015-05-21

2015-05-21 17:30:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build: Fixed compilation error on systems without readdir_r(2).

2015-05-10

2015-05-10 08:24:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Added some fallbacl markers. Fixes [CID 742644].

2015-04-07

2015-04-07 18:01:31 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build [NT]: Fixed issues with access().

WIN32 apparently has access(), but not the corresponding macros...

2015-03-16

2015-03-16 17:27:53 by Martin Nilsson <nilsson@opera.com>

Remove deprecated security system.

2015-02-17

2015-02-17 16:30:40 by Tobias S. Josefowitz <tobij@tobij.de>

Stdio.exece(): Don't give away refs to members from the env mapping

Because it's not too good in the case we fail to exec(), at least.

2015-02-17 16:30:27 by Tobias S. Josefowitz <tobij@tobij.de>

Stdio.exece(): Don't give away refs to members from the env mapping

Because it's not too good in the case we fail to exec(), at least.

2014-12-04

2014-12-04 19:26:26 by Per Hedbor <ph@opera.com>

Binary size: push_constant_text -> push_text when not time-critical.

Especially in error handling, and code that does a lot of other string
operations anyway the speed gain is not wort the 100+ bytes code size
of each instance of push_constant_text

This saves about 20K of code size (main pike binary), while not really
changing the speed much.

push_constant_text that seemed to be in at least pseudo-time-critical
code was kept as they were.

On a related note, push_constant_text(":") four times in a row creates
four different string variables, for obvious reasons.

Some of the remaining push_constant_text really should have a
module/file local string variable, even though that is more bothersome
to create.

It might be nice to have this in .cmod files automatically.

2014-12-04 19:26:00 by Martin Nilsson <nilsson@opera.com>

mallocs nowdays return void*, so no need to case.

2014-12-04 19:25:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Added File()->get_dir().

Added function for getting the directory contents relative to an open
file.

2014-12-04 19:25:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Some code cleanup for get_dir().

2014-12-04 19:25:24 by Per Hedbor <ph@opera.com>

Removed dead code and fixed warnings.

2014-12-04 19:24:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: More AutoDoc fixes for access().

2014-12-04 19:24:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Fixed compilation issue with access() on WIN32.

Also changed the C function name to the conventional naming.

2014-12-04 19:24:32 by Per Hedbor <ph@opera.com>

Added access()

This is access(2), there is currently no version for windows.

2014-12-04 19:24:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Some AutoDoc markup fixes for access().

2014-12-04 19:23:46 by Martin Nilsson <nilsson@opera.com>

Removed auto bignum checks.

2014-12-04 19:23:37 by Martin Nilsson <nilsson@opera.com>

files -> _Stdio with minimal changes.

2014-12-04 19:23:37 by Martin Nilsson <nilsson@opera.com>

Changed some identifiers from files to stdio.

2014-11-03

2014-11-03 10:12:25 by Martin Nilsson <nilsson@opera.com>

malloc -> calloc

2014-10-03

2014-10-03 16:16:13 by Per Hedbor <ph@opera.com>

Removed security system (on this branch)

2014-09-04

2014-09-04 15:57:43 by Arne Goedeke <el@laramies.com>

Merge remote-tracking branch 'origin/8.0' into string_alloc

Conflicts:
src/stralloc.c

2014-09-03

2014-09-03 18:14:04 by Martin Nilsson <nilsson@opera.com>

memcpy is C89 and 4.3BSD

2014-05-22

2014-05-22 16:49:17 by Per Hedbor <ph@opera.com>

Binary size: push_constant_text -> push_text when not time-critical.

Especially in error handling, and code that does a lot of other string
operations anyway the speed gain is not wort the 100+ bytes code size
of each instance of push_constant_text

This saves about 20K of code size (main pike binary), while not really
changing the speed much.

push_constant_text that seemed to be in at least pseudo-time-critical
code was kept as they were.

On a related note, push_constant_text(":") four times in a row creates
four different string variables, for obvious reasons.

Some of the remaining push_constant_text really should have a
module/file local string variable, even though that is more bothersome
to create.

It might be nice to have this in .cmod files automatically.

2014-04-27

2014-04-27 20:37:42 by Martin Nilsson <nilsson@opera.com>

mallocs nowdays return void*, so no need to case.

2014-03-03

2014-03-03 19:47:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Added File()->get_dir().

Added function for getting the directory contents relative to an open
file.

2014-03-03 19:46:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Some code cleanup for get_dir().

2014-02-25

2014-02-25 14:37:22 by Per Hedbor <ph@opera.com>

Removed dead code and fixed warnings.

2014-01-05

2014-01-05 15:14:13 by Marcus Comstedt <marcus@mc.pp.se>

Merge branch '8.0' into gobject-introspection

2013-11-05

2013-11-05 18:33:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: More AutoDoc fixes for access().

2013-11-05 18:24:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Some AutoDoc markup fixes for access().

2013-11-05 15:03:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio: Fixed compilation issue with access() on WIN32.

Also changed the C function name to the conventional naming.

2013-11-05 14:08:31 by Per Hedbor <ph@opera.com>

Added access()

This is access(2), there is currently no version for windows.

2013-06-21

2013-06-21 09:18:55 by Arne Goedeke <el@laramies.com>

Merge remote-tracking branch 'origin/7.9' into pdf

2013-06-17

2013-06-17 21:40:00 by Martin Nilsson <nilsson@opera.com>

Removed auto bignum checks.

2013-06-11

2013-06-11 23:50:34 by Arne Goedeke <el@laramies.com>

Merge remote-tracking branch 'origin/7.9' into ba

2013-06-11 10:52:09 by Martin Nilsson <nilsson@opera.com>

Changed some identifiers from files to stdio.

2013-06-11 09:36:48 by Martin Nilsson <nilsson@opera.com>

files -> _Stdio with minimal changes.