History log of /haiku/src/bin/hey.cpp
Revision Date Author Comments
# 1a3be0ad 19-Oct-2021 Augustin Cavalier <waddlesplash@gmail.com>

Replace usages of B_FILE_NOT_FOUND in non-BeOS-API code.

B_FILE_NOT_FOUND was deprecated in BeOS R5 in favor of B_ENTRY_NOT_FOUND,
but it remained in Haiku and was never removed even conditionally, so
we have accumulated a number of usages of it.

This commit changes all the usages of it in new code, applications,
or anything else that BeOS applications will otherwise never see,
and so should be relatively safe.


# 89fc6d6a 21-Oct-2019 CodeforEvolution <secundaja@gmail.com>

[hey] - Fix overflow issue found by LGTM

LGTM issue: "gets does not guard against buffer overflow"

Change-Id: I502428f167865ac81301aa72d20c91b4480fb3dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1926
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# f7b5ecfe 15-Jul-2015 Axel Dörfler <axeld@pinc-software.de>

hey: Added -h and --help for usage text.

* Didn't do anything before that.
* Removed some useless comments.
* This file could really need a cleanup.


# ee056a08 01-Jul-2015 Philippe Saint-Pierre <stpere@gmail.com>

match new[] operator with delete[] operator

The string ends up being deleted with the [] variant later on.

CID 602975.


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 98e26ff2 10-Mar-2014 Philippe Saint-Pierre <stpere@gmail.com>

Hey: more style fixes, no functionnal changes intended


# 11668499 08-Mar-2014 Philippe Saint-Pierre <stpere@gmail.com>

