mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-28 23:34:53 +03:00 
			
		
		
		
	1999-10-18 Ulrich Drepper <drepper@cygnus.com> * scripts/config.sub: Update from latest autoconf version. * scripts/config.guess: Likewise. 1999-10-18 Andreas Jaeger <aj@suse.de> * inet/arpa/inet.h: Remove K&R compatibility. * math/fenv.h: Likewise. 1999-10-18 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/kernel_sigaction.h (struct kernel_sigaction): Remove K&R compatibility. * sysdeps/unix/sysv/linux/net/if.h: Likewise. * sysdeps/unix/sysv/linux/sys/acct.h: Likewise. * sysdeps/unix/sysv/linux/sys/fsuid.h: Likewise. * sysdeps/unix/sysv/linux/sys/io.h: Likewise. * sysdeps/unix/sysv/linux/sys/kdaemon.h: Likewise. * sysdeps/unix/sysv/linux/sys/klog.h: Likewise. * sysdeps/unix/sysv/linux/sys/mount.h: Likewise. * sysdeps/unix/sysv/linux/sys/prctl.h: Likewise. * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise. * sysdeps/unix/sysv/linux/sys/quota.h: Likewise. * sysdeps/unix/sysv/linux/sys/sendfile.h: Likewise. * sysdeps/unix/sysv/linux/sys/swap.h: Likewise. * sysdeps/unix/sysv/linux/sys/sysctl.h: Likewise. * sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise. * sysdeps/unix/sysv/linux/sys/timex.h: Likewise. * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise. * sysdeps/unix/sysv/linux/i386/sys/perm.h: Likewise. 1999-10-18 Andreas Jaeger <aj@suse.de> * iconv/iconv_prog.c (process_block): Save errno value from iconv call. Patch by Bruno Haible <haible@ilog.fr> [libc/1402]. 1999-10-18 Ulrich Drepper <drepper@cygnus.com> * po/gl.po: New file. 1999-10-18 Andreas Schwab <schwab@suse.de> * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Correct namespace selection. 1999-10-18 Andreas Schwab <schwab@suse.de> * debug/xtrace.sh: Use TERMINAL_PROG instead of TERM to avoid clash with the TERM environment variable. 1999-10-18 Andreas Jaeger <aj@suse.de> * sysdeps/generic/s_cproj.c (__cproj): Fix bug: NaN + i NaN returns now NaN + i NaN. * sysdeps/generic/s_cprojf.c (__cprojf): Likewise * sysdeps/generic/s_cprojl.c (__cprojl): Likewise. 1999-10-18 Andreas Jaeger <aj@suse.de> * include/aio.h: Remove K&R compatiblity. * include/alloca.h: Likewise. * include/db.h: Likewise. * include/dirent.h: Likewise. * include/fcntl.h: Likewise. * include/fpu_control.h: Likewise. * include/glob.h: Likewise. * include/grp.h: Likewise. * sysdeps/unix/sysv/linux/bits/errno.h: Likewise. * sysdeps/unix/sysv/linux/bits/sched.h: Likewise. * sysdeps/unix/sysv/linux/bits/siginfo.h: Likewise. * sysdeps/unix/sysv/linux/bits/socket.h: Likewise. * include/execinfo.h: Add __THROW. 1999-10-18 Ulrich Drepper <drepper@cygnus.com> * sysdeps/mips/Implies: Remove wordsize-32 reference. * sysdeps/mips/mips3/Implies: Add it here.
		
			
				
	
	
		
			109 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			109 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* Header file for mounting/unmount Linux filesystems.
 | |
|    Copyright (C) 1996, 1997, 1998, 1999 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
 | |
|    modify it under the terms of the GNU Library General Public License as
 | |
|    published by the Free Software Foundation; either version 2 of the
 | |
|    License, or (at your option) any later version.
 | |
| 
 | |
|    The GNU C Library is distributed in the hope that it will be useful,
 | |
|    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | |
|    Library General Public License for more details.
 | |
| 
 | |
|    You should have received a copy of the GNU Library General Public
 | |
|    License along with the GNU C Library; see the file COPYING.LIB.  If not,
 | |
|    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 | |
|    Boston, MA 02111-1307, USA.  */
 | |
| 
 | |
| /* This is taken from /usr/include/linux/fs.h.  */
 | |
| 
 | |
| #ifndef _SYS_MOUNT_H
 | |
| #define _SYS_MOUNT_H	1
 | |
| 
 | |
| #include <features.h>
 | |
| #include <sys/ioctl.h>
 | |
| 
 | |
| #define BLOCK_SIZE	1024
 | |
