__fcntl and __open are internal

Andreas Jaeger aj@suse.de
Mon Feb 5 09:02:00 GMT 2001


__fcntl and __open are internal interfaces, I don't see a need to
export them.

Can I commit the appended patch?

Andreas

2001-02-05  Andreas Jaeger  <aj@suse.de>

	* io/fcntl.h: Move __fcntl and __open to...
	* include/fcntl.h: ...here.

============================================================
Index: io/fcntl.h
--- io/fcntl.h	2000/04/14 07:40:53	1.23
+++ io/fcntl.h	2001/02/05 17:01:33
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,94,95,96,97,98,99, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,94,95,96,97,98,99,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -57,13 +57,11 @@
 
 /* Do the file control operation described by CMD on FD.
    The remaining arguments are interpreted depending on CMD.  */
-extern int __fcntl (int __fd, int __cmd, ...) __THROW;
 extern int fcntl (int __fd, int __cmd, ...) __THROW;
 
 /* Open FILE and return a new file descriptor for it, or -1 on error.
    OFLAG determines the type of access used.  If O_CREAT is on OFLAG,
    the third argument is taken as a `mode_t', the mode of the created file.  */
-extern int __open (__const char *__file, int __oflag, ...) __THROW;
 #ifndef __USE_FILE_OFFSET64
 extern int open (__const char *__file, int __oflag, ...) __THROW;
 #else
============================================================
Index: include/fcntl.h
--- include/fcntl.h	1999/12/19 19:50:33	1.6
+++ include/fcntl.h	2001/02/05 17:01:33
@@ -6,5 +6,7 @@
 extern int __libc_open64 (const char *file, int oflag, ...);
 extern int __libc_open (const char *file, int oflag, ...);
 extern int __libc_fcntl (int fd, int cmd, ...);
+extern int __open (__const char *__file, int __oflag, ...);
+extern int __fcntl (int __fd, int __cmd, ...) __THROW;
 
 #endif

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


More information about the Libc-hacker mailing list