Patch by Vasilis Kaoutsis: Style cleanup, "OpenBeOS license" -> "MIT license".

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22537 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-10-13 17:18:34 +00:00
parent 63355585fb
commit e701d86af5
15 changed files with 69 additions and 80 deletions

View File

@ -1,7 +1,7 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "libioP.h"

View File

@ -1,7 +1,7 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <pthread.h>
@ -155,4 +155,3 @@ pthread_mutexattr_setprotocol(pthread_mutexattr_t *_mutexAttr, int protocol)
// not implemented
return B_NOT_ALLOWED;
}

View File

@ -1,19 +1,18 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <sys/types.h>
#include <string.h>
char *
strchrnul(const char *string, int c)
char*
strchrnul(const char* string, int c)
{
while (string[0] != (char)c && string[0])
string++;
return (char *)string;
return (char*)string;
}

View File

@ -1,17 +1,17 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <string.h>
#include <stdlib.h>
char *
char*
strdup(const char *string)
{
char *copied;
char* copied;
size_t length;
// unlike the standard strdup() function, the BeOS implementation
@ -27,4 +27,3 @@ strdup(const char *string)
memcpy(copied, string, length);
return copied;
}

View File

@ -1,7 +1,7 @@
/*
** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <sys/stat.h>
@ -18,10 +18,9 @@
int
mkdir(const char *path, mode_t mode)
mkdir(const char* path, mode_t mode)
{
status_t status = _kern_create_dir(-1, path, mode);
RETURN_AND_SET_ERRNO(status);
}

View File

@ -1,6 +1,6 @@
/*
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the OpenBeOS License.
* Distributed under the terms of the MIT License.
*/

View File

@ -1,15 +1,15 @@
/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <time.h>
#include <stdio.h>
static char *
print_time(char *buffer, size_t bufferSize, const struct tm *tm)
static char*
print_time(char* buffer, size_t bufferSize, const struct tm* tm)
{
// ToDo: this should probably use the locale kit to get these names
@ -31,8 +31,8 @@ print_time(char *buffer, size_t bufferSize, const struct tm *tm)
}
char *
asctime(const struct tm *tm)
char*
asctime(const struct tm* tm)
{
static char buffer[28];
// is enough to hold normal dates
@ -41,10 +41,9 @@ asctime(const struct tm *tm)
}
char *
asctime_r(const struct tm *tm, char *buffer)
char*
asctime_r(const struct tm* tm, char* buffer)
{
return print_time(buffer, 26, tm);
// 26 bytes seems to be required by the standard, so we can't write more
}

View File

@ -1,7 +1,7 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <time.h>
@ -9,7 +9,7 @@
time_t
time(time_t *timer)
time(time_t* timer)
{
time_t secs = real_time_clock();
@ -18,4 +18,3 @@ time(time_t *timer)
return secs;
}

View File

@ -1,7 +1,7 @@
/*
** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <unistd.h>
@ -18,10 +18,9 @@
int
access(const char *path, int accessMode)
access(const char* path, int accessMode)
{
status_t status = _kern_access(path, accessMode);
RETURN_AND_SET_ERRNO(status);
}

View File

@ -1,7 +1,7 @@
/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2004-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <unistd.h>

View File

@ -1,7 +1,7 @@
/*
** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <unistd.h>
@ -22,12 +22,12 @@ int
ioctl(int fd, ulong cmd, ...)
{
va_list args;
void *argument;
void* argument;
size_t size;
int status;
va_start(args, cmd);
argument = va_arg(args, void *);
argument = va_arg(args, void*);
size = va_arg(args, size_t);
va_end(args);
@ -35,4 +35,3 @@ ioctl(int fd, ulong cmd, ...)
RETURN_AND_SET_ERRNO(status)
}

View File

@ -1,7 +1,7 @@
/*
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <OS.h>
@ -34,4 +34,3 @@ pipe(int streams[2])
return 0;
}

View File

@ -1,12 +1,12 @@
/*
** Copyright 2001, Manuel J. Petit. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
* Copyright 2001, Manuel J. Petit. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
/*
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <unistd.h>
@ -23,7 +23,7 @@
ssize_t
read(int fd, void *buffer, size_t bufferSize)
read(int fd, void* buffer, size_t bufferSize)
{
ssize_t status = _kern_read(fd, -1, buffer, bufferSize);
@ -32,7 +32,7 @@ read(int fd, void *buffer, size_t bufferSize)
ssize_t
read_pos(int fd, off_t pos, void *buffer, size_t bufferSize)
read_pos(int fd, off_t pos, void* buffer, size_t bufferSize)
{
ssize_t status;
if (pos < 0) {
@ -46,7 +46,7 @@ read_pos(int fd, off_t pos, void *buffer, size_t bufferSize)
ssize_t
pread(int fd, void *buffer, size_t bufferSize, off_t pos)
pread(int fd, void* buffer, size_t bufferSize, off_t pos)
{
ssize_t status;
if (pos < 0) {
@ -57,4 +57,3 @@ pread(int fd, void *buffer, size_t bufferSize, off_t pos)
RETURN_AND_SET_ERRNO(status);
}

View File

@ -1,8 +1,8 @@
/*
** Copyright 2003, Daniel Reinhold, danielre@users.sf.net. All rights reserved.
** Copyright 2007, François Revol, mmu_man@users.sf.net. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
* Copyright 2003, Daniel Reinhold, danielre@users.sf.net. All rights reserved.
* Copyright 2007, François Revol, mmu_man@users.sf.net. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <SupportDefs.h>

View File

@ -1,10 +1,10 @@
/*
** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
**
** Copyright 2001, Manuel J. Petit. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
* Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Copyright 2001, Manuel J. Petit. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
#include <unistd.h>
@ -55,4 +55,3 @@ pwrite(int fd, const void *buffer, size_t bufferSize, off_t pos)
RETURN_AND_SET_ERRNO(status);
}