+1998-08-20 20:07 Ulrich Drepper <drepper@cygnus.com>
+
+ * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
+ cast them to unsigned long int.
+ * pwd/putpwent.c (putpwent): Likewise.
+ Patch by John Tobey <jtobey@banta-im.com>.
+
+1998-08-20 17:14 H.J. Lu <hjl@gnu.org>
+
+ * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
+ _IO_pos_BAD.
+
+1998-02-20 17:54 H.J. Lu <hjl@gnu.org>
+
+ * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
+ _IO_SYSSEEK fails.
+
1998-08-20 19:14 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
* sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
Define MNT_FORCE.
+ * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
+ Add sys/sendfile.h.
+ * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
+ * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
+
+ * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
+
+ * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
+ sendfile.
+
1998-08-20 16:01 Ulrich Drepper <drepper@cygnus.com>
* elf/ldd.sh.in: Redirect warnings and error messages to stderr.
_IO_unsave_markers (fp);
result = _IO_SYSSEEK (fp, offset, dir);
if (result != EOF)
- _IO_mask_flags (fp, 0, _IO_EOF_SEEN);
- fp->_offset = result;
- _IO_setg (fp, fp->_IO_buf_base, fp->_IO_buf_base, fp->_IO_buf_base);
- _IO_setp (fp, fp->_IO_buf_base, fp->_IO_buf_base);
+ {
+ _IO_mask_flags (fp, 0, _IO_EOF_SEEN);
+ fp->_offset = result;
+ _IO_setg (fp, fp->_IO_buf_base, fp->_IO_buf_base, fp->_IO_buf_base);
+ _IO_setp (fp, fp->_IO_buf_base, fp->_IO_buf_base);
+ }
return result;
}
# define FILEBUF_LITERAL(CHAIN, FLAGS, FD) \
{ _IO_MAGIC+_IO_LINKED+_IO_IS_FILEBUF+FLAGS, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, CHAIN, FD, \
- 0, 0, 0, 0, { 0 }, &_IO_stdfile_##FD##_lock }
+ 0, _IO_pos_BAD, 0, 0, { 0 }, &_IO_stdfile_##FD##_lock }
#else
/* check following! */
# define FILEBUF_LITERAL(CHAIN, FLAGS, FD) \
{ _IO_MAGIC+_IO_LINKED+_IO_IS_FILEBUF+FLAGS, \
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, CHAIN, FD }
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, CHAIN, FD, 0, _IO_pos_BAD }
#endif
/* VTABLE_LABEL defines NAME as of the CLASS class.
if (__getpwuid_r (uid, &resbuf, tmpbuf, buflen, &p) < 0)
return -1;
- if (sprintf (buf, "%s:%s:%u:%u:%s:%s:%s", p->pw_name, p->pw_passwd,
- p->pw_uid, p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell) < 0)
+ if (sprintf (buf, "%s:%s:%lu:%lu:%s:%s:%s", p->pw_name, p->pw_passwd,
+ (unsigned long int) p->pw_uid, (unsigned long int) p->pw_gid,
+ p->pw_gecos, p->pw_dir, p->pw_shell) < 0)
return -1;
return 0;
return -1;
}
- if (fprintf (stream, "%s:%s:%u:%u:%s:%s:%s\n",
+ if (fprintf (stream, "%s:%s:%lu:%lu:%s:%s:%s\n",
p->pw_name, _S (p->pw_passwd),
- p->pw_uid, p->pw_gid,
+ (unsigned long int) p->pw_uid, (unsigned long int) p->pw_gid,
_S (p->pw_gecos), _S (p->pw_dir), _S (p->pw_shell)) < 0)
return -1;
sys/user.h sys/sysmacros.h sys/procfs.h sys/prctl.h \
sys/debugreg.h sys/kd.h sys/soundcard.h sys/vt.h \
sys/quota.h sys/fsuid.h bits/mman.h \
- scsi/sg.h scsi/scsi.h sys/pci.h sys/ultrasound.h
+ scsi/sg.h scsi/scsi.h sys/pci.h sys/ultrasound.h \
+ sys/sendfile.h
install-others += $(inst_includedir)/bits/syscall.h
# c*
capget; capset;
+
+ # s*
+ sendfile;
+
+ # u*
+ umount2;
}
}
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 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
Boston, MA 02111-1307, USA. */
#ifndef _SYS_ACCT_H
-
#define _SYS_ACCT_H 1
+
#include <features.h>
#define __need_time_t
--- /dev/null
+/* Copyright (C) 1998 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. */
+
+#ifndef _SYS_SENDFILE_H
+#define _SYS_SENDFILE_H 1
+
+#include <features.h>
+#include <sys/types.h>
+
+__BEGIN_DECLS
+
+/* Send COUNT bytes from file associated with IN_FD starting at OFFSET to
+ descriptor OUT_FD. */
+extern ssize_t sendfile __P ((int __out_fd, int __in_fd, off_t *offset,
+ size_t __count));
+
+__END_DECLS
+
+#endif /* sys/sendfile.h */
sched_sets - sched_setscheduler 3 __sched_setscheduler sched_setscheduler
sched_yield - sched_yield 0 __sched_yield sched_yield
select - _newselect 5 __select select
+sendfile EXTRA sendfile 4 sendfile
setfsgid EXTRA setfsgid 1 setfsgid
setfsuid EXTRA setfsuid 1 setfsuid
setpgid - setpgid 2 __setpgid setpgid