Commit Graph

80 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
fced68ddd0 use afs_ioctlnum, From Tomas Olsson <tol@it.su.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17050 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-11 08:12:29 +00:00
Love Hörnquist Åstrand
5c607b8633 Try harder to get the pioctl to work via the /proc or /dev interface,
OpenAFS choose to reuse the same ioctl number, while Arla didn't.
Also, try new ioctl before the the old syscalls.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17044 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 16:38:22 +00:00
Love Hörnquist Åstrand
256cf0f403 Remove untested patch that sneaked in.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16201 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-20 14:59:20 +00:00
Love Hörnquist Åstrand
156ee39478 (k_hasafs_recheck): new function, allow rechecking if AFS client have
started now, internaly it resets the internal state from k_hasafs()
and retry retry the probing. The problem with calling k_hasaf() is
that is plays around with signals, and that cases problem for some
systems/applications.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-20 14:52:18 +00:00
Love Hörnquist Åstrand
addf150924 Mac OS X 10.4 needs a runtime check if we are going to use the
syscall, there is no cpp define to use to check the version.  Every
after 10.0 (darwin 8.0) uses the /dev/ version of the pioctl.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-02 03:17:06 +00:00
Love Hörnquist Åstrand
c9f13ad9b3 Support the new MacOS X 10.4 ioctl interface that is a device
node. Patched from Tomas Olson <tol@it.su.se>.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-01 02:55:55 +00:00
Love Hörnquist Åstrand
f4ed8d6a38 (k_afs_cell_of_file): unconst path
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 22:51:26 +00:00
Love Hörnquist Åstrand
7a3b0e2dcd Don't building map_syscall_name_to_number where its not used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15340 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-02 07:25:58 +00:00
Love Hörnquist Åstrand
8db9481ece s/arla/nnpfs/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13978 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-22 14:28:39 +00:00
Love Hörnquist Åstrand
4d801e087e update copyright
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13977 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-22 13:52:46 +00:00
Love Hörnquist Åstrand
87d06b184a support the linux /proc/fs/mumel/afs_ioctl afs "syscall" interface
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-22 12:34:23 +00:00
Love Hörnquist Åstrand
195de6c808 fix c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-18 04:18:45 +00:00
Johan Danielsson
5158baef17 speling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11530 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-29 10:32:44 +00:00
Assar Westerlund
8f89435673 update prototype for signal handlers to RETSIGTYPE (*)(int)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 12:08:04 +00:00
Assar Westerlund
0312bc2a02 (map_syscall_name_to_number): ignore # at beginning-of-line
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8043 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-15 02:55:51 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
bf75fac82a large strc{py,at}_truncate -> strlc{py,at} replacement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6984 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 20:41:57 +00:00
Assar Westerlund
46533b9069 (k_hasafs): ifdef a variable properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6162 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-08 02:24:32 +00:00
Johan Danielsson
bf2dd88284 don't depend on the existance of warnx (use fprintf)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5158 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-09-26 20:59:10 +00:00
Assar Westerlund
7ad4fc289a reorganize order of definitions.
(try_one, try_two): conditionalize


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5087 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-15 23:27:12 +00:00
Assar Westerlund
5696f50326 (map_syscall_name_to_number): new function for finding the number
of a syscall given the name on solaris
(k_hasafs): try using map_syscall_name_to_number


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5066 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-07 23:39:43 +00:00
Assar Westerlund
b1543d80a8 rewrite and add support for environment variable AFS_SYSCALL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5039 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-30 15:25:09 +00:00
Johan Danielsson
a5f54865d4 merge strcpy_truncate branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5027 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-06-09 19:25:40 +00:00
Johan Danielsson
2fd0274af6 isSuid -> issuid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4842 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-09 17:19:03 +00:00
Johan Danielsson
e4b13a8b1c Add some debug diagnostics for dlopen.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4822 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-26 15:16:57 +00:00
Johan Danielsson
e843ca4df0 update copyright
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4562 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-07 18:07:08 +00:00
Johan Danielsson
177e2519b0 Fix type of `Pioctl'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4559 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-07 18:02:28 +00:00
Assar Westerlund
cb7d150f96 ifdef-out the code that is not used to avoid referencing `syscall' on
AIX.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1652 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-04 02:30:41 +00:00
Assar Westerlund
dd02a92a8b replace sprintf all over the place
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1635 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-02 14:29:33 +00:00
Johan Danielsson
564f6f47cf Clean up the ifdef swamp.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1609 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-20 14:10:56 +00:00
Johan Danielsson
f23cb831bb Use kafs_locl.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1607 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-20 13:21:28 +00:00
Assar Westerlund
4259a6f7e1 <sys/socket.h> contains the definition of `_IOW' on cygwin32.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1554 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-06 21:50:38 +00:00
Assar Westerlund
6dd290313a <sys/types.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1546 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-05 19:34:59 +00:00
Björn Groenvall
7fa3305150 Separate syscall functionality and
kerberos convenience routines into afssys.c and afskrb.c. This to
 make it possible to use k_pioctl() without linking in all
 libraries in the world.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1544 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-03 13:10:17 +00:00
Johan Danielsson
e1282e7dfc Update copyright strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-01 08:19:18 +00:00
Assar Westerlund
9633c2bf27 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1190 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-26 19:35:43 +00:00
Assar Westerlund
569fd109a4 changed order of includes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1123 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-12-16 22:55:33 +00:00
Assar Westerlund
abdb52dbe5 (k_setpag): Handle AFS_SYSCALL3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1052 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-19 05:21:33 +00:00
Björn Groenvall
1c621d2ea1 Remove unused variable afsdb
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@966 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-15 17:20:32 +00:00
Assar Westerlund
3f989f9168 more conditional includes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@965 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-15 16:28:45 +00:00
Johan Danielsson
4138f2a01e Only get tokens for each cell once.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@964 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-15 15:25:53 +00:00
Assar Westerlund
b88b39d799 New function `k_afsklog_uid'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@934 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-04 21:50:45 +00:00
Johan Danielsson
dc4a8b72ef Use dns_lookup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@932 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-04 20:30:06 +00:00
Johan Danielsson
ea30661d63 Fix copyright
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@900 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-27 16:33:53 +00:00
Björn Groenvall
3e317bb818 Fix copyright.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@893 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-26 16:05:04 +00:00
Johan Danielsson
2d0d525b27 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@735 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-14 02:45:02 +00:00
Johan Danielsson
feaa4059db Add k_afs_cell_of_file.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@725 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-11 18:23:29 +00:00
Assar Westerlund
a95bae9e0a All signal handlers return RETSIGTYPE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@712 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-03 18:04:46 +00:00
Assar Westerlund
3c3ee0aa53 Do not start by checking if we have AFS in `k_afsklog'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@694 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-08-30 00:48:48 +00:00
Johan Danielsson
9f223b322b Yet another fix.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@691 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-08-28 22:52:16 +00:00