Hey: use delete[] instead of free (CID #990947 and CID #990948)


# 6fef592d 08-Mar-2014 Philippe Saint-Pierre <stpere@gmail.com>

Hey: Style fixes, code clean up

No functional changes intended


# aff59d31 10-May-2013 Jérôme Duval <jerome.duval@gmail.com>

hey: fixes 64 bit warnings


# 63d557f0 15-Jul-2009 Michael Lotz <mmlr@mlotz.ch>

Fixing random GCC4 warnings. Mostly missing consts, some parentheses, some braces... Should all be harmless and not change anything.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31600 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c7cb73f5 08-Oct-2008 Karsten Heimrich <host.haiku@gmx.de>

* use snprintf



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27928 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d6d494e7 07-Oct-2008 Karsten Heimrich <host.haiku@gmx.de>

* The size of the array passed should was not enough to hold the entire formatted string.
This fixes ticket #2802. (Not sure why it only happend on gcc4)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27914 a95241bf-73f2-0310-859d-f6bbb57e9c96


# feb171f7 07-Oct-2008 Karsten Heimrich <host.haiku@gmx.de>

* whitespace cleanup



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27913 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7483a266 24-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed leaks. CID 906 and 907

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27737 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9e62886 23-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed every (hopefully) CID cases of delete where delete[] should have been used. CID 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 142, 143, 144, 147, 148, 149, 150

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27703 a95241bf-73f2-0310-859d-f6bbb57e9c96


# afa5a462 25-Sep-2006 Jérôme Duval <korli@users.berlios.de>

replaced use of vector with BList
enables to build correctly with gcc4


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18936 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 891a127f 17-Sep-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

various gcc 4 related build fixes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18876 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c32fb909 28-Jun-2006 Jérôme Duval <korli@users.berlios.de>

main return code is 1 on error


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e005c7e 28-Jun-2006 Jérôme Duval <korli@users.berlios.de>

we can now target an exact instance of an application with its teamid
avoid instancing a temporary BMessage


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17948 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f16aff25 08-Jun-2006 Jérôme Duval <korli@users.berlios.de>

fix the build (sorry for this)
better output for NAME and ID


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17778 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 353aa88d 07-Jun-2006 Jérôme Duval <korli@users.berlios.de>

fix for dano target


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17769 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c038c9de 06-Jun-2006 Jérôme Duval <korli@users.berlios.de>

B_PROPERTY_INFO_TYPE now prints out types and compound types
minor cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17753 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e730e773 07-Jun-2006 Jérôme Duval <korli@users.berlios.de>

applied a bit of our code guidelines


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17750 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 84d89d2a 07-Jun-2006 Jérôme Duval <korli@users.berlios.de>

added hey v1.2.8, written by Attila Mezei
Changes : I renamed to .cpp and include the header file in the main file


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17749 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f7b5ecfe005852b5412c7237347ed12e1a0d6b40 15-Jul-2015 Axel Dörfler <axeld@pinc-software.de>

hey: Added -h and --help for usage text.

* Didn't do anything before that.
* Removed some useless comments.
* This file could really need a cleanup.


# ee056a089cd9e6433456fea4dd3af1a85a148327 01-Jul-2015 Philippe Saint-Pierre <stpere@gmail.com>

match new[] operator with delete[] operator

The string ends up being deleted with the [] variant later on.

CID 602975.


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 98e26ff2422c423dca23e08628b5f723727e5d42 10-Mar-2014 Philippe Saint-Pierre <stpere@gmail.com>

Hey: more style fixes, no functionnal changes intended


# 11668499632e3bdfec665e5d63818fbd788bbf7e 08-Mar-2014 Philippe Saint-Pierre <stpere@gmail.com>

Hey: use delete[] instead of free (CID #990947 and CID #990948)


# 6fef592d6b05c4c36fe9db4d7900d30bfafe86d3 08-Mar-2014 Philippe Saint-Pierre <stpere@gmail.com>

Hey: Style fixes, code clean up

No functional changes intended


# aff59d31a3dd3b6755347f5784c8e8cb57aee260 10-May-2013 Jérôme Duval <jerome.duval@gmail.com>

hey: fixes 64 bit warnings


# 63d557f06f41c0aef30f8a0fcc5b8d2c47981b33 15-Jul-2009 Michael Lotz <mmlr@mlotz.ch>

Fixing random GCC4 warnings. Mostly missing consts, some parentheses, some braces... Should all be harmless and not change anything.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31600 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c7cb73f5aab22b6a5262720154a28960f6caa24c 08-Oct-2008 Karsten Heimrich <host.haiku@gmx.de>

* use snprintf



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27928 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d6d494e7b603a984ce18b110c35b6fe468537407 07-Oct-2008 Karsten Heimrich <host.haiku@gmx.de>

* The size of the array passed should was not enough to hold the entire formatted string.
This fixes ticket #2802. (Not sure why it only happend on gcc4)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27914 a95241bf-73f2-0310-859d-f6bbb57e9c96


# feb171f79ee2847a605d1fad065e46d44cb5a7e0 07-Oct-2008 Karsten Heimrich <host.haiku@gmx.de>

* whitespace cleanup



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27913 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7483a2666e7499fc7022bb747e30cd0cdd210db6 24-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed leaks. CID 906 and 907

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27737 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9e6288649ba36ff887f52fb62d4cd557fa9ef34 23-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed every (hopefully) CID cases of delete where delete[] should have been used. CID 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 142, 143, 144, 147, 148, 149, 150

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27703 a95241bf-73f2-0310-859d-f6bbb57e9c96


# afa5a46239edee080f14fa5295f2c681828cb03a 25-Sep-2006 Jérôme Duval <korli@users.berlios.de>

replaced use of vector with BList
enables to build correctly with gcc4


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18936 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 891a127fecd553cc2168db11ccc564f5ba38fad6 17-Sep-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

various gcc 4 related build fixes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18876 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c32fb9097a52e027c5658fa35190999cfbeb396d 28-Jun-2006 Jérôme Duval <korli@users.berlios.de>

main return code is 1 on error


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e005c7e8ea531cd8b44ac6275e361415d499aa4 28-Jun-2006 Jérôme Duval <korli@users.berlios.de>

we can now target an exact instance of an application with its teamid
avoid instancing a temporary BMessage


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17948 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f16aff25e3912ec9ad76bf34e561d7da5c5d00b1 08-Jun-2006 Jérôme Duval <korli@users.berlios.de>

fix the build (sorry for this)
better output for NAME and ID


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17778 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 353aa88d57d0705e6444d2eed193632656c9e2c5 07-Jun-2006 Jérôme Duval <korli@users.berlios.de>

fix for dano target


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17769 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c038c9de95584ddb5251607dcdb4f168748a2cb3 06-Jun-2006 Jérôme Duval <korli@users.berlios.de>

B_PROPERTY_INFO_TYPE now prints out types and compound types
minor cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17753 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e730e7730b4be982db53ff355b9f2514be1d449c 07-Jun-2006 Jérôme Duval <korli@users.berlios.de>

applied a bit of our code guidelines


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17750 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 84d89d2ae0c6a8c7657bd23919c804858fd1c6b0 07-Jun-2006 Jérôme Duval <korli@users.berlios.de>

added hey v1.2.8, written by Attila Mezei
Changes : I renamed to .cpp and include the header file in the main file


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17749 a95241bf-73f2-0310-859d-f6bbb57e9c96