8 More Discussions You Might Find Interesting
1. SCO
We have a SCO UnixWare system version 7.1.3, running a front end ERP system.
I have 2 new printers I would like to add so that people can print from the ERP system. The two printers are on the network and have IP address's. They are used throughout the day by Windows XP machines, but can not be... (4 Replies)
Discussion started by: Mick_Dundee
4 Replies
2. SCO
Hi All,
When I install SCO 6.0 maintenance package 3 I get some mails:
Message 338:
From root Tue Nov 20 12:39:15 2007
From: Superuser <root@hocopart.hocoparts.local>
X-Mailer: SCO OpenServer 6.0.0 Mail
To: root@hocopart.hocoparts.local
Date: Tue, 20 Nov 2007 12:39:15 +0100 (CET)... (0 Replies)
Discussion started by: frederik1
0 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need some help with installing and configuring a printer via command line as the scoadmin menu system doesnt work fully.
So I was wondering how i can install and configure a printer purely from command line editing relevant files.
It would be great if someone can help me out.
... (7 Replies)
Discussion started by: dregnet
7 Replies
4. HP-UX
does hp unix support usb printers (1 Reply)
Discussion started by: anthonys
1 Replies
5. SCO
I have an HP Vectra VL Series5 running SCO Unix v3.2.5 and need to connect an HP LaserJet 1020 via USB port. Does anybody know the address of the USB ports? This computer has two.
Thanks for any assistance. (3 Replies)
Discussion started by: Don48
3 Replies
6. UNIX for Advanced & Expert Users
Hi, I have done this year ago, and now I need to do it again, but did not remember how I do it. I have a slip printer on a windows xp workstation and i need to print from SCO unix application to that printer. I try to create a remote printer but the only option available is unix, the other to... (0 Replies)
Discussion started by: comsiconsa
0 Replies
7. UNIX for Dummies Questions & Answers
Hello,i have laserjet 1000 usb printer on fbsd 4.7
when i connect it to usb, usbdev tells me it is working, on port ulpt0 (whatever). When i send some data to port it doesn't tell me any error, printcap is modifyed according manual,
and
lpr -Plj /etc/rc.conf gives me following error
/kernel:... (1 Reply)
Discussion started by: hachik
1 Replies
8. UNIX for Dummies Questions & Answers
I have just been made responsible for setting up Apache on our office SCO
box. I have searched the internet, but
haven't found any details that I can make
sense of. I'm unfamiliar with Unix and would appreciate any help members of
the forum have to offer. (1 Reply)
Discussion started by: cstovall
1 Replies
CFREE(3) Linux Programmer's Manual CFREE(3)
NAME
cfree - free allocated memory
SYNOPSIS
#include <stdlib.h>
/* In SunOS 4 */
int cfree(void *ptr);
/* In glibc or FreeBSD libcompat */
void cfree(void *ptr);
/* In SCO OpenServer */
void cfree(char *ptr, unsigned num, unsigned size);
/* In Solaris watchmalloc.so.1 */
void cfree(void *ptr, size_t nelem, size_t elsize);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
cfree(): _BSD_SOURCE || _SVID_SOURCE
DESCRIPTION
This function should never be used. Use free(3) instead.
1-arg cfree
In glibc, the function cfree() is a synonym for free(3), "added for compatibility with SunOS".
Other systems have other functions with this name. The declaration is sometimes in <stdlib.h> and sometimes in <malloc.h>.
3-arg cfree
Some SCO and Solaris versions have malloc libraries with a 3-argument cfree(), apparently as an analog to calloc(3).
If you need it while porting something, add
#define cfree(p, n, s) free((p))
to your file.
A frequently asked question is "Can I use free(3) to free memory allocated with calloc(3), or do I need cfree()?" Answer: use free(3).
An SCO manual writes: "The cfree routine is provided for compliance to the iBCSe2 standard and simply calls free. The num and size argu-
ments to cfree are not used."
RETURN VALUE
The SunOS version of cfree() (which is a synonym for free(3)) returns 1 on success and 0 on failure. In case of error, errno is set to
EINVAL: the value of ptr was not a pointer to a block previously allocated by one of the routines in the malloc(3) family.
CONFORMING TO
The 3-argument version of cfree() as used by SCO conforms to the iBCSe2 standard: Intel386 Binary Compatibility Specification, Edition 2.
SEE ALSO
malloc(3)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2007-07-26 CFREE(3)