Hello all!
I have found a new home, this place is great!
I have been searching for days to find a way to set a max size for a log.txt file using a cron job exicuting a shell script. Is it possible for a script to remove older entries in a log file to maintain a limited file size? If so,... (5 Replies)
Hello,
Can someone please tell me which command to use to determine the size of a file? When I log in to my shell account, I do this
$>% ls -als
total 632
8 -rw-r--r-- 1 user01 devgrp1 1558 Jul 30 23:25 .kshrc
What is "1158"? Bytes? Kilobytes?
I apologize if my... (8 Replies)
We have Sun OS 5.9 we are doing a backup process (ProC program) that uses the function...
fprintf(fp,"%s;%s;%s;%s;%s;%ld;%ld;%ld;%ld;%s;%s;%s;%d;%s;%s;%s;%ld;%s;%s;%s;%ld;%ld;%s;%ld;%s;%ld;%s;%s;%c%c",x_contrno, x_subno, x_b_subno,x_transdate,x_last_traffic_date,BillAmt_s, x_billamount_int,... (10 Replies)
Hi All,
We are running HP rp7400 box with hpux 11iv1.
Recently, we changed 3 kernel parameters
a) msgseg from 32560 to 32767
b) msgmnb from 65536 to 65535
c) msgssz from 128 to 256
Then we noticed that all application debug file size increase upto 2GB then it stops. So far we did not... (1 Reply)
Hello All,
I am working on an issue, where I need to check the max file size of a file. If the file size exceeds 2 GB, then I need to generate an error message. Since the file system does not allow a file to be created larger than 2 GB, I am planning to use named pipes & AWK file to acheive my... (6 Replies)
I have file listed like below
-rw-r--r--+ 1 test test 17M Nov 26 14:43 test1.gz
-rw-r--r--+ 1 test test 0 Nov 26 14:44 test2.gz
-rw-r--r--+ 1 test test 0 Nov 27 10:41 test3.gz
-rw-r--r--+ 1 test test 244K Nov 27 10:41 test4.gz
-rw-r--r--+ 1 test test 17M Nov 27 10:41 test5.gz
I... (5 Replies)
Hi,
I've compiled a 64-bit version of ClamAV 0.98.7 on my Solaris 10 SPARC server. I have a selection of files all containing the eicar signature but clamd is only picking up the signature in the files <2GB.
I have the following set in clamd.conf, to remove file size checking:
MaxScanSize 0... (4 Replies)
Discussion started by: Troutfest
4 Replies
LEARN ABOUT SUNOS
usb_get_max_pkts_per_isoc_request
usb_get_max_pkts_per_isoc_request(9F) Kernel Functions for Drivers usb_get_max_pkts_per_isoc_request(9F)NAME
usb_get_max_pkts_per_isoc_request - Get maximum number of packets allowed per isochronous request
SYNOPSIS
#include <sys/usb/usba.h>
uint_t usb_get_max_pkts_per_isoc_request(dev_info_t *dip);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI)
PARAMETERS
dip
Pointer to the device's dev_info structure.
DESCRIPTION
The usb_get_max_pkts_per_isoc_request() function returns the maximum number of isochronous packets per request that the host control driver
can support. This number can be used to determine the maximum amount of data which can be handled by a single isochronous request.
That length is found by:
max = usb_get_max_pkts_per_isoc_request(dip) * endpoint_max_packet_size;
where endpoint_max_packet_size is the wMaxPacketSize field of the isochronous endpoint over which the transfer will take place.
RETURN VALUES
On success, the usb_get_current_frame_number() function returns the maximum number of isochronous pkts per request. On failure it returns
0. The function fails if dip is NULL.
CONTEXT
May be called from user, kernel or interrupt context.
EXAMPLES
/*
* Set up to receive periodic isochronous data, requesting
* the maximum amount for each transfer.
*/
int pkt;
/* Get max packet size from endpoint descriptor. */
uint_t ep_max_pkt_size = ep_descr.wMaxPacketSize;
uint_t isoc_pkts_count = usb_get_max_pkts_per_isoc_request(dip);
/*
* Allocate an isoc request, specifying the max number of packets
* and the greatest size transfer possible.
*/
usb_isoc_req_t *isoc_req = usb_alloc_isoc_req(dip,
isoc_pkts_count,
isoc_pkts_count * ep_max_pkt_size,
USB_FLAGS_SLEEP);
/* Init each packet descriptor for maximum size. */
for (pkt = 0; pkt < isoc_pkts_count; pkt++) {
isoc_req->isoc_pkt_descr[pkt].isoc_pkt_length = ep_max_pkt_size;
}
/* Set the length of a packet in the request too. */
isoc_req->isoc_pkts_length = ep_max_pkt_size;
/* Other isoc request initialization. */
...
...
if (usb_pipe_isoc_xfer(pipe, isoc_req, USB_FLAGS_NOSLEEP) != USB_SUCCESS) {
...
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |PCI-based systems |
+-----------------------------+-----------------------------+
|Interface stability |Evolving |
+-----------------------------+-----------------------------+
|Availability |SUNWusb |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5), usb_pipe_isoc_xfer(9F), usb_alloc_request(9F), usb_get_current_frame_number(9F). usb_ep_descr(9S), usb_isoc_request(9S)SunOS 5.10 5 Jan 2004 usb_get_max_pkts_per_isoc_request(9F)