CVS commit: src/lib/libc/include

2024-01-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 19 19:31:41 UTC 2024

Modified Files:
src/lib/libc/include: extern.h

Log Message:
more extern decls


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/include/extern.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/include/extern.h
diff -u src/lib/libc/include/extern.h:1.28 src/lib/libc/include/extern.h:1.29
--- src/lib/libc/include/extern.h:1.28	Wed Jan  3 13:41:53 2024
+++ src/lib/libc/include/extern.h	Fri Jan 19 14:31:41 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: extern.h,v 1.28 2024/01/03 18:41:53 christos Exp $	*/
+/*	$NetBSD: extern.h,v 1.29 2024/01/19 19:31:41 christos Exp $	*/
 
 /*
  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
@@ -35,9 +35,13 @@ typedef struct _locale		*locale_t;
 __BEGIN_DECLS
 extern char *__minbrk;
 extern sigset_t __sigintr;
+extern char **environ;
 int __getcwd(char *, size_t);
 int __getlogin(char *, size_t);
 int __setlogin(const char *);
+int __posix_fadvise50(int, int, __off_t, __off_t, int);
+void  __section(".text.startup") __attribute__((__visibility__("hidden")))
+__libc_atomic_init(void);
 void _resumecontext(void) __dead;
 __dso_hidden int	_strerror_lr(int, char *, size_t, locale_t);
 const char *__strerror(int , char *, size_t);



CVS commit: src/lib/libc/include

2024-01-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 19 19:31:41 UTC 2024

Modified Files:
src/lib/libc/include: extern.h

Log Message:
more extern decls


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/include/extern.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/lib/libc/include

2018-01-06 Thread Kamil Rytarowski
On 07.01.2018 00:41, Joerg Sonnenberger wrote:
> On Fri, Jan 05, 2018 at 06:57:06PM +, Kamil Rytarowski wrote:
>> Module Name: src
>> Committed By:kamil
>> Date:Fri Jan  5 18:57:06 UTC 2018
>>
>> Modified Files:
>>  src/lib/libc/include: namespace.h
>>
>> Log Message:
>> Register more syscalls in namespace.h (of libc)
>>
>> Add weak symbols for:
>>  - fcntl
>>  - close
>>  - execve
>>  - setcontext
>>  - wait6
>>  - write
>>  - writev
> 
> Most of those are standard library calls. They should not be weak unless
> they are also a cancellation point.
> 
> Joerg
> 

I had a different goal of marking them weak.

But looking at the specs about the cancellation point functions I can
read the following:

"Cancellation points shall occur when a thread is executing the
following functions:"

fcntl, close, related to wait6 (wait, waitpid, waitid), write, writev



From the another commit about asctime:

"A cancellation point may also occur when a thread is executing the
following functions:"

asctime()



http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/lib/libc/include

2018-01-06 Thread Joerg Sonnenberger
On Fri, Jan 05, 2018 at 06:57:06PM +, Kamil Rytarowski wrote:
> Module Name:  src
> Committed By: kamil
> Date: Fri Jan  5 18:57:06 UTC 2018
> 
> Modified Files:
>   src/lib/libc/include: namespace.h
> 
> Log Message:
> Register more syscalls in namespace.h (of libc)
> 
> Add weak symbols for:
>  - fcntl
>  - close
>  - execve
>  - setcontext
>  - wait6
>  - write
>  - writev

Most of those are standard library calls. They should not be weak unless
they are also a cancellation point.

Joerg


Re: CVS commit: src/lib/libc/include

2014-01-16 Thread Joerg Sonnenberger
On Thu, Jan 16, 2014 at 03:31:18PM -0500, Christos Zoulas wrote:
 Module Name:  src
 Committed By: christos
 Date: Thu Jan 16 20:31:18 UTC 2014
 
 Modified Files:
   src/lib/libc/include: namespace.h
 
 Log Message:
 namespace protection for the new err functions

Please revert after looking at the diff.

Joerg


Re: CVS commit: src/lib/libc/include

2014-01-16 Thread Christos Zoulas
In article 20140116222751.gb18...@britannica.bec.de,
Joerg Sonnenberger  jo...@britannica.bec.de wrote:
On Thu, Jan 16, 2014 at 03:31:18PM -0500, Christos Zoulas wrote:
 Module Name: src
 Committed By:christos
 Date:Thu Jan 16 20:31:18 UTC 2014
 
 Modified Files:
  src/lib/libc/include: namespace.h
 
 Log Message:
 namespace protection for the new err functions

Please revert after looking at the diff.

Thanks for fixing my forgotten commit, but I fixed it.
What you added was not sorted that is why there was no conflict.

christos