| #define BLOCK_SIZE_BITS	10
 | |
| 
 | |
| 
 | |
| /* These are the fs-independent mount-flags: up to 16 flags are
 | |
|    supported  */
 | |
| enum
 | |
| {
 | |
|   MS_RDONLY = 1,		/* Mount read-only.  */
 | |
| #define MS_RDONLY	MS_RDONLY
 | |
|   MS_NOSUID = 2,		/* Ignore suid and sgid bits.  */
 | |
| #define MS_NOSUID	MS_NOSUID
 | |
|   MS_NODEV = 4,			/* Disallow access to device special files.  */
 | |
| #define MS_NODEV	MS_NODEV
 | |
|   MS_NOEXEC = 8,		/* Disallow program execution.  */
 | |
| #define MS_NOEXEC	MS_NOEXEC
 | |
|   MS_SYNCHRONOUS = 16,		/* Writes are synced at once.  */
 | |
| #define MS_SYNCHRONOUS	MS_SYNCHRONOUS
 | |
|   MS_REMOUNT = 32,		/* Alter flags of a mounted FS.  */
 | |
| #define MS_REMOUNT	MS_REMOUNT
 | |
|   MS_MANDLOCK = 64,		/* Allow mandatory locks on an FS.  */
 | |
| #define MS_MANDLOCK	MS_MANDLOCK
 | |
|   S_WRITE = 128,		/* Write on file/directory/symlink.  */
 | |
| #define S_WRITE		S_WRITE
 | |
|   S_APPEND = 256,		/* Append-only file.  */
 | |
| #define S_APPEND	S_APPEND
 | |
|   S_IMMUTABLE = 512,		/* Immutable file.  */
 | |
| #define S_IMMUTABLE	S_IMMUTABLE
 | |
|   MS_NOATIME = 1024,		/* Do not update access times.  */
 | |
| #define MS_NOATIME	MS_NOATIME
 | |
|   MS_NODIRATIME = 2048		/* Do not update directory access times.  */
 | |
| #define MS_NODIRATIME	MS_NODIRATIME
 | |
| };
 | |
| 
 | |
| /* Flags that can be altered by MS_REMOUNT  */
 | |
| #define MS_RMT_MASK (MS_RDONLY | MS_MANDLOCK)
 | |
| 
 | |
| 
 | |
| /* Magic mount flag number. Has to be or-ed to the flag values.  */
 | |
| 
 | |
| #define MS_MGC_VAL 0xc0ed0000	/* Magic flag number to indicate "new" flags */
 | |
| #define MS_MGC_MSK 0xffff0000	/* Magic flag number mask */
 | |
| 
 | |
| 
 | |
| /* The read-only stuff doesn't really belong here, but any other place
 | |
|    is probably as bad and I don't want to create yet another include
 | |
|    file.  */
 | |
| 
 | |
| #define BLKROSET   _IO(0x12, 93) /* Set device read-only (0 = read-write).  */
 | |
| #define BLKROGET   _IO(0x12, 94) /* Get read-only status (0 = read_write).  */
 | |
| #define BLKRRPART  _IO(0x12, 95) /* Re-read partition table.  */
 | |
| #define BLKGETSIZE _IO(0x12, 96) /* Return device size.  */
 | |
| #define BLKFLSBUF  _IO(0x12, 97) /* Flush buffer cache.  */
 | |
| #define BLKRASET   _IO(0x12, 98) /* Set read ahead for block device.  */
 | |
| #define BLKRAGET   _IO(0x12, 99) /* Get current read ahead setting.  */
 | |
| 
 | |
| 
 | |
| /* Possible value for FLAGS parameter of `umount2'.  */
 | |
| enum
 | |
| {
 | |
|   MNT_FORCE = 1			/* Force unmounting.  */
 | |
| #define MNT_FORCE MNT_FORCE
 | |
| };
 | |
| 
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| /* Mount a filesystem.  */
 | |
| extern int mount (__const char *__special_file, __const char *__dir,
 | |
| 		  __const char *__fstype, unsigned long int __rwflag,
 | |
| 		  __const void *__data) __THROW;
 | |
| 
 | |
| /* Unmount a filesystem.  */
 | |
| extern int umount (__const char *__special_file) __THROW;
 | |
| 
 | |
| /* Unmount a filesystem.  Force unmounting if FLAGS is set to MNT_FORCE.  */
 | |
| extern int umount2 (__const char *__special_file, int __flags) __THROW;
 | |
| 
 | |
| __END_DECLS
 | |
| 
 | |
| #endif /* _SYS_MOUNT_H */
 |