search for: __f

Displaying 20 results from an estimated 24 matches for "__f".

Did you mean: __
2020 Jul 25
0
[klibc:master] stdio: Define all the _unlocked functions and macros
...ed(FILE *); __extern size_t fread(void *, size_t, size_t, FILE *); +__extern size_t fread_unlocked(void *, size_t, size_t, FILE *); __extern size_t fwrite(const void *, size_t, size_t, FILE *); +__extern size_t fwrite_unlocked(const void *, size_t, size_t, FILE *); __extern off_t ftell(FILE *__f); #define ftello ftell __extern int ferror(FILE * ); +__extern int ferror_unlocked(FILE * ); __extern int feof(FILE *); +__extern int feof_unlocked(FILE *); __extern int fileno(FILE *); +__extern int fileno_unlocked(FILE *); __extern void clearerr(FILE *); +__extern void clearerr_unlocked(FI...
2020 Jul 25
0
[klibc:master] stdio: Add extern definition of clearerr()
...(CONFIG_KLIBC_ERRLIST) += errlist.o diff --git a/usr/klibc/stdio/clearerr.c b/usr/klibc/stdio/clearerr.c new file mode 100644 index 00000000..fb565144 --- /dev/null +++ b/usr/klibc/stdio/clearerr.c @@ -0,0 +1,8 @@ +#define __NO_STDIO_INLINES +#include "stdioint.h" + +void clearerr(FILE *__f) +{ + __f->_IO_error = 0; + __f->_IO_eof = 0; +}
2004 Oct 19
1
[PATCH] fix fwrite declaration
...e/include/stdio.h --- klibc-0.186/include/stdio.h 2004-07-28 23:09:59.000000000 +0200 +++ klibc-0.186.fwrite/include/stdio.h 2004-10-19 20:06:30.000000000 +0200 @@ -90,7 +90,7 @@ fread(void *__p, size_t __s, size_t __n, } extern __inline__ size_t -fwrite(void *__p, size_t __s, size_t __n, FILE *__f) +fwrite(const void *__p, size_t __s, size_t __n, FILE *__f) { return _fwrite(__p, __s*__n, __f)/__s; } -- USB is for mice, FireWire is for men! sUse lINUX ag, n?RNBERG
2010 Jan 07
1
[PATCH 1/2] Fix assert when NDEBUG defined
Don't use the parameter x in assert(x) if NDEBUG is defined to avoid any problems where (x) may contain symbols that are only defined if !NDEBUG Signed-off-by: Jon Ringle <jon at ringle.org> --- usr/include/assert.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/include/assert.h b/usr/include/assert.h index d89e082..e59ed94 100644 ---
2004 Jan 27
4
Re: udevinfo output broken
...riptor. We don't actually + * have any in-memory data, so we just abuse the pointer itself to + * hold the data. Note, however, that for file descriptors, -1 is + * error and 0 is a valid value; for FILE *, NULL (0) is error and + * non-NULL are valid. + */ static __inline__ int fileno(FILE *__f) { /* This should really be intptr_t, but size_t should be the same size */ - return (int)(size_t)__f; + return (int)(size_t)__f - 1; } static __inline__ FILE * __create_file(int __fd) { - return (FILE *)(size_t)__fd; + return (FILE *)(size_t)(__fd + 1); } __extern FILE *fopen(cons...
2014 Jul 09
2
[PATCH 09/17] drm/radeon: use common fence implementation for fences
...gt; +++ b/drivers/gpu/drm/radeon/radeon_fence.c > @@ -39,6 +39,15 @@ > #include "radeon.h" > #include "radeon_trace.h" > > +static const struct fence_ops radeon_fence_ops; > + > +#define to_radeon_fence(p) \ > + ({ \ > + struct radeon_fence *__f; \ > + __f = container_of((p), struct radeon_fence, base); \ > + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ > + }) > + > /* > * Fences > * Fences mark an event in the GPUs pipeline and are used > @@ -111,30 +120,55 @@ int radeon_fence_emit(struct rad...
2014 May 14
0
[RFC PATCH v1 08/16] drm/radeon: use common fence implementation for fences
...644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c @@ -39,6 +39,15 @@ #include "radeon.h" #include "radeon_trace.h" +static const struct fence_ops radeon_fence_ops; + +#define to_radeon_fence(p) \ + ({ \ + struct radeon_fence *__f; \ + __f = container_of((p), struct radeon_fence, base); \ + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ + }) + /* * Fences * Fences mark an event in the GPUs pipeline and are used @@ -111,30 +120,55 @@ int radeon_fence_emit(struct radeon_device *rdev, struct radeon...
2014 Jul 09
0
[PATCH 09/17] drm/radeon: use common fence implementation for fences
...644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c @@ -39,6 +39,15 @@ #include "radeon.h" #include "radeon_trace.h" +static const struct fence_ops radeon_fence_ops; + +#define to_radeon_fence(p) \ + ({ \ + struct radeon_fence *__f; \ + __f = container_of((p), struct radeon_fence, base); \ + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ + }) + /* * Fences * Fences mark an event in the GPUs pipeline and are used @@ -111,30 +120,55 @@ int radeon_fence_emit(struct radeon_device *rdev, struct radeon...
2014 Jul 09
0
[PATCH v2 09/17] drm/radeon: use common fence implementation for fences
...644 --- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c @@ -39,6 +39,15 @@ #include "radeon.h" #include "radeon_trace.h" +static const struct fence_ops radeon_fence_ops; + +#define to_radeon_fence(p) \ + ({ \ + struct radeon_fence *__f; \ + __f = container_of((p), struct radeon_fence, base); \ + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ + }) + /* * Fences * Fences mark an event in the GPUs pipeline and are used @@ -111,30 +120,55 @@ int radeon_fence_emit(struct radeon_device *rdev, struct radeon...
2014 May 12
2
compile error about 6.0.2
...e_t? undeclared (first use in this function) > /mlsyslinux/com32/include/stdio.h:39: error: (Each undeclared identifier is reported only once > /mlsyslinux/com32/include/stdio.h:39: error: for each function it appears in.) > /mlsyslinux/com32/include/stdio.h:39: error: expected ?;? before ?__f? > /mlsyslinux/com32/include/stdio.h:36: warning: unused parameter ?__f? > /mlsyslinux/com32/include/stdio.h:70: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?_fread? > /mlsyslinux/com32/include/string.h:15: warning: conflicting types for built-in function ?mempcpy? &gt...
2014 May 14
2
[RFC PATCH v1 08/16] drm/radeon: use common fence implementation for fences
...+++ b/drivers/gpu/drm/radeon/radeon_fence.c > @@ -39,6 +39,15 @@ > #include "radeon.h" > #include "radeon_trace.h" > > +static const struct fence_ops radeon_fence_ops; > + > +#define to_radeon_fence(p) \ > + ({ \ > + struct radeon_fence *__f; \ > + __f = container_of((p), struct radeon_fence, base); \ > + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ > + }) > + > /* > * Fences > * Fences mark an event in the GPUs pipeline and are used > @@ -111,30 +120,55 @@ int radeon_fence_emit(struct...
2014 May 19
2
[RFC PATCH v1 08/16] drm/radeon: use common fence implementation for fences
Am 19.05.2014 15:35, schrieb Maarten Lankhorst: > op 19-05-14 14:30, Christian K?nig schreef: >> Am 19.05.2014 12:10, schrieb Maarten Lankhorst: >>> op 19-05-14 10:27, Christian K?nig schreef: >>>> Am 19.05.2014 10:00, schrieb Maarten Lankhorst: >>>> [SNIP] >>>> The problem here is that the whole approach collides with the way >>>>
2014 Jun 02
0
[RFC PATCH v1.2 08/16] drm/radeon: use common fence implementation for fences
...--- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c @@ -39,6 +39,15 @@ #include "radeon.h" #include "radeon_trace.h" +static const struct fence_ops radeon_fence_ops; + +#define to_radeon_fence(p) \ + ({ \ + struct radeon_fence *__f; \ + __f = container_of((p), struct radeon_fence, base); \ + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ + }) + /* * Fences * Fences mark an event in the GPUs pipeline and are used @@ -111,30 +120,55 @@ int radeon_fence_emit(struct radeon_device *rdev, struct ra...
2014 Jun 02
3
[RFC PATCH v1.2 08/16] drm/radeon: use common fence implementation for fences
.../radeon_fence.c > @@ -39,6 +39,15 @@ > #include "radeon.h" > #include "radeon_trace.h" > > +static const struct fence_ops radeon_fence_ops; > + > +#define to_radeon_fence(p) \ > + ({ \ > + struct radeon_fence *__f; \ > + __f = container_of((p), struct radeon_fence, base); \ > + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ > + }) > + > /* > * Fences > * Fences mark an event in the GPUs pipeline and are used > @@ -111,30 +120,55 @@...
2014 May 08
2
compile error about 6.0.2
...39: error: ?size_t? undeclared (first use in this function) /mlsyslinux/com32/include/stdio.h:39: error: (Each undeclared identifier is reported only once /mlsyslinux/com32/include/stdio.h:39: error: for each function it appears in.) /mlsyslinux/com32/include/stdio.h:39: error: expected ?;? before ?__f? /mlsyslinux/com32/include/stdio.h:36: warning: unused parameter ?__f? /mlsyslinux/com32/include/stdio.h: In function ?fdopen?: /mlsyslinux/com32/include/stdio.h:56: error: ?size_t? undeclared (first use in this function) /mlsyslinux/com32/include/stdio.h: At top level: /mlsyslinux/com32/include/st...
2014 May 19
2
[RFC PATCH v1 08/16] drm/radeon: use common fence implementation for fences
Am 19.05.2014 10:00, schrieb Maarten Lankhorst: > op 15-05-14 18:13, Christian K?nig schreef: >> Am 15.05.2014 17:58, schrieb Maarten Lankhorst: >>> op 15-05-14 17:48, Christian K?nig schreef: >>>> Am 15.05.2014 16:18, schrieb Maarten Lankhorst: >>>>> op 15-05-14 15:19, Christian K?nig schreef: >>>>>> Am 15.05.2014 15:04, schrieb
2014 May 08
0
compile error about 6.0.2
...e_t? undeclared (first use in this function) > /mlsyslinux/com32/include/stdio.h:39: error: (Each undeclared identifier is reported only once > /mlsyslinux/com32/include/stdio.h:39: error: for each function it appears in.) > /mlsyslinux/com32/include/stdio.h:39: error: expected ?;? before ?__f? > /mlsyslinux/com32/include/stdio.h:36: warning: unused parameter ?__f? > /mlsyslinux/com32/include/stdio.h:70: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?_fread? > /mlsyslinux/com32/include/string.h:15: warning: conflicting types for built-in function ?mempcpy? &gt...
2014 May 19
0
[RFC PATCH v1 08/16] drm/radeon: use common fence implementation for fences
...--- a/drivers/gpu/drm/radeon/radeon_fence.c +++ b/drivers/gpu/drm/radeon/radeon_fence.c @@ -39,6 +39,15 @@ #include "radeon.h" #include "radeon_trace.h" +static const struct fence_ops radeon_fence_ops; + +#define to_radeon_fence(p) \ + ({ \ + struct radeon_fence *__f; \ + __f = container_of((p), struct radeon_fence, base); \ + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ + }) + /* * Fences * Fences mark an event in the GPUs pipeline and are used @@ -111,30 +120,55 @@ int radeon_fence_emit(struct radeon_device *rdev, struct ra...
2014 May 19
2
[RFC PATCH v1 08/16] drm/radeon: use common fence implementation for fences
.../radeon_fence.c > @@ -39,6 +39,15 @@ > #include "radeon.h" > #include "radeon_trace.h" > > +static const struct fence_ops radeon_fence_ops; > + > +#define to_radeon_fence(p) \ > + ({ \ > + struct radeon_fence *__f; \ > + __f = container_of((p), struct radeon_fence, base); \ > + __f->base.ops == &radeon_fence_ops ? __f : NULL; \ > + }) > + > /* > * Fences > * Fences mark an event in the GPUs pipeline and are used > @@ -111,30 +120,55 @@...
2012 May 22
0
[klibc:master] include: [stdio.h] add clearerr() prototype
...n attems <max at stro.at> --- usr/include/stdio.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usr/include/stdio.h b/usr/include/stdio.h index f24ab69..21243cc 100644 --- a/usr/include/stdio.h +++ b/usr/include/stdio.h @@ -95,6 +95,7 @@ __extern off_t ftell(FILE *__f); __extern int ferror(FILE * ); __extern int feof(FILE *); __extern int fileno(FILE *); +__extern void clearerr(FILE *); #ifndef __NO_STDIO_INLINES __extern_inline size_t